From 15d870b3bfc83b37093205946bb906f811d3f807 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:23:49 +0000 Subject: [PATCH 1/2] Bump mermaid from 10.9.1 to 10.9.3 in /ui Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 10.9.1 to 10.9.3. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md) - [Commits](https://github.com/mermaid-js/mermaid/compare/v10.9.1...v10.9.3) --- updated-dependencies: - dependency-name: mermaid dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- ui/package-lock.json | 10 +++++----- ui/package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/package-lock.json b/ui/package-lock.json index 56f3c9dd6b..66cf5bbf61 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -18,7 +18,7 @@ "@angular/platform-browser": "^15.2.0", "@angular/platform-browser-dynamic": "^15.2.0", "@angular/router": "^15.2.0", - "mermaid": "^10.9.1", + "mermaid": "^10.9.3", "ngx-segment-analytics": "^16.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", @@ -13843,9 +13843,9 @@ } }, "node_modules/mermaid": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.9.1.tgz", - "integrity": "sha512-Mx45Obds5W1UkW1nv/7dHRsbfMM1aOKA2+Pxs/IGHNonygDHwmng8xTHyS9z4KWVi0rbko8gjiBmuwwXQ7tiNA==", + "version": "10.9.3", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.9.3.tgz", + "integrity": "sha512-V80X1isSEvAewIL3xhmz/rVmc27CVljcsbWxkxlWJWY/1kQa4XOABqpDl2qQLGKzpKm6WbTfUEKImBlUfFYArw==", "dependencies": { "@braintree/sanitize-url": "^6.0.1", "@types/d3-scale": "^4.0.3", @@ -13856,7 +13856,7 @@ "d3-sankey": "^0.12.3", "dagre-d3-es": "7.0.10", "dayjs": "^1.11.7", - "dompurify": "^3.0.5", + "dompurify": "^3.0.5 <3.1.7", "elkjs": "^0.9.0", "katex": "^0.16.9", "khroma": "^2.0.0", diff --git a/ui/package.json b/ui/package.json index 5094addb16..d7822aba2b 100644 --- a/ui/package.json +++ b/ui/package.json @@ -23,7 +23,7 @@ "@angular/platform-browser": "^15.2.0", "@angular/platform-browser-dynamic": "^15.2.0", "@angular/router": "^15.2.0", - "mermaid": "^10.9.1", + "mermaid": "^10.9.3", "ngx-segment-analytics": "^16.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", From ccd839e9d6f80557b0cd7ac0a071048bde02c33c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Dec 2024 21:42:12 +0000 Subject: [PATCH 2/2] Regenerate static UI files Co-authored-by: dependabot[bot] --- pkg/apiserver-impl/ui/106.660a24779a950b57.js | 1 + pkg/apiserver-impl/ui/109.1bc591266882735b.js | 1 + pkg/apiserver-impl/ui/118.efe4353ad7321c4a.js | 1 + .../ui/{831.4ab3ba9ca26fa0f5.js => 153.d4cce79846a7dd32.js} | 2 +- pkg/apiserver-impl/ui/165.bde353f44cb7bb78.js | 1 - pkg/apiserver-impl/ui/177.878eb3be2aa9d69a.js | 1 + pkg/apiserver-impl/ui/196.7202a050f57b2a0c.js | 1 + pkg/apiserver-impl/ui/233.a9d4b21b1685eaf7.js | 1 - .../ui/{547.c349efb0d3b6da75.js => 235.8b4ded998620e196.js} | 2 +- pkg/apiserver-impl/ui/256.e109041062d43d27.js | 1 + pkg/apiserver-impl/ui/277.ef9c6b029eb416c2.js | 1 + .../ui/{499.7b2b01997dee913b.js => 294.bac01a924dc03377.js} | 2 +- pkg/apiserver-impl/ui/325.5442c16224d7ead3.js | 1 - pkg/apiserver-impl/ui/38.fba2ecc6e4763433.js | 1 - pkg/apiserver-impl/ui/400.251b299514a70c5d.js | 1 - .../ui/{167.17f92c6e702d25df.js => 412.59466dc862aa4b87.js} | 2 +- pkg/apiserver-impl/ui/44.94245195e1d0b050.js | 1 - pkg/apiserver-impl/ui/463.dc3a51287a3daffe.js | 1 - pkg/apiserver-impl/ui/474.fc76b77c0b0a42c1.js | 1 - .../ui/{820.9423629b523fc453.js => 508.8c9ab7239b64f64b.js} | 2 +- .../ui/{627.78bbe1b912458c32.js => 552.7e3497fa1d244176.js} | 2 +- .../ui/{609.32c373e0fbdc4f95.js => 567.dcca9e7b48f5dfdf.js} | 2 +- pkg/apiserver-impl/ui/594.6b6471753b71a6cf.js | 1 - pkg/apiserver-impl/ui/60.685c2165b0aaa640.js | 1 + pkg/apiserver-impl/ui/633.98936ec9d0fd371a.js | 1 - pkg/apiserver-impl/ui/652.a257982f6cb94696.js | 1 + pkg/apiserver-impl/ui/665.07fb59cca43331d0.js | 1 + .../ui/{407.481a9d034fa71ad4.js => 667.bce38317bbf96dd5.js} | 2 +- .../ui/{690.4ed844d0622bcdf0.js => 687.b07e6d76bf58d46f.js} | 2 +- pkg/apiserver-impl/ui/70.20b5cf127910a277.js | 1 + pkg/apiserver-impl/ui/706.98213c0edcceba9b.js | 1 + .../ui/{919.c655383a313f29b4.js => 725.ef7067e12041f0a5.js} | 2 +- pkg/apiserver-impl/ui/728.d855df7b4e9659d2.js | 1 - pkg/apiserver-impl/ui/730.d98a298a483060a0.js | 1 - .../ui/{270.3930e48419f47a91.js => 769.a10b1572fd4b8711.js} | 2 +- pkg/apiserver-impl/ui/787.9039147efd6d6d26.js | 1 + pkg/apiserver-impl/ui/839.51b43950610b1cc5.js | 1 - .../ui/{770.b5355903ae187636.js => 867.c8df2c2f5dc1b899.js} | 2 +- pkg/apiserver-impl/ui/880.7a4356d9d7293fda.js | 1 - pkg/apiserver-impl/ui/903.c29428aa95c26108.js | 1 - pkg/apiserver-impl/ui/907.21a1588e78495f0d.js | 1 + .../ui/{917.1b3eb8f93ae99c79.js => 952.5a44fde7550d4404.js} | 2 +- pkg/apiserver-impl/ui/993.68a03a82a6830294.js | 1 + .../{common.5c8a2e23d554c074.js => common.a460f048f6dafca5.js} | 2 +- pkg/apiserver-impl/ui/index.html | 2 +- .../ui/{main.98d110f57059b473.js => main.81350eee110c4ffc.js} | 2 +- pkg/apiserver-impl/ui/runtime.574fc519230447d5.js | 1 - pkg/apiserver-impl/ui/runtime.d0bea65c100cb48f.js | 1 + 48 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 pkg/apiserver-impl/ui/106.660a24779a950b57.js create mode 100644 pkg/apiserver-impl/ui/109.1bc591266882735b.js create mode 100644 pkg/apiserver-impl/ui/118.efe4353ad7321c4a.js rename pkg/apiserver-impl/ui/{831.4ab3ba9ca26fa0f5.js => 153.d4cce79846a7dd32.js} (99%) delete mode 100644 pkg/apiserver-impl/ui/165.bde353f44cb7bb78.js create mode 100644 pkg/apiserver-impl/ui/177.878eb3be2aa9d69a.js create mode 100644 pkg/apiserver-impl/ui/196.7202a050f57b2a0c.js delete mode 100644 pkg/apiserver-impl/ui/233.a9d4b21b1685eaf7.js rename pkg/apiserver-impl/ui/{547.c349efb0d3b6da75.js => 235.8b4ded998620e196.js} (98%) create mode 100644 pkg/apiserver-impl/ui/256.e109041062d43d27.js create mode 100644 pkg/apiserver-impl/ui/277.ef9c6b029eb416c2.js rename pkg/apiserver-impl/ui/{499.7b2b01997dee913b.js => 294.bac01a924dc03377.js} (99%) delete mode 100644 pkg/apiserver-impl/ui/325.5442c16224d7ead3.js delete mode 100644 pkg/apiserver-impl/ui/38.fba2ecc6e4763433.js delete mode 100644 pkg/apiserver-impl/ui/400.251b299514a70c5d.js rename pkg/apiserver-impl/ui/{167.17f92c6e702d25df.js => 412.59466dc862aa4b87.js} (99%) delete mode 100644 pkg/apiserver-impl/ui/44.94245195e1d0b050.js delete mode 100644 pkg/apiserver-impl/ui/463.dc3a51287a3daffe.js delete mode 100644 pkg/apiserver-impl/ui/474.fc76b77c0b0a42c1.js rename pkg/apiserver-impl/ui/{820.9423629b523fc453.js => 508.8c9ab7239b64f64b.js} (99%) rename pkg/apiserver-impl/ui/{627.78bbe1b912458c32.js => 552.7e3497fa1d244176.js} (99%) rename pkg/apiserver-impl/ui/{609.32c373e0fbdc4f95.js => 567.dcca9e7b48f5dfdf.js} (99%) delete mode 100644 pkg/apiserver-impl/ui/594.6b6471753b71a6cf.js create mode 100644 pkg/apiserver-impl/ui/60.685c2165b0aaa640.js delete mode 100644 pkg/apiserver-impl/ui/633.98936ec9d0fd371a.js create mode 100644 pkg/apiserver-impl/ui/652.a257982f6cb94696.js create mode 100644 pkg/apiserver-impl/ui/665.07fb59cca43331d0.js rename pkg/apiserver-impl/ui/{407.481a9d034fa71ad4.js => 667.bce38317bbf96dd5.js} (99%) rename pkg/apiserver-impl/ui/{690.4ed844d0622bcdf0.js => 687.b07e6d76bf58d46f.js} (99%) create mode 100644 pkg/apiserver-impl/ui/70.20b5cf127910a277.js create mode 100644 pkg/apiserver-impl/ui/706.98213c0edcceba9b.js rename pkg/apiserver-impl/ui/{919.c655383a313f29b4.js => 725.ef7067e12041f0a5.js} (88%) delete mode 100644 pkg/apiserver-impl/ui/728.d855df7b4e9659d2.js delete mode 100644 pkg/apiserver-impl/ui/730.d98a298a483060a0.js rename pkg/apiserver-impl/ui/{270.3930e48419f47a91.js => 769.a10b1572fd4b8711.js} (66%) create mode 100644 pkg/apiserver-impl/ui/787.9039147efd6d6d26.js delete mode 100644 pkg/apiserver-impl/ui/839.51b43950610b1cc5.js rename pkg/apiserver-impl/ui/{770.b5355903ae187636.js => 867.c8df2c2f5dc1b899.js} (99%) delete mode 100644 pkg/apiserver-impl/ui/880.7a4356d9d7293fda.js delete mode 100644 pkg/apiserver-impl/ui/903.c29428aa95c26108.js create mode 100644 pkg/apiserver-impl/ui/907.21a1588e78495f0d.js rename pkg/apiserver-impl/ui/{917.1b3eb8f93ae99c79.js => 952.5a44fde7550d4404.js} (99%) create mode 100644 pkg/apiserver-impl/ui/993.68a03a82a6830294.js rename pkg/apiserver-impl/ui/{common.5c8a2e23d554c074.js => common.a460f048f6dafca5.js} (97%) rename pkg/apiserver-impl/ui/{main.98d110f57059b473.js => main.81350eee110c4ffc.js} (99%) delete mode 100644 pkg/apiserver-impl/ui/runtime.574fc519230447d5.js create mode 100644 pkg/apiserver-impl/ui/runtime.d0bea65c100cb48f.js diff --git a/pkg/apiserver-impl/ui/106.660a24779a950b57.js b/pkg/apiserver-impl/ui/106.660a24779a950b57.js new file mode 100644 index 0000000000..237a9c0cef --- /dev/null +++ b/pkg/apiserver-impl/ui/106.660a24779a950b57.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[106],{1106:(Se,Yt,xt)=>{xt.d(Yt,{D:()=>G,S:()=>ut,a:()=>Dt,b:()=>Y,c:()=>Ut,d:()=>ue,p:()=>Gt,s:()=>fe});var u=xt(8080),ht=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],E=[1,15],f=[1,16],b=[1,17],k=[1,18],$=[1,30],H=[1,19],K=[1,20],W=[1,21],X=[1,22],J=[1,23],q=[1,25],Q=[1,26],Z=[1,27],tt=[1,28],et=[1,29],st=[1,32],it=[1,33],rt=[1,34],nt=[1,35],P=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],at=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Ft=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],gt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"--\x3e":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"--\x3e",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,F){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:"nl"!=e[l]&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:case 11:this.$=e[l];break;case 8:this.$="nl";break;case 12:const V=e[l-1];V.description=o.trimColon(e[l]),this.$=V;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const mt=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:mt};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var lt=e[l].split(":");A=lt[0],O=[O,lt[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""}}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:E,16:f,18:b,21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:E,16:f,18:b,21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(at,[2,40],{51:[1,51]}),t(at,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:$,50:P},t(c,[2,16]),t(Ft,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:E,16:f,18:b,20:[1,64],21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(at,[2,42]),t(at,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Ft,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:E,16:f,18:b,20:[1,69],21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(!n.recoverable){var i=new Error(r);throw i.hash=n,i}this.trace(r)},parse:function(r){var i=[0],o=[],S=[null],e=[],F=this.table,l="",A=0,O=0,mt=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(L.yy[Tt]=this.yy[Tt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var kt=g.yylloc;e.push(kt);var D,ye=g.options&&g.options.ranges;this.parseError="function"==typeof L.yy.parseError?L.yy.parseError:Object.getPrototypeOf(this).parseError;for(var m,I,T,Et,ct,x,ot,N={};;){if(this.defaultActions[I=i[i.length-1]]?T=this.defaultActions[I]:((null===m||typeof m>"u")&&(D=void 0,"number"!=typeof(D=o.pop()||g.lex()||1)&&(D instanceof Array&&(D=(o=D).pop()),D=this.symbols_[D]||D),m=D),T=F[I]&&F[I][m]),typeof T>"u"||!T.length||!T[0]){var bt;for(ct in ot=[],F[I])this.terminals_[ct]&&ct>2&&ot.push("'"+this.terminals_[ct]+"'");bt=g.showPosition?"Parse error on line "+(A+1)+":\n"+g.showPosition()+"\nExpecting "+ot.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(A+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(bt,{text:g.match,token:this.terminals_[m]||m,line:g.yylineno,loc:kt,expected:ot})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+m);switch(T[0]){case 1:i.push(m),S.push(g.yytext),e.push(g.yylloc),i.push(T[1]),m=null,O=g.yyleng,l=g.yytext,A=g.yylineno,kt=g.yylloc;break;case 2:if(N.$=S[S.length-(x=this.productions_[T[1]][1])],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},ye&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),typeof(Et=this.performAction.apply(N,[l,O,A,L.yy,T[1],S,e].concat(mt)))<"u")return Et;x&&(i=i.slice(0,-1*x*2),S=S.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[T[1]][0]),S.push(N.$),e.push(N._$),i.push(F[i[i.length-2]][i[i.length-1]]);break;case 3:return!0}}return!0}};function _t(){this.yy={}}return gt.lexer={EOF:1,parseError:function(n,i){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,i)},setInput:function(r,n){return this.yy=n||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},input: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},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),i.length-1&&(this.yylineno-=i.length-1);var S=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:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+"\n"+n+"^"},test_match:function(r,n){var i,o,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),(o=r[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.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],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},next:function(){if(this.done)return this.EOF;var r,n,i,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;en[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(!1!==(r=this.test_match(i,S[e])))return r;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?!1!==(r=this.test_match(n,S[o]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,S){switch(o){case 0:return 40;case 1:case 39:return 44;case 2:case 40:return 45;case 3:case 41:return 46;case 4:case 42:return 47;case 5:case 6:case 8:case 9:case 10:case 11:case 51:case 53:case 59:break;case 7:case 74:return 5;case 12:case 29:return this.pushState("SCALE"),16;case 13:case 30:return 17;case 14:case 20:case 31:case 46:case 49:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 32:this.pushState("STATE");break;case 33:case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:case 61:return this.popState(),"ID";case 47:return"STATE_DESCR";case 48:return 18;case 50:return this.popState(),this.pushState("struct"),19;case 52:return this.popState(),20;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 60:return"NOTE_TEXT";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}},_t.prototype=gt,gt.Parser=_t,new _t}();ht.parser=ht;const Gt=ht,Ut="TB",Y="state",ut="relation",G="default",Dt="divider",ft="[*]",Ct="start",vt=ft;let Nt="LR",j=[],R={},U={root:{relations:[],states:{},documents:{}}},_=U.root,w=0,wt=0;const M=t=>JSON.parse(JSON.stringify(t)),z=(t,s,a)=>{if(s.stmt===ut)z(t,s.state1,!0),z(t,s.state2,!1);else if(s.stmt===Y&&("[*]"===s.id?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let y,d=[];for(y=0;y0&&d.length>0){const p={stmt:Y,id:(0,u.I)(),type:"divider",doc:M(d)};h.push(M(p)),s.doc=h}s.doc.forEach(p=>z(s,p,!0))}},v=function(t,s=G,a=null,h=null,d=null,y=null,p=null,E=null){const f=t?.trim();void 0===_.states[f]?(u.l.info("Adding state ",f,h),_.states[f]={id:f,descriptions:[],type:s,doc:a,note:d,classes:[],styles:[],textStyles:[]}):(_.states[f].doc||(_.states[f].doc=a),_.states[f].type||(_.states[f].type=s)),h&&(u.l.info("Setting state description",f,h),"string"==typeof h&&pt(f,h.trim()),"object"==typeof h&&h.forEach(b=>pt(f,b.trim()))),d&&(_.states[f].note=d,_.states[f].note.text=u.e.sanitizeText(_.states[f].note.text,(0,u.c)())),y&&(u.l.info("Setting state classes",f,y),("string"==typeof y?[y]:y).forEach(k=>St(f,k.trim()))),p&&(u.l.info("Setting state styles",f,p),("string"==typeof p?[p]:p).forEach(k=>oe(f,k.trim()))),E&&(u.l.info("Setting state styles",f,p),("string"==typeof E?[E]:E).forEach(k=>he(f,k.trim())))},Bt=function(t){U={root:{relations:[],states:{},documents:{}}},_=U.root,w=0,R={},t||(0,u.v)()},B=function(t){return _.states[t]};function dt(t=""){let s=t;return t===ft&&(w++,s=`${Ct}${w}`),s}function yt(t="",s=G){return t===ft?Ct:s}const $t=function(t,s,a){if("object"==typeof t)!function ne(t,s,a){let h=dt(t.id.trim()),d=yt(t.id.trim(),t.type),y=dt(s.id.trim()),p=yt(s.id.trim(),s.type);v(h,d,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),v(y,p,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),_.relations.push({id1:h,id2:y,relationTitle:u.e.sanitizeText(a,(0,u.c)())})}(t,s,a);else{const h=dt(t.trim()),d=yt(t),y=function ie(t=""){let s=t;return t===vt&&(w++,s=`end${w}`),s}(s.trim()),p=function re(t="",s=G){return t===vt?"end":s}(s);v(h,d),v(y,p),_.relations.push({id1:h,id2:y,title:u.e.sanitizeText(a,(0,u.c)())})}},pt=function(t,s){const a=_.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(u.e.sanitizeText(h,(0,u.c)()))},Pt=function(t,s=""){void 0===R[t]&&(R[t]={id:t,styles:[],textStyles:[]});const a=R[t];s?.split(",").forEach(h=>{const d=h.replace(/([^;]*);/,"$1").trim();if(h.match("color")){const p=d.replace("fill","bgFill").replace("color","fill");a.textStyles.push(p)}a.styles.push(d)})},St=function(t,s){t.split(",").forEach(function(a){let h=B(a);if(void 0===h){const d=a.trim();v(d),h=B(d)}h.classes.push(s)})},oe=function(t,s){const a=B(t);void 0!==a&&a.textStyles.push(s)},he=function(t,s){const a=B(t);void 0!==a&&a.textStyles.push(s)},ue={getConfig:()=>(0,u.c)().state,addState:v,clear:Bt,getState:B,getStates:function(){return _.states},getRelations:function(){return _.relations},getClasses:function(){return R},getDirection:()=>Nt,addRelation:$t,getDividerId:()=>(wt++,"divider-id-"+wt),setDirection:t=>{Nt=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){u.l.info("Documents = ",U)},getRootDoc:()=>j,setRootDoc:t=>{u.l.info("Setting root doc",t),j=t},getRootDocV2:()=>(z({id:"root"},{id:"root",doc:j},!0),{id:"root",doc:j}),extract:t=>{let s;s=t.doc?t.doc:t,u.l.info(s),Bt(!0),u.l.info("Extract",s),s.forEach(a=>{switch(a.stmt){case Y:v(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case ut:$t(a.state1,a.state2,a.description);break;case"classDef":Pt(a.id.trim(),a.classes);break;case"applyClass":St(a.id.trim(),a.styleClass)}})},trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:u.g,setAccTitle:u.s,getAccDescription:u.a,setAccDescription:u.b,addStyleClass:Pt,setCssClass:St,addDescription:pt,setDiagramTitle:u.q,getDiagramTitle:u.t},fe=t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/109.1bc591266882735b.js b/pkg/apiserver-impl/ui/109.1bc591266882735b.js new file mode 100644 index 0000000000..9644771094 --- /dev/null +++ b/pkg/apiserver-impl/ui/109.1bc591266882735b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[109],{7952:(Y,N,f)=>{f.r(N),f.d(N,{diagram:()=>U});var k=f(2993),w=f(8586),S=f(1065),H=f(8814),s=f(8080);f(1764),f(6780),f(2735);let O=0;const C=function(i,a,t,l){const{displayText:p,cssStyle:c}=a.getDisplayDetails(),o=i.append("tspan").attr("x",l.padding).text(p);""!==c&&o.attr("style",a.cssStyle),t||o.attr("dy",l.textHeight)},v_drawClass=function(i,a,t,l){s.l.debug("Rendering class ",a,t);const p=a.id,c={id:p,label:a.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;h=a.link?o.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const g=h.append("tspan").text("\xab"+d+"\xbb");n||g.attr("dy",t.textHeight),n=!1});let r=function(i){let a=i.id;return i.type&&(a+="<"+(0,s.x)(i.type)+">"),a}(a);const E=h.append("tspan").text(r).attr("class","title");n||E.attr("dy",t.textHeight);const x=h.node().getBBox().height;let y,b,u;if(a.members.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+x+t.dividerMargin/2).attr("y2",t.padding+x+t.dividerMargin/2);const d=o.append("text").attr("x",t.padding).attr("y",x+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(g){C(d,g,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=o.append("line").attr("x1",0).attr("y1",t.padding+x+t.dividerMargin+b.height).attr("y2",t.padding+x+t.dividerMargin+b.height);const d=o.append("text").attr("x",t.padding).attr("y",x+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(g){C(d,g,n,t),n=!1})}const _=o.node().getBBox();var m=" ";a.cssClasses.length>0&&(m+=a.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",_.width+2*t.padding).attr("height",_.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&h.insert("title").text(a.tooltip),y&&y.attr("x2",e),u&&u.attr("x2",e),c.width=e,c.height=_.height+t.padding+.5*t.dividerMargin,c};let T={};const L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},U={parser:k.p,db:k.d,renderer:{draw:function(i,a,t,l){const p=(0,s.c)().class;T={},s.l.info("Rendering diagram "+i);const c=(0,s.c)().securityLevel;let o;"sandbox"===c&&(o=(0,w.Ys)("#i"+a));const h=(0,w.Ys)("sandbox"===c?o.nodes()[0].contentDocument.body:"body"),n=h.select(`[id='${a}']`);!function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(n);const r=new H.k({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const E=l.db.getClasses(),x=Object.keys(E);for(const e of x){const g=v_drawClass(n,E[e],p,l);T[g.id]=g,r.setNode(g.id,g),s.l.info("Org height: "+g.height)}l.db.getRelations().forEach(function(e){s.l.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),l.db.getNotes().forEach(function(e){s.l.debug(`Adding note: ${JSON.stringify(e)}`);const d=function(i,a,t,l){s.l.debug("Rendering note ",a,t);const p=a.id,c={id:p,text:a.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split("\n");n.forEach(function(y){s.l.debug(`Adding line: ${y}`),h.append("tspan").text(y).attr("class","title").attr("dy",t.textHeight)});const r=o.node().getBBox(),x=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(y){y.setAttribute("x",(x-y.getBBox().width)/2)}),c.width=x,c.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,c}(n,e,p);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in E&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),(0,S.bK)(r),r.nodes().forEach(function(e){void 0!==e&&void 0!==r.node(e)&&(s.l.debug("Node "+e+": "+JSON.stringify(r.node(e))),h.select("#"+(l.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){void 0!==e&&void 0!==r.edge(e)&&(s.l.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),function(i,a,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const o=a.points,h=(0,w.jvg)().x(function(e){return e.x}).y(function(e){return e.y}).curve(w.$0Z),n=i.append("path").attr("d",h(o)).attr("id","edge"+O).attr("class","relation");let E,x,r="";l.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),1==t.relation.lineType&&n.attr("class","relation dashed-line"),10==t.relation.lineType&&n.attr("class","relation dotted-line"),"none"!==t.relation.type1&&n.attr("marker-start","url("+r+"#"+c(t.relation.type1)+"Start)"),"none"!==t.relation.type2&&n.attr("marker-end","url("+r+"#"+c(t.relation.type2)+"End)");const y=a.points.length;let u,_,m,M,b=s.u.calcLabelPosition(a.points);if(E=b.x,x=b.y,y%2!=0&&y>1){let e=s.u.calcCardinalityPosition("none"!==t.relation.type1,a.points,a.points[0]),d=s.u.calcCardinalityPosition("none"!==t.relation.type2,a.points,a.points[y-1]);s.l.debug("cardinality_1_point "+JSON.stringify(e)),s.l.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,_=e.y,m=d.x,M=d.y}if(void 0!==t.title){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",E).attr("y",x).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const g=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}s.l.info("Rendering relation "+JSON.stringify(t)),void 0!==t.relationTitle1&&"none"!==t.relationTitle1&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",_).attr("fill","black").attr("font-size","6").text(t.relationTitle1),void 0!==t.relationTitle2&&"none"!==t.relationTitle2&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",M).attr("fill","black").attr("font-size","6").text(t.relationTitle2),O++}(n,r.edge(e),r.edge(e).relation,p,l))});const u=n.node().getBBox(),_=u.width+40,m=u.height+40;(0,s.i)(n,m,_,p.useMaxWidth);const M=`${u.x-20} ${u.y-20} ${_} ${m}`;s.l.debug(`viewBox ${M}`),n.attr("viewBox",M)}},styles:k.s,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,k.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/118.efe4353ad7321c4a.js b/pkg/apiserver-impl/ui/118.efe4353ad7321c4a.js new file mode 100644 index 0000000000..518877620e --- /dev/null +++ b/pkg/apiserver-impl/ui/118.efe4353ad7321c4a.js @@ -0,0 +1 @@ +(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[118],{2405:function(aa,Be,_e){var be;aa.exports=(be=_e(5982),function(z){var P={};function S(L){if(P[L])return P[L].exports;var R=P[L]={i:L,l:!1,exports:{}};return z[L].call(R.exports,R,R.exports,S),R.l=!0,R.exports}return S.m=z,S.c=P,S.i=function(L){return L},S.d=function(L,R,V){S.o(L,R)||Object.defineProperty(L,R,{configurable:!1,enumerable:!0,get:V})},S.n=function(L){var R=L&&L.__esModule?function(){return L.default}:function(){return L};return S.d(R,"a",R),R},S.o=function(L,R){return Object.prototype.hasOwnProperty.call(L,R)},S.p="",S(S.s=7)}([function(z,P){z.exports=be},function(z,P,S){"use strict";var L=S(0).FDLayoutConstants;function R(){}for(var V in L)R[V]=L[V];R.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,R.DEFAULT_RADIAL_SEPARATION=L.DEFAULT_EDGE_LENGTH,R.DEFAULT_COMPONENT_SEPERATION=60,R.TILE=!0,R.TILING_PADDING_VERTICAL=10,R.TILING_PADDING_HORIZONTAL=10,R.TREE_REDUCTION_ON_INCREMENTAL=!1,z.exports=R},function(z,P,S){"use strict";var L=S(0).FDLayoutEdge;function R(F,K,O){L.call(this,F,K,O)}for(var V in R.prototype=Object.create(L.prototype),L)R[V]=L[V];z.exports=R},function(z,P,S){"use strict";var L=S(0).LGraph;function R(F,K,O){L.call(this,F,K,O)}for(var V in R.prototype=Object.create(L.prototype),L)R[V]=L[V];z.exports=R},function(z,P,S){"use strict";var L=S(0).LGraphManager;function R(F){L.call(this,F)}for(var V in R.prototype=Object.create(L.prototype),L)R[V]=L[V];z.exports=R},function(z,P,S){"use strict";var L=S(0).FDLayoutNode,R=S(0).IMath;function V(K,O,G,U){L.call(this,K,O,G,U)}for(var F in V.prototype=Object.create(L.prototype),L)V[F]=L[F];V.prototype.move=function(){var K=this.graphManager.getLayout();this.displacementX=K.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=K.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>K.coolingFactor*K.maxNodeDisplacement&&(this.displacementX=K.coolingFactor*K.maxNodeDisplacement*R.sign(this.displacementX)),Math.abs(this.displacementY)>K.coolingFactor*K.maxNodeDisplacement&&(this.displacementY=K.coolingFactor*K.maxNodeDisplacement*R.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),K.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},V.prototype.propogateDisplacementToChildren=function(K,O){for(var U,G=this.getChild().getNodes(),_=0;_0?this.positionNodesRadially(I):(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),Y=new Set(this.getAllNodes()),X=this.nodesWithGravity.filter(function(J){return Y.has(J)}),this.graphManager.setAllNodesToApplyGravitation(X),this.positionNodesRandomly())}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},Ce.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%G.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),Y=this.nodesWithGravity.filter(function(Ee){return I.has(Ee)});this.graphManager.setAllNodesToApplyGravitation(Y),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=G.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=G.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var X=!this.isTreeGrowing&&!this.isGrowthFinished,J=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(X,J),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Ce.prototype.getPositionsData=function(){for(var I=this.graphManager.getAllNodes(),Y={},X=0;X1)for(Me=0;MeJ&&(J=Math.floor(Ne.y)),ee=Math.floor(Ne.x+O.DEFAULT_COMPONENT_SEPERATION)}this.transform(new Q(U.WORLD_CENTER_X-Ne.x/2,U.WORLD_CENTER_Y-Ne.y/2))},Ce.radialLayout=function(I,Y,X){var J=Math.max(this.maxDiagonalInTree(I),O.DEFAULT_RADIAL_SEPARATION);Ce.branchRadialLayout(Y,null,0,359,0,J);var Ee=le.calculateBounds(I),ee=new Ie;ee.setDeviceOrgX(Ee.getMinX()),ee.setDeviceOrgY(Ee.getMinY()),ee.setWorldOrgX(X.x),ee.setWorldOrgY(X.y);for(var Ne=0;Ne1;){var Xt=bt[0];bt.splice(0,1);var nr=Ue.indexOf(Xt);nr>=0&&Ue.splice(nr,1),ft--,je--}Qt=null!=Y?(Ue.indexOf(bt[0])+1)%ft:0;for(var Jt=Math.abs(J-X)/je,Wt=Qt;tt!=je;Wt=++Wt%ft){var Ma=Ue[Wt].getOtherEnd(I);if(Ma!=Y){var Ra=(X+tt*Jt)%360;Ce.branchRadialLayout(Ma,I,Ra,(Ra+Jt)%360,Ee+ee,ee),tt++}}},Ce.maxDiagonalInTree=function(I){for(var Y=se.MIN_VALUE,X=0;XY&&(Y=Ee)}return Y},Ce.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Ce.prototype.groupZeroDegreeMembers=function(){var I=this,Y={};this.memberGroups={},this.idToDummyNode={};for(var X=[],J=this.graphManager.getAllNodes(),Ee=0;Ee"u"&&(Y[Me]=[]),Y[Me]=Y[Me].concat(ee)}Object.keys(Y).forEach(function($e){if(Y[$e].length>1){var Qe="DummyCompound_"+$e;I.memberGroups[Qe]=Y[$e];var vt=Y[$e][0].getParent(),pt=new F(I.graphManager);pt.id=Qe,pt.paddingLeft=vt.paddingLeft||0,pt.paddingRight=vt.paddingRight||0,pt.paddingBottom=vt.paddingBottom||0,pt.paddingTop=vt.paddingTop||0,I.idToDummyNode[Qe]=pt;var Ue=I.getGraphManager().add(I.newGraph(),pt),je=vt.getChild();je.add(pt);for(var tt=0;tt=0;I--){var Y=this.compoundOrder[I];this.adjustLocations(this.tiledMemberPack[Y.id],Y.rect.x,Y.rect.y,Y.paddingLeft,Y.paddingTop)}},Ce.prototype.repopulateZeroDegreeMembers=function(){var I=this,Y=this.tiledZeroDegreePack;Object.keys(Y).forEach(function(X){var J=I.idToDummyNode[X];I.adjustLocations(Y[X],J.rect.x,J.rect.y,J.paddingLeft,J.paddingTop)})},Ce.prototype.getToBeTiled=function(I){var Y=I.id;if(null!=this.toBeTiled[Y])return this.toBeTiled[Y];var X=I.getChild();if(null==X)return this.toBeTiled[Y]=!1,!1;for(var J=X.getNodes(),Ee=0;Ee0)return this.toBeTiled[Y]=!1,!1;if(null!=ee.getChild()){if(!this.getToBeTiled(ee))return this.toBeTiled[Y]=!1,!1}else this.toBeTiled[ee.id]=!1}return this.toBeTiled[Y]=!0,!0},Ce.prototype.getNodeDegree=function(I){for(var X=I.getEdges(),J=0,Ee=0;Ee$e&&($e=vt.rect.height)}X+=$e+I.verticalPadding}},Ce.prototype.tileCompoundMembers=function(I,Y){var X=this;this.tiledMemberPack=[],Object.keys(I).forEach(function(J){var Ee=Y[J];X.tiledMemberPack[J]=X.tileNodes(I[J],Ee.paddingLeft+Ee.paddingRight),Ee.rect.width=X.tiledMemberPack[J].width,Ee.rect.height=X.tiledMemberPack[J].height})},Ce.prototype.tileNodes=function(I,Y){var Ee={rows:[],rowWidth:[],rowHeight:[],width:0,height:Y,verticalPadding:O.TILING_PADDING_VERTICAL,horizontalPadding:O.TILING_PADDING_HORIZONTAL};I.sort(function(Me,$e){return Me.rect.width*Me.rect.height>$e.rect.width*$e.rect.height?-1:Me.rect.width*Me.rect.height<$e.rect.width*$e.rect.height?1:0});for(var ee=0;ee0&&(Ne+=I.horizontalPadding),I.rowWidth[X]=Ne,I.width0&&(Me+=I.verticalPadding);var $e=0;Me>I.rowHeight[X]&&($e=I.rowHeight[X],I.rowHeight[X]=Me,$e=I.rowHeight[X]-$e),I.height+=$e,I.rows[X].push(Y)},Ce.prototype.getShortestRowIndex=function(I){for(var Y=-1,X=Number.MAX_VALUE,J=0;JX&&(Y=J,X=I.rowWidth[J]);return Y},Ce.prototype.canAddHorizontal=function(I,Y,X){var J=this.getShortestRowIndex(I);if(J<0)return!0;var Ee=I.rowWidth[J];if(Ee+I.horizontalPadding+Y<=I.width)return!0;var Ne,Me,ee=0;return I.rowHeight[J]0&&(ee=X+I.verticalPadding-I.rowHeight[J]),Ne=I.width-Ee>=Y+I.horizontalPadding?(I.height+ee)/(Ee+Y+I.horizontalPadding):(I.height+ee)/I.width,ee=X+I.verticalPadding,(Me=I.widthee&&Y!=X){J.splice(-1,1),I.rows[X].push(Ee),I.rowWidth[Y]=I.rowWidth[Y]-ee,I.rowWidth[X]=I.rowWidth[X]+ee,I.width=I.rowWidth[instance.getLongestRowIndex(I)];for(var Ne=Number.MIN_VALUE,Me=0;MeNe&&(Ne=J[Me].height);Y>0&&(Ne+=I.verticalPadding);var $e=I.rowHeight[Y]+I.rowHeight[X];I.rowHeight[Y]=Ne,I.rowHeight[X]0)for(var je=Ee;je<=ee;je++)Ue[0]+=this.grid[je][Ne-1].length+this.grid[je][Ne].length-1;if(ee0)for(je=Ne;je<=Me;je++)Ue[3]+=this.grid[Ee-1][je].length+this.grid[Ee][je].length-1;for(var ft,Qt,tt=se.MAX_VALUE,bt=0;bt0&&(Me=Ie.getGraphManager().add(Ie.newGraph(),X),this.processChildrenList(Me,Y,Ie))}},Q.prototype.stop=function(){return this.stopped=!0,this};var se=function(le){le("layout","cose-bilkent",Q)};typeof cytoscape<"u"&&se(cytoscape),z.exports=se}]))},5982:function(aa){aa.exports=function(Be){var _e={};function be(z){if(_e[z])return _e[z].exports;var P=_e[z]={i:z,l:!1,exports:{}};return Be[z].call(P.exports,P,P.exports,be),P.l=!0,P.exports}return be.m=Be,be.c=_e,be.i=function(z){return z},be.d=function(z,P,S){be.o(z,P)||Object.defineProperty(z,P,{configurable:!1,enumerable:!0,get:S})},be.n=function(z){var P=z&&z.__esModule?function(){return z.default}:function(){return z};return be.d(P,"a",P),P},be.o=function(z,P){return Object.prototype.hasOwnProperty.call(z,P)},be.p="",be(be.s=26)}([function(Be,_e,be){"use strict";function z(){}z.QUALITY=1,z.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,z.DEFAULT_INCREMENTAL=!1,z.DEFAULT_ANIMATION_ON_LAYOUT=!0,z.DEFAULT_ANIMATION_DURING_LAYOUT=!1,z.DEFAULT_ANIMATION_PERIOD=50,z.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,z.DEFAULT_GRAPH_MARGIN=15,z.NODE_DIMENSIONS_INCLUDE_LABELS=!1,z.SIMPLE_NODE_HALF_SIZE=(z.SIMPLE_NODE_SIZE=40)/2,z.EMPTY_COMPOUND_NODE_SIZE=40,z.MIN_EDGE_LENGTH=1,z.INITIAL_WORLD_BOUNDARY=(z.WORLD_BOUNDARY=1e6)/1e3,z.WORLD_CENTER_X=1200,z.WORLD_CENTER_Y=900,Be.exports=z},function(Be,_e,be){"use strict";var z=be(2),P=be(8),S=be(9);function L(V,F,K){z.call(this,K),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=K,this.bendpoints=[],this.source=V,this.target=F}for(var R in L.prototype=Object.create(z.prototype),z)L[R]=z[R];L.prototype.getSource=function(){return this.source},L.prototype.getTarget=function(){return this.target},L.prototype.isInterGraph=function(){return this.isInterGraph},L.prototype.getLength=function(){return this.length},L.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},L.prototype.getBendpoints=function(){return this.bendpoints},L.prototype.getLca=function(){return this.lca},L.prototype.getSourceInLca=function(){return this.sourceInLca},L.prototype.getTargetInLca=function(){return this.targetInLca},L.prototype.getOtherEnd=function(V){if(this.source===V)return this.target;if(this.target===V)return this.source;throw"Node is not incident with this edge"},L.prototype.getOtherEndInGraph=function(V,F){for(var K=this.getOtherEnd(V),O=F.getGraphManager().getRoot();;){if(K.getOwner()==F)return K;if(K.getOwner()==O)break;K=K.getOwner().getParent()}return null},L.prototype.updateLength=function(){var V=new Array(4);this.isOverlapingSourceAndTarget=P.getIntersection(this.target.getRect(),this.source.getRect(),V),this.isOverlapingSourceAndTarget||(this.lengthX=V[0]-V[2],this.lengthY=V[1]-V[3],Math.abs(this.lengthX)<1&&(this.lengthX=S.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=S.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},L.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=S.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=S.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},Be.exports=L},function(Be,_e,be){"use strict";Be.exports=function z(P){this.vGraphObject=P}},function(Be,_e,be){"use strict";var z=be(2),P=be(10),S=be(13),L=be(0),R=be(16),V=be(4);function F(O,G,U,_){null==U&&null==_&&(_=G),z.call(this,_),null!=O.graphManager&&(O=O.graphManager),this.estimatedSize=P.MIN_VALUE,this.inclusionTreeDepth=P.MAX_VALUE,this.vGraphObject=_,this.edges=[],this.graphManager=O,this.rect=null!=U&&null!=G?new S(G.x,G.y,U.width,U.height):new S}for(var K in F.prototype=Object.create(z.prototype),z)F[K]=z[K];F.prototype.getEdges=function(){return this.edges},F.prototype.getChild=function(){return this.child},F.prototype.getOwner=function(){return this.owner},F.prototype.getWidth=function(){return this.rect.width},F.prototype.setWidth=function(O){this.rect.width=O},F.prototype.getHeight=function(){return this.rect.height},F.prototype.setHeight=function(O){this.rect.height=O},F.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},F.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},F.prototype.getCenter=function(){return new V(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},F.prototype.getLocation=function(){return new V(this.rect.x,this.rect.y)},F.prototype.getRect=function(){return this.rect},F.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},F.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},F.prototype.setRect=function(O,G){this.rect.x=O.x,this.rect.y=O.y,this.rect.width=G.width,this.rect.height=G.height},F.prototype.setCenter=function(O,G){this.rect.x=O-this.rect.width/2,this.rect.y=G-this.rect.height/2},F.prototype.setLocation=function(O,G){this.rect.x=O,this.rect.y=G},F.prototype.moveBy=function(O,G){this.rect.x+=O,this.rect.y+=G},F.prototype.getEdgeListToNode=function(O){var G=[],_=this;return _.edges.forEach(function(Q){if(Q.target==O){if(Q.source!=_)throw"Incorrect edge source!";G.push(Q)}}),G},F.prototype.getEdgesBetween=function(O){var G=[],_=this;return _.edges.forEach(function(Q){if(Q.source!=_&&Q.target!=_)throw"Incorrect edge source and/or target";(Q.target==O||Q.source==O)&&G.push(Q)}),G},F.prototype.getNeighborsList=function(){var O=new Set,G=this;return G.edges.forEach(function(U){if(U.source==G)O.add(U.target);else{if(U.target!=G)throw"Incorrect incidency!";O.add(U.source)}}),O},F.prototype.withChildren=function(){var O=new Set;if(O.add(this),null!=this.child)for(var _=this.child.getNodes(),Q=0;Q<_.length;Q++)_[Q].withChildren().forEach(function(ie){O.add(ie)});return O},F.prototype.getNoOfChildren=function(){var O=0;if(null==this.child)O=1;else for(var U=this.child.getNodes(),_=0;_G&&(this.rect.x-=(this.labelWidth-G)/2,this.setWidth(this.labelWidth)),this.labelHeight>U&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-U)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-U),this.setHeight(this.labelHeight))}}},F.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==P.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},F.prototype.transform=function(O){var G=this.rect.x;G>L.WORLD_BOUNDARY?G=L.WORLD_BOUNDARY:G<-L.WORLD_BOUNDARY&&(G=-L.WORLD_BOUNDARY);var U=this.rect.y;U>L.WORLD_BOUNDARY?U=L.WORLD_BOUNDARY:U<-L.WORLD_BOUNDARY&&(U=-L.WORLD_BOUNDARY);var _=new V(G,U),Q=O.inverseTransformPoint(_);this.setLocation(Q.x,Q.y)},F.prototype.getLeft=function(){return this.rect.x},F.prototype.getRight=function(){return this.rect.x+this.rect.width},F.prototype.getTop=function(){return this.rect.y},F.prototype.getBottom=function(){return this.rect.y+this.rect.height},F.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},Be.exports=F},function(Be,_e,be){"use strict";function z(P,S){null==P&&null==S?(this.x=0,this.y=0):(this.x=P,this.y=S)}z.prototype.getX=function(){return this.x},z.prototype.getY=function(){return this.y},z.prototype.setX=function(P){this.x=P},z.prototype.setY=function(P){this.y=P},z.prototype.getDifference=function(P){return new DimensionD(this.x-P.x,this.y-P.y)},z.prototype.getCopy=function(){return new z(this.x,this.y)},z.prototype.translate=function(P){return this.x+=P.width,this.y+=P.height,this},Be.exports=z},function(Be,_e,be){"use strict";var z=be(2),P=be(10),S=be(0),L=be(6),R=be(3),V=be(1),F=be(13),K=be(12),O=be(11);function G(_,Q,ie){z.call(this,ie),this.estimatedSize=P.MIN_VALUE,this.margin=S.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=_,null!=Q&&Q instanceof L?this.graphManager=Q:null!=Q&&Q instanceof Layout&&(this.graphManager=Q.graphManager)}for(var U in G.prototype=Object.create(z.prototype),z)G[U]=z[U];G.prototype.getNodes=function(){return this.nodes},G.prototype.getEdges=function(){return this.edges},G.prototype.getGraphManager=function(){return this.graphManager},G.prototype.getParent=function(){return this.parent},G.prototype.getLeft=function(){return this.left},G.prototype.getRight=function(){return this.right},G.prototype.getTop=function(){return this.top},G.prototype.getBottom=function(){return this.bottom},G.prototype.isConnected=function(){return this.isConnected},G.prototype.add=function(_,Q,ie){if(null==Q&&null==ie){var se=_;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(se)>-1)throw"Node already in graph!";return se.owner=this,this.getNodes().push(se),se}var ue=_;if(!(this.getNodes().indexOf(Q)>-1&&this.getNodes().indexOf(ie)>-1))throw"Source or target not in graph!";if(Q.owner!=ie.owner||Q.owner!=this)throw"Both owners must be this graph!";return Q.owner!=ie.owner?null:(ue.source=Q,ue.target=ie,ue.isInterGraph=!1,this.getEdges().push(ue),Q.edges.push(ue),ie!=Q&&ie.edges.push(ue),ue)},G.prototype.remove=function(_){var Q=_;if(_ instanceof R){if(null==Q)throw"Node is null!";if(null==Q.owner||Q.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var ie=Q.edges.slice(),ue=ie.length,le=0;le-1&&ke>-1))throw"Source and/or target doesn't know this edge!";if(se.source.edges.splice(Ce,1),se.target!=se.source&&se.target.edges.splice(ke,1),-1==(Ie=se.source.owner.getEdges().indexOf(se)))throw"Not in owner's edge list!";se.source.owner.getEdges().splice(Ie,1)}},G.prototype.updateLeftTop=function(){for(var ie,se,ue,_=P.MAX_VALUE,Q=P.MAX_VALUE,le=this.getNodes(),Ie=le.length,Ce=0;Ce(ie=ke.getTop())&&(_=ie),Q>(se=ke.getLeft())&&(Q=se)}return _==P.MAX_VALUE?null:(ue=null!=le[0].getParent().paddingLeft?le[0].getParent().paddingLeft:this.margin,this.left=Q-ue,this.top=_-ue,new K(this.left,this.top))},G.prototype.updateBounds=function(_){for(var le,Ie,Ce,ke,I,Q=P.MAX_VALUE,ie=-P.MAX_VALUE,se=P.MAX_VALUE,ue=-P.MAX_VALUE,Y=this.nodes,X=Y.length,J=0;J(le=Ee.getLeft())&&(Q=le),ie<(Ie=Ee.getRight())&&(ie=Ie),se>(Ce=Ee.getTop())&&(se=Ce),ue<(ke=Ee.getBottom())&&(ue=ke)}var ee=new F(Q,se,ie-Q,ue-se);Q==P.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),I=null!=Y[0].getParent().paddingLeft?Y[0].getParent().paddingLeft:this.margin,this.left=ee.x-I,this.right=ee.x+ee.width+I,this.top=ee.y-I,this.bottom=ee.y+ee.height+I},G.calculateBounds=function(_){for(var le,Ie,Ce,ke,Q=P.MAX_VALUE,ie=-P.MAX_VALUE,se=P.MAX_VALUE,ue=-P.MAX_VALUE,I=_.length,Y=0;Y(le=X.getLeft())&&(Q=le),ie<(Ie=X.getRight())&&(ie=Ie),se>(Ce=X.getTop())&&(se=Ce),ue<(ke=X.getBottom())&&(ue=ke)}return new F(Q,se,ie-Q,ue-se)},G.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},G.prototype.getEstimatedSize=function(){if(this.estimatedSize==P.MIN_VALUE)throw"assert failed";return this.estimatedSize},G.prototype.calcEstimatedSize=function(){for(var _=0,Q=this.nodes,ie=Q.length,se=0;se=this.nodes.length){var X=0;ie.forEach(function(J){J.owner==_&&X++}),X==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},Be.exports=G},function(Be,_e,be){"use strict";var z,P=be(1);function S(L){z=be(5),this.layout=L,this.graphs=[],this.edges=[]}S.prototype.addRoot=function(){var L=this.layout.newGraph(),R=this.layout.newNode(null),V=this.add(L,R);return this.setRootGraph(V),this.rootGraph},S.prototype.add=function(L,R,V,F,K){if(null==V&&null==F&&null==K){if(null==L)throw"Graph is null!";if(null==R)throw"Parent node is null!";if(this.graphs.indexOf(L)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(L),null!=L.parent)throw"Already has a parent!";if(null!=R.child)throw"Already has a child!";return L.parent=R,R.child=L,L}K=V,V=L;var O=(F=R).getOwner(),G=K.getOwner();if(null==O||O.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==G||G.getGraphManager()!=this)throw"Target not in this graph mgr!";if(O==G)return V.isInterGraph=!1,O.add(V,F,K);if(V.isInterGraph=!0,V.source=F,V.target=K,this.edges.indexOf(V)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(V),null==V.source||null==V.target)throw"Edge source and/or target is null!";if(-1!=V.source.edges.indexOf(V)||-1!=V.target.edges.indexOf(V))throw"Edge already in source and/or target incidency list!";return V.source.edges.push(V),V.target.edges.push(V),V},S.prototype.remove=function(L){if(L instanceof z){var R=L;if(R.getGraphManager()!=this)throw"Graph not in this graph mgr";if(R!=this.rootGraph&&(null==R.parent||R.parent.graphManager!=this))throw"Invalid parent node!";for(var F,V=[],K=(V=V.concat(R.getEdges())).length,O=0;O=L.getRight()?R[0]+=Math.min(L.getX()-S.getX(),S.getRight()-L.getRight()):L.getX()<=S.getX()&&L.getRight()>=S.getRight()&&(R[0]+=Math.min(S.getX()-L.getX(),L.getRight()-S.getRight())),S.getY()<=L.getY()&&S.getBottom()>=L.getBottom()?R[1]+=Math.min(L.getY()-S.getY(),S.getBottom()-L.getBottom()):L.getY()<=S.getY()&&L.getBottom()>=S.getBottom()&&(R[1]+=Math.min(S.getY()-L.getY(),L.getBottom()-S.getBottom()));var K=Math.abs((L.getCenterY()-S.getCenterY())/(L.getCenterX()-S.getCenterX()));L.getCenterY()===S.getCenterY()&&L.getCenterX()===S.getCenterX()&&(K=1);var O=K*R[0],G=R[1]/K;R[0]O)return R[0]=V,R[1]=U,R[2]=K,R[3]=Y,!1;if(FK)return R[0]=G,R[1]=F,R[2]=ke,R[3]=O,!1;if(VK?(R[0]=Q,R[1]=ie,ee=!0):(R[0]=_,R[1]=U,ee=!0):Me===Qe&&(V>K?(R[0]=G,R[1]=U,ee=!0):(R[0]=se,R[1]=ie,ee=!0)),-$e===Qe?K>V?(R[2]=I,R[3]=Y,Ne=!0):(R[2]=ke,R[3]=Ce,Ne=!0):$e===Qe&&(K>V?(R[2]=Ie,R[3]=Ce,Ne=!0):(R[2]=X,R[3]=Y,Ne=!0)),ee&&Ne)return!1;if(V>K?F>O?(vt=this.getCardinalDirection(Me,Qe,4),pt=this.getCardinalDirection($e,Qe,2)):(vt=this.getCardinalDirection(-Me,Qe,3),pt=this.getCardinalDirection(-$e,Qe,1)):F>O?(vt=this.getCardinalDirection(-Me,Qe,1),pt=this.getCardinalDirection(-$e,Qe,3)):(vt=this.getCardinalDirection(Me,Qe,2),pt=this.getCardinalDirection($e,Qe,4)),!ee)switch(vt){case 1:je=U,R[0]=V+-le/Qe,R[1]=je;break;case 2:je=F+ue*Qe,R[0]=se,R[1]=je;break;case 3:je=ie,R[0]=V+le/Qe,R[1]=je;break;case 4:je=F+-ue*Qe,R[0]=Q,R[1]=je}if(!Ne)switch(pt){case 1:ft=Ce,R[2]=K+-Ee/Qe,R[3]=ft;break;case 2:ft=O+J*Qe,R[2]=X,R[3]=ft;break;case 3:ft=Y,R[2]=K+Ee/Qe,R[3]=ft;break;case 4:ft=O+-J*Qe,R[2]=I,R[3]=ft}}return!1},P.getCardinalDirection=function(S,L,R){return S>L?R:1+R%4},P.getIntersection=function(S,L,R,V){if(null==V)return this.getIntersection2(S,L,R);var le,Ie,Ce,ke,I,Y,X,F=S.x,K=S.y,O=L.x,G=L.y,U=R.x,_=R.y,Q=V.x,ie=V.y;return I=O*K-F*G,Y=Q*_-U*ie,0==(X=(le=G-K)*(ke=U-Q)-(Ie=ie-_)*(Ce=F-O))?null:new z((Ce*Y-ke*I)/X,(Ie*I-le*Y)/X)},P.angleOfVector=function(S,L,R,V){var F=void 0;return S!==R?(F=Math.atan((V-L)/(R-S)),R0?1:P<0?-1:0},z.floor=function(P){return P<0?Math.ceil(P):Math.floor(P)},z.ceil=function(P){return P<0?Math.floor(P):Math.ceil(P)},Be.exports=z},function(Be,_e,be){"use strict";function z(){}z.MAX_VALUE=2147483647,z.MIN_VALUE=-2147483648,Be.exports=z},function(Be,_e,be){"use strict";var z=function(){function F(K,O){for(var G=0;G"u"?"undefined":z(S);return null==S||"object"!=L&&"function"!=L},Be.exports=P},function(Be,_e,be){"use strict";function z(U){if(Array.isArray(U)){for(var _=0,Q=Array(U.length);_0&&_;){for(le.push(Ce[0]);le.length>0&&_;){var ke=le[0];le.splice(0,1),ue.add(ke);var I=ke.getEdges();for(se=0;se-1&&Ce.splice(Ee,1)}ue=new Set,Ie=new Map}else U=[]}return U},G.prototype.createDummyNodesForBendpoints=function(U){for(var _=[],Q=U.source,ie=this.graphManager.calcLowestCommonAncestor(U.source,U.target),se=0;se0){for(var ie=this.edgeToDummyNodes.get(Q),se=0;se=0&&_.splice(Y,1),Ie.getNeighborsList().forEach(function(ee){if(Q.indexOf(ee)<0){var Me=ie.get(ee)-1;1==Me&&ke.push(ee),ie.set(ee,Me)}})}Q=Q.concat(ke),(1==_.length||2==_.length)&&(se=!0,ue=_[0])}return ue},G.prototype.setGraphManager=function(U){this.graphManager=U},Be.exports=G},function(Be,_e,be){"use strict";function z(){}z.seed=1,z.x=0,z.nextDouble=function(){return(z.x=1e4*Math.sin(z.seed++))-Math.floor(z.x)},Be.exports=z},function(Be,_e,be){"use strict";var z=be(4);function P(S,L){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}P.prototype.getWorldOrgX=function(){return this.lworldOrgX},P.prototype.setWorldOrgX=function(S){this.lworldOrgX=S},P.prototype.getWorldOrgY=function(){return this.lworldOrgY},P.prototype.setWorldOrgY=function(S){this.lworldOrgY=S},P.prototype.getWorldExtX=function(){return this.lworldExtX},P.prototype.setWorldExtX=function(S){this.lworldExtX=S},P.prototype.getWorldExtY=function(){return this.lworldExtY},P.prototype.setWorldExtY=function(S){this.lworldExtY=S},P.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},P.prototype.setDeviceOrgX=function(S){this.ldeviceOrgX=S},P.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},P.prototype.setDeviceOrgY=function(S){this.ldeviceOrgY=S},P.prototype.getDeviceExtX=function(){return this.ldeviceExtX},P.prototype.setDeviceExtX=function(S){this.ldeviceExtX=S},P.prototype.getDeviceExtY=function(){return this.ldeviceExtY},P.prototype.setDeviceExtY=function(S){this.ldeviceExtY=S},P.prototype.transformX=function(S){var L=0,R=this.lworldExtX;return 0!=R&&(L=this.ldeviceOrgX+(S-this.lworldOrgX)*this.ldeviceExtX/R),L},P.prototype.transformY=function(S){var L=0,R=this.lworldExtY;return 0!=R&&(L=this.ldeviceOrgY+(S-this.lworldOrgY)*this.ldeviceExtY/R),L},P.prototype.inverseTransformX=function(S){var L=0,R=this.ldeviceExtX;return 0!=R&&(L=this.lworldOrgX+(S-this.ldeviceOrgX)*this.lworldExtX/R),L},P.prototype.inverseTransformY=function(S){var L=0,R=this.ldeviceExtY;return 0!=R&&(L=this.lworldOrgY+(S-this.ldeviceOrgY)*this.lworldExtY/R),L},P.prototype.inverseTransformPoint=function(S){return new z(this.inverseTransformX(S.x),this.inverseTransformY(S.y))},Be.exports=P},function(Be,_e,be){"use strict";var P=be(15),S=be(7),L=be(0),R=be(8),V=be(9);function F(){P.call(this),this.useSmartIdealEdgeLengthCalculation=S.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=S.DEFAULT_EDGE_LENGTH,this.springConstant=S.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=S.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=S.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=S.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=S.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=S.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*S.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=S.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=S.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=S.MAX_ITERATIONS}for(var K in F.prototype=Object.create(P.prototype),P)F[K]=P[K];F.prototype.initParameters=function(){P.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=S.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},F.prototype.calcIdealEdgeLengths=function(){for(var O,G,U,_,Q,ie,se=this.getGraphManager().getAllEdges(),ue=0;ueS.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*S.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(O-S.ADAPTATION_LOWER_NODE_LIMIT)/(S.ADAPTATION_UPPER_NODE_LIMIT-S.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-S.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=S.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=O>S.ADAPTATION_LOWER_NODE_LIMIT?Math.max(S.COOLING_ADAPTATION_FACTOR,1-(O-S.ADAPTATION_LOWER_NODE_LIMIT)/(S.ADAPTATION_UPPER_NODE_LIMIT-S.ADAPTATION_LOWER_NODE_LIMIT)*(1-S.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=S.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},F.prototype.calcSpringForces=function(){for(var G,O=this.getAllEdges(),U=0;U0&&void 0!==arguments[0])||arguments[0],G=arguments.length>1&&void 0!==arguments[1]&&arguments[1],se=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%S.GRID_CALCULATION_CHECK_PERIOD==1&&O&&this.updateGrid(),ue=new Set,U=0;U(le=G.getEstimatedSize()*this.gravityRangeFactor)||ue>le)&&(O.gravitationForceX=-this.gravityConstant*Q,O.gravitationForceY=-this.gravityConstant*ie):(se>(le=G.getEstimatedSize()*this.compoundGravityRangeFactor)||ue>le)&&(O.gravitationForceX=-this.gravityConstant*Q*this.compoundGravityConstant,O.gravitationForceY=-this.gravityConstant*ie*this.compoundGravityConstant)},F.prototype.isConverged=function(){var O,G=!1;return this.totalIterations>this.maxIterations/3&&(G=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),O=this.totalDisplacement=se.length||le>=se[0].length))for(var Ie=0;IeF}}]),R}();Be.exports=L},function(Be,_e,be){"use strict";var z=function(){function L(R,V){for(var F=0;F2&&void 0!==arguments[2]?arguments[2]:1,K=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,O=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;(function P(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")})(this,L),this.sequence1=R,this.sequence2=V,this.match_score=F,this.mismatch_penalty=K,this.gap_penalty=O,this.iMax=R.length+1,this.jMax=V.length+1,this.grid=new Array(this.iMax);for(var G=0;G=0;R--){var V=this.listeners[R];V.event===S&&V.callback===L&&this.listeners.splice(R,1)}},P.emit=function(S,L){for(var R=0;R{"use strict";_e.r(Be),_e.d(Be,{diagram:()=>Zp});var be=_e(5861),z=_e(8080);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(s)throw o}}}}var ie=typeof window>"u"?null:window,se=ie?ie.navigator:null,ue=P(""),le=P({}),Ie=P(function(){}),Ce=typeof HTMLElement>"u"?"undefined":P(HTMLElement),ke=function(e){return e&&e.instanceString&&Y(e.instanceString)?e.instanceString():null},I=function(e){return null!=e&&P(e)==ue},Y=function(e){return null!=e&&P(e)===Ie},X=function(e){return!$e(e)&&(Array.isArray?Array.isArray(e):null!=e&&e instanceof Array)},J=function(e){return null!=e&&P(e)===le&&!X(e)&&e.constructor===Object},ee=function(e){return null!=e&&P(e)===P(1)&&!isNaN(e)},Me=function(e){if("undefined"!==Ce)return null!=e&&e instanceof HTMLElement},$e=function(e){return Qe(e)||vt(e)},Qe=function(e){return"collection"===ke(e)&&e._private.single},vt=function(e){return"collection"===ke(e)&&!e._private.single},pt=function(e){return"core"===ke(e)},Ue=function(e){return"stylesheet"===ke(e)},tt=function(e){return null==e||!(""!==e&&!e.match(/^\s+$/))},bt=function(e){return function(e){return null!=e&&P(e)===le}(e)&&Y(e.then)},Xt=function(){return se&&se.userAgent.match(/msie|trident|edge/i)},nr=function(e,r){r||(r=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var i=[],s=0;sr?1:0},Ze=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r=e||E<0||h&&x-u>=i}function g(){var x=oi();if(p(x))return m(x);o=setTimeout(g,function y(x){var C=e-(x-l);return h?Ql(C,i-(x-u)):C}(x))}function m(x){return o=void 0,c&&a?d(x):(a=n=void 0,s)}function T(){var x=oi(),E=p(x);if(a=arguments,n=this,l=x,E){if(void 0===o)return function v(x){return u=x,o=setTimeout(g,e),f?d(x):s}(l);if(h)return clearTimeout(o),o=setTimeout(g,e),d(l)}return void 0===o&&(o=setTimeout(g,e)),s}return e=vs(e)||0,$r(r)&&(f=!!r.leading,i=(h="maxWait"in r)?Zl(vs(r.maxWait)||0,e):i,c="trailing"in r?!!r.trailing:c),T.cancel=function b(){void 0!==o&&clearTimeout(o),u=0,a=l=n=o=void 0},T.flush=function w(){return void 0===o?s:m(oi())},T},ui=ie?ie.performance:null,ds=ui&&ui.now?function(){return ui.now()}:function(){return Date.now()},jl=function(){if(ie){if(ie.requestAnimationFrame)return function(t){ie.requestAnimationFrame(t)};if(ie.mozRequestAnimationFrame)return function(t){ie.mozRequestAnimationFrame(t)};if(ie.webkitRequestAnimationFrame)return function(t){ie.webkitRequestAnimationFrame(t)};if(ie.msRequestAnimationFrame)return function(t){ie.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(ds())},1e3/60)}}(),dn=function(e){return jl(e)},xr=ds,ia=9261,gs=65599,Fa=5381,ps=function(e){for(var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ia;!(n=e.next()).done;)a=a*gs+n.value|0;return a},Ga=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ia)*gs+e|0},za=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fa;return(r<<5)+r+e|0},Or=function(e){return 2097152*e[0]+e[1]},gn=function(e,r){return[Ga(e[0],r[0]),za(e[1],r[1])]},Yr=function(e,r){var a={value:0,done:!1},n=0,i=e.length;return ps({next:function(){return n=0&&(e[n]!==r||(e.splice(n,1),!a));n--);},hi=function(e){e.splice(0,e.length)},ir=function(e,r,a){return a&&(r=Ma(a,r)),e[r]},Ir=function(e,r,a,n){a&&(r=Ma(a,r)),e[r]=n},ff=function(){function t(){S(this,t),this._obj={}}return R(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return void 0!==this._obj[r]}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),dr=typeof Map<"u"?Map:ff,cf=function(){function t(e){if(S(this,t),this._obj=Object.create(null),this.size=0,null!=e){var r;r=null!=e.instanceString&&e.instanceString()===this.instanceString()?e.toArray():e;for(var a=0;a"u"?"undefined":P(Set))?Set:cf,yn=function(e,r){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==r&&pt(e)){var n=r.group;if(null==n&&(n=r.data&&null!=r.data.source&&null!=r.data.target?"edges":"nodes"),"nodes"===n||"edges"===n){this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:void 0===r.selectable||!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:void 0===r.grabbable||!!r.grabbable,pannable:void 0===r.pannable?"edges"===n:!!r.pannable,active:!1,classes:new sa,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];X(r.classes)?u=r.classes:I(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;fm?1:0},f=function(g,m,b,w,T){var x;if(null==b&&(b=0),null==T&&(T=a),b<0)throw new Error("lo must be non-negative");for(null==w&&(w=g.length);bA;0<=A?C++:C--)D.push(C);return D}.apply(this).reverse()).length;wB;0<=B?++D:--D)M.push(s(g,b));return M},y=function(g,m,b,w){var T,x,E;for(null==w&&(w=a),T=g[b];b>m&&w(T,x=g[E=b-1>>1])<0;)g[b]=x,b=E;return g[b]=T},p=function(g,m,b){var w,T,x,E,D;for(null==b&&(b=a),T=g.length,D=m,x=g[m],w=2*m+1;w0;){var x=m.pop(),E=p(x),D=x.id();if(c[D]=E,E!==1/0)for(var C=x.neighborhood().intersect(v),A=0;A0)for(Z.unshift(W);h[oe];){var ae=h[oe];Z.unshift(ae.edge),Z.unshift(ae.node),oe=(re=ae.node).id()}return o.spawn(Z)}}}},pf={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(w){for(var T=0;T0;){if(w=(b=v.pop()).id(),y.delete(w),E++,w===f){for(var D=[],C=i,A=f,B=g[A];D.unshift(C),null!=B&&D.unshift(B),null!=(C=p[A]);)B=g[A=C.id()];return{found:!0,distance:h[w],path:this.spawn(D),steps:E}}d[w]=!0;for(var M=b._private.edges,$=0;$B&&(v[A]=B,m[A]=C,b[A]=T),!i){var M=C*f+D;!i&&v[M]>B&&(v[M]=B,m[M]=D,b[M]=T)}}}for(var $=0;$1&&void 0!==arguments[1]?arguments[1]:s,at=[],et=b(ze);;){if(null==et)return r.spawn();var st=m(et),Te=st.edge,N=st.pred;if(at.unshift(et[0]),et.same(We)&&at.length>0)break;null!=Te&&at.unshift(Te),et=N}return l.spawn(at)},hasNegativeWeightCycle:y,negativeWeightCycles:p}}},Tf=Math.sqrt(2),Cf=function(e,r,a){0===a.length&&Et("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],o=r[n[1]],l=r[n[2]],u=a,f=u.length-1;f>=0;f--){var h=u[f],c=h[1],d=h[2];(r[c]===o&&r[d]===l||r[c]===l&&r[d]===o)&&u.splice(f,1)}for(var v=0;vn;){var i=Math.floor(Math.random()*r.length);r=Cf(i,e,r),a--}return r},Df={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(Z){return Z.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Tf);if(!(i<2)){for(var u=[],f=0;f0?1:e<0?-1:0},Hr=function(e,r){return Math.sqrt(Xr(e,r))},Xr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Mf=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(null!=e.w&&null!=e.h&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Ls=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Ff=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},En=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},wn=function(e){var a,n,i,s,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===r.length)a=n=i=s=r[0];else if(2===r.length)a=i=r[0],s=n=r[1];else if(4===r.length){var o=F(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},As=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},di=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},la=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Gf=function(e,r){return la(e,r.x,r.y)},Os=function(e,r){return la(e,r.x1,r.y1)&&la(e,r.x2,r.y2)},Ns=function(e,r,a,n,i,s,o){var v,q,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"auto",u="auto"===l?qr(i,s):l,f=i/2,h=s/2,c=(u=Math.min(u,f,h))!==f,d=u!==h;if(c){var p=n-h-o;if((v=Mr(e,r,a,n,a-f+u-o,p,a+f-u+o,p,!1)).length>0)return v}if(d){var b=a+f+o;if((v=Mr(e,r,a,n,b,n-h+u-o,b,n+h-u+o,!1)).length>0)return v}if(c){var D=n+h+o;if((v=Mr(e,r,a,n,a-f+u-o,D,a+f-u+o,D,!1)).length>0)return v}if(d){var B=a-f-o;if((v=Mr(e,r,a,n,B,n-h+u-o,B,n+h-u+o,!1)).length>0)return v}var H=a-f+u,W=n-h+u;if((q=Ya(e,r,a,n,H,W,u+o)).length>0&&q[0]<=H&&q[1]<=W)return[q[0],q[1]];var Z=a+f-u,re=n-h+u;if((q=Ya(e,r,a,n,Z,re,u+o)).length>0&&q[0]>=Z&&q[1]<=re)return[q[0],q[1]];var oe=a+f-u,ae=n+h-u;if((q=Ya(e,r,a,n,oe,ae,u+o)).length>0&&q[0]>=oe&&q[1]>=ae)return[q[0],q[1]];var te=a-f+u,ge=n+h-u;return(q=Ya(e,r,a,n,te,ge,u+o)).length>0&&q[0]<=te&&q[1]>=ge?[q[0],q[1]]:[]},zf=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},Vf=function(e,r,a,n,i,s,o,l,u){var f_x1=Math.min(a,o,i)-u,f_x2=Math.max(a,o,i)+u,f_y1=Math.min(n,l,s)-u,f_y2=Math.max(n,l,s)+u;return!(ef_x2||rf_y2)},Yf=function(e,r,a,n,i,s,o,l){var d=[];!function(e,r,a,n,i){var o,l,u,f,h,c,d,v;0===e&&(e=1e-5),u=-27*(n/=e)+(r/=e)*(9*(a/=e)-r*r*2),o=(l=(3*a-r*r)/9)*l*l+(u/=54)*u,i[1]=0,d=r/3,o>0?(h=(h=u+Math.sqrt(o))<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=(c=u-Math.sqrt(o))<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+h+c,i[4]=i[2]=-(d+=(h+c)/2),d=Math.sqrt(3)*(-c+h)/2,i[3]=d,i[5]=-d):(i[5]=i[3]=0,0===o?(v=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=2*v-d,i[4]=i[2]=-(v+d)):(f=(l=-l)*l*l,f=Math.acos(u/Math.sqrt(f)),v=2*Math.sqrt(l),i[0]=-d+v*Math.cos(f/3),i[2]=-d+v*Math.cos((f+2*Math.PI)/3),i[4]=-d+v*Math.cos((f+4*Math.PI)/3)))}(1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,d);for(var y=[],p=0;p<6;p+=2)Math.abs(d[p+1])<1e-7&&d[p]>=0&&d[p]<=1&&y.push(d[p]);y.push(1),y.push(0);for(var m,b,w,g=-1,T=0;T=0?wu?(e-i)*(e-i)+(r-s)*(r-s):f-c},Kt=function(e,r,a){for(var n,i,s,o,u=0,f=0;f=e&&e>=s||n<=e&&e<=s))continue;(e-n)/(s-n)*(o-i)+i>r&&u++}return u%2!=0},Tr=function(e,r,a,n,i,s,o,l,u){var h,y,f=new Array(a.length);null!=l[0]?(h=Math.atan(l[1]/l[0]),l[0]<0?h+=Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),d=Math.sin(-h),v=0;v0){var p=Tn(f,-u);y=xn(p)}else y=f;return Kt(e,r,y)},xn=function(e){for(var o,l,u,f,r=new Array(e.length/2),h=0;h=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),0===m.length)return[];var b=m[0]*l[0]+e,w=m[0]*l[1]+r;return m.length>1?m[0]==m[1]?[b,w]:[b,w,m[1]*l[0]+e,m[1]*l[1]+r]:[b,w]},gi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Mr=function(e,r,a,n,i,s,o,l,u){var f=e-i,h=a-e,c=o-i,d=r-s,v=n-r,y=l-s,p=c*d-y*f,g=h*d-v*f,m=y*h-c*v;if(0!==m){var b=p/m,w=g/m,x=-.001;return x<=b&&b<=1.001&&x<=w&&w<=1.001||u?[e+b*h,r+b*v]:[]}return 0===p||0===g?gi(e,a,o)===o?[o,l]:gi(e,a,i)===i?[i,s]:gi(i,o,a)===a?[a,n]:[]:[]},Ha=function(e,r,a,n,i,s,o,l){var f,d,u=[],h=new Array(a.length),c=!0;if(null==s&&(c=!1),c){for(var v=0;v0){var y=Tn(h,-l);d=xn(y)}else d=h}else d=a;for(var m,b,w=0;wf&&(f=w)},get:function(b){return u[b]}},c=0;c0?q.edgesTo(k)[0]:k.edgesTo(q)[0];var W=n(H);k=k.id(),D[k]>D[M]+W&&(D[k]=D[M]+W,C.nodes.indexOf(k)<0?C.push(k):C.updateItem(k),E[k]=0,x[k]=[]),D[k]==D[M]+W&&(E[k]=E[k]+E[M],x[k].push(M))}else for(var Z=0;Z0;){for(var te=T.pop(),ge=0;ge0&&o.push(a[l]);0!==o.length&&i.push(n.collection(o))}return i}(f,l,r,n);return w=function(e){for(var r=0;r5&&void 0!==arguments[5]?arguments[5]:fh,o=n,f=0;f=2?Xa(e,r,a,0,zs,hh):Xa(e,r,a,0,Gs)},squaredEuclidean:function(e,r,a){return Xa(e,r,a,0,zs)},manhattan:function(e,r,a){return Xa(e,r,a,0,Gs)},max:function(e,r,a){return Xa(e,r,a,-1/0,ch)}};function Dn(t,e,r,a,n,i){var s;return s=Y(t)?t:ca[t]||ca.euclidean,0===e&&Y(t)?s(n,i):s(e,r,a,n,i)}ca["squared-euclidean"]=ca.squaredEuclidean,ca.squaredeuclidean=ca.squaredEuclidean;var vh=Ot({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Ei=function(e){return vh(e)},Sn=function(e,r,a,n,i){var o="kMedoids"!==i?function(h){return a[h]}:function(h){return n[h](a)};return Dn(e,n.length,o,function(c){return n[c](r)},a,r)},wi=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1;return!0},ph=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h=i.threshold||"dendrogram"===i.mode&&1===e.length)return!1;var p,v=r[s],y=r[n[s]];p="dendrogram"===i.mode?{left:v,right:y,key:v.key}:{value:v.value.concat(y.value),key:v.key},e[v.index]=p,e.splice(y.index,1),r[v.key]=p;for(var g=0;ga[y.key][m.key]&&(l=a[y.key][m.key])):"max"===i.linkage?(l=a[v.key][m.key],a[v.key][m.key]o&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;f1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(a0&&e.splice(0,r)):e=e.slice(r,a);for(var o=0,l=e.length-1;l>=0;l--)s?isFinite(e[l])||(e[l]=-1/0,o++):e.splice(l,1);i&&e.sort(function(c,d){return c-d});var f=e.length,h=Math.floor(f/2);return f%2!=0?e[h+1+o]:(e[h-1+o]+e[h+o])/2}(e):"mean"===r?function(e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=0,i=0,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s2&&void 0!==arguments[2]?arguments[2]:e.length,n=1/0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i2&&void 0!==arguments[2]?arguments[2]:e.length,n=-1/0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i=B?(M=B,B=k,$=q):k>M&&(M=k);for(var H=0;H0?1:0;E[C%n.minIterations*o+te]=ge,ae+=ge}if(ae>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var pe=0,xe=0;xe0&&n.push(i);return n}(o,h,c),ve=function(e,r,a){for(var n=qs(e,r,a),i=0;iu&&(l=f,u=h)}a[i]=s[l]}return qs(e,r,a)}(o,u,De),j={},he=0;he1||x>1)&&(o=!0),h[b]=[],m.outgoers().forEach(function(D){D.isEdge()&&h[b].push(D.id())})}else c[b]=[void 0,m.target().id()]}:function(m){var b=m.id();m.isNode()?(m.degree(!0)%2&&(l?u?o=!0:u=b:l=b),h[b]=[],m.connectedEdges().forEach(function(T){return h[b].push(T.id())})):c[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(o)return d;if(u&&l)if(i){if(f&&u!=f)return d;f=u}else{if(f&&u!=f&&l!=f)return d;f||(f=u)}else f||(f=s[0].id());var v=function(b){for(var x,E,D,w=b,T=[b];h[w].length;)x=h[w].shift(),E=c[x][0],w!=(D=c[x][1])?(h[D]=h[D].filter(function(C){return C!=x}),w=D):!i&&w!=E&&(h[E]=h[E].filter(function(C){return C!=x}),w=E),T.unshift(x),T.unshift(w);return T},y=[],p=[];for(p=v(f);1!=p.length;)0==h[p[0]].length?(y.unshift(s.getElementById(p.shift())),y.unshift(s.getElementById(p.shift()))):p=v(p.shift()).concat(p);for(var g in y.unshift(s.getElementById(p.shift())),h)if(h[g].length)return d;return d.found=!0,d.trail=this.spawn(y,!0),d}},An=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},u=function h(c,d,v){c===v&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var p,g,m,b,y=e.getElementById(d).connectedEdges().intersection(e);0===y.size()?i.push(e.spawn(e.getElementById(d))):y.forEach(function(w){p=w.source().id(),g=w.target().id(),(m=p===d?g:p)!==v&&(b=w.id(),o[b]||(o[b]=!0,s.push({x:d,y:m,edge:w})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(h(c,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,function(c,d){for(var v=s.length-1,y=[],p=e.spawn();s[v].x!=c||s[v].y!=d;)y.push(s.pop().edge),v--;y.push(s.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var w=b.id(),T=b.connectedEdges().intersection(e);p.merge(b),p.merge(r[w].cutVertex?T.filter(function(x){return x.isLoop()}):T)})}),i.push(p)}(d,m))))})};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},On=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){if(i.push(u),r[u]={index:a,low:a++,explored:!1},e.getElementById(u).connectedEdges().intersection(e).forEach(function(y){var p=y.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var d=h.edgesWith(h),v=h.merge(d);n.push(v),s=s.difference(v)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},_s={};[Va,gf,pf,mf,Ef,xf,Df,Zf,fa,ha,bi,lh,xh,Ah,Ph,Fh,{hopcroftTarjanBiconnected:An,htbc:An,htb:An,hopcroftTarjanBiconnectedComponents:An},{tarjanStronglyConnected:On,tsc:On,tscc:On,tarjanStronglyConnectedComponents:On}].forEach(function(t){Ze(_s,t)});var Cr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Cr.prototype={fulfill:function(e){return js(this,1,"fulfillValue",e)},reject:function(e){return js(this,2,"rejectReason",e)},then:function(e,r){var a=this,n=new Cr;return a.onFulfilled.push(ro(e,n,"fulfill")),a.onRejected.push(ro(r,n,"reject")),eo(a),n.proxy}};var js=function(e,r,a,n){return 0===e.state&&(e.state=r,e[a]=n,eo(e)),e},eo=function(e){1===e.state?to(e,"onFulfilled",e.fulfillValue):2===e.state&&to(e,"onRejected",e.rejectReason)},to=function(e,r,a){if(0!==e[r].length){var n=e[r];e[r]=[];var i=function(){for(var o=0;o0:void 0}},clearQueue:function(){return function(){var r=this,n=void 0!==r.length?r:[r];if(!(this._private.cy||this).styleEnabled())return this;for(var s=0;s-1},ga.prototype.set=function qc(t,e){var r=this.__data__,a=In(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this};var _c=ga,Qc=Ci(cn,"Map"),Mn=function rv(t,e){var r=t.__data__;return function ev(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map};function pa(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return null!=r&&r._private.classes.has(e)},toggleClass:function(e,r){X(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=void 0===r,i=[],s=0,o=a.length;s0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(null==r)r=250;else if(0===r)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Rn.className=Rn.classNames=Rn.classes;var rt={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:xt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};rt.variable="(?:[\\w-.]|(?:\\\\"+rt.metaChar+"))+",rt.className="(?:[\\w-]|(?:\\\\"+rt.metaChar+"))+",rt.value=rt.string+"|"+rt.number,rt.id=rt.variable,function(){var t,e,r;for(t=rt.comparatorOp.split("|"),r=0;r=0)&&"="!==e&&(rt.comparatorOp+="|\\!"+e)}();var Li=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return function(e,r){return-1*ss(e,r)}(t.selector,e.selector)}),Jv=function(){for(var e,t={},r=0;r0&&f.edgeCount>0)return ot("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return ot("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===f.edgeCount&&ot("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(f){return f??""},r=function(f){return I(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},i=function(f,h){return f.checks.reduce(function(c,d,v){return c+(h===f&&0===v?"$":"")+function(f,h){var d=f.value;switch(f.type){case 0:var v=e(d);return v.substring(0,v.length-1);case 3:return"["+f.field+a(e(f.operator))+r(d)+"]";case 5:var m=f.field;return"["+e(f.operator)+m+"]";case 4:return"["+f.field+"]";case 6:return"[["+f.field+a(e(f.operator))+r(d)+"]]";case 7:return d;case 8:return"#"+d;case 9:return"."+d;case 17:case 15:return i(f.parent,h)+a(">")+i(f.child,h);case 18:case 16:return i(f.ancestor,h)+" "+i(f.descendant,h);case 19:var x=i(f.left,h),E=i(f.subject,h),D=i(f.right,h);return x+(x.length>0?" ":"")+E+D;case 20:return""}}(d,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(i||o||f)&&(l=i||s?""+e:"",u=""+a),f&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),r){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=0===l.indexOf(u);break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return t}function yo(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n1&&void 0!==arguments[1])||arguments[1],yo)},ma.forEachUp=function(t){return Ni(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],mo)},ma.forEachUpAndDown=function(t){return Ni(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],cd)},ma.ancestors=ma.parents,qa=bo={data:ut.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ut.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ut.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ut.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ut.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ut.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},qa.attr=qa.data,qa.removeAttr=qa.removeData;var vd=bo,kn={};function Ii(t){return function(e){var r=this;if(void 0===e&&(e=!0),0===r.length);else if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,s=0;se}),minIndegree:ba("indegree",function(t,e){return te}),minOutdegree:ba("outdegree",function(t,e){return te})}),Ze(kn,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n0;p&&(y=y[0]);var m=p?y.position():{x:0,y:0};return i={x:v.x-m.x,y:v.y-m.y},void 0===e?i:i[e]}for(var l=0;l0;h&&(f=f[0]);var d=h?f.position():{x:0,y:0};void 0!==r?u.position(e,r+d[e]):void 0!==i&&u.position({x:i.x+d.x,y:i.y+d.y})}}else if(!s)return;return this}},sr.modelPosition=sr.point=sr.position,sr.modelPositions=sr.points=sr.positions,sr.renderedPoint=sr.renderedPosition,sr.relativePoint=sr.relativePosition;var Ea,Fr,dd=Eo;Ea=Fr={},Fr.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}},Fr.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();return e.styleEnabled()&&e.hasCompoundNodes()?(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this):this},Fr.updateCompoundBounds=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(s.isParent()){var o=s._private,l=s.children(),u="include"===s.pstyle("compound-sizing-wrt-labels").value,f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=o.position;(0===h.w||0===h.h)&&((h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue}).x1=c.x-h.w/2,h.x2=c.x+h.w/2,h.y1=c.y-h.h/2,h.y2=c.y+h.h/2);var y=f.width.left.value;"px"===f.width.left.units&&f.width.val>0&&(y=100*y/f.width.val);var p=f.width.right.value;"px"===f.width.right.units&&f.width.val>0&&(p=100*p/f.width.val);var g=f.height.top.value;"px"===f.height.top.units&&f.height.val>0&&(g=100*g/f.height.val);var m=f.height.bottom.value;"px"===f.height.bottom.units&&f.height.val>0&&(m=100*m/f.height.val);var b=d(f.width.val-h.w,y,p),w=b.biasDiff,T=b.biasComplementDiff,x=d(f.height.val-h.h,g,m),E=x.biasDiff,D=x.biasComplementDiff;o.autoPadding=function v(C,A,B,M){if("%"!==B.units)return"px"===B.units?B.pfValue:0;switch(M){case"width":return C>0?B.pfValue*C:0;case"height":return A>0?B.pfValue*A:0;case"average":return C>0&&A>0?B.pfValue*(C+A)/2:0;case"min":return C>0&&A>0?C>A?B.pfValue*A:B.pfValue*C:0;case"max":return C>0&&A>0?C>A?B.pfValue*C:B.pfValue*A:0;default:return 0}}(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,f.width.val),c.x=(-w+h.x1+h.x2+T)/2,o.autoHeight=Math.max(h.h,f.height.val),c.y=(-E+h.y1+h.y2+D)/2}function d(C,A,B){var M=0,$=0,k=A+B;return C>0&&k>0&&(M=A/k*C,$=B/k*C),{biasDiff:M,biasComplementDiff:$}}}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},_r=function(e,r){return null==r?e:or(e,r.x1,r.y1,r.x2,r.y2)},Ka=function(e,r,a){return ir(e,r,a)},Pn=function(e,r,a){if(!r.cy().headless()){var l,u,n=r._private,i=n.rstyle,s=i.arrowWidth/2;if("none"!==r.pstyle(a+"-arrow-shape").value){"source"===a?(l=i.srcX,u=i.srcY):"target"===a?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var f=n.arrowBounds=n.arrowBounds||{},h=f[a]=f[a]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,En(h,1),or(e,h.x1,h.y1,h.x2,h.y2)}}},Mi=function(e,r,a){if(!r.cy().headless()){var n,i=r._private,s=i.rstyle;if(r.pstyle((n=a?a+"-":"")+"label").strValue){var B,M,$,k,l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),f=Ka(s,"labelWidth",a),h=Ka(s,"labelHeight",a),c=Ka(s,"labelX",a),d=Ka(s,"labelY",a),v=r.pstyle(n+"text-margin-x").pfValue,y=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),g=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,w=r.pstyle("text-border-width").pfValue/2,T=r.pstyle("text-background-padding").pfValue,E=h,D=f,C=D/2,A=E/2;if(p)B=c-C,M=c+C,$=d-A,k=d+A;else{switch(l.value){case"left":B=c-D,M=c;break;case"center":B=c-C,M=c+C;break;case"right":B=c,M=c+D}switch(u.value){case"top":$=d-E,k=d;break;case"center":$=d-A,k=d+A;break;case"bottom":$=d,k=d+E}}B+=v-Math.max(m,w)-T-2,M+=v+Math.max(m,w)+T+2,$+=y-Math.max(m,w)-T-2,k+=y+Math.max(m,w)+T+2;var q=a||"main",H=i.labelBounds,W=H[q]=H[q]||{};W.x1=B,W.y1=$,W.x2=M,W.y2=k,W.w=M-B,W.h=k-$;var Z=p&&"autorotate"===g.strValue;if(Z||null!=g.pfValue&&0!==g.pfValue){var oe=Z?Ka(i.rstyle,"labelAngle",a):g.pfValue,ae=Math.cos(oe),te=Math.sin(oe),ge=(B+M)/2,pe=($+k)/2;if(!p){switch(l.value){case"left":ge=M;break;case"right":ge=B}switch(u.value){case"top":pe=k;break;case"bottom":pe=$}}var xe=function(Ye,Se){return{x:(Ye-=ge)*ae-(Se-=pe)*te+ge,y:Ye*te+Se*ae+pe}},me=xe(B,$),De=xe(B,k),ve=xe(M,$),j=xe(M,k);B=Math.min(me.x,De.x,ve.x,j.x),M=Math.max(me.x,De.x,ve.x,j.x),$=Math.min(me.y,De.y,ve.y,j.y),k=Math.max(me.y,De.y,ve.y,j.y)}var he=q+"Rot",ye=H[he]=H[he]||{};ye.x1=B,ye.y1=$,ye.x2=M,ye.y2=k,ye.w=M-B,ye.h=k-$,or(e,B,$,M,k),or(i.labelBounds.all,B,$,M,k)}return e}},To=function(e){var r=0,a=function(s){return(s?1:0)<0&&n>0){var i=r.pstyle("outline-offset").value,s=r.pstyle("shape").value,o=n+i,l=(e.w+2*o)/e.w,u=(e.h+2*o)/e.h,h=0;["diamond","pentagon","round-triangle"].includes(s)?(l=(e.w+2.4*o)/e.w,h=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?l=(e.w+2.4*o)/e.w:"star"===s?(l=(e.w+2.8*o)/e.w,u=(e.h+2.6*o)/e.h,h=-o/3.8):"triangle"===s?(l=(e.w+2.8*o)/e.w,u=(e.h+2.4*o)/e.h,h=-o/1.4):"vee"===s&&(l=(e.w+4.4*o)/e.w,u=(e.h+3.8*o)/e.h,h=.5*-o);var d=e.w*l-e.w;if(wn(e,[Math.ceil((e.h*u-e.h)/2),Math.ceil(d/2)]),0!==h){var v=function(e,r,a){return{x1:e.x1+0,x2:e.x2+0,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}}(e,0,h);Ls(e,v)}}}}(s,e)}else if(u&&r.includeEdges)if(n&&!i){var H=e.pstyle("curve-style").strValue;if(f=Math.min(p.srcX,p.midX,p.tgtX),h=Math.max(p.srcX,p.midX,p.tgtX),c=Math.min(p.srcY,p.midY,p.tgtY),d=Math.max(p.srcY,p.midY,p.tgtY),or(s,f-=A,c-=A,h+=A,d+=A),"haystack"===H){var W=p.haystackPts;if(W&&2===W.length){if((f=W[0].x)>(h=W[1].x)){var Z=f;f=h,h=Z}if((c=W[0].y)>(d=W[1].y)){var re=c;c=d,d=re}or(s,f-A,c-A,h+A,d+A)}}else if("bezier"===H||"unbundled-bezier"===H||H.endsWith("segments")||H.endsWith("taxi")){var oe;switch(H){case"bezier":case"unbundled-bezier":oe=p.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":oe=p.linePts}if(null!=oe)for(var ae=0;ae(h=me.x)){var De=f;f=h,h=De}if((c=pe.y)>(d=me.y)){var ve=c;c=d,d=ve}or(s,f-=A,c-=A,h+=A,d+=A)}if(n&&r.includeEdges&&u&&(Pn(s,e,"mid-source"),Pn(s,e,"mid-target"),Pn(s,e,"source"),Pn(s,e,"target")),n&&"yes"===e.pstyle("ghost").value){var he=e.pstyle("ghost-offset-x").pfValue,ye=e.pstyle("ghost-offset-y").pfValue;or(s,s.x1+he,s.y1+ye,s.x2+he,s.y2+ye)}var Oe=o.bodyBounds=o.bodyBounds||{};As(Oe,s),wn(Oe,g),En(Oe,1),n&&or(s,(f=s.x1)-D,(c=s.y1)-D,(h=s.x2)+D,(d=s.y2)+D);var Ye=o.overlayBounds=o.overlayBounds||{};As(Ye,s),wn(Ye,g),En(Ye,1);var Se=o.labelBounds=o.labelBounds||{};null!=Se.all?function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0}(Se.all):Se.all=qt(),n&&r.includeLabels&&(r.includeMainLabels&&Mi(s,e,null),u&&(r.includeSourceLabels&&Mi(s,e,"source"),r.includeTargetLabels&&Mi(s,e,"target")))}return s.x1=tr(s.x1),s.y1=tr(s.y1),s.x2=tr(s.x2),s.y2=tr(s.y2),s.w=tr(s.x2-s.x1),s.h=tr(s.y2-s.y1),s.w>0&&s.h>0&&b&&(wn(s,g),En(s,1)),s}(e,_a),a.bbCache=n,a.bbCachePosKey=l):n=a.bbCache,!o){var d=e.isNode();n=qt(),(r.includeNodes&&d||r.includeEdges&&!d)&&_r(n,r.includeOverlays?a.overlayBounds:a.bodyBounds),r.includeLabels&&(r.includeMainLabels&&(!i||r.includeSourceLabels&&r.includeTargetLabels)?_r(n,a.labelBounds.all):(r.includeMainLabels&&_r(n,a.labelBounds.mainRot),r.includeSourceLabels&&_r(n,a.labelBounds.sourceRot),r.includeTargetLabels&&_r(n,a.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},_a={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},So=To(_a),Lo=Ot(_a);Fr.boundingBox=function(t){var e;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==t&&void 0!==t.useCache&&!0!==t.useCache){e=qt();var r=Lo(t=t||_a),a=this;if(a.cy().styleEnabled())for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:Id,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this},Gr.removeAllListeners=function(){return this.removeListener("*")},Gr.emit=Gr.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,X(e)||(e=[e]),function(e,r,a){if(function(e){return"event"===ke(e)}(a))r(e,a);else if(J(a))r(e,Po(e,a));else for(var n=X(a)?a:a.split(/\s+/),i=0;i1&&e!==this.length-1){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,i.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){var i=this._private.map.get((e=e[0])._private.data.id);return i?(this.unmergeAt(i.index),this):this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&I(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n=0;r--)e(this[r])&&this.unmergeAt(r);return this},map:function(e,r){for(var a=[],n=this,i=0;ia&&(a=l,n=o)}return{value:a,ele:n}},min:function(e,r){for(var n,a=1/0,i=this,s=0;s=0&&i"u"?"undefined":P(Symbol))!=e&&P(Symbol.iterator)!=e&&(zn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return V({next:function(){return i1&&void 0!==arguments[1])||arguments[1],a=this[0],n=a.cy();if(n.styleEnabled()&&a)return this.cleanStyle(),a._private.style[e]??(r?n.style().getDefaultProperty(e):null)},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return void 0!==a.pfValue?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];return a?r.style().getRenderedStyle(a,e):void 0},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var i=a.style();if(J(e))i.applyBypass(this,e,!1),this.emitAndNotify("style");else if(I(e)){if(void 0===r){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}i.applyBypass(this,e,r,!1),this.emitAndNotify("style")}else if(void 0===e){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=r.style(),i=this;if(void 0===e)for(var s=0;s0&&e.push(f[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),Bt.neighbourhood=Bt.neighborhood,Bt.closedNeighbourhood=Bt.closedNeighborhood,Bt.openNeighbourhood=Bt.openNeighborhood,Ze(Bt,{source:er(function(e){var a,r=this[0];return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:er(function(e){var a,r=this[0];return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:Ho({attr:"source"}),targets:Ho({attr:"target"})}),Ze(Bt,{edgesWith:er(Xo(),"edgesWith"),edgesTo:er(Xo({thisIsSrc:!0}),"edgesTo")}),Ze(Bt,{connectedEdges:er(function(t){for(var e=[],a=0;a0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),Bt.componentsOf=Bt.components;var It=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e){var i=new dr,s=!1;if(r){if(r.length>0&&J(r[0])&&!Qe(r[0])){s=!0;for(var o=[],l=new sa,u=0,f=r.length;u0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,a=r.cy(),n=a._private,i=[],s=[],l=0,u=r.length;l0){for(var re=o.length===r.length?r:new It(a,o),oe=0;oe0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,a=[],n={},i=r._private.cy;function l(k){var q=n[k.id()];e&&k.removed()||q||(n[k.id()]=!0,k.isNode()?(a.push(k),function s(k){for(var q=k._private.edges,H=0;H0&&(t?B.emitAndNotify("remove"):e&&B.emit("remove"));for(var M=0;M=i?function m(A,B){for(var M=0;M0?M=k:B=k}while(Math.abs($)>s&&++qf&&Math.abs(v.v)>f;);return c?function(y){return l[y*(l.length-1)|0]}:u}}(),gt=function(e,r,a,n){var i=$d(e,r,a,n);return function(s,o,l){return s+(o-s)*i(l)}},Yn={linear:function(e,r,a){return e+(r-e)*a},ease:gt(.25,.1,.25,1),"ease-in":gt(.42,0,1,1),"ease-out":gt(0,0,.58,1),"ease-in-out":gt(.42,0,.58,1),"ease-in-sine":gt(.47,0,.745,.715),"ease-out-sine":gt(.39,.575,.565,1),"ease-in-out-sine":gt(.445,.05,.55,.95),"ease-in-quad":gt(.55,.085,.68,.53),"ease-out-quad":gt(.25,.46,.45,.94),"ease-in-out-quad":gt(.455,.03,.515,.955),"ease-in-cubic":gt(.55,.055,.675,.19),"ease-out-cubic":gt(.215,.61,.355,1),"ease-in-out-cubic":gt(.645,.045,.355,1),"ease-in-quart":gt(.895,.03,.685,.22),"ease-out-quart":gt(.165,.84,.44,1),"ease-in-out-quart":gt(.77,0,.175,1),"ease-in-quint":gt(.755,.05,.855,.06),"ease-out-quint":gt(.23,1,.32,1),"ease-in-out-quint":gt(.86,0,.07,1),"ease-in-expo":gt(.95,.05,.795,.035),"ease-out-expo":gt(.19,1,.22,1),"ease-in-out-expo":gt(1,0,0,1),"ease-in-circ":gt(.6,.04,.98,.335),"ease-out-circ":gt(.075,.82,.165,1),"ease-in-out-circ":gt(.785,.135,.15,.86),spring:function(e,r,a){if(0===a)return Yn.linear;var n=Yd(e,r,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":gt};function qo(t,e,r,a,n){if(1===a||e===r)return r;var i=n(e,r,a);return null==t||((t.roundValue||t.color)&&(i=Math.round(i)),void 0!==t.min&&(i=Math.max(i,t.min)),void 0!==t.max&&(i=Math.min(i,t.max))),i}function Ko(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function Ta(t,e,r,a,n){var i=null!=n?n.type:null;r<0?r=0:r>1&&(r=1);var s=Ko(t,n),o=Ko(e,n);if(ee(s)&&ee(o))return qo(i,s,o,r,a);if(X(s)&&X(o)){for(var l=[],u=0;u0?("spring"===d&&v.push(s.duration),s.easingImpl=Yn[d].apply(null,v)):s.easingImpl=Yn[d]}var p,y=s.easingImpl;if(p=0===s.duration?1:(r-l)/s.duration,s.applying&&(p=s.progress),p<0?p=0:p>1&&(p=1),null==s.delay){var g=s.startPosition,m=s.position;if(m&&n&&!t.locked()){var b={};ja(g.x,m.x)&&(b.x=Ta(g.x,m.x,p,y)),ja(g.y,m.y)&&(b.y=Ta(g.y,m.y,p,y)),t.position(b)}var w=s.startPan,T=s.pan,x=i.pan,E=null!=T&&a;E&&(ja(w.x,T.x)&&(x.x=Ta(w.x,T.x,p,y)),ja(w.y,T.y)&&(x.y=Ta(w.y,T.y,p,y)),t.emit("pan"));var D=s.startZoom,C=s.zoom,A=null!=C&&a;A&&(ja(D,C)&&(i.zoom=$a(i.minZoom,Ta(D,C,p,y),i.maxZoom)),t.emit("zoom")),(E||A)&&t.emit("viewport");var B=s.style;if(B&&B.length>0&&n){for(var M=0;M=0;E--)(0,x[E])();x.splice(0,x.length)},m=d.length-1;m>=0;m--){var b=d[m],w=b._private;w.stopped?(d.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,g(w.frames)):!w.playing&&!w.applying||(w.playing&&w.applying&&(w.applying=!1),w.started||Xd(0,b,t),Hd(f,b,t,h),w.applying&&(w.applying=!1),g(w.frames),null!=w.step&&w.step(t),b.completed()&&(d.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,g(w.completes)),y=!0)}return!h&&0===d.length&&0===v.length&&a.push(f),y}for(var i=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Wd={animate:ut.animate(),animation:ut.animation(),animated:ut.animated(),clearQueue:ut.clearQueue(),delay:ut.delay(),delayAnimation:ut.delayAnimation(),stop:ut.stop(),addToAnimationPool:function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){_o(s,e)},a.beforeRenderPriorities.animations):function r(){e._private.animationsRunning&&dn(function(i){_o(i,e),r()})}()}}},qd={qualifierCompare:function(e,r){return null==e||null==r?null==e&&null==r:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return null==n||e!==a.target&&Qe(a.target)&&n.matches(a.target)},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return null!=r.qualifier?a.target:e}},Hn=function(e){return I(e)?new kr(e):e},Zo={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Fn(qd,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Hn(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Hn(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Hn(r),a),this},once:function(e,r,a){return this.emitter().one(e,Hn(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};ut.eventAliasesOn(Zo);var Pi={png:function(e){return this._private.renderer.png(e=e||{})},jpg:function(e){var r=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",r.jpg(e)}};Pi.jpeg=Pi.jpg;var Xn={layout:function(e){var r=this;if(null!=e)if(null!=e.name){var i,a=e.name,n=r.extension("layout",a);if(null!=n)return i=I(e.eles)?r.$(e.eles):null!=e.eles?e.eles:r.$(),new n(Ze({},e,{cy:r,eles:i}));Et("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?")}else Et("A `name` must be specified to make a layout");else Et("Layout options must be specified to make a layout")}};Xn.createLayout=Xn.makeLayout=Xn.layout;var Kd={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();null!=r&&n.merge(r)}else if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return void 0===e?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Bi.invalidateDimensions=Bi.resize;var Wn={collection:function(e,r){return I(e)?this.$(e):$e(e)?e.collection():X(e)?(r||(r={}),new It(this,e,r.unique,r.removed)):new It(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Wn.elements=Wn.filter=Wn.$;var Ft={apply:function(t){for(var e=this,n=e._private.cy.collection(),i=0;i0;if(c||h&&d){var v=void 0;c&&d||c?v=u.properties:d&&(v=u.mappedProperties);for(var y=0;y1&&(w=1),o.color){var x=a.valueMin[0],D=a.valueMin[1],C=a.valueMax[1],A=a.valueMin[2],B=a.valueMax[2],M=null==a.valueMin[3]?1:a.valueMin[3],$=null==a.valueMax[3]?1:a.valueMax[3],k=[Math.round(x+(a.valueMax[0]-x)*w),Math.round(D+(C-D)*w),Math.round(A+(B-A)*w),Math.round(M+($-M)*w)];i={bypass:a.bypass,name:a.name,value:k,strValue:"rgb("+k[0]+", "+k[1]+", "+k[2]+")"}}else{if(!o.number)return!1;i=this.parse(a.name,a.valueMin+(a.valueMax-a.valueMin)*w,a.bypass,c)}if(!i)return y(),!1;i.mapping=a,a=i;break;case s.data:for(var H=a.field.split("."),W=h.data,Z=0;Z0&&i>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(b):b()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)},checkTrigger:function(t,e,r,a,n,i){var s=this.properties[e],o=n(s);null!=o&&o(r,a)&&i(s)},checkZOrderTrigger:function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})},checkBoundsTrigger:function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&"curve-style"===e&&("bezier"===r||"bezier"===a)&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&"display"===e&&("none"===r||"none"===a)&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},checkTriggers:function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)}},tn={applyBypass:function(t,e,r,a){var i=[];if("*"===e||"**"===e){if(void 0!==r)for(var o=0;on.length?a.substr(n.length):""}function l(){i=i.length>s.length?i.substr(s.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");!a.match(/^\s*$/);){var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){ot("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var h=f[1];if("core"!==h&&new kr(h).invalid)ot("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();else{var d=f[2],v=!1;i=d;for(var y=[];!i.match(/^\s*$/);){var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){ot("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),v=!0;break}s=g[0];var m=g[1],b=g[2];this.properties[m]?r.parse(m,b)?(y.push({name:m,val:b}),l()):(ot("Skipping property: Invalid property definition in: "+s),l()):(ot("Skipping property: Invalid property name in: "+s),l())}if(v){o();break}r.selector(h);for(var x=0;x=7&&"d"===e[0]&&(f=new RegExp(o.data.regex).exec(e)))return!r&&{name:t,value:f,strValue:""+e,mapped:o.data,field:f[1],bypass:r};if(e.length>=10&&"m"===e[0]&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var d=o.mapData;if(!u.color&&!u.number)return!1;var v=this.parse(t,h[4]);if(!v||v.mapped)return!1;var y=this.parse(t,h[5]);if(!y||y.mapped)return!1;if(v.pfValue===y.pfValue||v.strValue===y.strValue)return ot("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+v.strValue+"`"),this.parse(t,v.strValue);if(u.color){var p=v.value,g=y.value;if(!(p[0]!==g[0]||p[1]!==g[1]||p[2]!==g[2]||p[3]!==g[3]&&(null!=p[3]&&1!==p[3]||null!=g[3]&&1!==g[3])))return!1}return{name:t,value:h,strValue:""+e,mapped:d,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:v.value,valueMax:y.value,bypass:r}}}if(u.multiple&&"multiple"!==a){var b;if(b=l?e.split(/\s+/):X(e)?e:[e],u.evenMultiple&&b.length%2!=0)return null;for(var w=[],T=[],x=[],E="",D=!1,C=0;C0?" ":"")+A.strValue}return u.validate&&!u.validate(w,T)?null:u.singleEnum&&D?1===w.length&&I(w[0])?{name:t,value:w[0],strValue:w[0],bypass:r}:null:{name:t,value:w,pfValue:x,strValue:E,bypass:r,units:T}}var B=function(){for(var j=0;ju.max||u.strictMax&&e===u.max))return null;var H={name:t,value:e,strValue:""+e+(M||""),units:M,bypass:r};return H.pfValue=u.unitless||"px"!==M&&"em"!==M?e:"px"!==M&&M?this.getEmSizeInPixels()*e:e,("ms"===M||"s"===M)&&(H.pfValue="ms"===M?e:1e3*e),("deg"===M||"rad"===M)&&(H.pfValue="rad"===M?e:function(e){return Math.PI*e/180}(e)),"%"===M&&(H.pfValue=e/100),H}if(u.propList){var W=[],Z=""+e;if("none"!==Z){for(var re=Z.split(/\s*,\s*|\s+/),oe=0;oe255)return;r.push(Math.floor(s))}if((n[1]||n[2]||n[3])&&!(n[1]&&n[2]&&n[3]))return;var u=a[4];if(void 0!==u){if((u=parseFloat(u))<0||u>1)return;r.push(u)}}return r}(e)||function(e){var r,a,n,i,s,o,l,u;function f(v,y,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?v+6*(y-v)*p:p<.5?y:p<2/3?v+(y-v)*(2/3-p)*6:v}var h=new RegExp("^"+nl+"$").exec(e);if(h){if((a=parseInt(h[1]))<0?a=(360- -1*a%360)%360:a>360&&(a%=360),a/=360,(n=parseFloat(h[2]))<0||n>100||(n/=100,(i=parseFloat(h[3]))<0||i>100)||(i/=100,void 0!==(s=h[4])&&((s=parseFloat(s))<0||s>1)))return;if(0===n)o=l=u=Math.round(255*i);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;o=Math.round(255*f(d,c,a+1/3)),l=Math.round(255*f(d,c,a)),u=Math.round(255*f(d,c,a-1/3))}r=[o,l,u,s]}return r}(e)}(e);return te?{name:t,value:te,pfValue:te,strValue:"rgb("+te[0]+","+te[1]+","+te[2]+")",bypass:r}:null}if(u.regex||u.regexes){if(u.enums){var ge=B();if(ge)return ge}for(var pe=u.regexes?u.regexes:[u.regex],xe=0;xe0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0)return{zoom:l=(l=(l=Math.min((s-2*r)/a.w,(o-2*r)/a.h))>this._private.maxZoom?this._private.maxZoom:l)=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var i,s,r=this._private,a=r.pan,n=r.zoom,o=!1;return r.zoomingEnabled||(o=!0),ee(e)?s=e:J(e)&&(s=e.level,null!=e.position?i=mn(e.position,n,a):null!=e.renderedPosition&&(i=e.renderedPosition),null!=i&&!r.panningEnabled&&(o=!0)),s=(s=s>r.maxZoom?r.maxZoom:s)r.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;ee(u.x)&&(r.pan.x=u.x,o=!1),ee(u.y)&&(r.pan.y=u.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(I(e)){var a=e;e=this.mutableElements().filter(a)}else $e(e)||(e=this.mutableElements());if(0!==e.length){var n=e.boundingBox(),i=this.width(),s=this.height();return{x:(i-(r=void 0===r?this._private.zoom:r)*(n.x1+n.x2))/2,y:(s-r*(n.y1+n.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var n,i,e=this._private,r=e.container;return e.sizeCache=e.sizeCache||(r?(n=this.window().getComputedStyle(r),{width:r.clientWidth-(i=function(o){return parseFloat(n.getPropertyValue(o))})("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};Zr.centre=Zr.center,Zr.autolockNodes=Zr.autolock,Zr.autoungrabifyNodes=Zr.autoungrabify;var rn={data:ut.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ut.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ut.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ut.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};rn.attr=rn.data,rn.removeAttr=rn.removeData;var an=function(e){var r=this,a=(e=Ze({},e)).container;a&&!Me(a)&&Me(a[0])&&(a=a[0]);var n=a?a._cyreg:null;(n=n||{})&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var s=void 0!==ie&&void 0!==a&&!e.headless,o=e;o.layout=Ze({name:s?"grid":"null"},o.layout),o.renderer=Ze({name:s?"canvas":"null"},o.renderer);var l=function(v,y,p){return void 0!==y?y:void 0!==p?p:v},u=this._private={container:a,ready:!1,options:o,elements:new It(this),listeners:[],aniEles:new It(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?s:o.styleEnabled,zoom:ee(o.zoom)?o.zoom:1,pan:{x:J(o.pan)&&ee(o.pan.x)?o.pan.x:0,y:J(o.pan)&&ee(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom}),u.styleEnabled&&r.setStyle([]);var h=Ze({},o,o.renderer);r.initRenderer(h),function(v,y){if(v.some(bt))return va.all(v).then(y);y(v)}([o.style,o.elements],function(d){var v=d[0],y=d[1];u.styleEnabled&&r.style().append(v),function(v,y,p){r.notifications(!1);var g=r.mutableElements();g.length>0&&g.remove(),null!=v&&(J(v)||X(v))&&r.add(v),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var m=Ze({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()}(y,function(){r.startAnimationLoop(),u.ready=!0,Y(o.ready)&&r.on("ready",o.ready);for(var p=0;p0,l=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if($e(e.roots))u=e.roots;else if(X(e.roots)){for(var f=[],h=0;h0;){var q=B.shift(),H=A(q,M);if(H)q.outgoers().filter(function(Se){return Se.isNode()&&a.has(Se)}).forEach($);else if(null===H){ot("Detected double maximal shift for node `"+q.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}C();var W=0;if(e.avoidOverlap)for(var Z=0;Z0&&g[0].length<=3?et/2:0),N=2*Math.PI/g[He].length*ze;return 0===He&&1===g[0].length&&(Te=1),{x:ye_x+Te*Math.cos(N),y:ye_y+Te*Math.sin(N)}}return{x:ye_x+(ze+1-(We+1)/2)*lt,y:(He+1)*at}}),this};var tg={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function jo(t){this.options=Ze({},tg,t)}jo.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var f,s=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},u=(void 0===e.sweep?2*Math.PI-2*Math.PI/i.length:e.sweep)/Math.max(1,i.length-1),h=0,c=0;c1&&e.avoidOverlap){h*=1.75;var g=Math.cos(u)-Math.cos(0),m=Math.sin(u)-Math.sin(0),b=Math.sqrt(h*h/(g*g+m*m));f=Math.max(b,f)}return a.nodes().layoutPositions(this,e,function(x,E){var D=e.startAngle+E*u*(n?1:-1),C=f*Math.cos(D),A=f*Math.sin(D);return{x:o.x+C,y:o.y+A}}),this};var rg={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function eu(t){this.options=Ze({},rg,t)}eu.prototype.run=function(){for(var t=this.options,e=t,r=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),s=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,f=0;f0&&Math.abs(m[0].value-w.value)>=p&&g.push(m=[]),m.push(w)}var x=u+e.minNodeSpacing;if(!e.avoidOverlap){var E=g.length>0&&g[0].length>1,D=Math.min(s.w,s.h)/2-x;x=Math.min(x,D/(g.length+E?1:0))}for(var A=0,B=0;B1&&e.avoidOverlap){var q=Math.cos(k)-Math.cos(0),H=Math.sin(k)-Math.sin(0),W=Math.sqrt(x*x/(q*q+H*H));A=Math.max(W,A)}M.r=A,A+=x}if(e.equidistant){for(var Z=0,re=0,oe=0;oe=t.numIter||(fg(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature=t.animationThreshold&&i(),dn(h)):(au(a,t),o())}();else{for(;u;)u=s(l),l++;au(a,t),o()}return this},Zn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Zn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var ng=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=qt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=a.eles.components(),u={},f=0;f0)for(o.graphSet.push(D),f=0;fn.count?0:n.graph},sg=function t(e,r,a,n){var i=n.graphSet[a];if(-10)var d=(h=n.nodeOverlap*f)*o/(c=Math.sqrt(o*o+l*l)),v=h*l/c;else{var h,y=Qn(e,o,l),p=Qn(r,-1*o,-1*l),g=p.x-y.x,m=p.y-y.y,b=g*g+m*m,c=Math.sqrt(b);d=(h=(e.nodeRepulsion+r.nodeRepulsion)/b)*g/c,v=h*m/c}e.isLocked||(e.offsetX-=d,e.offsetY-=v),r.isLocked||(r.offsetX+=d,r.offsetY+=v)}},vg=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else i=r.maxX-e.minX;if(n>0)var s=e.maxY-r.minY;else s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},Qn=function(e,r,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=a/r,u=s/o,f={};return 0===r&&0a?(f.x=n,f.y=i+s/2,f):0r&&-1*u<=l&&l<=u?(f.x=n-o/2,f.y=i-o*a/2/r,f):0=u)?(f.x=n+s*r/2/a,f.y=i+s/2,f):(0>a&&(l<=-1*u||l>=u)&&(f.x=n-s*r/2/a,f.y=i-s/2),f)},dg=function(e,r){for(var a=0;a1){var g=r.gravity*v/y;c.offsetX+=r.gravity*d/y,c.offsetY+=g}}}}},pg=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],l=e.layoutNodes[e.idToIndex[s]],u=l.children;if(0a)var i={x:a*e/n,y:a*r/n};else i={x:e,y:r};return i},bg=function t(e,r){var a=e.parentId;if(null!=a){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((null==n.maxX||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(null==n.minX||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(null==n.minY||e.minY-n.padTopg&&(v+=p+r.componentSpacing,d=0,y=0,p=0)}}},Eg={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function nu(t){this.options=Ze({},Eg,t)}nu.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(0===i.h||0===i.w)a.nodes().layoutPositions(this,e,function(ge){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),f=function(pe){if(null==pe)return Math.min(l,u);Math.min(l,u)==l?l=pe:u=pe},h=function(pe){if(null==pe)return Math.max(l,u);Math.max(l,u)==l?l=pe:u=pe},c=e.rows,d=null!=e.cols?e.cols:e.columns;if(null!=c&&null!=d)l=c,u=d;else if(null!=c&&null==d)l=c,u=Math.ceil(s/l);else if(null==c&&null!=d)u=d,l=Math.ceil(s/u);else if(u*l>s){var v=f(),y=h();(v-1)*y>=s?f(v-1):(y-1)*v>=s&&h(y-1)}else for(;u*l=s?h(g+1):f(p+1)}var m=i.w/u,b=i.h/l;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var w=0;w=u&&(q=0,k++)},W={},Z=0;Z(q=Hf(t,e,H[W],H[W+1],H[W+2],H[W+3])))return p(E,q),!0}else if("bezier"===C.edgeType||"multibezier"===C.edgeType||"self"===C.edgeType||"compound"===C.edgeType)for(H=C.allpts,W=0;W+5(q=Yf(t,e,H[W],H[W+1],H[W+2],H[W+3],H[W+4],H[W+5])))return p(E,q),!0;Z=Z||D.source,re=re||D.target;var oe=n.getArrowWidth(A,B),ae=[{name:"source",x:C.arrowStartX,y:C.arrowStartY,angle:C.srcArrowAngle},{name:"target",x:C.arrowEndX,y:C.arrowEndY,angle:C.tgtArrowAngle},{name:"mid-source",x:C.midX,y:C.midY,angle:C.midsrcArrowAngle},{name:"mid-target",x:C.midX,y:C.midY,angle:C.midtgtArrowAngle}];for(W=0;W0&&(g(Z),g(re))}function b(E,D,C){return ir(E,D,C)}function w(E,D){var B,C=E._private,A=c;B=D?D+"-":"",E.boundingBox();var M=C.labelBounds[D||"main"],$=E.pstyle(B+"label").value;if("yes"===E.pstyle("text-events").strValue&&$){var q=b(C.rscratch,"labelX",D),H=b(C.rscratch,"labelY",D),W=b(C.rscratch,"labelAngle",D),Z=E.pstyle(B+"text-margin-x").pfValue,re=E.pstyle(B+"text-margin-y").pfValue,oe=M.x1-A-Z,ae=M.x2+A-Z,te=M.y1-A-re,ge=M.y2+A-re;if(W){var pe=Math.cos(W),xe=Math.sin(W),me=function(Ye,Se){return{x:(Ye-=q)*pe-(Se-=H)*xe+q,y:Ye*xe+Se*pe+H}},De=me(oe,te),ve=me(oe,ge),j=me(ae,te),he=me(ae,ge);if(Kt(t,e,[De.x+Z,De.y+re,j.x+Z,j.y+re,he.x+Z,he.y+re,ve.x+Z,ve.y+re]))return p(E),!0}else if(la(M,t,e))return p(E),!0}}r&&(s=s.interactive);for(var T=s.length-1;T>=0;T--){var x=s[T];x.isNode()?g(x)||w(x):m(x)||w(x)||w(x,"source")||w(x,"target")}return o},getAllInBox:function(t,e,r,a){for(var n=this.getCachedZSortedEles().interactive,i=[],s=Math.min(t,r),o=Math.max(t,r),l=Math.min(e,a),u=Math.max(e,a),f=qt({x1:t=s,y1:e=l,x2:r=o,y2:a=u}),h=0;h0?-(Math.PI-e.ang):Math.PI+e.ang}(rr,pr),gu(r,a,rr),hu=pr.nx*rr.nx-pr.ny*-rr.ny,Dr=Math.asin(Math.max(-1,Math.min(1,pr.nx*rr.ny-pr.ny*rr.nx))),Math.abs(Dr)<1e-6)return $i=r.x,Yi=r.y,void(ea=Da=0);Jr=1,jn=!1,hu<0?Dr<0?Dr=Math.PI+Dr:(Dr=Math.PI-Dr,Jr=-1,jn=!0):Dr>0&&(Jr=-1,jn=!0),Da=void 0!==r.radius?r.radius:n,jr=Dr/2,ei=Math.min(pr.len/2,rr.len/2),i?(yr=Math.abs(Math.cos(jr)*Da/Math.sin(jr)))>ei?(yr=ei,ea=Math.abs(yr*Math.sin(jr)/Math.cos(jr))):ea=Da:(yr=Math.min(ei,Da),ea=Math.abs(yr*Math.sin(jr)/Math.cos(jr))),$i=(Hi=r.x+rr.nx*yr)-rr.ny*ea*Jr,Yi=(Xi=r.y+rr.ny*yr)+rr.nx*ea*Jr,cu=r.x+pr.nx*yr,vu=r.y+pr.ny*yr,du=r};function pu(t,e){0===e.radius?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Wi(t,e,r,a){return 0===a||0===e.radius?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Sg(t,e,r,a,!(arguments.length>4&&void 0!==arguments[4])||arguments[4]),{cx:$i,cy:Yi,radius:ea,startX:cu,startY:vu,stopX:Hi,stopY:Xi,startAngle:pr.ang+Math.PI/2*Jr,endAngle:rr.ang-Math.PI/2*Jr,counterClockwise:jn})}var Vt={};function yu(t){var e=[];if(null!=t){for(var r=0;r0?Math.max(qe-Ke,0):Math.min(qe+Ke,0)},$=M(A,p?(h+d)/2:0),k=M(B,C),q=!1;"auto"===m?g=Math.abs($)>Math.abs(k)?n:a:m===l||m===o?(g=a,q=!0):(m===i||m===s)&&(g=n,q=!0);var ae,H=g===a,W=H?k:$,Z=H?B:A,re=Ss(Z),oe=!1;(!q||!w&&!x)&&(m===o&&Z<0||m===l&&Z>0||m===i&&Z>0||m===s&&Z<0)&&(W=(re*=-1)*Math.abs(W),oe=!0);var pe=function(qe){return Math.abs(qe)=Math.abs(W)},xe=pe(ae=w?(T<0?1+T:T)*W:(T<0?W:0)+T*re),me=pe(Math.abs(W)-Math.abs(ae));if(!xe&&!me||oe)if(H){var Te=f.y1+ae+(p?c/2*re:0);r.segpts=[f.x1,Te,f.x2,Te]}else{var we=f.x1+ae+(p?h/2*re:0);r.segpts=[we,f.y1,we,f.y2]}else if(H){var ve=Math.abs(Z)<=c/2,j=Math.abs(A)<=d/2;if(ve){var he=(f.x1+f.x2)/2;r.segpts=[he,f.y1,he,f.y2]}else if(j){var Ye=(f.y1+f.y2)/2;r.segpts=[f.x1,Ye,f.x2,Ye]}else r.segpts=[f.x1,f.y2]}else{var Fe=Math.abs(Z)<=h/2,He=Math.abs(B)<=v/2;if(Fe){var ze=(f.y1+f.y2)/2;r.segpts=[f.x1,ze,f.x2,ze]}else if(He){var at=(f.x1+f.x2)/2;r.segpts=[at,f.y1,at,f.y2]}else r.segpts=[f.x2,f.y1]}if(r.isRound){var Ae=t.pstyle("taxi-radius").value,de="arc-radius"===t.pstyle("radius-type").value[0];r.radii=new Array(r.segpts.length/2).fill(Ae),r.isArcRadius=new Array(r.segpts.length/2).fill(de)}},Vt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if("bezier"===r.edgeType){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,f=e.tgtShape,h=e.srcCornerRadius,c=e.tgtCornerRadius,d=e.srcRs,v=e.tgtRs,y=!ee(r.startX)||!ee(r.startY),p=!ee(r.arrowStartX)||!ee(r.arrowStartY),g=!ee(r.endX)||!ee(r.endY),m=!ee(r.arrowEndX)||!ee(r.arrowEndY),T=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,x=Hr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),E=xk.poolIndex()){var q=$;$=k,k=q}var H=C.srcPos=$.position(),W=C.tgtPos=k.position(),Z=C.srcW=$.outerWidth(),re=C.srcH=$.outerHeight(),oe=C.tgtW=k.outerWidth(),ae=C.tgtH=k.outerHeight(),te=C.srcShape=r.nodeShapes[e.getNodeShape($)],ge=C.tgtShape=r.nodeShapes[e.getNodeShape(k)],pe=C.srcCornerRadius="auto"===$.pstyle("corner-radius").value?"auto":$.pstyle("corner-radius").pfValue,xe=C.tgtCornerRadius="auto"===k.pstyle("corner-radius").value?"auto":k.pstyle("corner-radius").pfValue,me=C.tgtRs=k._private.rscratch,De=C.srcRs=$._private.rscratch;C.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ve=0;ve0){var Oe=i,Ye=Xr(Oe,oa(r)),Se=Xr(Oe,oa(ye)),Re=Ye;Se2&&Xr(Oe,{x:ye[2],y:ye[3]})0){var fe=s,Ae=Xr(fe,oa(r)),de=Xr(fe,oa(ce)),Le=Ae;de2&&Xr(fe,{x:ce[2],y:ce[3]})=v||b===y.length-1&&T===w.segments.length-1){p={cp:w,segment:x};break}}if(p)break}var D=p.cp,C=p.segment,A=(v-g)/C.length,B=C.t1-C.t0,M=d?C.t0+B*A:C.t1-B*A;M=$a(0,M,1),e=ua(D.p0,D.p1,D.p2,M),c=function(e,r,a,n){var i=$a(0,n-.001,1),s=$a(0,n+.001,1),o=ua(e,r,a,i),l=ua(e,r,a,s);return bu(o,l)}(D.p0,D.p1,D.p2,M);break;case"straight":case"segments":case"haystack":for(var k,q,H,W,$=0,Z=a.allpts.length,re=0;re+3=v));re+=2);var ae=(v-q)/k;ae=$a(0,ae,1),e=function(e,r,a,n){var i_x=r.x-e.x,i_y=r.y-e.y,s=Hr(e,r);return a=a??0,{x:e.x+i_x/s*(n=n??a*s),y:e.y+i_y/s*n}}(H,W,ae),c=bu(H,W)}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,c)}};u("source"),u("target"),this.applyLabelDimensions(t)}},mr.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},mr.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,s=t.pstyle("text-wrap").strValue,o=ir(r.rscratch,"labelWrapCachedLines",e)||[],l="wrap"!==s?1:Math.max(o.length,1),u=n.height/l,f=u*i,h=n.width,c=n.height+(l-1)*(i-1)*u;Ir(r.rstyle,"labelWidth",e,h),Ir(r.rscratch,"labelWidth",e,h),Ir(r.rstyle,"labelHeight",e,c),Ir(r.rscratch,"labelHeight",e,c),Ir(r.rscratch,"labelLineHeight",e,f)},mr.getLabelText=function(t,e){var r=t._private,n=t.pstyle((e?e+"-":"")+"label").strValue,i=t.pstyle("text-transform").value,s=function(ge,pe){return pe?(Ir(r.rscratch,ge,e,pe),pe):ir(r.rscratch,ge,e)};if(!n)return"";"none"==i||("uppercase"==i?n=n.toUpperCase():"lowercase"==i&&(n=n.toLowerCase()));var o=t.pstyle("text-wrap").value;if("wrap"===o){var l=s("labelKey");if(null!=l&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var f=n.split("\n"),h=t.pstyle("text-max-width").pfValue,d="anywhere"===t.pstyle("text-overflow-wrap").value,v=[],y=/[\s\u200b]+|$/g,p=0;ph){var C,x="",E=0,D=Q(g.matchAll(y));try{for(D.s();!(C=D.n()).done;){var A=C.value,B=A[0],M=g.substring(E,A.index);E=A.index+B.length,this.calculateLabelDimensions(t,0===x.length?M:x+M+B).width<=h?x+=M+B:(x&&v.push(x),x=M+B)}}catch(te){D.e(te)}finally{D.f()}x.match(/^[\s\u200b]+$/)||v.push(x)}else v.push(g)}s("labelWrapCachedLines",v),n=s("labelWrapCachedText",v.join("\n")),s("labelWrapKey",l)}else if("ellipsis"===o){var H=t.pstyle("text-max-width").pfValue,W="",re=!1;if(this.calculateLabelDimensions(t,n).widthH);oe++)W+=n[oe],oe===n.length-1&&(re=!0);return re||(W+="\u2026"),W}return n},mr.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(r){case"left":return"right";case"right":return"left";default:return"center"}},mr.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window().document,i=Yr(e,t._private.labelDimsKey),s=r.labelDimCache||(r.labelDimCache=[]),o=s[i];if(null!=o)return o;var u=t.pstyle("font-style").strValue,f=t.pstyle("font-size").pfValue,h=t.pstyle("font-family").strValue,c=t.pstyle("font-weight").strValue,d=this.labelCalcCanvas,v=this.labelCalcCanvasContext;if(!d){d=this.labelCalcCanvas=n.createElement("canvas"),v=this.labelCalcCanvasContext=d.getContext("2d");var y=d.style;y.position="absolute",y.left="-9999px",y.top="-9999px",y.zIndex="-1",y.visibility="hidden",y.pointerEvents="none"}v.font="".concat(u," ").concat(c," ").concat(f,"px ").concat(h);for(var p=0,g=0,m=e.split("\n"),b=0;b1&&void 0!==arguments[1])||arguments[1];if(e.merge(s),o)for(var l=0;l"u")&&e instanceof HTMLElement}(t);if(null==e.supportsPassiveEvents){var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});r.addEventListener("test",null,i)}catch{}e.supportsPassiveEvents=n}var s=function(l,u,f){var h=Array.prototype.slice.call(arguments);return a&&e.supportsPassiveEvents&&(h[2]={capture:f??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:h}),(t.addEventListener||t.on).apply(t,h),this};return{on:s,addEventListener:s,addListener:s,bind:s}},nodeIsDraggable:function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},nodeIsGrabbable:function(t){return this.nodeIsDraggable(t)&&t.interactive()}};Sa.load=function(){var t=this,e=t.cy.window(),r=function(N){return N.selected()},a=function(N,ne,we,ce){null==N&&(N=t.cy);for(var fe=0;fe=t.desktopTapThreshold2}var Ht=n(N);ct&&(t.hoverData.tapholdCancelled=!0),we=!0,a(Ve,["mousemove","vmousemove","tapdrag"],N,{x:de[0],y:de[1]});var ar=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||ce.emit({originalEvent:N,type:"boxstart",position:{x:de[0],y:de[1]}}),Ke[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(ct){var Zt={originalEvent:N,type:"cxtdrag",position:{x:de[0],y:de[1]}};Ge?Ge.emit(Zt):ce.emit(Zt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Ve!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:de[0],y:de[1]}}),t.hoverData.cxtOver=Ve,Ve&&Ve.emit({originalEvent:N,type:"cxtdragover",position:{x:de[0],y:de[1]}}))}}else if(t.hoverData.dragging){if(we=!0,ce.panningEnabled()&&ce.userPanningEnabled()){var Er;if(t.hoverData.justStartedPan){var Ar=t.hoverData.mdownPos;Er={x:(de[0]-Ar[0])*fe,y:(de[1]-Ar[1])*fe},t.hoverData.justStartedPan=!1}else Er={x:Xe[0]*fe,y:Xe[1]*fe};ce.panBy(Er),ce.emit("dragpan"),t.hoverData.dragged=!0}de=t.projectIntoViewport(N.clientX,N.clientY)}else if(1!=Ke[4]||null!=Ge&&!Ge.pannable()){if(Ge&&Ge.pannable()&&Ge.active()&&Ge.unactivate(),(!Ge||!Ge.grabbed())&&Ve!=Je&&(Je&&a(Je,["mouseout","tapdragout"],N,{x:de[0],y:de[1]}),Ve&&a(Ve,["mouseover","tapdragover"],N,{x:de[0],y:de[1]}),t.hoverData.last=Ve),Ge)if(ct){if(ce.boxSelectionEnabled()&&Ht)Ge&&Ge.grabbed()&&(p(mt),Ge.emit("freeon"),mt.emit("free"),t.dragData.didDrag&&(Ge.emit("dragfreeon"),mt.emit("dragfree"))),ar();else if(Ge&&Ge.grabbed()&&t.nodeIsDraggable(Ge)){var St=!t.dragData.didDrag;St&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||v(mt,{inDragLayer:!0});var At={x:0,y:0};if(ee(Xe[0])&&ee(Xe[1])&&(At.x+=Xe[0],At.y+=Xe[1],St)){var Ut=t.hoverData.dragDelta;Ut&&ee(Ut[0])&&ee(Ut[1])&&(At.x+=Ut[0],At.y+=Ut[1])}t.hoverData.draggingEles=!0,mt.silentShift(At).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else 0===(wr=t.hoverData.dragDelta=t.hoverData.dragDelta||[]).length?(wr.push(Xe[0]),wr.push(Xe[1])):(wr[0]+=Xe[0],wr[1]+=Xe[1]);we=!0}else ct&&(t.hoverData.dragging||!ce.boxSelectionEnabled()||!Ht&&ce.panningEnabled()&&ce.userPanningEnabled()?!t.hoverData.selecting&&ce.panningEnabled()&&ce.userPanningEnabled()&&i(Ge,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Ke[4]=0,t.data.bgActivePosistion=oa(Le),t.redrawHint("select",!0),t.redraw()):ar(),Ge&&Ge.pannable()&&Ge.active()&&Ge.unactivate());if(Ke[2]=de[0],Ke[3]=de[1],we)return N.stopPropagation&&N.stopPropagation(),N.preventDefault&&N.preventDefault(),!1}},!1),t.registerBinding(e,"mouseup",function(N){if((1!==t.hoverData.which||1===N.which||!t.hoverData.capture)&&t.hoverData.capture){t.hoverData.capture=!1;var we=t.cy,ce=t.projectIntoViewport(N.clientX,N.clientY),fe=t.selection,Ae=t.findNearestElement(ce[0],ce[1],!0,!1),de=t.dragData.possibleDragElements,Le=t.hoverData.down,qe=n(N);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Le&&Le.unactivate(),3===t.hoverData.which){var Ke={originalEvent:N,type:"cxttapend",position:{x:ce[0],y:ce[1]}};if(Le?Le.emit(Ke):we.emit(Ke),!t.hoverData.cxtDragged){var Ve={originalEvent:N,type:"cxttap",position:{x:ce[0],y:ce[1]}};Le?Le.emit(Ve):we.emit(Ve)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(a(Ae,["mouseup","tapend","vmouseup"],N,{x:ce[0],y:ce[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(Le,["click","tap","vclick"],N,{x:ce[0],y:ce[1]}),B=!1,N.timeStamp-M<=we.multiClickDebounceTime()?(A&&clearTimeout(A),B=!0,M=null,a(Le,["dblclick","dbltap","vdblclick"],N,{x:ce[0],y:ce[1]})):(A=setTimeout(function(){B||a(Le,["oneclick","onetap","voneclick"],N,{x:ce[0],y:ce[1]})},we.multiClickDebounceTime()),M=N.timeStamp)),null==Le&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(N)&&(we.$(r).unselect(["tapunselect"]),de.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=de=we.collection()),Ae==Le&&!t.dragData.didDrag&&!t.hoverData.selecting&&null!=Ae&&Ae._private.selectable&&(t.hoverData.dragging||("additive"===we.selectionType()||qe?Ae.selected()?Ae.unselect(["tapunselect"]):Ae.select(["tapselect"]):qe||(we.$(r).unmerge(Ae).unselect(["tapunselect"]),Ae.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var Je=we.collection(t.getAllInBox(fe[0],fe[1],fe[2],fe[3]));t.redrawHint("select",!0),Je.length>0&&t.redrawHint("eles",!0),we.emit({type:"boxend",originalEvent:N,position:{x:ce[0],y:ce[1]}}),"additive"===we.selectionType()||qe||we.$(r).unmerge(Je).unselect(),Je.emit("box").stdFilter(function(ct){return ct.selectable()&&!ct.selected()}).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!fe[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Xe=Le&&Le.grabbed();p(de),Xe&&(Le.emit("freeon"),de.emit("free"),t.dragData.didDrag&&(Le.emit("dragfreeon"),de.emit("dragfree")))}}fe[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}},!1);var $=function(N){if(!t.scrollingPage){var ne=t.cy,we=ne.zoom(),ce=ne.pan(),fe=t.projectIntoViewport(N.clientX,N.clientY),Ae=[fe[0]*we+ce.x,fe[1]*we+ce.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||0!==t.selection[4])return void N.preventDefault();if(ne.panningEnabled()&&ne.userPanningEnabled()&&ne.zoomingEnabled()&&ne.userZoomingEnabled()){var de;N.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150),de=null!=N.deltaY?N.deltaY/-250:null!=N.wheelDeltaY?N.wheelDeltaY/1e3:N.wheelDelta/1e3,de*=t.wheelSensitivity,1===N.deltaMode&&(de*=33);var qe=ne.zoom()*Math.pow(10,de);"gesturechange"===N.type&&(qe=t.gestureStartZoom*N.scale),ne.zoom({level:qe,renderedPosition:{x:Ae[0],y:Ae[1]}}),ne.emit("gesturechange"===N.type?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",$,!0),t.registerBinding(e,"scroll",function(N){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(N){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||N.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(Te){t.hasTouchStarted||$(Te)},!0),t.registerBinding(t.container,"mouseout",function(N){var ne=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseout",position:{x:ne[0],y:ne[1]}})},!1),t.registerBinding(t.container,"mouseover",function(N){var ne=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseover",position:{x:ne[0],y:ne[1]}})},!1);var k,q,H,W,Z,re,oe,ae,te,ge,pe,xe,me,j,he,ye,Oe,Ye,Se,Re,De=function(N,ne,we,ce){return Math.sqrt((we-N)*(we-N)+(ce-ne)*(ce-ne))},ve=function(N,ne,we,ce){return(we-N)*(we-N)+(ce-ne)*(ce-ne)};if(t.registerBinding(t.container,"touchstart",j=function(N){if(t.hasTouchStarted=!0,C(N)){m(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var ne=t.cy,we=t.touchData.now,ce=t.touchData.earlier;if(N.touches[0]){var fe=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);we[0]=fe[0],we[1]=fe[1]}if(N.touches[1]&&(fe=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY),we[2]=fe[0],we[3]=fe[1]),N.touches[2]&&(fe=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY),we[4]=fe[0],we[5]=fe[1]),N.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var Ae=t.findContainerClientCoords();pe=Ae[2],xe=Ae[3],q=N.touches[0].clientY-(ge=Ae[1]),H=N.touches[1].clientX-(te=Ae[0]),W=N.touches[1].clientY-ge,me=0<=(k=N.touches[0].clientX-te)&&k<=pe&&0<=H&&H<=pe&&0<=q&&q<=xe&&0<=W&&W<=xe;var de=ne.pan(),Le=ne.zoom();if(Z=De(k,q,H,W),re=ve(k,q,H,W),ae=[((oe=[(k+H)/2,(q+W)/2])[0]-de.x)/Le,(oe[1]-de.y)/Le],re<4e4&&!N.touches[2]){var Ve=t.findNearestElement(we[0],we[1],!0,!0),Je=t.findNearestElement(we[2],we[3],!0,!0);return Ve&&Ve.isNode()?(Ve.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:we[0],y:we[1]}}),t.touchData.start=Ve):Je&&Je.isNode()?(Je.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:we[0],y:we[1]}}),t.touchData.start=Je):ne.emit({originalEvent:N,type:"cxttapstart",position:{x:we[0],y:we[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,void t.redraw()}}if(N.touches[2])ne.boxSelectionEnabled()&&N.preventDefault();else if(!N.touches[1]&&N.touches[0]){var Ge=t.findNearestElements(we[0],we[1],!0,!0),Xe=Ge[0];if(null!=Xe&&(Xe.activate(),t.touchData.start=Xe,t.touchData.starts=Ge,t.nodeIsGrabbable(Xe))){var mt=t.dragData.touchDragEles=ne.collection(),ct=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),Xe.selected()?(ct=ne.$(function(Pt){return Pt.selected()&&t.nodeIsGrabbable(Pt)}),v(ct,{addToList:mt})):y(Xe,{addToList:mt}),f(Xe);var Yt=function(Ht){return{originalEvent:N,type:Ht,position:{x:we[0],y:we[1]}}};Xe.emit(Yt("grabon")),ct?ct.forEach(function(Pt){Pt.emit(Yt("grab"))}):Xe.emit(Yt("grab"))}a(Xe,["touchstart","tapstart","vmousedown"],N,{x:we[0],y:we[1]}),null==Xe&&(t.data.bgActivePosistion={x:fe[0],y:fe[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){!1===t.touchData.singleTouchMoved&&!t.pinching&&!t.touchData.selecting&&a(t.touchData.start,["taphold"],N,{x:we[0],y:we[1]})},t.tapholdDuration)}if(N.touches.length>=1){for(var kt=t.touchData.startPosition=[null,null,null,null,null,null],Dt=0;Dt=t.touchTapThreshold2}if(ne&&t.touchData.cxt){N.preventDefault();var Ht=ve(kt=N.touches[0].clientX-te,Dt=N.touches[0].clientY-ge,_t=N.touches[1].clientX-te,Pt=N.touches[1].clientY-ge);if(Ht/re>=2.25||Ht>=22500){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var fr={originalEvent:N,type:"cxttapend",position:{x:fe[0],y:fe[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(fr),t.touchData.start=null):ce.emit(fr)}}if(ne&&t.touchData.cxt){fr={originalEvent:N,type:"cxtdrag",position:{x:fe[0],y:fe[1]}},t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(fr):ce.emit(fr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var St=t.findNearestElement(fe[0],fe[1],!0,!0);(!t.touchData.cxtOver||St!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:fe[0],y:fe[1]}}),t.touchData.cxtOver=St,St&&St.emit({originalEvent:N,type:"cxtdragover",position:{x:fe[0],y:fe[1]}}))}else if(ne&&N.touches[2]&&ce.boxSelectionEnabled())N.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||ce.emit({originalEvent:N,type:"boxstart",position:{x:fe[0],y:fe[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,we[4]=1,we&&0!==we.length&&void 0!==we[0]?(we[2]=(fe[0]+fe[2]+fe[4])/3,we[3]=(fe[1]+fe[3]+fe[5])/3):(we[0]=(fe[0]+fe[2]+fe[4])/3,we[1]=(fe[1]+fe[3]+fe[5])/3,we[2]=(fe[0]+fe[2]+fe[4])/3+1,we[3]=(fe[1]+fe[3]+fe[5])/3+1),t.redrawHint("select",!0),t.redraw();else if(ne&&N.touches[1]&&!t.touchData.didSelect&&ce.zoomingEnabled()&&ce.panningEnabled()&&ce.userZoomingEnabled()&&ce.userPanningEnabled()){if(N.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),At=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var Ut=0;Ut0&&!t.hoverData.draggingEles&&!t.swipePanning&&null!=t.data.bgActivePosistion&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1),t.registerBinding(e,"touchcancel",ye=function(N){var ne=t.touchData.start;t.touchData.capture=!1,ne&&ne.unactivate()}),t.registerBinding(e,"touchend",Oe=function(N){var ne=t.touchData.start;if(t.touchData.capture){0===N.touches.length&&(t.touchData.capture=!1),N.preventDefault();var ce=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var Ke,fe=t.cy,Ae=fe.zoom(),de=t.touchData.now,Le=t.touchData.earlier;if(N.touches[0]){var qe=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);de[0]=qe[0],de[1]=qe[1]}if(N.touches[1]&&(qe=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY),de[2]=qe[0],de[3]=qe[1]),N.touches[2]&&(qe=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY),de[4]=qe[0],de[5]=qe[1]),ne&&ne.unactivate(),t.touchData.cxt){if(Ke={originalEvent:N,type:"cxttapend",position:{x:de[0],y:de[1]}},ne?ne.emit(Ke):fe.emit(Ke),!t.touchData.cxtDragged){var Ve={originalEvent:N,type:"cxttap",position:{x:de[0],y:de[1]}};ne?ne.emit(Ve):fe.emit(Ve)}return t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,void t.redraw()}if(!N.touches[2]&&fe.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var Je=fe.collection(t.getAllInBox(ce[0],ce[1],ce[2],ce[3]));ce[0]=void 0,ce[1]=void 0,ce[2]=void 0,ce[3]=void 0,ce[4]=0,t.redrawHint("select",!0),fe.emit({type:"boxend",originalEvent:N,position:{x:de[0],y:de[1]}}),Je.emit("box").stdFilter(function(Zt){return Zt.selectable()&&!Zt.selected()}).select().emit("boxselect"),Je.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(ne?.unactivate(),N.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!N.touches[1]&&!N.touches[0]&&!N.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Xe=t.dragData.touchDragEles;if(null!=ne){var mt=ne._private.grabbed;p(Xe),t.redrawHint("drag",!0),t.redrawHint("eles",!0),mt&&(ne.emit("freeon"),Xe.emit("free"),t.dragData.didDrag&&(ne.emit("dragfreeon"),Xe.emit("dragfree"))),a(ne,["touchend","tapend","vmouseup","tapdragout"],N,{x:de[0],y:de[1]}),ne.unactivate(),t.touchData.start=null}else{var ct=t.findNearestElement(de[0],de[1],!0,!0);a(ct,["touchend","tapend","vmouseup","tapdragout"],N,{x:de[0],y:de[1]})}var Yt=t.touchData.startPosition[0]-de[0],Dt=t.touchData.startPosition[1]-de[1],Ht=(Yt*Yt+Dt*Dt)*Ae*Ae;t.touchData.singleTouchMoved||(ne||fe.$(":selected").unselect(["tapunselect"]),a(ne,["tap","vclick"],N,{x:de[0],y:de[1]}),Ye=!1,N.timeStamp-Re<=fe.multiClickDebounceTime()?(Se&&clearTimeout(Se),Ye=!0,Re=null,a(ne,["dbltap","vdblclick"],N,{x:de[0],y:de[1]})):(Se=setTimeout(function(){Ye||a(ne,["onetap","voneclick"],N,{x:de[0],y:de[1]})},fe.multiClickDebounceTime()),Re=N.timeStamp)),null!=ne&&!t.dragData.didDrag&&ne._private.selectable&&Ht"u"){var Fe=[],He=function(N){return{clientX:N.clientX,clientY:N.clientY,force:1,identifier:N.pointerId,pageX:N.pageX,pageY:N.pageY,radiusX:N.width/2,radiusY:N.height/2,screenX:N.screenX,screenY:N.screenY,target:N.target}},lt=function(N){for(var ne=0;ne2){for(var v=[f[0],f[1]],y=Math.pow(v[0]-e,2)+Math.pow(v[1]-r,2),p=1;p0)return te[0]}return null},v=Object.keys(c),y=0;y0?d:Ns(i,s,e,r,a,n,o,l)},checkPoint:function(e,r,a,n,i,s,o,l){var u=2*(l="auto"===l?qr(n,i):l);if(Tr(e,r,this.points,s,o,n,i-u,[0,-1],a)||Tr(e,r,this.points,s,o,n-u,i,[0,-1],a))return!0;var f=n/2+2*a,h=i/2+2*a;return!!(Kt(e,r,[s-f,o-h,s-f,o,s+f,o,s+f,o-h])||Wr(e,r,u,u,s+n/2-l,o+i/2-l,a)||Wr(e,r,u,u,s-n/2+l,o+i/2-l,a))}}},registerNodeShapes:function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",$t(3,0)),this.generateRoundPolygon("round-triangle",$t(3,0)),this.generatePolygon("rectangle",$t(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r),this.generatePolygon("pentagon",$t(5,0)),this.generateRoundPolygon("round-pentagon",$t(5,0)),this.generatePolygon("hexagon",$t(6,0)),this.generateRoundPolygon("round-hexagon",$t(6,0)),this.generatePolygon("heptagon",$t(7,0)),this.generateRoundPolygon("round-heptagon",$t(7,0)),this.generatePolygon("octagon",$t(8,0)),this.generateRoundPolygon("round-octagon",$t(8,0));var a=new Array(20),n=pi(5,0),i=pi(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*(Ki-(u?c:0)))break}else if(u){if(m>=e.deqCost*d||m>=e.deqAvgCost*c)break}else if(b>=e.deqNoDrawCost*Ki)break;var T=e.deq(a,p,y);if(!(T.length>0))break;for(var x=0;x0&&(e.onDeqd(a,v),!u&&e.shouldRedraw(a,v,p,y)&&i())},(e.priority||fi)(a))}}},Ng=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn;S(this,t),this.idsByKey=new dr,this.keyForId=new dr,this.cachesByLvl=new dr,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return R(t,[{key:"getIdsFor",value:function(r){null==r&&Et("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new sa,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){null!=r&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){null!=r&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return null==r?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id();return this.keyForId.get(a)!==this.getKey(r)}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new dr,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return null!=i&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id());return this.getCache(n,a)}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||0===this.getNumberOfIdsForKey(n)}}]),t}(),Aa={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Xg=Ot({getKey:null,doesEleInvalidateKey:pn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:bs,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),on=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Xg(r);Ze(a,n),a.lookup=new Ng(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Tt=on.prototype;Tt.reasons=Aa,Tt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Tt.getRetiredTextureQueue=function(t){var r=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return r[t]=r[t]||[]},Tt.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new Ua(function(r,a){return a.reqs-r.reqs})},Tt.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},Tt.getElement=function(t,e,r,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||0===e.w||0===e.h||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(null==a&&(a=Math.ceil(vi(o*r))),a<-4)a=-4;else if(o>=7.99||a>3)return null;var u=Math.pow(2,a),f=e.h*u,h=e.w*u,c=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,c))return null;var v,d=l.get(t,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;if(v=f<=25?25:f<=50?50:50*Math.ceil(f/50),f>1024||h>1024)return null;var y=i.getTextureQueue(v),p=y[y.length-2],g=function(){return i.recycleTexture(v,h)||i.addTexture(v,h)};p||(p=y[y.length-1]),p||(p=g()),p.width-p.usedWidtha;B--)C=i.getElement(t,e,r,B,Aa.downscale);A()}else{var M;if(!b&&!w&&!T)for(var $=a-1;$>=-4;$--){var k=l.get(t,$);if(k){M=k;break}}if(m(M))return i.queueElement(t,a),M;p.context.translate(p.usedWidth,0),p.context.scale(u,u),this.drawElement(p.context,t,e,c,!1),p.context.scale(1/u,1/u),p.context.translate(-p.usedWidth,0)}return d={x:p.usedWidth,texture:p,level:a,scale:u,width:h,height:f,scaledLabelShown:c},p.usedWidth+=Math.ceil(h+8),p.eleCaches.push(d),l.set(t,a,d),i.checkTextureFullness(p),d},Tt.invalidateElements=function(t){for(var e=0;e=.2*t.width&&this.retireTexture(t)},Tt.checkTextureFullness=function(t){var r=this.getTextureQueue(t.height);t.usedWidth/t.width>.8&&t.fullnessChecks>=10?Nr(r,t):t.fullnessChecks++},Tt.retireTexture=function(t){var r=t.height,a=this.getTextureQueue(r),n=this.lookup;Nr(a,t),t.retired=!0;for(var i=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,hi(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Nr(n,s),a.push(s),s}},Tt.queueElement=function(t,e){var a=this.getElementQueue(),n=this.getElementKeyToQueue(),i=this.getKey(t),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,a.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(o),n[i]=o}},Tt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s<1&&r.size()>0;s++){var o=r.pop(),l=o.key,u=o.eles[0],f=i.hasCache(u,o.level);if(a[l]=null,!f){n.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,Aa.dequeue)}}return n},Tt.removeFromQueue=function(t){var r=this.getElementQueue(),a=this.getElementKeyToQueue(),n=this.getKey(t),i=a[n];null!=i&&(1===i.eles.length?(i.reqs=li,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))},Tt.onDequeue=function(t){this.onDequeues.push(t)},Tt.offDequeue=function(t){Nr(this.onDequeues,t)},Tt.setupDequeueing=Lu_setupDequeueing({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a=3.99||r>2)return null;a.validateLayersElesOrdering(r,t);var h,d,l=a.layersByLevel,u=Math.pow(2,r),f=l[r]=l[r]||[];if(a.levelIsComplete(r,t))return f;!function(){var A=function(q){if(a.validateLayersElesOrdering(q,t),a.levelIsComplete(q,t))return d=l[q],!0},B=function(q){if(!d)for(var H=r+q;-4<=H&&H<=2&&!A(H);H+=q);};B(1),B(-1);for(var M=f.length-1;M>=0;M--){var $=f[M];$.invalid&&Nr(f,$)}}();var p=function(A){var B=(A=A||{}).after;if(function(){if(!h){h=qt();for(var A=0;A16e6)return null;var $=a.makeLayer(h,r);if(null!=B){var k=f.indexOf(B)+1;f.splice(k,0,$)}else(void 0===A.insert||A.insert)&&f.unshift($);return $};if(a.skipping&&!o)return null;for(var g=null,m=t.length/1,b=!o,w=0;w=m||!Os(g.bb,T.boundingBox()))&&!(g=p({insert:!0,after:g})))return null;d||b?a.queueLayer(g,T):a.drawEleInLayer(g,T,r,e),g.eles.push(T),E[r]=g}}return d||(b?null:f)},Rt.getEleLevelForLayerLevel=function(t,e){return t},Rt.drawEleInLayer=function(t,e,r,a){var i=this.renderer,s=t.context,o=e.boundingBox();0===o.w||0===o.h||!e.visible()||(r=this.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,!0),i.setImgSmoothing(s,!0))},Rt.levelIsComplete=function(t,e){var a=this.layersByLevel[t];if(!a||0===a.length)return!1;for(var n=0,i=0;i0||s.invalid)return!1;n+=s.eles.length}return n===e.length},Rt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a0){e=!0;break}}return e},Rt.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=xr(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))},Rt.invalidateLayer=function(t){if(this.lastInvalidationTime=xr(),!t.invalid){var e=t.level,r=t.eles;Nr(this.layersByLevel[e],t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=this,o=e._private.rscratch;if((!i||e.visible())&&!o.badLine&&null!=o.allpts&&!isNaN(o.allpts[0])){var l;r&&t.translate(-(l=r).x1,-l.y1);var u=i?e.pstyle("opacity").value:1,f=i?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,v=e.pstyle("line-cap").value,y=e.pstyle("line-outline-width").value,p=e.pstyle("line-outline-color").value,g=u*f,m=u*f,b=function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;"straight-triangle"===h?(s.eleStrokeStyle(t,e,q),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=d,t.lineCap=v,s.eleStrokeStyle(t,e,q),s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")},E=function(){s.drawArrowheads(t,e,arguments.length>0&&void 0!==arguments[0]?arguments[0]:m)};if(t.lineJoin="round","yes"===e.pstyle("ghost").value){var A=e.pstyle("ghost-offset-x").pfValue,B=e.pstyle("ghost-offset-y").pfValue,M=e.pstyle("ghost-opacity").value,$=g*M;t.translate(A,B),b($),E($),t.translate(-A,-B)}else!function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;t.lineWidth=d+y,t.lineCap=v,y>0?(s.colorStrokeStyle(t,p[0],p[1],p[2],q),"straight-triangle"===h?s.drawEdgeTrianglePath(e,t,o.allpts):(s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")):t.lineCap="butt"}();n&&s.drawEdgeUnderlay(t,e),b(),E(),n&&s.drawEdgeOverlay(t,e),s.drawElementText(t,e,null,a),r&&t.translate(l.x1,l.y1)}}},Pu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(0!==n){var i=this,s=i.usePaths(),o=a._private.rscratch,u=2*a.pstyle("".concat(e,"-padding")).pfValue,f=a.pstyle("".concat(e,"-color")).value;r.lineWidth=u,r.lineCap="self"!==o.edgeType||s?"round":"butt",i.colorStrokeStyle(r,f[0],f[1],f[2],n),i.drawEdgePath(a,r,o.allpts,"solid")}}}};Lr.drawEdgeOverlay=Pu("overlay"),Lr.drawEdgeUnderlay=Pu("underlay"),Lr.drawEdgePath=function(t,e,r,a){var s,n=t._private.rscratch,i=e,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,f=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$");n.pathCacheKey&&n.pathCacheKey===h?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=h,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=f;break;case"solid":i.setLineDash([])}if(!o&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+35&&void 0!==arguments[5]?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),s?t.stroke():t.fill()}ta.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),a=this.getPixelRatio(),n=Math.ceil(vi(r*a));e=Math.pow(2,n)}return!(t.pstyle("font-size").pfValue*e5&&void 0!==arguments[5])||arguments[5],s=this;if(null==a){if(i&&!s.eleTextBiggerThanMin(e))return}else if(!1===a)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,f=e.pstyle("label"),h=e.pstyle("source-label"),c=e.pstyle("target-label");if(u||(!f||!f.value)&&(!h||!h.value)&&(!c||!c.value))return;t.textAlign="center",t.textBaseline="bottom"}var v,d=!r;r&&t.translate(-(v=r).x1,-v.y1),null==n?(s.drawText(t,e,null,d,i),e.isEdge()&&(s.drawText(t,e,"source",d,i),s.drawText(t,e,"target",d,i))):s.drawText(t,e,n,d,i),r&&t.translate(v.x1,v.y1)},ta.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&void 0!==arguments[2])||arguments[2],a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;t.font=a+" "+s+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,f[0],f[1],f[2],l)},ta.getTextAngle=function(t,e){var n=t._private.rscratch,s=t.pstyle((e?e+"-":"")+"text-rotation"),o=ir(n,"labelAngle",e);return"autorotate"===s.strValue?t.isEdge()?o:0:"none"===s.strValue?0:s.pfValue},ta.drawText=function(t,e,r){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=e._private.rscratch,o=n?e.effectiveOpacity():1;if(!n||0!==o&&0!==e.pstyle("text-opacity").value){"main"===r&&(r=null);var f,h,l=ir(s,"labelX",r),u=ir(s,"labelY",r),c=this.getLabelText(e,r);if(null!=c&&""!==c&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,n);var T,d=r?r+"-":"",v=ir(s,"labelWidth",r),y=ir(s,"labelHeight",r),p=e.pstyle(d+"text-margin-x").pfValue,g=e.pstyle(d+"text-margin-y").pfValue,m=e.isEdge(),b=e.pstyle("text-halign").value,w=e.pstyle("text-valign").value;switch(m&&(b="center",w="center"),l+=p,u+=g,0!==(T=a?this.getTextAngle(e,r):0)&&(t.translate(f=l,h=u),t.rotate(T),l=0,u=0),w){case"top":break;case"center":u+=y/2;break;case"bottom":u+=y}var x=e.pstyle("text-background-opacity").value,E=e.pstyle("text-border-opacity").value,D=e.pstyle("text-border-width").pfValue,C=e.pstyle("text-background-padding").pfValue,B=0===e.pstyle("text-background-shape").strValue.indexOf("round");if(x>0||D>0&&E>0){var $=l-C;switch(b){case"left":$-=v;break;case"center":$-=v/2}var k=u-y-C,q=v+2*C,H=y+2*C;if(x>0){var W=t.fillStyle,Z=e.pstyle("text-background-color").value;t.fillStyle="rgba("+Z[0]+","+Z[1]+","+Z[2]+","+x*o+")",B?Ji(t,$,k,q,H,2):t.fillRect($,k,q,H),t.fillStyle=W}if(D>0&&E>0){var re=t.strokeStyle,oe=t.lineWidth,ae=e.pstyle("text-border-color").value,te=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+ae[0]+","+ae[1]+","+ae[2]+","+E*o+")",t.lineWidth=D,t.setLineDash)switch(te){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=D/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(B?Ji(t,$,k,q,H,2,"stroke"):t.strokeRect($,k,q,H),"double"===te){var ge=D/2;B?Ji(t,$+ge,k+ge,q-2*ge,H-2*ge,2,"stroke"):t.strokeRect($+ge,k+ge,q-2*ge,H-2*ge)}t.setLineDash&&t.setLineDash([]),t.lineWidth=oe,t.strokeStyle=re}}var pe=2*e.pstyle("text-outline-width").pfValue;if(pe>0&&(t.lineWidth=pe),"wrap"===e.pstyle("text-wrap").value){var xe=ir(s,"labelWrapCachedLines",r),me=ir(s,"labelLineHeight",r),De=v/2,ve=this.getLabelJustification(e);switch("auto"===ve||("left"===b?"left"===ve?l+=-v:"center"===ve&&(l+=-De):"center"===b?"left"===ve?l+=-De:"right"===ve&&(l+=De):"right"===b&&("center"===ve?l+=De:"right"===ve&&(l+=v))),w){case"top":case"center":case"bottom":u-=(xe.length-1)*me}for(var j=0;j0&&t.strokeText(xe[j],l,u),t.fillText(xe[j],l,u),u+=me}else pe>0&&t.strokeText(c,l,u),t.fillText(c,l,u);0!==T&&(t.rotate(-T),t.translate(-f,-h))}}};var Oa={drawNode:function(t,e,r){var o,l,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=this,u=e._private,f=u.rscratch,h=e.position();if(ee(h.x)&&ee(h.y)&&(!i||e.visible())){var v,g,c=i?e.effectiveOpacity():1,d=s.usePaths(),y=!1,p=e.padding();o=e.width()+2*p,l=e.height()+2*p,r&&t.translate(-(g=r).x1,-g.y1);for(var b=e.pstyle("background-image").value,w=new Array(b.length),T=new Array(b.length),x=0,E=0;E0&&void 0!==arguments[0]?arguments[0]:$)},j=function(){s.colorStrokeStyle(t,k[0],k[1],k[2],arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae)},he=function(){s.colorStrokeStyle(t,ge[0],ge[1],ge[2],arguments.length>0&&void 0!==arguments[0]?arguments[0]:xe)},ye=function(Ae,de,Le,qe){var Ge,Ke=s.nodePathCache=s.nodePathCache||[],Ve=ys("polygon"===Le?Le+","+qe.join(","):Le,""+de,""+Ae,""+De),Je=Ke[Ve],Xe=!1;return null!=Je?(Xe=!0,f.pathCache=Ge=Je):(Ge=new Path2D,Ke[Ve]=f.pathCache=Ge),{path:Ge,cacheHit:Xe}},Oe=e.pstyle("shape").strValue,Ye=e.pstyle("shape-polygon-points").pfValue;if(d){t.translate(h.x,h.y);var Se=ye(o,l,Oe,Ye);v=Se.path,y=Se.cacheHit}var Re=function(){if(!y){var Ae=h;d&&(Ae={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(v||t,Ae.x,Ae.y,o,l,De,f)}d?t.fill(v):t.fill()},Fe=function(){for(var Ae=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,de=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Le=u.backgrounding,qe=0,Ke=0;Ke0&&void 0!==arguments[0]&&arguments[0],de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;s.hasPie(e)&&(s.drawPie(t,e,de),Ae&&(d||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,De,f)))},ze=function(){var Le=B>0?0:255;0!==B&&(s.colorFillStyle(t,Le,Le,Le,(B>0?B:-B)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:c)),d?t.fill(v):t.fill())},We=function(){if(M>0){if(t.lineWidth=M,t.lineCap=W,t.lineJoin=H,t.setLineDash)switch(q){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(re),t.lineDashOffset=oe;break;case"solid":case"double":t.setLineDash([])}if("center"!==Z){if(t.save(),t.lineWidth*=2,"inside"===Z)d?t.clip(v):t.clip();else{var Ae=new Path2D;Ae.rect(-o/2-M,-l/2-M,o+2*M,l+2*M),Ae.addPath(v),t.clip(Ae,"evenodd")}d?t.stroke(v):t.stroke(),t.restore()}else d?t.stroke(v):t.stroke();if("double"===q){t.lineWidth=M/3;var de=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(v):t.stroke(),t.globalCompositeOperation=de}t.setLineDash&&t.setLineDash([])}},lt=function(){if(te>0){if(t.lineWidth=te,t.lineCap="butt",t.setLineDash)switch(pe){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}var Ae=h;d&&(Ae={x:0,y:0});var de=s.getNodeShape(e),Le=M;"inside"===Z&&(Le=0),"outside"===Z&&(Le*=2);var Xe,qe=(o+Le+(te+me))/o,Ke=(l+Le+(te+me))/l,Ve=o*qe,Je=l*Ke,Ge=s.nodeShapes[de].points;if(d&&(Xe=ye(Ve,Je,de,Ge).path),"ellipse"===de)s.drawEllipsePath(Xe||t,Ae.x,Ae.y,Ve,Je);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(de)){var ct=0,Yt=0,kt=0;"round-diamond"===de?ct=1.4*(Le+me+te):"round-heptagon"===de?(ct=1.075*(Le+me+te),kt=-(Le/2+me+te)/35):"round-hexagon"===de?ct=1.12*(Le+me+te):"round-pentagon"===de?(ct=1.13*(Le+me+te),kt=-(Le/2+me+te)/15):"round-tag"===de?(ct=1.12*(Le+me+te),Yt=.07*(Le/2+te+me)):"round-triangle"===de&&(ct=(Le+me+te)*(Math.PI/2),kt=-(Le+me/2+te)/Math.PI),0!==ct&&(Ve=o*(qe=(o+ct)/o),["round-hexagon","round-tag"].includes(de)||(Je=l*(Ke=(l+ct)/l)));for(var Dt=Ve/2,_t=Je/2,Pt=(De="auto"===De?Ms(Ve,Je):De)+(Le+te+me)/2,Ht=new Array(Ge.length/2),lr=new Array(Ge.length/2),ar=0;ar0){if(n=n||a.position(),null==i||null==s){var d=a.padding();i=a.width()+2*d,s=a.height()+2*d}this.colorFillStyle(r,f[0],f[1],f[2],u),this.nodeShapes[h].draw(r,n.x,n.y,i+2*l,s+2*l,c),r.fill()}}}};Oa.drawNodeOverlay=Bu("overlay"),Oa.drawNodeUnderlay=Bu("underlay"),Oa.hasPie=function(t){return(t=t[0])._private.hasPie},Oa.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=a.x,o=a.y,l=e.width(),u=e.height(),f=Math.min(l,u)/2,h=0;this.usePaths()&&(s=0,o=0),"%"===i.units?f*=i.pfValue:void 0!==i.pfValue&&(f=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var v=e.pstyle("pie-"+d+"-background-size").value,y=e.pstyle("pie-"+d+"-background-color").value,p=e.pstyle("pie-"+d+"-background-opacity").value*r,g=v/100;g+h>1&&(g=1-h);var m=1.5*Math.PI+2*Math.PI*h,w=m+2*Math.PI*g;0===v||h>=1||h+g>1||(t.beginPath(),t.moveTo(s,o),t.arc(s,o,f,m,w),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],p),t.fill(),h+=g)}};for(var jt={getPixelRatio:function(){var t=this.data.contexts[0];return null!=this.forcedPixelRatio?this.forcedPixelRatio:(this.cy.window().devicePixelRatio||1)/(t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)},paintCache:function(t){for(var a,e=this.paintCaches=this.paintCaches||[],r=!0,n=0;ns.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!h&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var m=l.style(),b=l.zoom(),w=void 0!==n?n:b,T=l.pan(),x={x:T.x,y:T.y},E={zoom:b,pan:{x:T.x,y:T.y}},D=s.prevViewport;!(void 0===D||E.zoom!==D.zoom||E.pan.x!==D.pan.x||E.pan.y!==D.pan.y)&&!(y&&!v)&&(s.motionBlurPxRatio=1),i&&(x=i),w*=o,x.x*=o,x.y*=o;var A=s.getCachedZSortedEles();function B(Se,Re,Fe,He,ze){var We=Se.globalCompositeOperation;Se.globalCompositeOperation="destination-out",s.colorFillStyle(Se,255,255,255,s.motionBlurTransparency),Se.fillRect(Re,Fe,He,ze),Se.globalCompositeOperation=We}function M(Se,Re){var Fe,He,ze,We;s.clearingMotionBlur||Se!==u.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]&&Se!==u.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]?(Fe=x,He=w,ze=s.canvasWidth,We=s.canvasHeight):(Fe={x:T.x*d,y:T.y*d},He=b*d,ze=s.canvasWidth*d,We=s.canvasHeight*d),Se.setTransform(1,0,0,1,0,0),"motionBlur"===Re?B(Se,0,0,ze,We):!e&&(void 0===Re||Re)&&Se.clearRect(0,0,ze,We),r||(Se.translate(Fe.x,Fe.y),Se.scale(He,He)),i&&Se.translate(i.x,i.y),n&&Se.scale(n,n)}if(h||(s.textureDrawLastFrame=!1),h){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=l.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var $=s.data.bufferContexts[s.TEXTURE_BUFFER];$.setTransform(1,0,0,1,0,0),$.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:$,drawOnlyNodeLayer:!0,forcedPxRatio:o*s.textureMult}),(E=s.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:s.canvasWidth,height:s.canvasHeight}).mpan={x:(0-E.pan.x)/E.zoom,y:(0-E.pan.y)/E.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var q=s.textureCache.texture;E=s.textureCache.viewport,(k=u.contexts[s.NODE]).setTransform(1,0,0,1,0,0),c?B(k,0,0,E.width,E.height):k.clearRect(0,0,E.width,E.height);var H=m.core("outside-texture-bg-color").value,W=m.core("outside-texture-bg-opacity").value;s.colorFillStyle(k,H[0],H[1],H[2],W),k.fillRect(0,0,E.width,E.height),b=l.zoom(),M(k,!1),k.clearRect(E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o),k.drawImage(q,E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o)}else s.textureOnViewport&&!e&&(s.textureCache=null);var Z=l.extent(),re=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),oe=s.hideEdgesOnViewport&&re,ae=[];if(ae[s.NODE]=!f[s.NODE]&&c&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,ae[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),ae[s.DRAG]=!f[s.DRAG]&&c&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,ae[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||a||ae[s.NODE]){var te=c&&!ae[s.NODE]&&1!==d;M(k=e||(te?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:u.contexts[s.NODE]),c&&!te?"motionBlur":void 0),oe?s.drawCachedNodes(k,A.nondrag,o,Z):s.drawLayeredElements(k,A.nondrag,o,Z),s.debug&&s.drawDebugPoints(k,A.nondrag),!r&&!c&&(f[s.NODE]=!1)}if(!a&&(f[s.DRAG]||r||ae[s.DRAG])&&(te=c&&!ae[s.DRAG]&&1!==d,M(k=e||(te?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:u.contexts[s.DRAG]),c&&!te?"motionBlur":void 0),oe?s.drawCachedNodes(k,A.drag,o,Z):s.drawCachedElements(k,A.drag,o,Z),s.debug&&s.drawDebugPoints(k,A.drag),!r&&!c&&(f[s.DRAG]=!1)),s.showFps||!a&&f[s.SELECT_BOX]&&!r){var k;if(M(k=e||u.contexts[s.SELECT_BOX]),1==s.selection[4]&&(s.hoverData.selecting||s.touchData.selecting)){b=s.cy.zoom();var pe=m.core("selection-box-border-width").value/b;k.lineWidth=pe,k.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",k.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),pe>0&&(k.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",k.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(u.bgActivePosistion&&!s.hoverData.selecting){b=s.cy.zoom();var xe=u.bgActivePosistion;k.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",k.beginPath(),k.arc(xe.x,xe.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),k.fill()}var me=s.lastRedrawTime;if(s.showFps&&me){me=Math.round(me);var De=Math.round(1e3/me);k.setTransform(1,0,0,1,0,0),k.fillStyle="rgba(255, 0, 0, 0.75)",k.strokeStyle="rgba(255, 0, 0, 0.75)",k.lineWidth=1,k.fillText("1 frame = "+me+" ms = "+De+" fps",0,20),k.strokeRect(0,30,250,20),k.fillRect(0,30,250*Math.min(De/60,1),20)}r||(f[s.SELECT_BOX]=!1)}if(c&&1!==d){var ye=u.contexts[s.DRAG],Oe=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],Ye=function(Re,Fe,He){Re.setTransform(1,0,0,1,0,0),He||!g?Re.clearRect(0,0,s.canvasWidth,s.canvasHeight):B(Re,0,0,s.canvasWidth,s.canvasHeight),Re.drawImage(Fe,0,0,s.canvasWidth*d,s.canvasHeight*d,0,0,s.canvasWidth,s.canvasHeight)};(f[s.NODE]||ae[s.NODE])&&(Ye(u.contexts[s.NODE],s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],ae[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||ae[s.DRAG])&&(Ye(ye,Oe,ae[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=E,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),c&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!h,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},100)),e||l.emit("render")}},Vr={drawPolygonPath:function(t,e,r,a,n,i){var s=a/2,o=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*i[0],r+o*i[1]);for(var l=1;l0&&s>0){d.clearRect(0,0,i,s),d.globalCompositeOperation="source-over";var v=this.getCachedZSortedEles();if(t.full)d.translate(-a.x1*u,-a.y1*u),d.scale(u,u),this.drawElements(d,v),d.scale(1/u,1/u),d.translate(a.x1*u,a.y1*u);else{var y=e.pan(),p={x:y.x*u,y:y.y*u};u*=e.zoom(),d.translate(p.x,p.y),d.scale(u,u),this.drawElements(d,v),d.scale(1/u,1/u),d.translate(-p.x,-p.y)}t.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=t.bg,d.rect(0,0,i,s),d.fill())}return c},ln.png=function(t){return Uu(t,this.bufferCanvasImage(t),"image/png")},ln.jpg=function(t){return Uu(t,this.bufferCanvasImage(t),"image/jpeg")};var gp=Yu,it=Yu.prototype;function Yu(t){var e=this,a=e.cy.window().document;e.data={canvases:new Array(it.CANVAS_LAYERS),contexts:new Array(it.CANVAS_LAYERS),canvasNeedsRedraw:new Array(it.CANVAS_LAYERS),bufferCanvases:new Array(it.BUFFER_COUNT),bufferContexts:new Array(it.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";e.data.canvasContainer=a.createElement("div");var s=e.data.canvasContainer.style;e.data.canvasContainer.style[n]=i,s.position="relative",s.zIndex="0",s.overflow="hidden";var o=t.cy.container();o.appendChild(e.data.canvasContainer),o.style[n]=i;var l={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};Xt()&&(l["-ms-touch-action"]="none",l["touch-action"]="none");for(var u=0;u"u"?"undefined":P(OffscreenCanvas))?r=new OffscreenCanvas(t,e):((r=this.cy.window().document.createElement("canvas")).width=t,r.height=e),r},[Mu,br,Lr,Qi,ta,Oa,jt,Vr,ln,{nodeShapeImpl:function(t,e,r,a,n,i,s,o){switch(t){case"ellipse":return this.drawEllipsePath(e,r,a,n,i);case"polygon":return this.drawPolygonPath(e,r,a,n,i,s);case"round-polygon":return this.drawRoundPolygonPath(e,r,a,n,i,s,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,a,n,i,o);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,a,n,i,s,o);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,a,n,i,o);case"barrel":return this.drawBarrelPath(e,r,a,n,i)}}}].forEach(function(t){Ze(it,t)});var mp=[{type:"layout",extensions:Cg},{type:"renderer",extensions:[{name:"null",impl:ou},{name:"base",impl:Su},{name:"canvas",impl:gp}]}],Hu={},Xu={};function Wu(t,e,r){var a=r,n=function(D){ot("Can not register `"+e+"` for `"+t+"` since `"+D+"` already exists in the prototype and can not be overridden")};if("core"===t){if(an.prototype[e])return n(e);an.prototype[e]=r}else if("collection"===t){if(It.prototype[e])return n(e);It.prototype[e]=r}else if("layout"===t){for(var i=function(D){this.options=D,r.call(this,D),J(this._private)||(this._private={}),this._private.cy=D.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(r.prototype),o=[],l=0;l"u"&&(Z.yylloc={});var ae=Z.yylloc;A.push(ae);var Se,te=Z.options&&Z.options.ranges;this.parseError="function"==typeof re.yy.parseError?re.yy.parseError:Object.getPrototypeOf(this).parseError;for(var pe,xe,me,De,j,he,Oe,ve={};;){if(this.defaultActions[xe=E[E.length-1]]?me=this.defaultActions[xe]:((null===pe||typeof pe>"u")&&(Se=void 0,"number"!=typeof(Se=D.pop()||Z.lex()||1)&&(Se instanceof Array&&(Se=(D=Se).pop()),Se=this.symbols_[Se]||Se),pe=Se),me=B[xe]&&B[xe][pe]),typeof me>"u"||!me.length||!me[0]){var Ye;for(j in Oe=[],B[xe])this.terminals_[j]&&j>2&&Oe.push("'"+this.terminals_[j]+"'");Ye=Z.showPosition?"Parse error on line "+($+1)+":\n"+Z.showPosition()+"\nExpecting "+Oe.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":"Parse error on line "+($+1)+": Unexpected "+(1==pe?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(Ye,{text:Z.match,token:this.terminals_[pe]||pe,line:Z.yylineno,loc:ae,expected:Oe})}if(me[0]instanceof Array&&me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xe+", token: "+pe);switch(me[0]){case 1:E.push(pe),C.push(Z.yytext),A.push(Z.yylloc),E.push(me[1]),pe=null,k=Z.yyleng,M=Z.yytext,$=Z.yylineno,ae=Z.yylloc;break;case 2:if(ve.$=C[C.length-(he=this.productions_[me[1]][1])],ve._$={first_line:A[A.length-(he||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(he||1)].first_column,last_column:A[A.length-1].last_column},te&&(ve._$.range=[A[A.length-(he||1)].range[0],A[A.length-1].range[1]]),typeof(De=this.performAction.apply(ve,[M,k,$,re.yy,me[1],C,A].concat(W)))<"u")return De;he&&(E=E.slice(0,-1*he*2),C=C.slice(0,-1*he),A=A.slice(0,-1*he)),E.push(this.productions_[me[1]][0]),C.push(ve.$),A.push(ve._$),E.push(B[E[E.length-2]][E[E.length-1]]);break;case 3:return!0}}return!0}};function b(){this.yy={}}return g.lexer={EOF:1,parseError:function(x,E){if(!this.yy.parser)throw new Error(x);this.yy.parser.parseError(x,E)},setInput:function(T,x){return this.yy=x||this.yy||{},this._input=T,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},input:function(){var T=this._input[0];return this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T,T.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),T},unput:function(T){var x=T.length,E=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var D=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),E.length-1&&(this.yylineno-=E.length-1);var C=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:E?(E.length===D.length?this.yylloc.first_column:0)+D[D.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(T){this.unput(this.match.slice(T))},pastInput:function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var T=this.pastInput(),x=new Array(T.length+1).join("-");return T+this.upcomingInput()+"\n"+x+"^"},test_match:function(T,x){var E,D,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),(D=T[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=D.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:D?D[D.length-1].length-D[D.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,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(T[0].length),this.matched+=T[0],E=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var A in C)this[A]=C[A];return!1}return!1},next:function(){if(this.done)return this.EOF;var T,x,E,D;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),A=0;Ax[0].length)){if(x=E,D=A,this.options.backtrack_lexer){if(!1!==(T=this.test_match(E,C[A])))return T;if(this._backtrack){x=!1;continue}return!1}if(!this.options.flex)break}return x?!1!==(T=this.test_match(x,C[D]))&&T:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return(x=this.conditionStack.length-1-Math.abs(x||0))>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(x,E,D,C){switch(D){case 0:return x.getLogger().trace("Found comment",E.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:x.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return x.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:x.getLogger().trace("end icon"),this.popState();break;case 10:return x.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return x.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return x.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return x.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:x.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return x.getLogger().trace("description:",E.yytext),"NODE_DESCR";case 27:return this.popState(),x.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),x.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),x.getLogger().trace("node end ...",E.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),x.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),x.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return x.getLogger().trace("Long description:",E.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},b.prototype=g,g.Parser=b,new b}());rs.parser=rs;const Ap=rs;let ur=[],_u=0,as={};const Ct={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Rp={clear:()=>{ur=[],_u=0,as={}},addNode:(t,e,r,a)=>{var n,i;z.l.info("addNode",t,e,r,a);const s=(0,z.c)();let o=(null==(n=s.mindmap)?void 0:n.padding)??z.B.mindmap.padding;switch(a){case Ct.ROUNDED_RECT:case Ct.RECT:case Ct.HEXAGON:o*=2}const l={id:_u++,nodeId:(0,z.d)(e,s),level:t,descr:(0,z.d)(r,s),type:a,children:[],width:(null==(i=s.mindmap)?void 0:i.maxNodeWidth)??z.B.mindmap.maxNodeWidth,padding:o},u=function(t){for(let e=ur.length-1;e>=0;e--)if(ur[e].levelur.length>0?ur[0]:null,nodeType:Ct,getType:(t,e)=>{switch(z.l.debug("In get type",t,e),t){case"[":return Ct.RECT;case"(":return")"===e?Ct.ROUNDED_RECT:Ct.CLOUD;case"((":return Ct.CIRCLE;case")":return Ct.CLOUD;case"))":return Ct.BANG;case"{{":return Ct.HEXAGON;default:return Ct.DEFAULT}},setElementForId:(t,e)=>{as[t]=e},decorateNode:t=>{if(!t)return;const e=(0,z.c)(),r=ur[ur.length-1];t.icon&&(r.icon=(0,z.d)(t.icon,e)),t.class&&(r.class=(0,z.d)(t.class,e))},type2Str:t=>{switch(t){case Ct.DEFAULT:return"no-border";case Ct.RECT:return"rect";case Ct.ROUNDED_RECT:return"rounded-rect";case Ct.CIRCLE:return"circle";case Ct.CLOUD:return"cloud";case Ct.BANG:return"bang";case Ct.HEXAGON:return"hexgon";default:return"no-border"}},getLogger:()=>z.l,getElementById:t=>as[t]},Yp=function(t,e,r,a,n){const i=n.htmlLabels,s=a%11,o=e.append("g");r.section=s;let l="section-"+s;s<0&&(l+=" section-root"),o.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+l);const u=o.append("g"),f=o.append("g"),h=r.descr.replace(/()/g,"\n");(0,Cp.a)(f,h,{useHtmlLabels:i,width:r.width,classes:"mindmap-node-label"}),i||f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const c=f.node().getBBox(),[d]=(0,z.D)(n.fontSize);if(r.height=c.height+1.1*d*.5+r.padding,r.width=c.width+2*r.padding,r.icon)if(r.type===t.nodeType.CIRCLE)r.height+=50,r.width+=50,o.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;const v=r.height;r.height=Math.max(v,60);const y=Math.abs(r.height-v);o.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+y/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+(25+r.width/2)+", "+(y/2+r.padding/2)+")")}else f.attr("transform",i?"translate("+(r.width-c.width)/2+", "+(r.height-c.height)/2+")":"translate("+r.width/2+", "+r.padding/2+")");switch(r.type){case t.nodeType.DEFAULT:!function(t,e,r,a){e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 ${r.height-5} v${10-r.height} q0,-5 5,-5 h${r.width-10} q5,0 5,5 v${r.height-5} H0 Z`),e.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)}(t,u,r,s);break;case t.nodeType.ROUNDED_RECT:!function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)}(t,u,r);break;case t.nodeType.RECT:!function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("width",r.width)}(t,u,r);break;case t.nodeType.CIRCLE:u.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)}(t,u,r);break;case t.nodeType.CLOUD:!function(t,e,r){const a=r.width,n=r.height,i=.15*a,s=.25*a,o=.35*a,l=.2*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 0 0,1 ${.25*a},${-1*a*.1}\n a${o},${o} 1 0,1 ${.4*a},${-1*a*.1}\n a${s},${s} 1 0,1 ${.35*a},${1*a*.2}\n\n a${i},${i} 1 0,1 ${.15*a},${1*n*.35}\n a${l},${l} 1 0,1 ${-1*a*.15},${1*n*.65}\n\n a${s},${i} 1 0,1 ${-1*a*.25},${.15*a}\n a${o},${o} 1 0,1 ${-1*a*.5},0\n a${i},${i} 1 0,1 ${-1*a*.25},${-1*a*.15}\n\n a${i},${i} 1 0,1 ${-1*a*.1},${-1*n*.35}\n a${l},${l} 1 0,1 ${.1*a},${-1*n*.65}\n\n H0 V0 Z`)}(t,u,r);break;case t.nodeType.BANG:!function(t,e,r){const a=r.width,n=r.height,i=.15*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${.25*a},${-1*n*.1}\n a${i},${i} 1 0,0 ${.25*a},0\n a${i},${i} 1 0,0 ${.25*a},0\n a${i},${i} 1 0,0 ${.25*a},${1*n*.1}\n\n a${i},${i} 1 0,0 ${.15*a},${1*n*.33}\n a${.8*i},${.8*i} 1 0,0 0,${1*n*.34}\n a${i},${i} 1 0,0 ${-1*a*.15},${1*n*.33}\n\n a${i},${i} 1 0,0 ${-1*a*.25},${.15*n}\n a${i},${i} 1 0,0 ${-1*a*.25},0\n a${i},${i} 1 0,0 ${-1*a*.25},0\n a${i},${i} 1 0,0 ${-1*a*.25},${-1*n*.15}\n\n a${i},${i} 1 0,0 ${-1*a*.1},${-1*n*.33}\n a${.8*i},${.8*i} 1 0,0 0,${-1*n*.34}\n a${i},${i} 1 0,0 ${.1*a},${-1*n*.33}\n\n H0 V0 Z`)}(t,u,r);break;case t.nodeType.HEXAGON:!function(t,e,r){const a=r.height,i=a/4,s=r.width-r.padding+2*i;!function Vp(t,e,r,a,n){t.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("transform","translate("+(n.width-e)/2+", "+r+")")}(e,s,a,[{x:i,y:0},{x:s-i,y:0},{x:s,y:-a/2},{x:s-i,y:-a},{x:i,y:-a},{x:0,y:-a/2}],r)}(0,u,r)}return t.setElementForId(r.id,o),r.height};function Zu(t,e,r,a,n){Yp(t,e,r,a,n),r.children&&r.children.forEach((i,s)=>{Zu(t,e,i,a<0?s:a,n)})}function Qu(t,e,r,a){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:a,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(n=>{Qu(n,e,r,a+1),e.add({group:"edges",data:{id:`${t.id}_${n.id}`,source:t.id,target:n.id,depth:a,section:n.section}})})}function Wp(t,e){return new Promise(r=>{const a=(0,Tp.Ys)("body").append("div").attr("id","cy").attr("style","display:none"),n=Ur({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),Qu(t,n,e,0),n.nodes().forEach(function(i){i.layoutDimensions=()=>{const s=i.data();return{w:s.width,h:s.height}}}),n.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),n.ready(i=>{z.l.info("Ready",i),r(n)})})}Ur.use(xp);const Kp={draw:function(){var t=(0,be.Z)(function*(e,r,a,n){var i,s;z.l.debug("Rendering mindmap diagram\n"+e);const o=n.db,l=o.getMindmap();if(!l)return;const u=(0,z.c)();u.htmlLabels=!1;const f=(0,z.A)(r),h=f.append("g");h.attr("class","mindmap-edges");const c=f.append("g");c.attr("class","mindmap-nodes"),Zu(o,c,l,-1,u);const d=yield Wp(l,u);(function Xp(t,e){e.edges().map((r,a)=>{const n=r.data();if(r[0]._private.bodyBounds){const i=r[0]._private.rscratch;z.l.trace("Edge: ",a,n),t.insert("path").attr("d",`M ${i.startX},${i.startY} L ${i.midX},${i.midY} L${i.endX},${i.endY} `).attr("class","edge section-edge-"+n.section+" edge-depth-"+n.depth)}})})(h,d),function qp(t,e){e.nodes().map((r,a)=>{const n=r.data();n.x=r.position().x,n.y=r.position().y,function(t,e){t.getElementById(e.id).attr("transform","translate("+(e.x||0)+","+(e.y||0)+")")}(t,n);const i=t.getElementById(n.nodeId);z.l.info("Id:",a,"Position: (",r.position().x,", ",r.position().y,")",n),i.attr("transform",`translate(${r.position().x-n.width/2}, ${r.position().y-n.height/2})`),i.attr("attr",`apa-${a})`)})}(o,d),(0,z.o)(void 0,f,(null==(i=u.mindmap)?void 0:i.padding)??z.B.mindmap.padding,(null==(s=u.mindmap)?void 0:s.useMaxWidth)??z.B.mindmap.useMaxWidth)});return function(r,a,n,i){return t.apply(this,arguments)}}()},Zp={db:Rp,renderer:Kp,parser:Ap,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let r=0;r68?1900:2e3)},h=function(y){return function(_){this[y]=+_}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(_){if(!_||"Z"===_)return 0;var I=_.match(/([+-]|\d\d)/g),A=60*I[1]+(+I[2]||0);return 0===A?0:"+"===I[0]?-A:A}(y)}],V=function(y){var _=E[y];return _&&(_.indexOf?_:_.s.concat(_.f))},H=function(y,_){var I,A=E.meridiem;if(A){for(var z=1;z<=24;z+=1)if(y.indexOf(A(z,0,_))>-1){I=z>12;break}}else I=y===(_?"pm":"PM");return I},vt={A:[X,function(y){this.afternoon=H(y,!1)}],a:[X,function(y){this.afternoon=H(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[at,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[x,h("seconds")],ss:[x,h("seconds")],m:[x,h("minutes")],mm:[x,h("minutes")],H:[x,h("hours")],h:[x,h("hours")],HH:[x,h("hours")],hh:[x,h("hours")],D:[x,h("day")],DD:[at,h("day")],Do:[X,function(y){var _=E.ordinal,I=y.match(/\d+/);if(this.day=I[0],_)for(var A=1;A<=31;A+=1)_(A).replace(/\[|\]/g,"")===y&&(this.day=A)}],M:[x,h("month")],MM:[at,h("month")],MMM:[X,function(y){var _=V("months"),I=(V("monthsShort")||_.map(function(A){return A.slice(0,3)})).indexOf(y)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[X,function(y){var _=V("months").indexOf(y)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,h("year")],YY:[at,function(y){this.year=ut(y)}],YYYY:[/\d{4}/,h("year")],Z:m,ZZ:m};return function(y,_,I){I.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(ut=y.parseTwoDigitYear);var A=_.prototype,z=A.parse;A.parse=function(G){var dt=G.date,$=G.utc,B=G.args;this.$u=$;var K=B[1];if("string"==typeof K){var lt=!0===B[2],tt=!0===B[3],R=lt||tt,N=B[2];tt&&(N=B[2]),E=this.$locale(),!lt&&N&&(E=I.Ls[N]),this.$d=function(wt,pt,ht){try{if(["x","X"].indexOf(pt)>-1)return new Date(("X"===pt?1e3:1)*wt);var Q=function Z(y){var I;I=E&&E.formats;for(var A=(y=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(lt,tt,R){var N=R&&R.toUpperCase();return tt||I[R]||J[R]||I[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(et,st,ft){return st||ft.slice(1)})})).match(O),z=A.length,G=0;G0?Dt-1:Mt.getMonth());var It=Jt||0,Yt=$t||0,Ot=te||0,Wt=ee||0;return Vt?new Date(Date.UTC(At,Et,Lt,It,Yt,Ot,Wt+60*Vt.offset*1e3)):ht?new Date(Date.UTC(At,Et,Lt,It,Yt,Ot,Wt)):new Date(At,Et,Lt,It,Yt,Ot,Wt)}catch{return new Date("")}}(dt,K,$),this.init(),N&&!0!==N&&(this.$L=this.locale(N).$L),R&&dt!=this.format(K)&&(this.$d=new Date("")),E={}}else if(K instanceof Array)for(var et=K.length,st=1;st<=et;st+=1){B[1]=K[st-1];var ft=I.apply(this,B);if(ft.isValid()){this.$d=ft.$d,this.$L=ft.$L,this.init();break}st===et&&(this.$d=new Date(""))}else z.call(this,G)}}}()},7517:function(_t){_t.exports=function(){"use strict";var J="day";return function(O,at,x){var X=function(h){return h.add(4-h.isoWeekday(),J)},E=at.prototype;E.isoWeekYear=function(){return X(this).year()},E.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),J);var m,H,vt,Z=X(this),y=(m=this.isoWeekYear(),vt=4-(H=(this.$u?x.utc:x)().year(m).startOf("year")).isoWeekday(),H.isoWeekday()>4&&(vt+=7),H.add(vt,J));return Z.diff(y,"week")+1},E.isoWeekday=function(h){return this.$utils().u(h)?this.day()||7:this.day(this.day()%7?h:h-7)};var ut=E.startOf;E.startOf=function(h,m){var V=this.$utils(),H=!!V.u(m)||m;return"isoweek"===V.p(h)?H?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):ut.bind(this)(h,m)}}}()},6831:(_t,J,O)=>{"use strict";O.r(J),O.d(J,{diagram:()=>Ye});var at=O(6780),x=O(1764),X=O(7517),E=O(274),ut=O(1861),h=O(9037),m=O(8586),H=(O(2735),function(){var t=function(v,n,u,d){for(u=u||{},d=v.length;d--;u[v[d]]=n);return u},s=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],i=[1,25],r=[1,26],a=[1,27],k=[1,28],f=[1,29],q=[1,30],ct=[1,31],ot=[1,9],W=[1,10],U=[1,11],mt=[1,12],nt=[1,13],it=[1,14],S=[1,15],zt=[1,16],Nt=[1,18],Ut=[1,19],Zt=[1,20],jt=[1,21],Xt=[1,22],Ht=[1,24],Gt=[1,32],g={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(n,u,d,c,p,e,P){var l=e.length-1;switch(p){case 1:return e[l-1];case 2:case 6:case 7:this.$=[];break;case 3:e[l-1].push(e[l]),this.$=e[l-1];break;case 4:case 5:this.$=e[l];break;case 8:c.setWeekday("monday");break;case 9:c.setWeekday("tuesday");break;case 10:c.setWeekday("wednesday");break;case 11:c.setWeekday("thursday");break;case 12:c.setWeekday("friday");break;case 13:c.setWeekday("saturday");break;case 14:c.setWeekday("sunday");break;case 15:c.setDateFormat(e[l].substr(11)),this.$=e[l].substr(11);break;case 16:c.enableInclusiveEndDates(),this.$=e[l].substr(18);break;case 17:c.TopAxis(),this.$=e[l].substr(8);break;case 18:c.setAxisFormat(e[l].substr(11)),this.$=e[l].substr(11);break;case 19:c.setTickInterval(e[l].substr(13)),this.$=e[l].substr(13);break;case 20:c.setExcludes(e[l].substr(9)),this.$=e[l].substr(9);break;case 21:c.setIncludes(e[l].substr(9)),this.$=e[l].substr(9);break;case 22:c.setTodayMarker(e[l].substr(12)),this.$=e[l].substr(12);break;case 24:c.setDiagramTitle(e[l].substr(6)),this.$=e[l].substr(6);break;case 25:this.$=e[l].trim(),c.setAccTitle(this.$);break;case 26:case 27:this.$=e[l].trim(),c.setAccDescription(this.$);break;case 28:c.addSection(e[l].substr(8)),this.$=e[l].substr(8);break;case 30:c.addTask(e[l-1],e[l]),this.$="task";break;case 31:this.$=e[l-1],c.setClickEvent(e[l-1],e[l],null);break;case 32:this.$=e[l-2],c.setClickEvent(e[l-2],e[l-1],e[l]);break;case 33:this.$=e[l-2],c.setClickEvent(e[l-2],e[l-1],null),c.setLink(e[l-2],e[l]);break;case 34:this.$=e[l-3],c.setClickEvent(e[l-3],e[l-2],e[l-1]),c.setLink(e[l-3],e[l]);break;case 35:this.$=e[l-2],c.setClickEvent(e[l-2],e[l],null),c.setLink(e[l-2],e[l-1]);break;case 36:this.$=e[l-3],c.setClickEvent(e[l-3],e[l-1],e[l]),c.setLink(e[l-3],e[l-2]);break;case 37:this.$=e[l-1],c.setLink(e[l-1],e[l]);break;case 38:case 44:this.$=e[l-1]+" "+e[l];break;case 39:case 40:case 42:this.$=e[l-2]+" "+e[l-1]+" "+e[l];break;case 41:case 43:this.$=e[l-3]+" "+e[l-2]+" "+e[l-1]+" "+e[l]}},table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:r,14:a,15:k,16:f,17:q,18:ct,19:ot,20:W,21:U,22:mt,23:nt,24:it,25:S,26:zt,27:Nt,28:Ut,30:Zt,32:jt,33:Xt,34:23,35:Ht,37:Gt},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:33,11:17,12:i,13:r,14:a,15:k,16:f,17:q,18:ct,19:ot,20:W,21:U,22:mt,23:nt,24:it,25:S,26:zt,27:Nt,28:Ut,30:Zt,32:jt,33:Xt,34:23,35:Ht,37:Gt},t(s,[2,5]),t(s,[2,6]),t(s,[2,15]),t(s,[2,16]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),{29:[1,34]},{31:[1,35]},t(s,[2,27]),t(s,[2,28]),t(s,[2,29]),{36:[1,36]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),{38:[1,37],40:[1,38]},t(s,[2,4]),t(s,[2,25]),t(s,[2,26]),t(s,[2,30]),t(s,[2,31],{39:[1,39],40:[1,40]}),t(s,[2,37],{38:[1,41]}),t(s,[2,32],{40:[1,42]}),t(s,[2,33]),t(s,[2,35],{39:[1,43]}),t(s,[2,34]),t(s,[2,36])],defaultActions:{},parseError:function(n,u){if(!u.recoverable){var d=new Error(n);throw d.hash=u,d}this.trace(n)},parse:function(n){var d=[0],c=[],p=[null],e=[],P=this.table,l="",o=0,T=0,M=e.slice.call(arguments,1),D=Object.create(this.lexer),L={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(L.yy[Ft]=this.yy[Ft]);D.setInput(n,L.yy),L.yy.lexer=D,L.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var gt,Oe=D.options&&D.options.ranges;this.parseError="function"==typeof L.yy.parseError?L.yy.parseError:Object.getPrototypeOf(this).parseError;for(var j,xt,rt,ie,Kt,yt,Qt,St={};;){if(this.defaultActions[xt=d[d.length-1]]?rt=this.defaultActions[xt]:((null===j||typeof j>"u")&&(gt=void 0,"number"!=typeof(gt=c.pop()||D.lex()||1)&&(gt instanceof Array&&(gt=(c=gt).pop()),gt=this.symbols_[gt]||gt),j=gt),rt=P[xt]&&P[xt][j]),typeof rt>"u"||!rt.length||!rt[0]){var re;for(Kt in Qt=[],P[xt])this.terminals_[Kt]&&Kt>2&&Qt.push("'"+this.terminals_[Kt]+"'");re=D.showPosition?"Parse error on line "+(o+1)+":\n"+D.showPosition()+"\nExpecting "+Qt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==j?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(re,{text:D.match,token:this.terminals_[j]||j,line:D.yylineno,loc:Pt,expected:Qt})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+j);switch(rt[0]){case 1:d.push(j),p.push(D.yytext),e.push(D.yylloc),d.push(rt[1]),j=null,T=D.yyleng,l=D.yytext,o=D.yylineno,Pt=D.yylloc;break;case 2:if(St.$=p[p.length-(yt=this.productions_[rt[1]][1])],St._$={first_line:e[e.length-(yt||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(yt||1)].first_column,last_column:e[e.length-1].last_column},Oe&&(St._$.range=[e[e.length-(yt||1)].range[0],e[e.length-1].range[1]]),typeof(ie=this.performAction.apply(St,[l,T,o,L.yy,rt[1],p,e].concat(M)))<"u")return ie;yt&&(d=d.slice(0,-1*yt*2),p=p.slice(0,-1*yt),e=e.slice(0,-1*yt)),d.push(this.productions_[rt[1]][0]),p.push(St.$),e.push(St._$),d.push(P[d[d.length-2]][d[d.length-1]]);break;case 3:return!0}}return!0}};function b(){this.yy={}}return g.lexer={EOF:1,parseError:function(u,d){if(!this.yy.parser)throw new Error(u);this.yy.parser.parseError(u,d)},setInput:function(n,u){return this.yy=u||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},input: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},unput:function(n){var u=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var c=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),d.length-1&&(this.yylineno-=d.length-1);var p=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:d?(d.length===c.length?this.yylloc.first_column:0)+c[c.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var n=this.pastInput(),u=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+u+"^"},test_match:function(n,u){var d,c,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),(c=n[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.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],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var e in p)this[e]=p[e];return!1}return!1},next:function(){if(this.done)return this.EOF;var n,u,d,c;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),e=0;eu[0].length)){if(u=d,c=e,this.options.backtrack_lexer){if(!1!==(n=this.test_match(d,p[e])))return n;if(this._backtrack){u=!1;continue}return!1}if(!this.options.flex)break}return u?!1!==(n=this.test_match(u,p[c]))&&n:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return(u=this.conditionStack.length-1-Math.abs(u||0))>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,c,p){switch(c){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 40;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 22:return 39;case 23:this.begin("click");break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}},b.prototype=g,g.Parser=b,new b}());H.parser=H;const vt=H;x.extend(X),x.extend(E),x.extend(ut);let _,Z="",y="",I="",A=[],z=[],G={},dt=[],$=[],B="",K="";const lt=["active","done","crit","milestone"];let tt=[],R=!1,N=!1,et="sunday",st=0;const ce=function(t,s,i,r){return!r.includes(t.format(s.trim()))&&(!!(t.isoWeekday()>=6&&i.includes("weekends")||i.includes(t.format("dddd").toLowerCase()))||i.includes(t.format(s.trim())))},oe=function(t,s,i,r){if(!i.length||t.manualEndTime)return;let a,k;a=t.startTime instanceof Date?x(t.startTime):x(t.startTime,s,!0),a=a.add(1,"d"),k=t.endTime instanceof Date?x(t.endTime):x(t.endTime,s,!0);const[f,q]=be(a,k,s,i,r);t.endTime=f.toDate(),t.renderEndTime=q},be=function(t,s,i,r,a){let k=!1,f=null;for(;t<=s;)k||(f=s.toDate()),k=ce(t,i,r,a),k&&(s=s.add(1,"d")),t=t.add(1,"d");return[s,f]},se=function(t,s,i){i=i.trim();const a=/^after\s+(?[\d\w- ]+)/.exec(i);if(null!==a){let f=null;for(const ct of a.groups.ids.split(" ")){let ot=bt(ct);void 0!==ot&&(!f||ot.endTime>f.endTime)&&(f=ot)}if(f)return f.endTime;const q=new Date;return q.setHours(0,0,0,0),q}let k=x(i,s.trim(),!0);if(k.isValid())return k.toDate();{h.l.debug("Invalid date:"+i),h.l.debug("With date format:"+s.trim());const f=new Date(i);if(void 0===f||isNaN(f.getTime())||f.getFullYear()<-1e4||f.getFullYear()>1e4)throw new Error("Invalid date:"+i);return f}},le=function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==s?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},ue=function(t,s,i,r=!1){i=i.trim();const k=/^until\s+(?[\d\w- ]+)/.exec(i);if(null!==k){let W=null;for(const mt of k.groups.ids.split(" ")){let nt=bt(mt);void 0!==nt&&(!W||nt.startTime{let i=[...t].map(()=>-1/0),r=[...t].sort((k,f)=>k.startTime-f.startTime||k.order-f.order),a=0;for(const k of r)for(let f=0;f=i[f]){i[f]=k.endTime,k.order=f+s,f>a&&(a=f);break}return a};let kt;const Ye={parser:vt,db:{getConfig:()=>(0,h.c)().gantt,clear:function(){dt=[],$=[],B="",tt=[],Bt=0,ne=void 0,Rt=void 0,F=[],Z="",y="",K="",_=void 0,I="",A=[],z=[],R=!1,N=!1,st=0,G={},(0,h.v)(),et="sunday"},setDateFormat:function(t){Z=t},getDateFormat:function(){return Z},enableInclusiveEndDates:function(){R=!0},endDatesAreInclusive:function(){return R},enableTopAxis:function(){N=!0},topAxisEnabled:function(){return N},setAxisFormat:function(t){y=t},getAxisFormat:function(){return y},setTickInterval:function(t){_=t},getTickInterval:function(){return _},setTodayMarker:function(t){I=t},getTodayMarker:function(){return I},setAccTitle:h.s,getAccTitle:h.g,setDiagramTitle:h.q,getDiagramTitle:h.t,setDisplayMode:function(t){K=t},getDisplayMode:function(){return K},setAccDescription:h.b,getAccDescription:h.a,addSection:function(t){B=t,dt.push(t)},getSections:function(){return dt},getTasks:function(){let t=fe(),i=0;for(;!t&&i<10;)t=fe(),i++;return $=F,$},addTask:function(t,s){const i={section:B,type:B,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},r=function(t,s){let i;i=":"===s.substr(0,1)?s.substr(1,s.length):s;const r=i.split(","),a={};me(r,a,lt);for(let k=0;k{h.u.runFunc(s,...r)})}(r,s,i)}),he(t,"clickable")},setLink:function(t,s){let i=s;"loose"!==(0,h.c)().securityLevel&&(i=(0,at.N)(s)),t.split(",").forEach(function(r){void 0!==bt(r)&&(ke(r,()=>{window.open(i,"_self")}),G[r]=i)}),he(t,"clickable")},getLinks:function(){return G},bindFunctions:function(t){tt.forEach(function(s){s(t)})},parseDuration:le,isInvalidDate:ce,setWeekday:function(t){et=t},getWeekday:function(){return et}},renderer:{setConf:function(){h.l.debug("Something is calling, setConf, remove the call")},draw:function(t,s,i,r){const a=(0,h.c)().gantt,k=(0,h.c)().securityLevel;let f;"sandbox"===k&&(f=(0,m.Ys)("#i"+s));const q=(0,m.Ys)("sandbox"===k?f.nodes()[0].contentDocument.body:"body"),ct="sandbox"===k?f.nodes()[0].contentDocument:document,ot=ct.getElementById(s);kt=ot.parentElement.offsetWidth,void 0===kt&&(kt=1200),void 0!==a.useWidth&&(kt=a.useWidth);const W=r.db.getTasks();let U=[];for(const g of W)U.push(g.type);U=function Gt(g){const w={},b=[];for(let v=0,n=g.length;vw.type===g).length}ot.setAttribute("viewBox","0 0 "+kt+" "+nt);const it=q.select(`[id="${s}"]`),S=(0,m.Xf)().domain([(0,m.VV$)(W,function(g){return g.startTime}),(0,m.Fp7)(W,function(g){return g.endTime})]).rangeRound([0,kt-a.leftPadding-a.rightPadding]);W.sort(function zt(g,w){const b=g.startTime,v=w.startTime;let n=0;return b>v?n=1:be)&&(e=M);if(!p||!e)return;if(x(e).diff(x(p),"year")>5)return void h.l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const P=r.db.getDateFormat(),l=[];let o=null,T=x(p);for(;T.valueOf()<=e;)r.db.isInvalidDate(T,P,d,c)?o?o.end=T:o={start:T,end:T}:o&&(l.push(o),o=null),T=T.add(1,"d");it.append("g").selectAll("rect").data(l).enter().append("rect").attr("id",function(C){return"exclude-"+C.start.format("YYYY-MM-DD")}).attr("x",function(C){return S(C.start)+b}).attr("y",a.gridLineStartPadding).attr("width",function(C){const M=C.end.add(1,"day");return S(M)-S(C.start)}).attr("height",n-w-a.gridLineStartPadding).attr("transform-origin",function(C,M){return(S(C.start)+b+.5*(S(C.end)-S(C.start))).toString()+"px "+(M*g+.5*n).toString()+"px"}).attr("class","exclude-range")}(n,u,d,0,b,g,r.db.getExcludes(),r.db.getIncludes()),function jt(g,w,b,v){let n=(0,m.LLu)(S).tickSize(-v+w+a.gridLineStartPadding).tickFormat((0,m.i$Z)(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));const d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(null!==d){const c=d[1],p=d[2],e=r.db.getWeekday()||a.weekday;switch(p){case"millisecond":n.ticks(m.U8T.every(c));break;case"second":n.ticks(m.S1K.every(c));break;case"minute":n.ticks(m.Z_i.every(c));break;case"hour":n.ticks(m.WQD.every(c));break;case"day":n.ticks(m.rr1.every(c));break;case"week":n.ticks(ye[e].every(c));break;case"month":n.ticks(m.F0B.every(c))}}if(it.append("g").attr("class","grid").attr("transform","translate("+g+", "+(v-50)+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let c=(0,m.F5q)(S).tickSize(-v+w+a.gridLineStartPadding).tickFormat((0,m.i$Z)(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(null!==d){const p=d[1],e=d[2],P=r.db.getWeekday()||a.weekday;switch(e){case"millisecond":c.ticks(m.U8T.every(p));break;case"second":c.ticks(m.S1K.every(p));break;case"minute":c.ticks(m.Z_i.every(p));break;case"hour":c.ticks(m.WQD.every(p));break;case"day":c.ticks(m.rr1.every(p));break;case"week":c.ticks(ye[P].every(p));break;case"month":c.ticks(m.F0B.every(p))}}it.append("g").attr("class","grid").attr("transform","translate("+g+", "+w+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(d,u,0,b),function Ut(g,w,b,v,n,u,d){const p=[...new Set(g.map(o=>o.order))].map(o=>g.find(T=>T.order===o));it.append("g").selectAll("rect").data(p).enter().append("rect").attr("x",0).attr("y",function(o,T){return o.order*w+b-2}).attr("width",function(){return d-a.rightPadding/2}).attr("height",w).attr("class",function(o){for(const[T,Y]of U.entries())if(o.type===Y)return"section section"+T%a.numberSectionStyles;return"section section0"});const e=it.append("g").selectAll("rect").data(g).enter(),P=r.db.getLinks();if(e.append("rect").attr("id",function(o){return o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?S(o.startTime)+v+.5*(S(o.endTime)-S(o.startTime))-.5*n:S(o.startTime)+v}).attr("y",function(o,T){return o.order*w+b}).attr("width",function(o){return o.milestone?n:S(o.renderEndTime||o.endTime)-S(o.startTime)}).attr("height",n).attr("transform-origin",function(o,T){return T=o.order,(S(o.startTime)+v+.5*(S(o.endTime)-S(o.startTime))).toString()+"px "+(T*w+b+.5*n).toString()+"px"}).attr("class",function(o){let Y="";o.classes.length>0&&(Y=o.classes.join(" "));let C=0;for(const[D,L]of U.entries())o.type===L&&(C=D%a.numberSectionStyles);let M="";return o.active?o.crit?M+=" activeCrit":M=" active":o.done?M=o.crit?" doneCrit":" done":o.crit&&(M+=" crit"),0===M.length&&(M=" task"),o.milestone&&(M=" milestone "+M),M+=C,M+=" "+Y,"task"+M}),e.append("text").attr("id",function(o){return o.id+"-text"}).text(function(o){return o.task}).attr("font-size",a.fontSize).attr("x",function(o){let T=S(o.startTime),Y=S(o.renderEndTime||o.endTime);o.milestone&&(T+=.5*(S(o.endTime)-S(o.startTime))-.5*n),o.milestone&&(Y=T+n);const C=this.getBBox().width;return C>Y-T?Y+C+1.5*a.leftPadding>d?T+v-5:Y+v+5:(Y-T)/2+T+v}).attr("y",function(o,T){return o.order*w+a.barHeight/2+(a.fontSize/2-2)+b}).attr("text-height",n).attr("class",function(o){const T=S(o.startTime);let Y=S(o.endTime);o.milestone&&(Y=T+n);const C=this.getBBox().width;let M="";o.classes.length>0&&(M=o.classes.join(" "));let D=0;for(const[Ft,Pt]of U.entries())o.type===Pt&&(D=Ft%a.numberSectionStyles);let L="";return o.active&&(L=o.crit?"activeCritText"+D:"activeText"+D),o.done?L=o.crit?L+" doneCritText"+D:L+" doneText"+D:o.crit&&(L=L+" critText"+D),o.milestone&&(L+=" milestoneText"),C>Y-T?Y+C+1.5*a.leftPadding>d?M+" taskTextOutsideLeft taskTextOutside"+D+" "+L:M+" taskTextOutsideRight taskTextOutside"+D+" "+L+" width-"+C:M+" taskText taskText"+D+" "+L+" width-"+C}),"sandbox"===(0,h.c)().securityLevel){let o;o=(0,m.Ys)("#i"+s);const T=o.nodes()[0].contentDocument;e.filter(function(Y){return void 0!==P[Y.id]}).each(function(Y){var C=T.querySelector("#"+Y.id),M=T.querySelector("#"+Y.id+"-text");const D=C.parentNode;var L=T.createElement("a");L.setAttribute("xlink:href",P[Y.id]),L.setAttribute("target","_top"),D.appendChild(L),L.appendChild(C),L.appendChild(M)})}}(g,n,u,d,v,0,w),function Xt(g,w){let b=0;const v=Object.keys(mt).map(n=>[n,mt[n]]);it.append("g").selectAll("text").data(v).enter().append(function(n){const u=n[0].split(h.e.lineBreakRegex),d=-(u.length-1)/2,c=ct.createElementNS("http://www.w3.org/2000/svg","text");c.setAttribute("dy",d+"em");for(const[p,e]of u.entries()){const P=ct.createElementNS("http://www.w3.org/2000/svg","tspan");P.setAttribute("alignment-baseline","central"),P.setAttribute("x","10"),p>0&&P.setAttribute("dy","1em"),P.textContent=e,c.appendChild(P)}return c}).attr("x",10).attr("y",function(n,u){if(!(u>0))return n[1]*g/2+w;for(let d=0;d`\n .mermaid-main-font {\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n`}}}]); \ No newline at end of file +(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[153],{1861:function(_t){_t.exports=function(){"use strict";return function(J,O){var at=O.prototype,x=at.format;at.format=function(X){var E=this,ut=this.$locale();if(!this.isValid())return x.bind(this)(X);var h=this.$utils(),m=(X||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(V){switch(V){case"Q":return Math.ceil((E.$M+1)/3);case"Do":return ut.ordinal(E.$D);case"gggg":return E.weekYear();case"GGGG":return E.isoWeekYear();case"wo":return ut.ordinal(E.week(),"W");case"w":case"ww":return h.s(E.week(),"w"===V?1:2,"0");case"W":case"WW":return h.s(E.isoWeek(),"W"===V?1:2,"0");case"k":case"kk":return h.s(String(0===E.$H?24:E.$H),"k"===V?1:2,"0");case"X":return Math.floor(E.$d.getTime()/1e3);case"x":return E.$d.getTime();case"z":return"["+E.offsetName()+"]";case"zzz":return"["+E.offsetName("long")+"]";default:return V}});return x.bind(this)(m)}}}()},274:function(_t){_t.exports=function(){"use strict";var J={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},O=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,at=/\d\d/,x=/\d\d?/,X=/\d*[^-_:/,()\s\d]+/,E={},ut=function(y){return(y=+y)+(y>68?1900:2e3)},h=function(y){return function(_){this[y]=+_}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(_){if(!_||"Z"===_)return 0;var I=_.match(/([+-]|\d\d)/g),A=60*I[1]+(+I[2]||0);return 0===A?0:"+"===I[0]?-A:A}(y)}],V=function(y){var _=E[y];return _&&(_.indexOf?_:_.s.concat(_.f))},H=function(y,_){var I,A=E.meridiem;if(A){for(var z=1;z<=24;z+=1)if(y.indexOf(A(z,0,_))>-1){I=z>12;break}}else I=y===(_?"pm":"PM");return I},vt={A:[X,function(y){this.afternoon=H(y,!1)}],a:[X,function(y){this.afternoon=H(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[at,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[x,h("seconds")],ss:[x,h("seconds")],m:[x,h("minutes")],mm:[x,h("minutes")],H:[x,h("hours")],h:[x,h("hours")],HH:[x,h("hours")],hh:[x,h("hours")],D:[x,h("day")],DD:[at,h("day")],Do:[X,function(y){var _=E.ordinal,I=y.match(/\d+/);if(this.day=I[0],_)for(var A=1;A<=31;A+=1)_(A).replace(/\[|\]/g,"")===y&&(this.day=A)}],M:[x,h("month")],MM:[at,h("month")],MMM:[X,function(y){var _=V("months"),I=(V("monthsShort")||_.map(function(A){return A.slice(0,3)})).indexOf(y)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[X,function(y){var _=V("months").indexOf(y)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,h("year")],YY:[at,function(y){this.year=ut(y)}],YYYY:[/\d{4}/,h("year")],Z:m,ZZ:m};return function(y,_,I){I.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(ut=y.parseTwoDigitYear);var A=_.prototype,z=A.parse;A.parse=function(G){var dt=G.date,$=G.utc,B=G.args;this.$u=$;var K=B[1];if("string"==typeof K){var lt=!0===B[2],tt=!0===B[3],R=lt||tt,N=B[2];tt&&(N=B[2]),E=this.$locale(),!lt&&N&&(E=I.Ls[N]),this.$d=function(wt,pt,ht){try{if(["x","X"].indexOf(pt)>-1)return new Date(("X"===pt?1e3:1)*wt);var Q=function Z(y){var I;I=E&&E.formats;for(var A=(y=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(lt,tt,R){var N=R&&R.toUpperCase();return tt||I[R]||J[R]||I[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(et,st,ft){return st||ft.slice(1)})})).match(O),z=A.length,G=0;G0?Dt-1:Mt.getMonth());var It=Jt||0,Yt=$t||0,Ot=te||0,Wt=ee||0;return Vt?new Date(Date.UTC(At,Et,Lt,It,Yt,Ot,Wt+60*Vt.offset*1e3)):ht?new Date(Date.UTC(At,Et,Lt,It,Yt,Ot,Wt)):new Date(At,Et,Lt,It,Yt,Ot,Wt)}catch{return new Date("")}}(dt,K,$),this.init(),N&&!0!==N&&(this.$L=this.locale(N).$L),R&&dt!=this.format(K)&&(this.$d=new Date("")),E={}}else if(K instanceof Array)for(var et=K.length,st=1;st<=et;st+=1){B[1]=K[st-1];var ft=I.apply(this,B);if(ft.isValid()){this.$d=ft.$d,this.$L=ft.$L,this.init();break}st===et&&(this.$d=new Date(""))}else z.call(this,G)}}}()},7517:function(_t){_t.exports=function(){"use strict";var J="day";return function(O,at,x){var X=function(h){return h.add(4-h.isoWeekday(),J)},E=at.prototype;E.isoWeekYear=function(){return X(this).year()},E.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),J);var m,H,vt,Z=X(this),y=(m=this.isoWeekYear(),vt=4-(H=(this.$u?x.utc:x)().year(m).startOf("year")).isoWeekday(),H.isoWeekday()>4&&(vt+=7),H.add(vt,J));return Z.diff(y,"week")+1},E.isoWeekday=function(h){return this.$utils().u(h)?this.day()||7:this.day(this.day()%7?h:h-7)};var ut=E.startOf;E.startOf=function(h,m){var V=this.$utils(),H=!!V.u(m)||m;return"isoweek"===V.p(h)?H?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):ut.bind(this)(h,m)}}}()},1153:(_t,J,O)=>{"use strict";O.r(J),O.d(J,{diagram:()=>Ye});var at=O(6780),x=O(1764),X=O(7517),E=O(274),ut=O(1861),h=O(8080),m=O(8586),H=(O(2735),function(){var t=function(v,n,u,d){for(u=u||{},d=v.length;d--;u[v[d]]=n);return u},s=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],i=[1,25],r=[1,26],a=[1,27],k=[1,28],f=[1,29],q=[1,30],ct=[1,31],ot=[1,9],W=[1,10],U=[1,11],mt=[1,12],nt=[1,13],it=[1,14],S=[1,15],zt=[1,16],Nt=[1,18],Ut=[1,19],Zt=[1,20],jt=[1,21],Xt=[1,22],Ht=[1,24],Gt=[1,32],g={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(n,u,d,c,p,e,P){var l=e.length-1;switch(p){case 1:return e[l-1];case 2:case 6:case 7:this.$=[];break;case 3:e[l-1].push(e[l]),this.$=e[l-1];break;case 4:case 5:this.$=e[l];break;case 8:c.setWeekday("monday");break;case 9:c.setWeekday("tuesday");break;case 10:c.setWeekday("wednesday");break;case 11:c.setWeekday("thursday");break;case 12:c.setWeekday("friday");break;case 13:c.setWeekday("saturday");break;case 14:c.setWeekday("sunday");break;case 15:c.setDateFormat(e[l].substr(11)),this.$=e[l].substr(11);break;case 16:c.enableInclusiveEndDates(),this.$=e[l].substr(18);break;case 17:c.TopAxis(),this.$=e[l].substr(8);break;case 18:c.setAxisFormat(e[l].substr(11)),this.$=e[l].substr(11);break;case 19:c.setTickInterval(e[l].substr(13)),this.$=e[l].substr(13);break;case 20:c.setExcludes(e[l].substr(9)),this.$=e[l].substr(9);break;case 21:c.setIncludes(e[l].substr(9)),this.$=e[l].substr(9);break;case 22:c.setTodayMarker(e[l].substr(12)),this.$=e[l].substr(12);break;case 24:c.setDiagramTitle(e[l].substr(6)),this.$=e[l].substr(6);break;case 25:this.$=e[l].trim(),c.setAccTitle(this.$);break;case 26:case 27:this.$=e[l].trim(),c.setAccDescription(this.$);break;case 28:c.addSection(e[l].substr(8)),this.$=e[l].substr(8);break;case 30:c.addTask(e[l-1],e[l]),this.$="task";break;case 31:this.$=e[l-1],c.setClickEvent(e[l-1],e[l],null);break;case 32:this.$=e[l-2],c.setClickEvent(e[l-2],e[l-1],e[l]);break;case 33:this.$=e[l-2],c.setClickEvent(e[l-2],e[l-1],null),c.setLink(e[l-2],e[l]);break;case 34:this.$=e[l-3],c.setClickEvent(e[l-3],e[l-2],e[l-1]),c.setLink(e[l-3],e[l]);break;case 35:this.$=e[l-2],c.setClickEvent(e[l-2],e[l],null),c.setLink(e[l-2],e[l-1]);break;case 36:this.$=e[l-3],c.setClickEvent(e[l-3],e[l-1],e[l]),c.setLink(e[l-3],e[l-2]);break;case 37:this.$=e[l-1],c.setLink(e[l-1],e[l]);break;case 38:case 44:this.$=e[l-1]+" "+e[l];break;case 39:case 40:case 42:this.$=e[l-2]+" "+e[l-1]+" "+e[l];break;case 41:case 43:this.$=e[l-3]+" "+e[l-2]+" "+e[l-1]+" "+e[l]}},table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:r,14:a,15:k,16:f,17:q,18:ct,19:ot,20:W,21:U,22:mt,23:nt,24:it,25:S,26:zt,27:Nt,28:Ut,30:Zt,32:jt,33:Xt,34:23,35:Ht,37:Gt},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:33,11:17,12:i,13:r,14:a,15:k,16:f,17:q,18:ct,19:ot,20:W,21:U,22:mt,23:nt,24:it,25:S,26:zt,27:Nt,28:Ut,30:Zt,32:jt,33:Xt,34:23,35:Ht,37:Gt},t(s,[2,5]),t(s,[2,6]),t(s,[2,15]),t(s,[2,16]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),{29:[1,34]},{31:[1,35]},t(s,[2,27]),t(s,[2,28]),t(s,[2,29]),{36:[1,36]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),{38:[1,37],40:[1,38]},t(s,[2,4]),t(s,[2,25]),t(s,[2,26]),t(s,[2,30]),t(s,[2,31],{39:[1,39],40:[1,40]}),t(s,[2,37],{38:[1,41]}),t(s,[2,32],{40:[1,42]}),t(s,[2,33]),t(s,[2,35],{39:[1,43]}),t(s,[2,34]),t(s,[2,36])],defaultActions:{},parseError:function(n,u){if(!u.recoverable){var d=new Error(n);throw d.hash=u,d}this.trace(n)},parse:function(n){var d=[0],c=[],p=[null],e=[],P=this.table,l="",o=0,T=0,M=e.slice.call(arguments,1),D=Object.create(this.lexer),L={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(L.yy[Ft]=this.yy[Ft]);D.setInput(n,L.yy),L.yy.lexer=D,L.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var gt,Oe=D.options&&D.options.ranges;this.parseError="function"==typeof L.yy.parseError?L.yy.parseError:Object.getPrototypeOf(this).parseError;for(var j,xt,rt,ie,Kt,yt,Qt,St={};;){if(this.defaultActions[xt=d[d.length-1]]?rt=this.defaultActions[xt]:((null===j||typeof j>"u")&&(gt=void 0,"number"!=typeof(gt=c.pop()||D.lex()||1)&&(gt instanceof Array&&(gt=(c=gt).pop()),gt=this.symbols_[gt]||gt),j=gt),rt=P[xt]&&P[xt][j]),typeof rt>"u"||!rt.length||!rt[0]){var re;for(Kt in Qt=[],P[xt])this.terminals_[Kt]&&Kt>2&&Qt.push("'"+this.terminals_[Kt]+"'");re=D.showPosition?"Parse error on line "+(o+1)+":\n"+D.showPosition()+"\nExpecting "+Qt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==j?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(re,{text:D.match,token:this.terminals_[j]||j,line:D.yylineno,loc:Pt,expected:Qt})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+j);switch(rt[0]){case 1:d.push(j),p.push(D.yytext),e.push(D.yylloc),d.push(rt[1]),j=null,T=D.yyleng,l=D.yytext,o=D.yylineno,Pt=D.yylloc;break;case 2:if(St.$=p[p.length-(yt=this.productions_[rt[1]][1])],St._$={first_line:e[e.length-(yt||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(yt||1)].first_column,last_column:e[e.length-1].last_column},Oe&&(St._$.range=[e[e.length-(yt||1)].range[0],e[e.length-1].range[1]]),typeof(ie=this.performAction.apply(St,[l,T,o,L.yy,rt[1],p,e].concat(M)))<"u")return ie;yt&&(d=d.slice(0,-1*yt*2),p=p.slice(0,-1*yt),e=e.slice(0,-1*yt)),d.push(this.productions_[rt[1]][0]),p.push(St.$),e.push(St._$),d.push(P[d[d.length-2]][d[d.length-1]]);break;case 3:return!0}}return!0}};function b(){this.yy={}}return g.lexer={EOF:1,parseError:function(u,d){if(!this.yy.parser)throw new Error(u);this.yy.parser.parseError(u,d)},setInput:function(n,u){return this.yy=u||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},input: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},unput:function(n){var u=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var c=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),d.length-1&&(this.yylineno-=d.length-1);var p=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:d?(d.length===c.length?this.yylloc.first_column:0)+c[c.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var n=this.pastInput(),u=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+u+"^"},test_match:function(n,u){var d,c,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),(c=n[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.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],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var e in p)this[e]=p[e];return!1}return!1},next:function(){if(this.done)return this.EOF;var n,u,d,c;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),e=0;eu[0].length)){if(u=d,c=e,this.options.backtrack_lexer){if(!1!==(n=this.test_match(d,p[e])))return n;if(this._backtrack){u=!1;continue}return!1}if(!this.options.flex)break}return u?!1!==(n=this.test_match(u,p[c]))&&n:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return(u=this.conditionStack.length-1-Math.abs(u||0))>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,c,p){switch(c){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 40;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 22:return 39;case 23:this.begin("click");break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}},b.prototype=g,g.Parser=b,new b}());H.parser=H;const vt=H;x.extend(X),x.extend(E),x.extend(ut);let _,Z="",y="",I="",A=[],z=[],G={},dt=[],$=[],B="",K="";const lt=["active","done","crit","milestone"];let tt=[],R=!1,N=!1,et="sunday",st=0;const ce=function(t,s,i,r){return!r.includes(t.format(s.trim()))&&(!!(t.isoWeekday()>=6&&i.includes("weekends")||i.includes(t.format("dddd").toLowerCase()))||i.includes(t.format(s.trim())))},oe=function(t,s,i,r){if(!i.length||t.manualEndTime)return;let a,k;a=t.startTime instanceof Date?x(t.startTime):x(t.startTime,s,!0),a=a.add(1,"d"),k=t.endTime instanceof Date?x(t.endTime):x(t.endTime,s,!0);const[f,q]=be(a,k,s,i,r);t.endTime=f.toDate(),t.renderEndTime=q},be=function(t,s,i,r,a){let k=!1,f=null;for(;t<=s;)k||(f=s.toDate()),k=ce(t,i,r,a),k&&(s=s.add(1,"d")),t=t.add(1,"d");return[s,f]},se=function(t,s,i){i=i.trim();const a=/^after\s+(?[\d\w- ]+)/.exec(i);if(null!==a){let f=null;for(const ct of a.groups.ids.split(" ")){let ot=bt(ct);void 0!==ot&&(!f||ot.endTime>f.endTime)&&(f=ot)}if(f)return f.endTime;const q=new Date;return q.setHours(0,0,0,0),q}let k=x(i,s.trim(),!0);if(k.isValid())return k.toDate();{h.l.debug("Invalid date:"+i),h.l.debug("With date format:"+s.trim());const f=new Date(i);if(void 0===f||isNaN(f.getTime())||f.getFullYear()<-1e4||f.getFullYear()>1e4)throw new Error("Invalid date:"+i);return f}},le=function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==s?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},ue=function(t,s,i,r=!1){i=i.trim();const k=/^until\s+(?[\d\w- ]+)/.exec(i);if(null!==k){let W=null;for(const mt of k.groups.ids.split(" ")){let nt=bt(mt);void 0!==nt&&(!W||nt.startTime{let i=[...t].map(()=>-1/0),r=[...t].sort((k,f)=>k.startTime-f.startTime||k.order-f.order),a=0;for(const k of r)for(let f=0;f=i[f]){i[f]=k.endTime,k.order=f+s,f>a&&(a=f);break}return a};let kt;const Ye={parser:vt,db:{getConfig:()=>(0,h.c)().gantt,clear:function(){dt=[],$=[],B="",tt=[],Bt=0,ne=void 0,Rt=void 0,F=[],Z="",y="",K="",_=void 0,I="",A=[],z=[],R=!1,N=!1,st=0,G={},(0,h.v)(),et="sunday"},setDateFormat:function(t){Z=t},getDateFormat:function(){return Z},enableInclusiveEndDates:function(){R=!0},endDatesAreInclusive:function(){return R},enableTopAxis:function(){N=!0},topAxisEnabled:function(){return N},setAxisFormat:function(t){y=t},getAxisFormat:function(){return y},setTickInterval:function(t){_=t},getTickInterval:function(){return _},setTodayMarker:function(t){I=t},getTodayMarker:function(){return I},setAccTitle:h.s,getAccTitle:h.g,setDiagramTitle:h.q,getDiagramTitle:h.t,setDisplayMode:function(t){K=t},getDisplayMode:function(){return K},setAccDescription:h.b,getAccDescription:h.a,addSection:function(t){B=t,dt.push(t)},getSections:function(){return dt},getTasks:function(){let t=fe(),i=0;for(;!t&&i<10;)t=fe(),i++;return $=F,$},addTask:function(t,s){const i={section:B,type:B,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},r=function(t,s){let i;i=":"===s.substr(0,1)?s.substr(1,s.length):s;const r=i.split(","),a={};me(r,a,lt);for(let k=0;k{h.u.runFunc(s,...r)})}(r,s,i)}),he(t,"clickable")},setLink:function(t,s){let i=s;"loose"!==(0,h.c)().securityLevel&&(i=(0,at.N)(s)),t.split(",").forEach(function(r){void 0!==bt(r)&&(ke(r,()=>{window.open(i,"_self")}),G[r]=i)}),he(t,"clickable")},getLinks:function(){return G},bindFunctions:function(t){tt.forEach(function(s){s(t)})},parseDuration:le,isInvalidDate:ce,setWeekday:function(t){et=t},getWeekday:function(){return et}},renderer:{setConf:function(){h.l.debug("Something is calling, setConf, remove the call")},draw:function(t,s,i,r){const a=(0,h.c)().gantt,k=(0,h.c)().securityLevel;let f;"sandbox"===k&&(f=(0,m.Ys)("#i"+s));const q=(0,m.Ys)("sandbox"===k?f.nodes()[0].contentDocument.body:"body"),ct="sandbox"===k?f.nodes()[0].contentDocument:document,ot=ct.getElementById(s);kt=ot.parentElement.offsetWidth,void 0===kt&&(kt=1200),void 0!==a.useWidth&&(kt=a.useWidth);const W=r.db.getTasks();let U=[];for(const g of W)U.push(g.type);U=function Gt(g){const w={},b=[];for(let v=0,n=g.length;vw.type===g).length}ot.setAttribute("viewBox","0 0 "+kt+" "+nt);const it=q.select(`[id="${s}"]`),S=(0,m.Xf)().domain([(0,m.VV$)(W,function(g){return g.startTime}),(0,m.Fp7)(W,function(g){return g.endTime})]).rangeRound([0,kt-a.leftPadding-a.rightPadding]);W.sort(function zt(g,w){const b=g.startTime,v=w.startTime;let n=0;return b>v?n=1:be)&&(e=M);if(!p||!e)return;if(x(e).diff(x(p),"year")>5)return void h.l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const P=r.db.getDateFormat(),l=[];let o=null,T=x(p);for(;T.valueOf()<=e;)r.db.isInvalidDate(T,P,d,c)?o?o.end=T:o={start:T,end:T}:o&&(l.push(o),o=null),T=T.add(1,"d");it.append("g").selectAll("rect").data(l).enter().append("rect").attr("id",function(C){return"exclude-"+C.start.format("YYYY-MM-DD")}).attr("x",function(C){return S(C.start)+b}).attr("y",a.gridLineStartPadding).attr("width",function(C){const M=C.end.add(1,"day");return S(M)-S(C.start)}).attr("height",n-w-a.gridLineStartPadding).attr("transform-origin",function(C,M){return(S(C.start)+b+.5*(S(C.end)-S(C.start))).toString()+"px "+(M*g+.5*n).toString()+"px"}).attr("class","exclude-range")}(n,u,d,0,b,g,r.db.getExcludes(),r.db.getIncludes()),function jt(g,w,b,v){let n=(0,m.LLu)(S).tickSize(-v+w+a.gridLineStartPadding).tickFormat((0,m.i$Z)(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));const d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(null!==d){const c=d[1],p=d[2],e=r.db.getWeekday()||a.weekday;switch(p){case"millisecond":n.ticks(m.U8T.every(c));break;case"second":n.ticks(m.S1K.every(c));break;case"minute":n.ticks(m.Z_i.every(c));break;case"hour":n.ticks(m.WQD.every(c));break;case"day":n.ticks(m.rr1.every(c));break;case"week":n.ticks(ye[e].every(c));break;case"month":n.ticks(m.F0B.every(c))}}if(it.append("g").attr("class","grid").attr("transform","translate("+g+", "+(v-50)+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let c=(0,m.F5q)(S).tickSize(-v+w+a.gridLineStartPadding).tickFormat((0,m.i$Z)(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(null!==d){const p=d[1],e=d[2],P=r.db.getWeekday()||a.weekday;switch(e){case"millisecond":c.ticks(m.U8T.every(p));break;case"second":c.ticks(m.S1K.every(p));break;case"minute":c.ticks(m.Z_i.every(p));break;case"hour":c.ticks(m.WQD.every(p));break;case"day":c.ticks(m.rr1.every(p));break;case"week":c.ticks(ye[P].every(p));break;case"month":c.ticks(m.F0B.every(p))}}it.append("g").attr("class","grid").attr("transform","translate("+g+", "+w+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(d,u,0,b),function Ut(g,w,b,v,n,u,d){const p=[...new Set(g.map(o=>o.order))].map(o=>g.find(T=>T.order===o));it.append("g").selectAll("rect").data(p).enter().append("rect").attr("x",0).attr("y",function(o,T){return o.order*w+b-2}).attr("width",function(){return d-a.rightPadding/2}).attr("height",w).attr("class",function(o){for(const[T,Y]of U.entries())if(o.type===Y)return"section section"+T%a.numberSectionStyles;return"section section0"});const e=it.append("g").selectAll("rect").data(g).enter(),P=r.db.getLinks();if(e.append("rect").attr("id",function(o){return o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?S(o.startTime)+v+.5*(S(o.endTime)-S(o.startTime))-.5*n:S(o.startTime)+v}).attr("y",function(o,T){return o.order*w+b}).attr("width",function(o){return o.milestone?n:S(o.renderEndTime||o.endTime)-S(o.startTime)}).attr("height",n).attr("transform-origin",function(o,T){return T=o.order,(S(o.startTime)+v+.5*(S(o.endTime)-S(o.startTime))).toString()+"px "+(T*w+b+.5*n).toString()+"px"}).attr("class",function(o){let Y="";o.classes.length>0&&(Y=o.classes.join(" "));let C=0;for(const[D,L]of U.entries())o.type===L&&(C=D%a.numberSectionStyles);let M="";return o.active?o.crit?M+=" activeCrit":M=" active":o.done?M=o.crit?" doneCrit":" done":o.crit&&(M+=" crit"),0===M.length&&(M=" task"),o.milestone&&(M=" milestone "+M),M+=C,M+=" "+Y,"task"+M}),e.append("text").attr("id",function(o){return o.id+"-text"}).text(function(o){return o.task}).attr("font-size",a.fontSize).attr("x",function(o){let T=S(o.startTime),Y=S(o.renderEndTime||o.endTime);o.milestone&&(T+=.5*(S(o.endTime)-S(o.startTime))-.5*n),o.milestone&&(Y=T+n);const C=this.getBBox().width;return C>Y-T?Y+C+1.5*a.leftPadding>d?T+v-5:Y+v+5:(Y-T)/2+T+v}).attr("y",function(o,T){return o.order*w+a.barHeight/2+(a.fontSize/2-2)+b}).attr("text-height",n).attr("class",function(o){const T=S(o.startTime);let Y=S(o.endTime);o.milestone&&(Y=T+n);const C=this.getBBox().width;let M="";o.classes.length>0&&(M=o.classes.join(" "));let D=0;for(const[Ft,Pt]of U.entries())o.type===Pt&&(D=Ft%a.numberSectionStyles);let L="";return o.active&&(L=o.crit?"activeCritText"+D:"activeText"+D),o.done?L=o.crit?L+" doneCritText"+D:L+" doneText"+D:o.crit&&(L=L+" critText"+D),o.milestone&&(L+=" milestoneText"),C>Y-T?Y+C+1.5*a.leftPadding>d?M+" taskTextOutsideLeft taskTextOutside"+D+" "+L:M+" taskTextOutsideRight taskTextOutside"+D+" "+L+" width-"+C:M+" taskText taskText"+D+" "+L+" width-"+C}),"sandbox"===(0,h.c)().securityLevel){let o;o=(0,m.Ys)("#i"+s);const T=o.nodes()[0].contentDocument;e.filter(function(Y){return void 0!==P[Y.id]}).each(function(Y){var C=T.querySelector("#"+Y.id),M=T.querySelector("#"+Y.id+"-text");const D=C.parentNode;var L=T.createElement("a");L.setAttribute("xlink:href",P[Y.id]),L.setAttribute("target","_top"),D.appendChild(L),L.appendChild(C),L.appendChild(M)})}}(g,n,u,d,v,0,w),function Xt(g,w){let b=0;const v=Object.keys(mt).map(n=>[n,mt[n]]);it.append("g").selectAll("text").data(v).enter().append(function(n){const u=n[0].split(h.e.lineBreakRegex),d=-(u.length-1)/2,c=ct.createElementNS("http://www.w3.org/2000/svg","text");c.setAttribute("dy",d+"em");for(const[p,e]of u.entries()){const P=ct.createElementNS("http://www.w3.org/2000/svg","tspan");P.setAttribute("alignment-baseline","central"),P.setAttribute("x","10"),p>0&&P.setAttribute("dy","1em"),P.textContent=e,c.appendChild(P)}return c}).attr("x",10).attr("y",function(n,u){if(!(u>0))return n[1]*g/2+w;for(let d=0;d`\n .mermaid-main-font {\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/165.bde353f44cb7bb78.js b/pkg/apiserver-impl/ui/165.bde353f44cb7bb78.js deleted file mode 100644 index 0a3d98b0a0..0000000000 --- a/pkg/apiserver-impl/ui/165.bde353f44cb7bb78.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[165],{3165:($,M,c)=>{c.r(M),c.d(M,{diagram:()=>K});var w=c(5861),x=c(880),h=c(8586),C=c(8814),t=c(9037),A=c(9547);c(1764),c(6780),c(2735),c(1065),c(317);const m=s=>t.e.sanitizeText(s,(0,t.c)());let T={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const L=function(s,i,r,_,e){const n=Object.keys(s);t.l.info("keys:",n),t.l.info(s),n.filter(l=>s[l].parent==e).forEach(function(l){var d,a;const o=s[l],y=o.cssClasses.join(" "),p=(0,t.k)(o.styles),b={labelStyle:p.labelStyle,shape:"class_box",labelText:m(o.label??o.id),classData:o,rx:0,ry:0,class:y,style:p.style,id:o.id,domId:o.domId,tooltip:_.db.getTooltip(o.id,e)||"",haveCallback:o.haveCallback,link:o.link,width:"group"===o.type?500:void 0,type:o.type,padding:(null==(d=(0,t.c)().flowchart)?void 0:d.padding)??(null==(a=(0,t.c)().class)?void 0:a.padding)};i.setNode(o.id,b),e&&i.setParent(o.id,e),t.l.info("setNode",b)})};function k(s){let i;switch(s){case 0:i="aggregation";break;case 1:i="extension";break;case 2:i="composition";break;case 3:i="dependency";break;case 4:i="lollipop";break;default:i="none"}return i}const K={parser:x.p,db:x.d,renderer:{setConf:function(s){T={...T,...s}},draw:function(){var s=(0,w.Z)(function*(i,r,_,e){t.l.info("Drawing class - ",r);const n=(0,t.c)().flowchart??(0,t.c)().class,l=(0,t.c)().securityLevel;t.l.info("config:",n);const d=n?.nodeSpacing??50,a=n?.rankSpacing??50,o=new C.k({multigraph:!0,compound:!0}).setGraph({rankdir:e.db.getDirection(),nodesep:d,ranksep:a,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),y=e.db.getNamespaces(),p=e.db.getClasses(),f=e.db.getRelations(),v=e.db.getNotes();let u;t.l.info(f),function(s,i,r,_){const e=Object.keys(s);t.l.info("keys:",e),t.l.info(s),e.forEach(function(n){var l,d;const a=s[n],y={shape:"rect",id:a.id,domId:a.domId,labelText:m(a.id),labelStyle:"",style:"fill: none; stroke: black",padding:(null==(l=(0,t.c)().flowchart)?void 0:l.padding)??(null==(d=(0,t.c)().class)?void 0:d.padding)};i.setNode(a.id,y),L(a.classes,i,0,_,a.id),t.l.info("setNode",y)})}(y,o,0,e),L(p,o,0,e),function(s,i){const r=(0,t.c)().flowchart;let _=0;s.forEach(function(e){var n;_++;const l={classes:"relation",pattern:1==e.relation.lineType?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${_}`,arrowhead:"arrow_open"===e.type?"none":"normal",startLabelRight:"none"===e.relationTitle1?"":e.relationTitle1,endLabelLeft:"none"===e.relationTitle2?"":e.relationTitle2,arrowTypeStart:k(e.relation.type1),arrowTypeEnd:k(e.relation.type2),style:"fill:none",labelStyle:"",curve:(0,t.n)(r?.curve,h.c_6)};if(t.l.info(l,e),void 0!==e.style){const d=(0,t.k)(e.style);l.style=d.style,l.labelStyle=d.labelStyle}e.text=e.title,void 0===e.text?void 0!==e.style&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",(null==(n=(0,t.c)().flowchart)?void 0:n.htmlLabels)??(0,t.c)().htmlLabels?(l.labelType="html",l.label=''+e.text+""):(l.labelType="text",l.label=e.text.replace(t.e.lineBreakRegex,"\n"),void 0===e.style&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),i.setEdge(e.id1,e.id2,l,_)})}(f,o),function(s,i,r,_){t.l.info(s),s.forEach(function(e,n){var l,d;const a=e,u={labelStyle:"",shape:"note",labelText:m(a.text),noteData:a,rx:0,ry:0,class:"",style:"",id:a.id,domId:a.id,tooltip:"",type:"note",padding:(null==(l=(0,t.c)().flowchart)?void 0:l.padding)??(null==(d=(0,t.c)().class)?void 0:d.padding)};if(i.setNode(a.id,u),t.l.info("setNode",u),!a.class||!(a.class in _))return;const b=r+n,g={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:(0,t.n)(T.curve,h.c_6)};i.setEdge(a.id,a.class,g,b)})}(v,o,f.length+1,p),"sandbox"===l&&(u=(0,h.Ys)("#i"+r));const b=(0,h.Ys)("sandbox"===l?u.nodes()[0].contentDocument.body:"body"),g=b.select(`[id="${r}"]`),U=b.select("#"+r+" g");if(yield(0,A.r)(U,o,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",r),t.u.insertTitle(g,"classTitleText",n?.titleTopMargin??5,e.db.getDiagramTitle()),(0,t.o)(o,g,n?.diagramPadding,n?.useMaxWidth),!n?.htmlLabels){const P="sandbox"===l?u.nodes()[0].contentDocument:document,j=P.querySelectorAll('[id="'+r+'"] .edgeLabel .label');for(const D of j){const S=D.getBBox(),E=P.createElementNS("http://www.w3.org/2000/svg","rect");E.setAttribute("rx",0),E.setAttribute("ry",0),E.setAttribute("width",S.width),E.setAttribute("height",S.height),D.insertBefore(E,D.firstChild)}}});return function(r,_,e,n){return s.apply(this,arguments)}}()},styles:x.s,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,x.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/177.878eb3be2aa9d69a.js b/pkg/apiserver-impl/ui/177.878eb3be2aa9d69a.js new file mode 100644 index 0000000000..fc123eedd8 --- /dev/null +++ b/pkg/apiserver-impl/ui/177.878eb3be2aa9d69a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[177],{8177:($,M,c)=>{c.r(M),c.d(M,{diagram:()=>K});var w=c(5861),x=c(2993),h=c(8586),C=c(8814),t=c(8080),A=c(8235);c(1764),c(6780),c(2735),c(1065),c(317);const m=s=>t.e.sanitizeText(s,(0,t.c)());let T={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const L=function(s,i,r,_,e){const n=Object.keys(s);t.l.info("keys:",n),t.l.info(s),n.filter(l=>s[l].parent==e).forEach(function(l){var d,a;const o=s[l],y=o.cssClasses.join(" "),p=(0,t.k)(o.styles),b={labelStyle:p.labelStyle,shape:"class_box",labelText:m(o.label??o.id),classData:o,rx:0,ry:0,class:y,style:p.style,id:o.id,domId:o.domId,tooltip:_.db.getTooltip(o.id,e)||"",haveCallback:o.haveCallback,link:o.link,width:"group"===o.type?500:void 0,type:o.type,padding:(null==(d=(0,t.c)().flowchart)?void 0:d.padding)??(null==(a=(0,t.c)().class)?void 0:a.padding)};i.setNode(o.id,b),e&&i.setParent(o.id,e),t.l.info("setNode",b)})};function k(s){let i;switch(s){case 0:i="aggregation";break;case 1:i="extension";break;case 2:i="composition";break;case 3:i="dependency";break;case 4:i="lollipop";break;default:i="none"}return i}const K={parser:x.p,db:x.d,renderer:{setConf:function(s){T={...T,...s}},draw:function(){var s=(0,w.Z)(function*(i,r,_,e){t.l.info("Drawing class - ",r);const n=(0,t.c)().flowchart??(0,t.c)().class,l=(0,t.c)().securityLevel;t.l.info("config:",n);const d=n?.nodeSpacing??50,a=n?.rankSpacing??50,o=new C.k({multigraph:!0,compound:!0}).setGraph({rankdir:e.db.getDirection(),nodesep:d,ranksep:a,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),y=e.db.getNamespaces(),p=e.db.getClasses(),f=e.db.getRelations(),v=e.db.getNotes();let u;t.l.info(f),function(s,i,r,_){const e=Object.keys(s);t.l.info("keys:",e),t.l.info(s),e.forEach(function(n){var l,d;const a=s[n],y={shape:"rect",id:a.id,domId:a.domId,labelText:m(a.id),labelStyle:"",style:"fill: none; stroke: black",padding:(null==(l=(0,t.c)().flowchart)?void 0:l.padding)??(null==(d=(0,t.c)().class)?void 0:d.padding)};i.setNode(a.id,y),L(a.classes,i,0,_,a.id),t.l.info("setNode",y)})}(y,o,0,e),L(p,o,0,e),function(s,i){const r=(0,t.c)().flowchart;let _=0;s.forEach(function(e){var n;_++;const l={classes:"relation",pattern:1==e.relation.lineType?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${_}`,arrowhead:"arrow_open"===e.type?"none":"normal",startLabelRight:"none"===e.relationTitle1?"":e.relationTitle1,endLabelLeft:"none"===e.relationTitle2?"":e.relationTitle2,arrowTypeStart:k(e.relation.type1),arrowTypeEnd:k(e.relation.type2),style:"fill:none",labelStyle:"",curve:(0,t.n)(r?.curve,h.c_6)};if(t.l.info(l,e),void 0!==e.style){const d=(0,t.k)(e.style);l.style=d.style,l.labelStyle=d.labelStyle}e.text=e.title,void 0===e.text?void 0!==e.style&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",(null==(n=(0,t.c)().flowchart)?void 0:n.htmlLabels)??(0,t.c)().htmlLabels?(l.labelType="html",l.label=''+e.text+""):(l.labelType="text",l.label=e.text.replace(t.e.lineBreakRegex,"\n"),void 0===e.style&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),i.setEdge(e.id1,e.id2,l,_)})}(f,o),function(s,i,r,_){t.l.info(s),s.forEach(function(e,n){var l,d;const a=e,u={labelStyle:"",shape:"note",labelText:m(a.text),noteData:a,rx:0,ry:0,class:"",style:"",id:a.id,domId:a.id,tooltip:"",type:"note",padding:(null==(l=(0,t.c)().flowchart)?void 0:l.padding)??(null==(d=(0,t.c)().class)?void 0:d.padding)};if(i.setNode(a.id,u),t.l.info("setNode",u),!a.class||!(a.class in _))return;const b=r+n,g={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:(0,t.n)(T.curve,h.c_6)};i.setEdge(a.id,a.class,g,b)})}(v,o,f.length+1,p),"sandbox"===l&&(u=(0,h.Ys)("#i"+r));const b=(0,h.Ys)("sandbox"===l?u.nodes()[0].contentDocument.body:"body"),g=b.select(`[id="${r}"]`),U=b.select("#"+r+" g");if(yield(0,A.r)(U,o,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",r),t.u.insertTitle(g,"classTitleText",n?.titleTopMargin??5,e.db.getDiagramTitle()),(0,t.o)(o,g,n?.diagramPadding,n?.useMaxWidth),!n?.htmlLabels){const P="sandbox"===l?u.nodes()[0].contentDocument:document,j=P.querySelectorAll('[id="'+r+'"] .edgeLabel .label');for(const D of j){const S=D.getBBox(),E=P.createElementNS("http://www.w3.org/2000/svg","rect");E.setAttribute("rx",0),E.setAttribute("ry",0),E.setAttribute("width",S.width),E.setAttribute("height",S.height),D.insertBefore(E,D.firstChild)}}});return function(r,_,e,n){return s.apply(this,arguments)}}()},styles:x.s,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,x.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/196.7202a050f57b2a0c.js b/pkg/apiserver-impl/ui/196.7202a050f57b2a0c.js new file mode 100644 index 0000000000..f50f0cabbb --- /dev/null +++ b/pkg/apiserver-impl/ui/196.7202a050f57b2a0c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[196],{1196:(Jt,ct,W)=>{W.d(ct,{a:()=>ft,b:()=>Xt,c:()=>C,d:()=>zt,e:()=>Nt,f:()=>Gt,g:()=>et,h:()=>Vt,i:()=>P,j:()=>Kt,k:()=>st,l:()=>k,m:()=>it,p:()=>jt,s:()=>At,u:()=>w});var v=W(5861),f=W(8080),S=W(8586),Q=W(4118);const ht={extension:(e,r,t)=>{f.l.trace("Making markers for ",t),e.append("defs").append("marker").attr("id",t+"_"+r+"-extensionStart").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-compositionStart").attr("class","marker composition "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",t+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(e,r,t)=>{e.append("marker").attr("id",t+"_"+r+"-pointEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(e,r,t)=>{e.append("marker").attr("id",t+"_"+r+"-circleEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"_"+r+"-circleStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(e,r,t)=>{e.append("marker").attr("id",t+"_"+r+"-crossEnd").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"_"+r+"-crossStart").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},ft=(e,r,t,n)=>{r.forEach(l=>{ht[l](e,t,n)})},C=(e,r,t,n)=>{let l=e||"";if("object"==typeof l&&(l=l[0]),(0,f.m)((0,f.c)().flowchart.htmlLabels))return l=l.replace(/\\n|\n/g,"
"),f.l.debug("vertexText"+l),function yt(e){const r=(0,S.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),t=r.append("xhtml:div");return t.html('"+e.label+""),function pt(e,r){r&&e.attr("style",r)}(t,e.labelStyle),t.style("display","inline-block"),t.style("white-space","nowrap"),t.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}({isNode:n,label:(0,f.M)(l).replace(/fa[blrs]?:fa-[\w-]+/g,s=>``),labelStyle:r.replace("fill:","color:")});{const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("style",r.replace("color:","fill:"));let a=[];a="string"==typeof l?l.split(/\\n|\n|/gi):Array.isArray(l)?l:[];for(const s of a){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class",t?"title-row":"row"),c.textContent=s.trim(),i.appendChild(c)}return i}},k=function(){var e=(0,v.Z)(function*(r,t,n,l){let i;const a=t.useHtmlLabels||(0,f.m)((0,f.c)().flowchart.htmlLabels);i=n||"node default";const s=r.insert("g").attr("class",i).attr("id",t.domId||t.id),c=s.insert("g").attr("class","label").attr("style",t.labelStyle);let h;h=void 0===t.labelText?"":"string"==typeof t.labelText?t.labelText:t.labelText[0];const o=c.node();let p;p="markdown"===t.labelType?(0,Q.a)(c,(0,f.d)((0,f.M)(h),(0,f.c)()),{useHtmlLabels:a,width:t.width||(0,f.c)().flowchart.wrappingWidth,classes:"markdown-node-label"}):o.appendChild(C((0,f.d)((0,f.M)(h),(0,f.c)()),t.labelStyle,!1,l));let y=p.getBBox();const x=t.padding/2;if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const u=p.children[0],m=(0,S.Ys)(p),d=u.getElementsByTagName("img");if(d){const T=""===h.replace(/]*>/g,"").trim();yield Promise.all([...d].map(g=>new Promise(B=>{function E(){if(g.style.display="flex",g.style.flexDirection="column",T){const D=(0,f.c)().fontSize?(0,f.c)().fontSize:window.getComputedStyle(document.body).fontSize,z=5,G=parseInt(D,10)*z+"px";g.style.minWidth=G,g.style.maxWidth=G}else g.style.width="100%";B(g)}setTimeout(()=>{g.complete&&E()}),g.addEventListener("error",E),g.addEventListener("load",E)})))}y=u.getBoundingClientRect(),m.attr("width",y.width),m.attr("height",y.height)}return c.attr("transform",a?"translate("+-y.width/2+", "+-y.height/2+")":"translate(0, "+-y.height/2+")"),t.centerLabel&&c.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:x,label:c}});return function(t,n,l,i){return e.apply(this,arguments)}}(),w=(e,r)=>{const t=r.node().getBBox();e.width=t.width,e.height=t.height};function R(e,r,t,n){return e.insert("polygon",":first-child").attr("points",n.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-r/2+","+t/2+")")}function V(e,r,t,n){var l=e.x,i=e.y,a=l-n.x,s=i-n.y,c=Math.sqrt(r*r*s*s+t*t*a*a),h=Math.abs(r*t*a/c);n.x0}const P=(e,r)=>{var c,h,t=e.x,n=e.y,l=r.x-t,i=r.y-n,a=e.width/2,s=e.height/2;return Math.abs(i)*a>Math.abs(l)*s?(i<0&&(s=-s),c=0===i?0:s*l/i,h=s):(l<0&&(a=-a),c=a,h=0===l?0:a*i/l),{x:t+c,y:n+h}},b={node:function ut(e,r){return e.intersect(r)},circle:function xt(e,r,t){return V(e,r,r,t)},ellipse:V,polygon:function gt(e,r,t){var n=e.x,l=e.y,i=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof r.forEach?r.forEach(function(u){a=Math.min(a,u.x),s=Math.min(s,u.y)}):(a=Math.min(a,r.x),s=Math.min(s,r.y));for(var c=n-e.width/2-a,h=l-e.height/2-s,o=0;o1&&i.sort(function(u,m){var d=u.x-t.x,T=u.y-t.y,g=Math.sqrt(d*d+T*T),B=m.x-t.x,E=m.y-t.y,D=Math.sqrt(B*B+E*E);return ge?" "+e:"",$=(e,r)=>`${r||"node default"}${q(e.classes)} ${q(e.class)}`,tt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),s=l.width+t.padding+(l.height+t.padding),c=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];f.l.info("Question main (Circle)");const h=R(n,s,s,c);return h.attr("style",t.style),w(t,h),t.intersect=function(o){return f.l.warn("Intersect called"),b.polygon(t,c,o)},n});return function(t,n){return e.apply(this,arguments)}}(),kt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),a=l.height+t.padding,s=a/4,c=l.width+2*s+t.padding,h=[{x:s,y:0},{x:c-s,y:0},{x:c,y:-a/2},{x:c-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],o=R(n,c,a,h);return o.attr("style",t.style),w(t,o),t.intersect=function(p){return b.polygon(t,h,p)},n});return function(t,n){return e.apply(this,arguments)}}(),_t=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,void 0,!0),a=l.height+2*t.padding,c=l.width+a/2*2+t.padding,h=((e,r,t)=>{const n=(e=>{const r=new Set;for(const t of e)switch(t){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(t)}return r})(e),i=r.height+2*t.padding,a=i/2,s=r.width+2*a+t.padding,c=t.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:a,y:0},{x:s/2,y:2*c},{x:s-a,y:0},{x:s,y:0},{x:s,y:-i/3},{x:s+2*c,y:-i/2},{x:s,y:-2*i/3},{x:s,y:-i},{x:s-a,y:-i},{x:s/2,y:-i-2*c},{x:a,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*c,y:-i/2},{x:0,y:-i/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:a,y:0},{x:s-a,y:0},{x:s,y:-i/2},{x:s-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:a,y:-i},{x:s-a,y:-i},{x:s,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:s,y:-a},{x:s,y:-i+a},{x:0,y:-i}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:s,y:0},{x:0,y:-a},{x:0,y:-i+a},{x:s,y:-i}]:n.has("right")&&n.has("left")?[{x:a,y:0},{x:a,y:-c},{x:s-a,y:-c},{x:s-a,y:0},{x:s,y:-i/2},{x:s-a,y:-i},{x:s-a,y:-i+c},{x:a,y:-i+c},{x:a,y:-i},{x:0,y:-i/2}]:n.has("up")&&n.has("down")?[{x:s/2,y:0},{x:0,y:-c},{x:a,y:-c},{x:a,y:-i+c},{x:0,y:-i+c},{x:s/2,y:-i},{x:s,y:-i+c},{x:s-a,y:-i+c},{x:s-a,y:-c},{x:s,y:-c}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:s,y:-a},{x:0,y:-i}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:s,y:0},{x:0,y:-i}]:n.has("left")&&n.has("up")?[{x:s,y:0},{x:0,y:-a},{x:s,y:-i}]:n.has("left")&&n.has("down")?[{x:s,y:0},{x:0,y:0},{x:s,y:-i}]:n.has("right")?[{x:a,y:-c},{x:a,y:-c},{x:s-a,y:-c},{x:s-a,y:0},{x:s,y:-i/2},{x:s-a,y:-i},{x:s-a,y:-i+c},{x:a,y:-i+c},{x:a,y:-i+c}]:n.has("left")?[{x:a,y:0},{x:a,y:-c},{x:s-a,y:-c},{x:s-a,y:-i+c},{x:a,y:-i+c},{x:a,y:-i},{x:0,y:-i/2}]:n.has("up")?[{x:a,y:-c},{x:a,y:-i+c},{x:0,y:-i+c},{x:s/2,y:-i},{x:s,y:-i+c},{x:s-a,y:-i+c},{x:s-a,y:-c}]:n.has("down")?[{x:s/2,y:0},{x:0,y:-c},{x:a,y:-c},{x:a,y:-i+c},{x:s-a,y:-i+c},{x:s-a,y:-c},{x:s,y:-c}]:[{x:0,y:0}]})(t.directions,l,t),o=R(n,c,a,h);return o.attr("style",t.style),w(t,o),t.intersect=function(p){return b.polygon(t,h,p)},n});return function(t,n){return e.apply(this,arguments)}}(),Lt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return R(n,i,a,s).attr("style",t.style),t.width=i+a,t.height=a,t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),St=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Mt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Tt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Et=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Bt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Ct=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=i/2,s=a/(2.5+i/50),c=l.height+s+t.padding,h="M 0,"+s+" a "+a+","+s+" 0,0,0 "+i+" 0 a "+a+","+s+" 0,0,0 "+-i+" 0 l 0,"+c+" a "+a+","+s+" 0,0,0 "+i+" 0 l 0,"+-c,o=n.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",h).attr("transform","translate("+-i/2+","+-(c/2+s)+")");return w(t,o),t.intersect=function(p){const y=b.rect(t,p),x=y.x-t.x;if(0!=a&&(Math.abs(x)t.height/2-s)){let u=s*s*(1-x*x/(a*a));0!=u&&(u=Math.sqrt(u)),u=s-u,p.y-t.y>0&&(u=-u),y.y+=u}return y},n});return function(t,n){return e.apply(this,arguments)}}(),$t=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,"node "+t.classes+" "+t.class,!0),a=n.insert("rect",":first-child"),s=t.positioned?t.width:l.width+t.padding,c=t.positioned?t.height:l.height+t.padding,h=t.positioned?-s/2:-l.width/2-i,o=t.positioned?-c/2:-l.height/2-i;if(a.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",h).attr("y",o).attr("width",s).attr("height",c),t.props){const p=new Set(Object.keys(t.props));t.props.borders&&(K(a,t.props.borders,s,c),p.delete("borders")),p.forEach(y=>{f.l.warn(`Unknown node property ${y}`)})}return w(t,a),t.intersect=function(p){return b.rect(t,p)},n});return function(t,n){return e.apply(this,arguments)}}(),Yt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,"node "+t.classes,!0),a=n.insert("rect",":first-child"),s=t.positioned?t.width:l.width+t.padding,c=t.positioned?t.height:l.height+t.padding,h=t.positioned?-s/2:-l.width/2-i,o=t.positioned?-c/2:-l.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",h).attr("y",o).attr("width",s).attr("height",c),t.props){const p=new Set(Object.keys(t.props));t.props.borders&&(K(a,t.props.borders,s,c),p.delete("borders")),p.forEach(y=>{f.l.warn(`Unknown node property ${y}`)})}return w(t,a),t.intersect=function(p){return b.rect(t,p)},n});return function(t,n){return e.apply(this,arguments)}}(),Rt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n}=yield k(r,t,"label",!0);f.l.trace("Classes = ",t.class);const l=n.insert("rect",":first-child");if(l.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(K(l,t.props.borders,0,0),s.delete("borders")),s.forEach(c=>{f.l.warn(`Unknown node property ${c}`)})}return w(t,l),t.intersect=function(s){return b.rect(t,s)},n});return function(t,n){return e.apply(this,arguments)}}();function K(e,r,t,n){const l=[],i=s=>{l.push(s,0)},a=s=>{l.push(0,s)};r.includes("t")?(f.l.debug("add top border"),i(t)):a(t),r.includes("r")?(f.l.debug("add right border"),i(n)):a(n),r.includes("b")?(f.l.debug("add bottom border"),i(t)):a(t),r.includes("l")?(f.l.debug("add left border"),i(n)):a(n),e.attr("stroke-dasharray",l.join(" "))}const It=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.height+t.padding,a=l.width+i/4+t.padding,s=n.insert("rect",":first-child").attr("style",t.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return w(t,s),t.intersect=function(c){return b.rect(t,c)},n});return function(t,n){return e.apply(this,arguments)}}(),rt=(e,r,t)=>{const n=e.insert("g").attr("class","node default").attr("id",r.domId||r.id);let l=70,i=10;"LR"===t&&(l=10,i=70);const a=n.append("rect").attr("x",-1*l/2).attr("y",-1*i/2).attr("width",l).attr("height",i).attr("class","fork-join");return w(r,a),r.height=r.height+r.padding/2,r.width=r.width+r.padding/2,r.intersect=function(s){return b.rect(r,s)},n},at={rhombus:tt,composite:Yt,question:tt,rect:$t,labelRect:Rt,rectWithTitle:(e,r)=>{let t;t=r.classes?"node "+r.classes:"node default";const n=e.insert("g").attr("class",t).attr("id",r.domId||r.id),l=n.insert("rect",":first-child"),i=n.insert("line"),a=n.insert("g").attr("class","label"),s=r.labelText.flat?r.labelText.flat():r.labelText;let c="";c="object"==typeof s?s[0]:s,f.l.info("Label text abc79",c,s,"object"==typeof s);const h=a.node().appendChild(C(c,r.labelStyle,!0,!0));let o={width:0,height:0};if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const m=h.children[0],d=(0,S.Ys)(h);o=m.getBoundingClientRect(),d.attr("width",o.width),d.attr("height",o.height)}f.l.info("Text 2",s);const p=s.slice(1,s.length);let y=h.getBBox();const x=a.node().appendChild(C(p.join?p.join("
"):p,r.labelStyle,!0,!0));if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const m=x.children[0],d=(0,S.Ys)(x);o=m.getBoundingClientRect(),d.attr("width",o.width),d.attr("height",o.height)}const u=r.padding/2;return(0,S.Ys)(x).attr("transform","translate( "+(o.width>y.width?0:(y.width-o.width)/2)+", "+(y.height+u+5)+")"),(0,S.Ys)(h).attr("transform","translate( "+(o.width{const t=e.insert("g").attr("class","node default").attr("id",r.domId||r.id);return t.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),r.width=28,r.height=28,r.intersect=function(a){return b.circle(r,14,a)},t},circle:function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,$(t,void 0),!0),a=n.insert("circle",":first-child");return a.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+i).attr("width",l.width+t.padding).attr("height",l.height+t.padding),f.l.info("Circle main"),w(t,a),t.intersect=function(s){return f.l.info("Circle intersect",t,l.width/2+i,s),b.circle(t,l.width/2+i,s)},n});return function(t,n){return e.apply(this,arguments)}}(),doublecircle:function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,$(t,void 0),!0),s=n.insert("g",":first-child"),c=s.insert("circle"),h=s.insert("circle");return s.attr("class",t.class),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+i+5).attr("width",l.width+t.padding+10).attr("height",l.height+t.padding+10),h.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+i).attr("width",l.width+t.padding).attr("height",l.height+t.padding),f.l.info("DoubleCircle main"),w(t,c),t.intersect=function(o){return f.l.info("DoubleCircle intersect",t,l.width/2+i+5,o),b.circle(t,l.width/2+i+5,o)},n});return function(t,n){return e.apply(this,arguments)}}(),stadium:It,hexagon:kt,block_arrow:_t,rect_left_inv_arrow:Lt,lean_right:St,lean_left:Mt,trapezoid:Tt,inv_trapezoid:Et,rect_right_inv_arrow:Bt,cylinder:Ct,start:(e,r)=>{const t=e.insert("g").attr("class","node default").attr("id",r.domId||r.id),n=t.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),w(r,n),r.intersect=function(l){return b.circle(r,7,l)},t},end:(e,r)=>{const t=e.insert("g").attr("class","node default").attr("id",r.domId||r.id),n=t.insert("circle",":first-child"),l=t.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),w(r,l),r.intersect=function(i){return b.circle(r,7,i)},t},note:bt,subroutine:function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),fork:rt,join:rt,class_box:(e,r)=>{const t=r.padding/2;let i;i=r.classes?"node "+r.classes:"node default";const a=e.insert("g").attr("class",i).attr("id",r.domId||r.id),s=a.insert("rect",":first-child"),c=a.insert("line"),h=a.insert("line");let o=0,p=4;const y=a.insert("g").attr("class","label");let x=0;const u=r.classData.annotations&&r.classData.annotations[0],m=r.classData.annotations[0]?"\xab"+r.classData.annotations[0]+"\xbb":"",d=y.node().appendChild(C(m,r.labelStyle,!0,!0));let T=d.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const _=d.children[0],L=(0,S.Ys)(d);T=_.getBoundingClientRect(),L.attr("width",T.width),L.attr("height",T.height)}r.classData.annotations[0]&&(p+=T.height+4,o+=T.width);let g=r.classData.label;void 0!==r.classData.type&&""!==r.classData.type&&((0,f.c)().flowchart.htmlLabels?g+="<"+r.classData.type+">":g+="<"+r.classData.type+">");const B=y.node().appendChild(C(g,r.labelStyle,!0,!0));(0,S.Ys)(B).attr("class","classTitle");let E=B.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const _=B.children[0],L=(0,S.Ys)(B);E=_.getBoundingClientRect(),L.attr("width",E.width),L.attr("height",E.height)}p+=E.height+4,E.width>o&&(o=E.width);const D=[];r.classData.members.forEach(_=>{const L=_.getDisplayDetails();let Z=L.displayText;(0,f.c)().flowchart.htmlLabels&&(Z=Z.replace(//g,">"));const O=y.node().appendChild(C(Z,L.cssStyle?L.cssStyle:r.labelStyle,!0,!0));let Y=O.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const F=O.children[0],N=(0,S.Ys)(O);Y=F.getBoundingClientRect(),N.attr("width",Y.width),N.attr("height",Y.height)}Y.width>o&&(o=Y.width),p+=Y.height+4,D.push(O)}),p+=8;const z=[];if(r.classData.methods.forEach(_=>{const L=_.getDisplayDetails();let Z=L.displayText;(0,f.c)().flowchart.htmlLabels&&(Z=Z.replace(//g,">"));const O=y.node().appendChild(C(Z,L.cssStyle?L.cssStyle:r.labelStyle,!0,!0));let Y=O.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const F=O.children[0],N=(0,S.Ys)(O);Y=F.getBoundingClientRect(),N.attr("width",Y.width),N.attr("height",Y.height)}Y.width>o&&(o=Y.width),p+=Y.height+4,z.push(O)}),p+=8,u){let _=(o-T.width)/2;(0,S.Ys)(d).attr("transform","translate( "+(-1*o/2+_)+", "+-1*p/2+")"),x=T.height+4}let G=(o-E.width)/2;return(0,S.Ys)(B).attr("transform","translate( "+(-1*o/2+G)+", "+(-1*p/2+x)+")"),x+=E.height+4,c.attr("class","divider").attr("x1",-o/2-t).attr("x2",o/2+t).attr("y1",-p/2-t+8+x).attr("y2",-p/2-t+8+x),x+=8,D.forEach(_=>{(0,S.Ys)(_).attr("transform","translate( "+-o/2+", "+(-1*p/2+x+4)+")");const L=_?.getBBox();x+=(L?.height??0)+4}),x+=8,h.attr("class","divider").attr("x1",-o/2-t).attr("x2",o/2+t).attr("y1",-p/2-t+8+x).attr("y2",-p/2-t+8+x),x+=8,z.forEach(_=>{(0,S.Ys)(_).attr("transform","translate( "+-o/2+", "+(-1*p/2+x)+")");const L=_?.getBBox();x+=(L?.height??0)+4}),s.attr("style",r.style).attr("class","outer title-state").attr("x",-o/2-t).attr("y",-p/2-t).attr("width",o+r.padding).attr("height",p+r.padding),w(r,s),r.intersect=function(_){return b.rect(r,_)},a}};let H={};const Nt=function(){var e=(0,v.Z)(function*(r,t,n){let l,i;if(t.link){let a;"sandbox"===(0,f.c)().securityLevel?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),l=r.insert("svg:a").attr("xlink:href",t.link).attr("target",a),i=yield at[t.shape](l,t,n)}else i=yield at[t.shape](r,t,n),l=i;return t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),l.attr("data-node","true"),l.attr("data-id",t.id),H[t.id]=l,t.haveCallback&&H[t.id].attr("class",H[t.id].attr("class")+" clickable"),l});return function(t,n,l){return e.apply(this,arguments)}}(),At=(e,r)=>{H[r.id]=e},Xt=()=>{H={}},jt=e=>{const r=H[e.id];f.l.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=e.diff||0;return r.attr("transform",e.clusterNode?"translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-8)+")":"translate("+e.x+", "+e.y+")"),n},et=({flowchart:e})=>{var r,t;const n=(null==(r=e?.subGraphTitleMargin)?void 0:r.top)??0,l=(null==(t=e?.subGraphTitleMargin)?void 0:t.bottom)??0;return{subGraphTitleTopMargin:n,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:n+l}},I={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function A(e,r){if(void 0===e||void 0===r)return{angle:0,deltaX:0,deltaY:0};e=X(e),r=X(r);const[t,n]=[e.x,e.y],[l,i]=[r.x,r.y],a=l-t,s=i-n;return{angle:Math.atan(s/a),deltaX:a,deltaY:s}}const X=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,st=e=>({x:function(r,t,n){let l=0;if(0===t&&Object.hasOwn(I,e.arrowTypeStart)){const{angle:i,deltaX:a}=A(n[0],n[1]);l=I[e.arrowTypeStart]*Math.cos(i)*(a>=0?1:-1)}else if(t===n.length-1&&Object.hasOwn(I,e.arrowTypeEnd)){const{angle:i,deltaX:a}=A(n[n.length-1],n[n.length-2]);l=I[e.arrowTypeEnd]*Math.cos(i)*(a>=0?1:-1)}return X(r).x+l},y:function(r,t,n){let l=0;if(0===t&&Object.hasOwn(I,e.arrowTypeStart)){const{angle:i,deltaY:a}=A(n[0],n[1]);l=I[e.arrowTypeStart]*Math.abs(Math.sin(i))*(a>=0?1:-1)}else if(t===n.length-1&&Object.hasOwn(I,e.arrowTypeEnd)){const{angle:i,deltaY:a}=A(n[n.length-1],n[n.length-2]);l=I[e.arrowTypeEnd]*Math.abs(Math.sin(i))*(a>=0?1:-1)}return X(r).y+l}}),it=(e,r,t,n,l)=>{r.arrowTypeStart&&nt(e,"start",r.arrowTypeStart,t,n,l),r.arrowTypeEnd&&nt(e,"end",r.arrowTypeEnd,t,n,l)},Ut={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},nt=(e,r,t,n,l,i)=>{const a=Ut[t];a?e.attr(`marker-${r}`,`url(${n}#${l}_${i}-${a}${"start"===r?"Start":"End"})`):f.l.warn(`Unknown arrow type: ${t}`)};let j={},M={};const zt=()=>{j={},M={}},Gt=(e,r)=>{const t=(0,f.m)((0,f.c)().flowchart.htmlLabels),n="markdown"===r.labelType?(0,Q.a)(e,r.label,{style:r.labelStyle,useHtmlLabels:t,addSvgBackground:!0}):C(r.label,r.labelStyle),l=e.insert("g").attr("class","edgeLabel"),i=l.insert("g").attr("class","label");i.node().appendChild(n);let s,a=n.getBBox();if(t){const c=n.children[0],h=(0,S.Ys)(n);a=c.getBoundingClientRect(),h.attr("width",a.width),h.attr("height",a.height)}if(i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),j[r.id]=l,r.width=a.width,r.height=a.height,r.startLabelLeft){const c=C(r.startLabelLeft,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),M[r.id]||(M[r.id]={}),M[r.id].startLeft=h,U(s,r.startLabelLeft)}if(r.startLabelRight){const c=C(r.startLabelRight,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=h.node().appendChild(c),o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),M[r.id]||(M[r.id]={}),M[r.id].startRight=h,U(s,r.startLabelRight)}if(r.endLabelLeft){const c=C(r.endLabelLeft,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),h.node().appendChild(c),M[r.id]||(M[r.id]={}),M[r.id].endLeft=h,U(s,r.endLabelLeft)}if(r.endLabelRight){const c=C(r.endLabelRight,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),h.node().appendChild(c),M[r.id]||(M[r.id]={}),M[r.id].endRight=h,U(s,r.endLabelRight)}return n};function U(e,r){(0,f.c)().flowchart.htmlLabels&&e&&(e.style.width=9*r.length+"px",e.style.height="12px")}const Kt=(e,r)=>{f.l.debug("Moving label abc88 ",e.id,e.label,j[e.id],r);let t=r.updatedPath?r.updatedPath:r.originalPath;const n=(0,f.c)(),{subGraphTitleTotalMargin:l}=et(n);if(e.label){const i=j[e.id];let a=e.x,s=e.y;if(t){const c=f.u.calcLabelPosition(t);f.l.debug("Moving label "+e.label+" from (",a,",",s,") to (",c.x,",",c.y,") abc88"),r.updatedPath&&(a=c.x,s=c.y)}i.attr("transform",`translate(${a}, ${s+l/2})`)}if(e.startLabelLeft){const i=M[e.id].startLeft;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}if(e.startLabelRight){const i=M[e.id].startRight;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}if(e.endLabelLeft){const i=M[e.id].endLeft;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}if(e.endLabelRight){const i=M[e.id].endRight;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}},lt=(e,r)=>{f.l.debug("abc88 cutPathAtIntersect",e,r);let t=[],n=e[0],l=!1;return e.forEach(i=>{if(((e,r)=>{const n=e.y,l=Math.abs(r.x-e.x),i=Math.abs(r.y-n);return l>=e.width/2||i>=e.height/2})(r,i)||l)n=i,l||t.push(i);else{const a=((e,r,t)=>{f.l.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(r)}\n insidePoint : ${JSON.stringify(t)}\n node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,l=e.y,i=Math.abs(n-t.x),a=e.width/2;let s=t.xMath.abs(n-r.x)*c){let p=t.y{s=s||c.x===a.x&&c.y===a.y}),t.some(c=>c.x===a.x&&c.y===a.y)||t.push(a),l=!0}}),t},Vt=function(e,r,t,n,l,i,a){let s=t.points;f.l.debug("abc88 InsertEdge: edge=",t,"e=",r);let c=!1;const h=i.node(r.v);var o=i.node(r.w);o?.intersect&&h?.intersect&&(s=s.slice(1,t.points.length-1),s.unshift(h.intersect(s[0])),s.push(o.intersect(s[s.length-1]))),t.toCluster&&(f.l.debug("to cluster abc88",n[t.toCluster]),s=lt(t.points,n[t.toCluster].node),c=!0),t.fromCluster&&(f.l.debug("from cluster abc88",n[t.fromCluster]),s=lt(s.reverse(),n[t.fromCluster].node).reverse(),c=!0);const p=s.filter(E=>!Number.isNaN(E.y));let y=S.$0Z;t.curve&&("graph"===l||"flowchart"===l)&&(y=t.curve);const{x,y:u}=st(t),m=(0,S.jvg)().x(x).y(u).curve(y);let d;switch(t.thickness){case"normal":d="edge-thickness-normal";break;case"thick":case"invisible":d="edge-thickness-thick";break;default:d=""}switch(t.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}const T=e.append("path").attr("d",m(p)).attr("id",t.id).attr("class"," "+d+(t.classes?" "+t.classes:"")).attr("style",t.style);let g="";((0,f.c)().flowchart.arrowMarkerAbsolute||(0,f.c)().state.arrowMarkerAbsolute)&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),it(T,t,g,a,l);let B={};return c&&(B.updatedPath=s),B.originalPath=t.points,B}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/233.a9d4b21b1685eaf7.js b/pkg/apiserver-impl/ui/233.a9d4b21b1685eaf7.js deleted file mode 100644 index 5763639ed1..0000000000 --- a/pkg/apiserver-impl/ui/233.a9d4b21b1685eaf7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[233],{2233:(Y,N,f)=>{f.r(N),f.d(N,{diagram:()=>U});var k=f(880),w=f(8586),S=f(1065),H=f(8814),s=f(9037);f(1764),f(6780),f(2735);let O=0;const C=function(i,a,t,l){const{displayText:p,cssStyle:c}=a.getDisplayDetails(),o=i.append("tspan").attr("x",l.padding).text(p);""!==c&&o.attr("style",a.cssStyle),t||o.attr("dy",l.textHeight)},v_drawClass=function(i,a,t,l){s.l.debug("Rendering class ",a,t);const p=a.id,c={id:p,label:a.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;h=a.link?o.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const g=h.append("tspan").text("\xab"+d+"\xbb");n||g.attr("dy",t.textHeight),n=!1});let r=function(i){let a=i.id;return i.type&&(a+="<"+(0,s.x)(i.type)+">"),a}(a);const E=h.append("tspan").text(r).attr("class","title");n||E.attr("dy",t.textHeight);const x=h.node().getBBox().height;let y,b,u;if(a.members.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+x+t.dividerMargin/2).attr("y2",t.padding+x+t.dividerMargin/2);const d=o.append("text").attr("x",t.padding).attr("y",x+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(g){C(d,g,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=o.append("line").attr("x1",0).attr("y1",t.padding+x+t.dividerMargin+b.height).attr("y2",t.padding+x+t.dividerMargin+b.height);const d=o.append("text").attr("x",t.padding).attr("y",x+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(g){C(d,g,n,t),n=!1})}const _=o.node().getBBox();var m=" ";a.cssClasses.length>0&&(m+=a.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",_.width+2*t.padding).attr("height",_.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&h.insert("title").text(a.tooltip),y&&y.attr("x2",e),u&&u.attr("x2",e),c.width=e,c.height=_.height+t.padding+.5*t.dividerMargin,c};let T={};const L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},U={parser:k.p,db:k.d,renderer:{draw:function(i,a,t,l){const p=(0,s.c)().class;T={},s.l.info("Rendering diagram "+i);const c=(0,s.c)().securityLevel;let o;"sandbox"===c&&(o=(0,w.Ys)("#i"+a));const h=(0,w.Ys)("sandbox"===c?o.nodes()[0].contentDocument.body:"body"),n=h.select(`[id='${a}']`);!function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(n);const r=new H.k({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const E=l.db.getClasses(),x=Object.keys(E);for(const e of x){const g=v_drawClass(n,E[e],p,l);T[g.id]=g,r.setNode(g.id,g),s.l.info("Org height: "+g.height)}l.db.getRelations().forEach(function(e){s.l.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),l.db.getNotes().forEach(function(e){s.l.debug(`Adding note: ${JSON.stringify(e)}`);const d=function(i,a,t,l){s.l.debug("Rendering note ",a,t);const p=a.id,c={id:p,text:a.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split("\n");n.forEach(function(y){s.l.debug(`Adding line: ${y}`),h.append("tspan").text(y).attr("class","title").attr("dy",t.textHeight)});const r=o.node().getBBox(),x=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(y){y.setAttribute("x",(x-y.getBBox().width)/2)}),c.width=x,c.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,c}(n,e,p);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in E&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),(0,S.bK)(r),r.nodes().forEach(function(e){void 0!==e&&void 0!==r.node(e)&&(s.l.debug("Node "+e+": "+JSON.stringify(r.node(e))),h.select("#"+(l.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){void 0!==e&&void 0!==r.edge(e)&&(s.l.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),function(i,a,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const o=a.points,h=(0,w.jvg)().x(function(e){return e.x}).y(function(e){return e.y}).curve(w.$0Z),n=i.append("path").attr("d",h(o)).attr("id","edge"+O).attr("class","relation");let E,x,r="";l.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),1==t.relation.lineType&&n.attr("class","relation dashed-line"),10==t.relation.lineType&&n.attr("class","relation dotted-line"),"none"!==t.relation.type1&&n.attr("marker-start","url("+r+"#"+c(t.relation.type1)+"Start)"),"none"!==t.relation.type2&&n.attr("marker-end","url("+r+"#"+c(t.relation.type2)+"End)");const y=a.points.length;let u,_,m,M,b=s.u.calcLabelPosition(a.points);if(E=b.x,x=b.y,y%2!=0&&y>1){let e=s.u.calcCardinalityPosition("none"!==t.relation.type1,a.points,a.points[0]),d=s.u.calcCardinalityPosition("none"!==t.relation.type2,a.points,a.points[y-1]);s.l.debug("cardinality_1_point "+JSON.stringify(e)),s.l.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,_=e.y,m=d.x,M=d.y}if(void 0!==t.title){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",E).attr("y",x).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const g=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}s.l.info("Rendering relation "+JSON.stringify(t)),void 0!==t.relationTitle1&&"none"!==t.relationTitle1&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",_).attr("fill","black").attr("font-size","6").text(t.relationTitle1),void 0!==t.relationTitle2&&"none"!==t.relationTitle2&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",M).attr("fill","black").attr("font-size","6").text(t.relationTitle2),O++}(n,r.edge(e),r.edge(e).relation,p,l))});const u=n.node().getBBox(),_=u.width+40,m=u.height+40;(0,s.i)(n,m,_,p.useMaxWidth);const M=`${u.x-20} ${u.y-20} ${_} ${m}`;s.l.debug(`viewBox ${M}`),n.attr("viewBox",M)}},styles:k.s,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,k.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/547.c349efb0d3b6da75.js b/pkg/apiserver-impl/ui/235.8b4ded998620e196.js similarity index 98% rename from pkg/apiserver-impl/ui/547.c349efb0d3b6da75.js rename to pkg/apiserver-impl/ui/235.8b4ded998620e196.js index a943e7c3d4..d8e1611f73 100644 --- a/pkg/apiserver-impl/ui/547.c349efb0d3b6da75.js +++ b/pkg/apiserver-impl/ui/235.8b4ded998620e196.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[547],{317:(K,X,x)=>{x.d(X,{c:()=>i});var b=x(9948),S=x(1410),m=x(2957);function i(l){var h={options:{directed:l.isDirected(),multigraph:l.isMultigraph(),compound:l.isCompound()},nodes:R(l),edges:p(l)};return b.Z(l.graph())||(h.value=S.Z(l.graph())),h}function R(l){return m.Z(l.nodes(),function(h){var v=l.node(h),O=l.parent(h),P={v:h};return b.Z(v)||(P.value=v),b.Z(O)||(P.parent=O),P})}function p(l){return m.Z(l.edges(),function(h){var v=l.edge(h),O={v:h.v,w:h.w};return b.Z(h.name)||(O.name=h.name),b.Z(v)||(O.value=v),O})}x(1595)},1410:(K,X,x)=>{x.d(X,{Z:()=>g});var b=x(4258);const g=function m(i){return(0,b.Z)(i,4)}},9547:(K,X,x)=>{x.d(X,{r:()=>Q});var b=x(5861),S=x(1065),m=x(317),g=x(9038),i=x(9037),R=x(8814),p=x(9627),A=x(8586);let l={},h={},v={};const P=(n,e)=>(i.l.trace("In isDescendant",e," ",n," = ",h[e].includes(n)),!!h[e].includes(n)),U=(n,e,t,c)=>{i.l.warn("Copying children of ",n,"root",c,"data",e.node(n),c);const s=e.children(n)||[];n!==c&&s.push(n),i.l.warn("Copying (nodes) clusterId",n,"nodes",s),s.forEach(r=>{if(e.children(r).length>0)U(r,e,t,c);else{const f=e.node(r);i.l.info("cp ",r," to ",c," with parent ",n),t.setNode(r,f),c!==e.parent(r)&&(i.l.warn("Setting parent",r,e.parent(r)),t.setParent(r,e.parent(r))),n!==c&&r!==n?(i.l.debug("Setting parent",r,n),t.setParent(r,n)):(i.l.info("In copy ",n,"root",c,"data",e.node(n),c),i.l.debug("Not Setting parent for node=",r,"cluster!==rootId",n!==c,"node!==clusterId",r!==n));const u=e.edges(r);i.l.debug("Copying Edges",u),u.forEach(a=>{i.l.info("Edge",a);const E=e.edge(a.v,a.w,a.name);i.l.info("Edge data",E,c);try{((n,e)=>(i.l.info("Descendants of ",e," is ",h[e]),i.l.info("Edge is ",n),n.v!==e&&n.w!==e&&(h[e]?h[e].includes(n.v)||P(n.v,e)||P(n.w,e)||h[e].includes(n.w):(i.l.debug("Tilt, ",e,",not in descendants"),!1))))(a,c)?(i.l.info("Copying as ",a.v,a.w,E,a.name),t.setEdge(a.v,a.w,E,a.name),i.l.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):i.l.info("Skipping copy of edge ",a.v,"--\x3e",a.w," rootId: ",c," clusterId:",n)}catch(C){i.l.error(C)}})}i.l.debug("Removing node",r),e.removeNode(r)})},j=(n,e)=>{const t=e.children(n);let c=[...t];for(const s of t)v[s]=n,c=[...c,...j(s,e)];return c},M=(n,e)=>{i.l.trace("Searching",n);const t=e.children(n);if(i.l.trace("Searching children of id ",n,t),t.length<1)return i.l.trace("This is a valid node",n),n;for(const c of t){const s=M(c,e);if(s)return i.l.trace("Found replacement for",n," => ",s),s}},L=n=>l[n]&&l[n].externalConnections&&l[n]?l[n].id:n,J=(n,e)=>{if(i.l.warn("extractor - ",e,m.c(n),n.children("D")),e>10)return void i.l.error("Bailing out");let t=n.nodes(),c=!1;for(const s of t){const r=n.children(s);c=c||r.length>0}if(c){i.l.debug("Nodes = ",t,e);for(const s of t)if(i.l.debug("Extracting node",s,l,l[s]&&!l[s].externalConnections,!n.parent(s),n.node(s),n.children("D")," Depth ",e),l[s])if(!l[s].externalConnections&&n.children(s)&&n.children(s).length>0){i.l.warn("Cluster without external connections, without a parent and with children",s,e);let f="TB"===n.graph().rankdir?"LR":"TB";l[s]&&l[s].clusterData&&l[s].clusterData.dir&&(f=l[s].clusterData.dir,i.l.warn("Fixing dir",l[s].clusterData.dir,f));const u=new R.k({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.l.warn("Old graph before copy",m.c(n)),U(s,n,u,s),n.setNode(s,{clusterNode:!0,id:s,clusterData:l[s].clusterData,labelText:l[s].labelText,graph:u}),i.l.warn("New graph after copy node: (",s,")",m.c(u)),i.l.debug("Old graph after copy",m.c(n))}else i.l.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l[s].externalConnections," no parent: ",!n.parent(s)," children ",n.children(s)&&n.children(s).length>0,n.children("D"),e),i.l.debug(l);else i.l.debug("Not a cluster",s,e);t=n.nodes(),i.l.warn("New list of nodes",t);for(const s of t){const r=n.node(s);i.l.warn(" Now next level",s,r),r.clusterNode&&J(r.graph,e+1)}}else i.l.debug("Done, no node has children",n.nodes())},Z=(n,e)=>{if(0===e.length)return[];let t=Object.assign(e);return e.forEach(c=>{const s=n.children(c),r=Z(n,s);t=[...t,...r]}),t},H={rect:(n,e)=>{i.l.info("Creating subgraph rect for ",e.id,e);const t=(0,i.c)(),c=n.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),s=c.insert("rect",":first-child"),r=(0,i.m)(t.flowchart.htmlLabels),f=c.insert("g").attr("class","cluster-label"),u="markdown"===e.labelType?(0,p.a)(f,e.labelText,{style:e.labelStyle,useHtmlLabels:r}):f.node().appendChild((0,g.c)(e.labelText,e.labelStyle,void 0,!0));let a=u.getBBox();if((0,i.m)(t.flowchart.htmlLabels)){const y=u.children[0],d=(0,A.Ys)(u);a=y.getBoundingClientRect(),d.attr("width",a.width),d.attr("height",a.height)}const E=0*e.padding,C=E/2,D=e.width<=a.width+E?a.width+E:e.width;e.diff=e.width<=a.width+E?(a.width-e.width)/2-e.padding/2:-e.padding/2,i.l.trace("Data ",e,JSON.stringify(e)),s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-D/2).attr("y",e.y-e.height/2-C).attr("width",D).attr("height",e.height+E);const{subGraphTitleTopMargin:N}=(0,g.g)(t);f.attr("transform",r?`translate(${e.x-a.width/2}, ${e.y-e.height/2+N})`:`translate(${e.x}, ${e.y-e.height/2+N})`);const T=s.node().getBBox();return e.width=T.width,e.height=T.height,e.intersect=function(y){return(0,g.i)(e,y)},c},roundedWithTitle:(n,e)=>{const t=(0,i.c)(),c=n.insert("g").attr("class",e.classes).attr("id",e.id),s=c.insert("rect",":first-child"),r=c.insert("g").attr("class","cluster-label"),f=c.append("rect"),u=r.node().appendChild((0,g.c)(e.labelText,e.labelStyle,void 0,!0));let a=u.getBBox();if((0,i.m)(t.flowchart.htmlLabels)){const y=u.children[0],d=(0,A.Ys)(u);a=y.getBoundingClientRect(),d.attr("width",a.width),d.attr("height",a.height)}a=u.getBBox();const E=0*e.padding,C=E/2,D=e.width<=a.width+e.padding?a.width+e.padding:e.width;e.diff=e.width<=a.width+e.padding?(a.width+0*e.padding-e.width)/2:-e.padding/2,s.attr("class","outer").attr("x",e.x-D/2-C).attr("y",e.y-e.height/2-C).attr("width",D+E).attr("height",e.height+E),f.attr("class","inner").attr("x",e.x-D/2-C).attr("y",e.y-e.height/2-C+a.height-1).attr("width",D+E).attr("height",e.height+E-a.height-3);const{subGraphTitleTopMargin:N}=(0,g.g)(t);r.attr("transform",`translate(${e.x-a.width/2}, ${e.y-e.height/2-e.padding/3+((0,i.m)(t.flowchart.htmlLabels)?5:3)+N})`);const T=s.node().getBBox();return e.height=T.height,e.intersect=function(y){return(0,g.i)(e,y)},c},noteGroup:(n,e)=>{const t=n.insert("g").attr("class","note-cluster").attr("id",e.id),c=t.insert("rect",":first-child"),s=0*e.padding,r=s/2;c.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-r).attr("y",e.y-e.height/2-r).attr("width",e.width+s).attr("height",e.height+s).attr("fill","none");const f=c.node().getBBox();return e.width=f.width,e.height=f.height,e.intersect=function(u){return(0,g.i)(e,u)},t},divider:(n,e)=>{const t=n.insert("g").attr("class",e.classes).attr("id",e.id),c=t.insert("rect",":first-child"),s=0*e.padding,r=s/2;c.attr("class","divider").attr("x",e.x-e.width/2-r).attr("y",e.y-e.height/2).attr("width",e.width+s).attr("height",e.height+s);const f=c.node().getBBox();return e.width=f.width,e.height=f.height,e.diff=-e.padding/2,e.intersect=function(u){return(0,g.i)(e,u)},t}};let F={};const G=function(){var n=(0,b.Z)(function*(e,t,c,s,r,f){i.l.info("Graph in recursive render: XXX",m.c(t),r);const u=t.graph().rankdir;i.l.trace("Dir in recursive render - dir:",u);const a=e.insert("g").attr("class","root");t.nodes()?i.l.info("Recursive render XXX",t.nodes()):i.l.info("No nodes found for",t),t.edges().length>0&&i.l.trace("Recursive edges",t.edge(t.edges()[0]));const E=a.insert("g").attr("class","clusters"),C=a.insert("g").attr("class","edgePaths"),D=a.insert("g").attr("class","edgeLabels"),N=a.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(){var d=(0,b.Z)(function*(o){const w=t.node(o);if(void 0!==r){const B=JSON.parse(JSON.stringify(r.clusterData));i.l.info("Setting data for cluster XXX (",o,") ",B,r),t.setNode(r.id,B),t.parent(o)||(i.l.trace("Setting parent",o,r.id),t.setParent(o,r.id,B))}if(i.l.info("(Insert) Node XXX"+o+": "+JSON.stringify(t.node(o))),w&&w.clusterNode){i.l.info("Cluster identified",o,w.width,t.node(o));const B=yield G(N,w.graph,c,s,t.node(o),f),W=B.elem;(0,g.u)(w,W),w.diff=B.diff||0,i.l.info("Node bounds (abc123)",o,w,w.width,w.x,w.y),(0,g.s)(W,w),i.l.warn("Recursive render complete ",W,w)}else t.children(o).length>0?(i.l.info("Cluster - the non recursive path XXX",o,w.id,w,t),i.l.info(M(w.id,t)),l[w.id]={id:M(w.id,t),node:w}):(i.l.info("Node - the non recursive path",o,w.id,w),yield(0,g.e)(N,t.node(o),u))});return function(o){return d.apply(this,arguments)}}())),t.edges().forEach(function(d){const o=t.edge(d.v,d.w,d.name);i.l.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d)),i.l.info("Edge "+d.v+" -> "+d.w+": ",d," ",JSON.stringify(t.edge(d))),i.l.info("Fix",l,"ids:",d.v,d.w,"Translating: ",l[d.v],l[d.w]),(0,g.f)(D,o)}),t.edges().forEach(function(d){i.l.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d))}),i.l.info("#############################################"),i.l.info("### Layout ###"),i.l.info("#############################################"),i.l.info(t),(0,S.bK)(t),i.l.info("Graph after layout:",m.c(t));let T=0;const{subGraphTitleTotalMargin:y}=(0,g.g)(f);return(n=>Z(n,n.children()))(t).forEach(function(d){const o=t.node(d);i.l.info("Position "+d+": "+JSON.stringify(t.node(d))),i.l.info("Position "+d+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,(0,g.p)(o)):t.children(d).length>0?(o.height+=y,((n,e)=>{i.l.trace("Inserting cluster"),F[e.id]=H[e.shape||"rect"](n,e)})(E,o),l[o.id].node=o):(o.y+=y/2,(0,g.p)(o))}),t.edges().forEach(function(d){const o=t.edge(d);i.l.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(o),o),o.points.forEach(B=>B.y+=y/2);const w=(0,g.h)(C,d,o,l,c,t,s);(0,g.j)(o,w)}),t.nodes().forEach(function(d){const o=t.node(d);i.l.info(d,o.type,o.diff),"group"===o.type&&(T=o.diff)}),{elem:a,diff:T}});return function(t,c,s,r,f,u){return n.apply(this,arguments)}}(),Q=function(){var n=(0,b.Z)(function*(e,t,c,s,r){(0,g.a)(e,c,s,r),(0,g.b)(),(0,g.d)(),F={},h={},v={},l={},i.l.warn("Graph at first:",JSON.stringify(m.c(t))),((n,e)=>{if(n){i.l.debug("Opting in, graph "),n.nodes().forEach(function(t){n.children(t).length>0&&(i.l.warn("Cluster identified",t," Replacement id in edges: ",M(t,n)),h[t]=j(t,n),l[t]={id:M(t,n),clusterData:n.node(t)})}),n.nodes().forEach(function(t){const c=n.children(t),s=n.edges();c.length>0?(i.l.debug("Cluster identified",t,h),s.forEach(r=>{r.v!==t&&r.w!==t&&P(r.v,t)^P(r.w,t)&&(i.l.warn("Edge: ",r," leaves cluster ",t),i.l.warn("Descendants of XXX ",t,": ",h[t]),l[t].externalConnections=!0)})):i.l.debug("Not a cluster ",t,h)});for(let t of Object.keys(l)){const s=n.parent(l[t].id);s!==t&&l[s]&&!l[s].externalConnections&&(l[t].id=s)}n.edges().forEach(function(t){const c=n.edge(t);i.l.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),i.l.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(n.edge(t)));let s=t.v,r=t.w;if(i.l.warn("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l[t.v]," --- ",l[t.w]),l[t.v]&&l[t.w]&&l[t.v]===l[t.w]){i.l.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),i.l.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),s=L(t.v),r=L(t.w),n.removeEdge(t.v,t.w,t.name);const f=t.w+"---"+t.v;n.setNode(f,{domId:f,id:f,labelStyle:"",labelText:c.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(c),a=structuredClone(c);u.label="",u.arrowTypeEnd="none",a.label="",u.fromCluster=t.v,a.toCluster=t.v,n.setEdge(s,f,u,t.name+"-cyclic-special"),n.setEdge(f,r,a,t.name+"-cyclic-special")}else if(l[t.v]||l[t.w]){if(i.l.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),s=L(t.v),r=L(t.w),n.removeEdge(t.v,t.w,t.name),s!==t.v){const f=n.parent(s);l[f].externalConnections=!0,c.fromCluster=t.v}if(r!==t.w){const f=n.parent(r);l[f].externalConnections=!0,c.toCluster=t.w}i.l.warn("Fix Replacing with XXX",s,r,t.name),n.setEdge(s,r,c,t.name)}}),i.l.warn("Adjusted Graph",m.c(n)),J(n,0),i.l.trace(l)}else i.l.debug("Opting out, no graph ")})(t),i.l.warn("Graph after:",JSON.stringify(m.c(t)));const f=(0,i.c)();yield G(e,t,s,r,void 0,f)});return function(t,c,s,r,f){return n.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[235],{317:(K,X,x)=>{x.d(X,{c:()=>i});var b=x(9948),S=x(1410),m=x(2957);function i(l){var h={options:{directed:l.isDirected(),multigraph:l.isMultigraph(),compound:l.isCompound()},nodes:R(l),edges:p(l)};return b.Z(l.graph())||(h.value=S.Z(l.graph())),h}function R(l){return m.Z(l.nodes(),function(h){var v=l.node(h),O=l.parent(h),P={v:h};return b.Z(v)||(P.value=v),b.Z(O)||(P.parent=O),P})}function p(l){return m.Z(l.edges(),function(h){var v=l.edge(h),O={v:h.v,w:h.w};return b.Z(h.name)||(O.name=h.name),b.Z(v)||(O.value=v),O})}x(1595)},1410:(K,X,x)=>{x.d(X,{Z:()=>g});var b=x(4258);const g=function m(i){return(0,b.Z)(i,4)}},8235:(K,X,x)=>{x.d(X,{r:()=>Q});var b=x(5861),S=x(1065),m=x(317),g=x(1196),i=x(8080),R=x(8814),p=x(4118),A=x(8586);let l={},h={},v={};const P=(n,e)=>(i.l.trace("In isDescendant",e," ",n," = ",h[e].includes(n)),!!h[e].includes(n)),U=(n,e,t,c)=>{i.l.warn("Copying children of ",n,"root",c,"data",e.node(n),c);const s=e.children(n)||[];n!==c&&s.push(n),i.l.warn("Copying (nodes) clusterId",n,"nodes",s),s.forEach(r=>{if(e.children(r).length>0)U(r,e,t,c);else{const f=e.node(r);i.l.info("cp ",r," to ",c," with parent ",n),t.setNode(r,f),c!==e.parent(r)&&(i.l.warn("Setting parent",r,e.parent(r)),t.setParent(r,e.parent(r))),n!==c&&r!==n?(i.l.debug("Setting parent",r,n),t.setParent(r,n)):(i.l.info("In copy ",n,"root",c,"data",e.node(n),c),i.l.debug("Not Setting parent for node=",r,"cluster!==rootId",n!==c,"node!==clusterId",r!==n));const u=e.edges(r);i.l.debug("Copying Edges",u),u.forEach(a=>{i.l.info("Edge",a);const E=e.edge(a.v,a.w,a.name);i.l.info("Edge data",E,c);try{((n,e)=>(i.l.info("Descendants of ",e," is ",h[e]),i.l.info("Edge is ",n),n.v!==e&&n.w!==e&&(h[e]?h[e].includes(n.v)||P(n.v,e)||P(n.w,e)||h[e].includes(n.w):(i.l.debug("Tilt, ",e,",not in descendants"),!1))))(a,c)?(i.l.info("Copying as ",a.v,a.w,E,a.name),t.setEdge(a.v,a.w,E,a.name),i.l.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):i.l.info("Skipping copy of edge ",a.v,"--\x3e",a.w," rootId: ",c," clusterId:",n)}catch(C){i.l.error(C)}})}i.l.debug("Removing node",r),e.removeNode(r)})},j=(n,e)=>{const t=e.children(n);let c=[...t];for(const s of t)v[s]=n,c=[...c,...j(s,e)];return c},M=(n,e)=>{i.l.trace("Searching",n);const t=e.children(n);if(i.l.trace("Searching children of id ",n,t),t.length<1)return i.l.trace("This is a valid node",n),n;for(const c of t){const s=M(c,e);if(s)return i.l.trace("Found replacement for",n," => ",s),s}},L=n=>l[n]&&l[n].externalConnections&&l[n]?l[n].id:n,J=(n,e)=>{if(i.l.warn("extractor - ",e,m.c(n),n.children("D")),e>10)return void i.l.error("Bailing out");let t=n.nodes(),c=!1;for(const s of t){const r=n.children(s);c=c||r.length>0}if(c){i.l.debug("Nodes = ",t,e);for(const s of t)if(i.l.debug("Extracting node",s,l,l[s]&&!l[s].externalConnections,!n.parent(s),n.node(s),n.children("D")," Depth ",e),l[s])if(!l[s].externalConnections&&n.children(s)&&n.children(s).length>0){i.l.warn("Cluster without external connections, without a parent and with children",s,e);let f="TB"===n.graph().rankdir?"LR":"TB";l[s]&&l[s].clusterData&&l[s].clusterData.dir&&(f=l[s].clusterData.dir,i.l.warn("Fixing dir",l[s].clusterData.dir,f));const u=new R.k({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.l.warn("Old graph before copy",m.c(n)),U(s,n,u,s),n.setNode(s,{clusterNode:!0,id:s,clusterData:l[s].clusterData,labelText:l[s].labelText,graph:u}),i.l.warn("New graph after copy node: (",s,")",m.c(u)),i.l.debug("Old graph after copy",m.c(n))}else i.l.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l[s].externalConnections," no parent: ",!n.parent(s)," children ",n.children(s)&&n.children(s).length>0,n.children("D"),e),i.l.debug(l);else i.l.debug("Not a cluster",s,e);t=n.nodes(),i.l.warn("New list of nodes",t);for(const s of t){const r=n.node(s);i.l.warn(" Now next level",s,r),r.clusterNode&&J(r.graph,e+1)}}else i.l.debug("Done, no node has children",n.nodes())},Z=(n,e)=>{if(0===e.length)return[];let t=Object.assign(e);return e.forEach(c=>{const s=n.children(c),r=Z(n,s);t=[...t,...r]}),t},H={rect:(n,e)=>{i.l.info("Creating subgraph rect for ",e.id,e);const t=(0,i.c)(),c=n.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),s=c.insert("rect",":first-child"),r=(0,i.m)(t.flowchart.htmlLabels),f=c.insert("g").attr("class","cluster-label"),u="markdown"===e.labelType?(0,p.a)(f,e.labelText,{style:e.labelStyle,useHtmlLabels:r}):f.node().appendChild((0,g.c)(e.labelText,e.labelStyle,void 0,!0));let a=u.getBBox();if((0,i.m)(t.flowchart.htmlLabels)){const y=u.children[0],d=(0,A.Ys)(u);a=y.getBoundingClientRect(),d.attr("width",a.width),d.attr("height",a.height)}const E=0*e.padding,C=E/2,D=e.width<=a.width+E?a.width+E:e.width;e.diff=e.width<=a.width+E?(a.width-e.width)/2-e.padding/2:-e.padding/2,i.l.trace("Data ",e,JSON.stringify(e)),s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-D/2).attr("y",e.y-e.height/2-C).attr("width",D).attr("height",e.height+E);const{subGraphTitleTopMargin:N}=(0,g.g)(t);f.attr("transform",r?`translate(${e.x-a.width/2}, ${e.y-e.height/2+N})`:`translate(${e.x}, ${e.y-e.height/2+N})`);const T=s.node().getBBox();return e.width=T.width,e.height=T.height,e.intersect=function(y){return(0,g.i)(e,y)},c},roundedWithTitle:(n,e)=>{const t=(0,i.c)(),c=n.insert("g").attr("class",e.classes).attr("id",e.id),s=c.insert("rect",":first-child"),r=c.insert("g").attr("class","cluster-label"),f=c.append("rect"),u=r.node().appendChild((0,g.c)(e.labelText,e.labelStyle,void 0,!0));let a=u.getBBox();if((0,i.m)(t.flowchart.htmlLabels)){const y=u.children[0],d=(0,A.Ys)(u);a=y.getBoundingClientRect(),d.attr("width",a.width),d.attr("height",a.height)}a=u.getBBox();const E=0*e.padding,C=E/2,D=e.width<=a.width+e.padding?a.width+e.padding:e.width;e.diff=e.width<=a.width+e.padding?(a.width+0*e.padding-e.width)/2:-e.padding/2,s.attr("class","outer").attr("x",e.x-D/2-C).attr("y",e.y-e.height/2-C).attr("width",D+E).attr("height",e.height+E),f.attr("class","inner").attr("x",e.x-D/2-C).attr("y",e.y-e.height/2-C+a.height-1).attr("width",D+E).attr("height",e.height+E-a.height-3);const{subGraphTitleTopMargin:N}=(0,g.g)(t);r.attr("transform",`translate(${e.x-a.width/2}, ${e.y-e.height/2-e.padding/3+((0,i.m)(t.flowchart.htmlLabels)?5:3)+N})`);const T=s.node().getBBox();return e.height=T.height,e.intersect=function(y){return(0,g.i)(e,y)},c},noteGroup:(n,e)=>{const t=n.insert("g").attr("class","note-cluster").attr("id",e.id),c=t.insert("rect",":first-child"),s=0*e.padding,r=s/2;c.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-r).attr("y",e.y-e.height/2-r).attr("width",e.width+s).attr("height",e.height+s).attr("fill","none");const f=c.node().getBBox();return e.width=f.width,e.height=f.height,e.intersect=function(u){return(0,g.i)(e,u)},t},divider:(n,e)=>{const t=n.insert("g").attr("class",e.classes).attr("id",e.id),c=t.insert("rect",":first-child"),s=0*e.padding,r=s/2;c.attr("class","divider").attr("x",e.x-e.width/2-r).attr("y",e.y-e.height/2).attr("width",e.width+s).attr("height",e.height+s);const f=c.node().getBBox();return e.width=f.width,e.height=f.height,e.diff=-e.padding/2,e.intersect=function(u){return(0,g.i)(e,u)},t}};let F={};const G=function(){var n=(0,b.Z)(function*(e,t,c,s,r,f){i.l.info("Graph in recursive render: XXX",m.c(t),r);const u=t.graph().rankdir;i.l.trace("Dir in recursive render - dir:",u);const a=e.insert("g").attr("class","root");t.nodes()?i.l.info("Recursive render XXX",t.nodes()):i.l.info("No nodes found for",t),t.edges().length>0&&i.l.trace("Recursive edges",t.edge(t.edges()[0]));const E=a.insert("g").attr("class","clusters"),C=a.insert("g").attr("class","edgePaths"),D=a.insert("g").attr("class","edgeLabels"),N=a.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(){var d=(0,b.Z)(function*(o){const w=t.node(o);if(void 0!==r){const B=JSON.parse(JSON.stringify(r.clusterData));i.l.info("Setting data for cluster XXX (",o,") ",B,r),t.setNode(r.id,B),t.parent(o)||(i.l.trace("Setting parent",o,r.id),t.setParent(o,r.id,B))}if(i.l.info("(Insert) Node XXX"+o+": "+JSON.stringify(t.node(o))),w&&w.clusterNode){i.l.info("Cluster identified",o,w.width,t.node(o));const B=yield G(N,w.graph,c,s,t.node(o),f),W=B.elem;(0,g.u)(w,W),w.diff=B.diff||0,i.l.info("Node bounds (abc123)",o,w,w.width,w.x,w.y),(0,g.s)(W,w),i.l.warn("Recursive render complete ",W,w)}else t.children(o).length>0?(i.l.info("Cluster - the non recursive path XXX",o,w.id,w,t),i.l.info(M(w.id,t)),l[w.id]={id:M(w.id,t),node:w}):(i.l.info("Node - the non recursive path",o,w.id,w),yield(0,g.e)(N,t.node(o),u))});return function(o){return d.apply(this,arguments)}}())),t.edges().forEach(function(d){const o=t.edge(d.v,d.w,d.name);i.l.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d)),i.l.info("Edge "+d.v+" -> "+d.w+": ",d," ",JSON.stringify(t.edge(d))),i.l.info("Fix",l,"ids:",d.v,d.w,"Translating: ",l[d.v],l[d.w]),(0,g.f)(D,o)}),t.edges().forEach(function(d){i.l.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d))}),i.l.info("#############################################"),i.l.info("### Layout ###"),i.l.info("#############################################"),i.l.info(t),(0,S.bK)(t),i.l.info("Graph after layout:",m.c(t));let T=0;const{subGraphTitleTotalMargin:y}=(0,g.g)(f);return(n=>Z(n,n.children()))(t).forEach(function(d){const o=t.node(d);i.l.info("Position "+d+": "+JSON.stringify(t.node(d))),i.l.info("Position "+d+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,(0,g.p)(o)):t.children(d).length>0?(o.height+=y,((n,e)=>{i.l.trace("Inserting cluster"),F[e.id]=H[e.shape||"rect"](n,e)})(E,o),l[o.id].node=o):(o.y+=y/2,(0,g.p)(o))}),t.edges().forEach(function(d){const o=t.edge(d);i.l.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(o),o),o.points.forEach(B=>B.y+=y/2);const w=(0,g.h)(C,d,o,l,c,t,s);(0,g.j)(o,w)}),t.nodes().forEach(function(d){const o=t.node(d);i.l.info(d,o.type,o.diff),"group"===o.type&&(T=o.diff)}),{elem:a,diff:T}});return function(t,c,s,r,f,u){return n.apply(this,arguments)}}(),Q=function(){var n=(0,b.Z)(function*(e,t,c,s,r){(0,g.a)(e,c,s,r),(0,g.b)(),(0,g.d)(),F={},h={},v={},l={},i.l.warn("Graph at first:",JSON.stringify(m.c(t))),((n,e)=>{if(n){i.l.debug("Opting in, graph "),n.nodes().forEach(function(t){n.children(t).length>0&&(i.l.warn("Cluster identified",t," Replacement id in edges: ",M(t,n)),h[t]=j(t,n),l[t]={id:M(t,n),clusterData:n.node(t)})}),n.nodes().forEach(function(t){const c=n.children(t),s=n.edges();c.length>0?(i.l.debug("Cluster identified",t,h),s.forEach(r=>{r.v!==t&&r.w!==t&&P(r.v,t)^P(r.w,t)&&(i.l.warn("Edge: ",r," leaves cluster ",t),i.l.warn("Descendants of XXX ",t,": ",h[t]),l[t].externalConnections=!0)})):i.l.debug("Not a cluster ",t,h)});for(let t of Object.keys(l)){const s=n.parent(l[t].id);s!==t&&l[s]&&!l[s].externalConnections&&(l[t].id=s)}n.edges().forEach(function(t){const c=n.edge(t);i.l.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),i.l.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(n.edge(t)));let s=t.v,r=t.w;if(i.l.warn("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l[t.v]," --- ",l[t.w]),l[t.v]&&l[t.w]&&l[t.v]===l[t.w]){i.l.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),i.l.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),s=L(t.v),r=L(t.w),n.removeEdge(t.v,t.w,t.name);const f=t.w+"---"+t.v;n.setNode(f,{domId:f,id:f,labelStyle:"",labelText:c.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(c),a=structuredClone(c);u.label="",u.arrowTypeEnd="none",a.label="",u.fromCluster=t.v,a.toCluster=t.v,n.setEdge(s,f,u,t.name+"-cyclic-special"),n.setEdge(f,r,a,t.name+"-cyclic-special")}else if(l[t.v]||l[t.w]){if(i.l.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),s=L(t.v),r=L(t.w),n.removeEdge(t.v,t.w,t.name),s!==t.v){const f=n.parent(s);l[f].externalConnections=!0,c.fromCluster=t.v}if(r!==t.w){const f=n.parent(r);l[f].externalConnections=!0,c.toCluster=t.w}i.l.warn("Fix Replacing with XXX",s,r,t.name),n.setEdge(s,r,c,t.name)}}),i.l.warn("Adjusted Graph",m.c(n)),J(n,0),i.l.trace(l)}else i.l.debug("Opting out, no graph ")})(t),i.l.warn("Graph after:",JSON.stringify(m.c(t)));const f=(0,i.c)();yield G(e,t,s,r,void 0,f)});return function(t,c,s,r,f){return n.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/256.e109041062d43d27.js b/pkg/apiserver-impl/ui/256.e109041062d43d27.js new file mode 100644 index 0000000000..0008b7a857 --- /dev/null +++ b/pkg/apiserver-impl/ui/256.e109041062d43d27.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[256],{4047:(ri,ct,B)=>{B.r(ct),B.d(ct,{diagram:()=>ei});var A=B(8080),Lt=B(4118),z=B(8586),J=(B(1764),B(6780),B(2735),function(){var e=function(O,o,l,c){for(l=l||{},c=O.length;c--;l[O[c]]=o);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],h=[1,6],g=[1,7],f=[1,5,10,12,14,16,18,19,21,23,34,35,36],y=[1,25],E=[1,26],S=[1,28],R=[1,29],L=[1,30],v=[1,31],k=[1,32],M=[1,33],p=[1,34],w=[1,35],r=[1,36],T=[1,37],$=[1,43],kt=[1,42],Rt=[1,47],G=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],st=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],D=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Tt=[1,64],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(o,l,c,u,m,a,j){var x=a.length-1;switch(m){case 5:u.setOrientation(a[x]);break;case 9:u.setDiagramTitle(a[x].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[x]);break;case 13:u.setLineData(a[x-1],a[x]);break;case 14:u.setBarData({text:"",type:"text"},a[x]);break;case 15:u.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),u.setAccDescription(this.$);break;case 19:case 27:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:u.setXAxisTitle(a[x]);break;case 23:u.setXAxisTitle(a[x-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[x]);break;case 26:u.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:u.setYAxisTitle(a[x]);break;case 31:u.setYAxisTitle(a[x-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x]}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:h,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:h,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:h,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:h,36:g}),{1:[2,3]},e(f,[2,5]),e(t,[2,7],{4:22,34:n,35:h,36:g}),{11:23,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:39,13:38,24:$,27:kt,29:40,30:41,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:45,15:44,27:Rt,33:46,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:49,17:48,24:G,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:52,17:51,24:G,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{20:[1,53]},{22:[1,54]},e(b,[2,18]),{1:[2,2]},e(b,[2,8]),e(b,[2,9]),e(st,[2,37],{40:55,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T}),e(st,[2,38]),e(st,[2,39]),e(D,[2,40]),e(D,[2,42]),e(D,[2,43]),e(D,[2,44]),e(D,[2,45]),e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(b,[2,10]),e(b,[2,22],{30:41,29:56,24:$,27:kt}),e(b,[2,24]),e(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},e(b,[2,11]),e(b,[2,30],{33:60,27:Rt}),e(b,[2,32]),{31:[1,61]},e(b,[2,12]),{17:62,24:G},{25:63,27:Tt},e(b,[2,14]),{17:65,24:G},e(b,[2,16]),e(b,[2,17]),e(D,[2,41]),e(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(b,[2,31]),{27:[1,69]},e(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(b,[2,15]),e(b,[2,26]),e(b,[2,27]),{11:59,32:72,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},e(b,[2,33]),e(b,[2,19]),{25:73,27:Tt},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(o,l){if(!l.recoverable){var c=new Error(o);throw c.hash=l,c}this.trace(o)},parse:function(o){var c=[0],u=[],m=[null],a=[],j=this.table,x="",Q=0,Dt=0,ai=a.slice.call(arguments,1),_=Object.create(this.lexer),W={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(W.yy[ot]=this.yy[ot]);_.setInput(o,W.yy),W.yy.lexer=_,W.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ht=_.yylloc;a.push(ht);var V,oi=_.options&&_.options.ranges;this.parseError="function"==typeof W.yy.parseError?W.yy.parseError:Object.getPrototypeOf(this).parseError;for(var C,F,P,rt,q,I,Z,N={};;){if(this.defaultActions[F=c[c.length-1]]?P=this.defaultActions[F]:((null===C||typeof C>"u")&&(V=void 0,"number"!=typeof(V=u.pop()||_.lex()||1)&&(V instanceof Array&&(V=(u=V).pop()),V=this.symbols_[V]||V),C=V),P=j[F]&&j[F][C]),typeof P>"u"||!P.length||!P[0]){var lt;for(q in Z=[],j[F])this.terminals_[q]&&q>2&&Z.push("'"+this.terminals_[q]+"'");lt=_.showPosition?"Parse error on line "+(Q+1)+":\n"+_.showPosition()+"\nExpecting "+Z.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(Q+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(lt,{text:_.match,token:this.terminals_[C]||C,line:_.yylineno,loc:ht,expected:Z})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+C);switch(P[0]){case 1:c.push(C),m.push(_.yytext),a.push(_.yylloc),c.push(P[1]),C=null,Dt=_.yyleng,x=_.yytext,Q=_.yylineno,ht=_.yylloc;break;case 2:if(N.$=m[m.length-(I=this.productions_[P[1]][1])],N._$={first_line:a[a.length-(I||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(I||1)].first_column,last_column:a[a.length-1].last_column},oi&&(N._$.range=[a[a.length-(I||1)].range[0],a[a.length-1].range[1]]),typeof(rt=this.performAction.apply(N,[x,Dt,Q,W.yy,P[1],m,a].concat(ai)))<"u")return rt;I&&(c=c.slice(0,-1*I*2),m=m.slice(0,-1*I),a=a.slice(0,-1*I)),c.push(this.productions_[P[1]][0]),m.push(N.$),a.push(N._$),c.push(j[c[c.length-2]][c[c.length-1]]);break;case 3:return!0}}return!0}};function at(){this.yy={}}return nt.lexer={EOF:1,parseError:function(l,c){if(!this.yy.parser)throw new Error(l);this.yy.parser.parseError(l,c)},setInput:function(o,l){return this.yy=l||this.yy||{},this._input=o,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},input:function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},unput:function(o){var l=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;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),c.length-1&&(this.yylineno-=c.length-1);var m=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===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+"\n"+l+"^"},test_match:function(o,l){var c,u,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),(u=o[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+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],c=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var a in m)this[a]=m[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var o,l,c,u;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),a=0;al[0].length)){if(l=c,u=a,this.options.backtrack_lexer){if(!1!==(o=this.test_match(c,m[a])))return o;if(this._backtrack){l=!1;continue}return!1}if(!this.options.flex)break}return l?!1!==(o=this.test_match(l,m[u]))&&o:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return(l=this.conditionStack.length-1-Math.abs(l||0))>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,c,u,m){switch(u){case 0:case 1:case 5:case 43:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 25:case 27:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 26:this.pushState("string");break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}},at.prototype=nt,nt.Parser=at,new at}());J.parser=J;const vt=J;function ut(e){return"bar"===e.type}function gt(e){return"band"===e.type}function X(e){return"linear"===e.type}class xt{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((h,g)=>Math.max(g.length,h),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const h of t){const g=(0,Lt.c)(n,1,h),y=g?g.height:i;s.width=Math.max(s.width,g?g.width:h.length*i),s.height=Math.max(s.height,y)}return n.remove(),s}}class ft{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension();this.outerPadding=Math.min(s.width/2,.2*t.width);const h=s.height+2*this.axisConfig.labelPadding;this.labelTextHeight=s.height,h<=i&&(i-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+2*this.axisConfig.titlePadding;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension();this.outerPadding=Math.min(s.height/2,.2*t.height);const h=s.width+2*this.axisConfig.labelPadding;h<=i&&(i-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+2*this.axisConfig.titlePadding;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}}class Mt extends ft{constructor(t,i,s,n,h){super(t,n,h,i),this.categories=s,this.scale=(0,z.tiA)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,z.tiA)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),A.l.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class It extends ft{constructor(t,i,s,n,h){super(t,n,h,i),this.domain=s,this.scale=(0,z.BYU)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=(0,z.BYU)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function yt(e,t,i,s){const n=new xt(s);return gt(e)?new Mt(t,i,e.categories,e.title,n):new It(t,i,[e.min,e.max],e.title,n)}class Vt{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function Bt(e,t,i,s){const n=new xt(s);return new Vt(n,e,t,i)}class Ot{constructor(t,i,s,n,h){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=h}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return i="horizontal"===this.orientation?(0,z.jvg)().y(s=>s[0]).x(s=>s[1])(t):(0,z.jvg)().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class Wt{constructor(t,i,s,n,h,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=h,this.plotIndex=g}getDrawableElement(){const t=this.barData.data.map(h=>[this.xAxis.getScaleValue(h[0]),this.yAxis.getScaleValue(h[1])]),s=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),n=s/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:this.boundingRect.x,y:h[0]-n,height:s,width:h[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:h[0]-n,y:h[1],width:s,height:this.boundingRect.y+this.boundingRect.height-h[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class Ft{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Ot(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Wt(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}}return t}}function zt(e,t,i){return new Ft(e,t,i)}class Nt{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:Bt(t,i,s,n),plot:zt(t,i,s),xAxis:yt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:yt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:h,height:g});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=f.width,t-=f.width,t>0&&(h+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+h]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+g}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(y=>ut(y))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,h=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),y=this.componentStore.plot.calculateSpace({width:g,height:f});t-=y.width,i-=y.height,y=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=y.height,i-=y.height,this.componentStore.xAxis.setAxisPosition("left"),y=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=y.width,n=y.width,this.componentStore.yAxis.setAxisPosition("top"),y=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=y.height,h=s+y.height,t>0&&(g+=t,t=0),i>0&&(f+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:f}),this.componentStore.plot.setBoundingBoxXY({x:n,y:h}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([h,h+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(E=>ut(E))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class Xt{static build(t,i,s,n){return new Nt(t,i,s,n).getDrawableElement()}}let mt,Y=0,U=At(),H=bt(),d={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},tt=H.plotColorPalette.split(",").map(e=>e.trim()),K=!1,it=!1;function bt(){const e=(0,A.E)(),t=(0,A.F)();return(0,A.C)(e.xyChart,t.themeVariables.xyChart)}function At(){const e=(0,A.F)();return(0,A.C)(A.B.xyChart,e.xyChart)}function et(e){const t=(0,A.F)();return(0,A.d)(e.trim(),t)}function wt(e,t){d.xAxis={type:"linear",title:d.xAxis.title,min:e,max:t},K=!0}function Ct(e){let t=[];if(0===e.length)return t;if(!K){const i=X(d.xAxis)?d.xAxis.min:1/0,s=X(d.xAxis)?d.xAxis.max:-1/0;wt(Math.min(i,1),Math.max(s,e.length))}if(it||function Gt(e){const t=Math.min(...e),i=Math.max(...e),s=X(d.yAxis)?d.yAxis.min:1/0,n=X(d.yAxis)?d.yAxis.max:-1/0;d.yAxis={type:"linear",title:d.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}(e),gt(d.xAxis)&&(t=d.xAxis.categories.map((i,s)=>[i,e[s]])),X(d.xAxis)){const i=d.xAxis.min,s=d.xAxis.max,n=(s-i+1)/e.length,h=[];for(let g=i;g<=s;g+=n)h.push(`${g}`);t=h.map((g,f)=>[g,e[f]])}return t}function St(e){return tt[0===e?0:e%tt.length]}const ei={parser:vt,db:{getDrawableElem:function Zt(){if(0===d.plots.length)throw Error("No Plot to render, please provide a plot with some data");return d.title=(0,A.t)(),Xt.build(U,d,H,mt)},clear:function(){(0,A.v)(),Y=0,U=At(),d={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},H=bt(),tt=H.plotColorPalette.split(",").map(e=>e.trim()),K=!1,it=!1},setAccTitle:A.s,getAccTitle:A.g,setDiagramTitle:A.q,getDiagramTitle:A.t,getAccDescription:A.a,setAccDescription:A.b,setOrientation:function Ut(e){U.chartOrientation="horizontal"===e?"horizontal":"vertical"},setXAxisTitle:function Ht(e){d.xAxis.title=et(e.text)},setXAxisRangeData:wt,setXAxisBand:function $t(e){d.xAxis={type:"band",title:d.xAxis.title,categories:e.map(t=>et(t.text))},K=!0},setYAxisTitle:function jt(e){d.yAxis.title=et(e.text)},setYAxisRangeData:function Kt(e,t){d.yAxis={type:"linear",title:d.yAxis.title,min:e,max:t},it=!0},setLineData:function Qt(e,t){const i=Ct(t);d.plots.push({type:"line",strokeFill:St(Y),strokeWidth:2,data:i}),Y++},setBarData:function qt(e,t){const i=Ct(t);d.plots.push({type:"bar",fill:St(Y),data:i}),Y++},setTmpSVGG:function Yt(e){mt=e},getChartThemeConfig:function Jt(){return H},getChartConfig:function ti(){return U}},renderer:{draw:(e,t,i,s)=>{const n=s.db,h=n.getChartThemeConfig(),g=n.getChartConfig();function f(p){return"top"===p?"text-before-edge":"middle"}function y(p){return"left"===p?"start":"right"===p?"end":"middle"}function E(p){return`translate(${p.x}, ${p.y}) rotate(${p.rotation||0})`}A.l.debug("Rendering xychart chart\n"+e);const S=(0,A.A)(t),R=S.append("g").attr("class","main"),L=R.append("rect").attr("width",g.width).attr("height",g.height).attr("class","background");(0,A.i)(S,g.height,g.width,!0),S.attr("viewBox",`0 0 ${g.width} ${g.height}`),L.attr("fill",h.backgroundColor),n.setTmpSVGG(S.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),k={};function M(p){let w=R,r="";for(const[T]of p.entries()){let $=R;T>0&&k[r]&&($=k[r]),r+=p[T],w=k[r],w||(w=k[r]=$.append("g").attr("class",p[T]))}return w}for(const p of v){if(0===p.data.length)continue;const w=M(p.groupTexts);switch(p.type){case"rect":w.selectAll("rect").data(p.data).enter().append("rect").attr("x",r=>r.x).attr("y",r=>r.y).attr("width",r=>r.width).attr("height",r=>r.height).attr("fill",r=>r.fill).attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth);break;case"text":w.selectAll("text").data(p.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",r=>r.fill).attr("font-size",r=>r.fontSize).attr("dominant-baseline",r=>f(r.verticalPos)).attr("text-anchor",r=>y(r.horizontalPos)).attr("transform",r=>E(r)).text(r=>r.text);break;case"path":w.selectAll("path").data(p.data).enter().append("path").attr("d",r=>r.path).attr("fill",r=>r.fill?r.fill:"none").attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth)}}}}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/277.ef9c6b029eb416c2.js b/pkg/apiserver-impl/ui/277.ef9c6b029eb416c2.js new file mode 100644 index 0000000000..90eeb7f3dc --- /dev/null +++ b/pkg/apiserver-impl/ui/277.ef9c6b029eb416c2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[277],{277:(l,E,_)=>{_.r(E),_.d(E,{diagram:()=>M});var a=_(3070),s=_(4805),d=_(8080);_(8586),_(8814),_(1065),_(317),_(1764),_(6780),_(2735);const M={parser:a.p,db:a.f,renderer:s.f,styles:s.a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,(0,d.p)({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),s.f.setConf(r.flowchart),a.f.clear(),a.f.setGen("gen-2")}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/499.7b2b01997dee913b.js b/pkg/apiserver-impl/ui/294.bac01a924dc03377.js similarity index 99% rename from pkg/apiserver-impl/ui/499.7b2b01997dee913b.js rename to pkg/apiserver-impl/ui/294.bac01a924dc03377.js index de7ce6ae9c..878c4ee389 100644 --- a/pkg/apiserver-impl/ui/499.7b2b01997dee913b.js +++ b/pkg/apiserver-impl/ui/294.bac01a924dc03377.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[499],{2179:(ut,Ee,A)=>{A.r(Ee),A.d(Ee,{diagram:()=>st});var T=A(9037),X=A(8586),$e=A(1065),we=A(8814),se=(A(1764),A(6780),A(2735),function(){var e=function(C,i,r,a){for(r=r||{},a=C.length;a--;r[C[a]]=i);return r},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],_=[1,18],h=[2,7],o=[1,22],p=[1,23],R=[1,24],O=[1,25],N=[1,26],x=[1,27],$=[1,20],k=[1,28],v=[1,29],F=[62,63],me=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],Ie=[1,47],be=[1,48],Te=[1,49],ke=[1,50],Se=[1,51],Ne=[1,52],xe=[1,53],M=[53,54],U=[1,64],Y=[1,60],B=[1,61],W=[1,62],K=[1,63],Q=[1,65],J=[1,69],Z=[1,70],ee=[1,67],te=[1,68],I=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],oe={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,r,a,n,E,s,G){var f=s.length-1;switch(E){case 4:this.$=s[f].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[f].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[f-3],s[f-4]);break;case 14:n.setNewReqId(s[f-2]);break;case 15:n.setNewReqText(s[f-2]);break;case 16:n.setNewReqRisk(s[f-2]);break;case 17:n.setNewReqVerifyMethod(s[f-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[f-3]);break;case 34:n.setNewElementType(s[f-2]);break;case 35:n.setNewElementDocRef(s[f-2]);break;case 38:n.addRelationship(s[f-2],s[f],s[f-4]);break;case 39:n.addRelationship(s[f-2],s[f-4],s[f]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:_,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:_,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(me,[2,49]),e(me,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:Ie,56:be,57:Te,58:ke,59:Se,60:Ne,61:xe},{52:54,55:Ie,56:be,57:Te,58:ke,59:Se,60:Ne,61:xe},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(M,[2,40]),e(M,[2,41]),e(M,[2,42]),e(M,[2,43]),e(M,[2,44]),e(M,[2,45]),e(M,[2,46]),{54:[1,58]},{5:U,20:59,21:Y,24:B,26:W,28:K,30:Q},{5:J,30:Z,46:66,47:ee,49:te},{23:71,62:k,63:v},{23:72,62:k,63:v},e(I,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:U,20:77,21:Y,24:B,26:W,28:K,30:Q},e(I,[2,19]),e(I,[2,33]),{22:[1,78]},{22:[1,79]},{5:J,30:Z,46:80,47:ee,49:te},e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),{23:81,62:k,63:v},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(I,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(I,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:U,20:106,21:Y,24:B,26:W,28:K,30:Q},{5:U,20:107,21:Y,24:B,26:W,28:K,30:Q},{5:U,20:108,21:Y,24:B,26:W,28:K,30:Q},{5:U,20:109,21:Y,24:B,26:W,28:K,30:Q},{5:J,30:Z,46:110,47:ee,49:te},{5:J,30:Z,46:111,47:ee,49:te},e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),e(I,[2,17]),e(I,[2,34]),e(I,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,r){if(!r.recoverable){var a=new Error(i);throw a.hash=r,a}this.trace(i)},parse:function(i){var a=[0],n=[],E=[null],s=[],G=this.table,f="",ie=0,ve=0,ot=s.slice.call(arguments,1),g=Object.create(this.lexer),D={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(D.yy[he]=this.yy[he]);g.setInput(i,D.yy),D.yy.lexer=g,D.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var ue=g.yylloc;s.push(ue);var L,ct=g.options&&g.options.ranges;this.parseError="function"==typeof D.yy.parseError?D.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,q,S,de,ne,w,re,H={};;){if(this.defaultActions[q=a[a.length-1]]?S=this.defaultActions[q]:((null===b||typeof b>"u")&&(L=void 0,"number"!=typeof(L=n.pop()||g.lex()||1)&&(L instanceof Array&&(L=(n=L).pop()),L=this.symbols_[L]||L),b=L),S=G[q]&&G[q][b]),typeof S>"u"||!S.length||!S[0]){var _e;for(ne in re=[],G[q])this.terminals_[ne]&&ne>2&&re.push("'"+this.terminals_[ne]+"'");_e=g.showPosition?"Parse error on line "+(ie+1)+":\n"+g.showPosition()+"\nExpecting "+re.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(ie+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(_e,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:ue,expected:re})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+b);switch(S[0]){case 1:a.push(b),E.push(g.yytext),s.push(g.yylloc),a.push(S[1]),b=null,ve=g.yyleng,f=g.yytext,ie=g.yylineno,ue=g.yylloc;break;case 2:if(H.$=E[E.length-(w=this.productions_[S[1]][1])],H._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},ct&&(H._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),typeof(de=this.performAction.apply(H,[f,ve,ie,D.yy,S[1],E,s].concat(ot)))<"u")return de;w&&(a=a.slice(0,-1*w*2),E=E.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),E.push(H.$),s.push(H._$),a.push(G[a[a.length-2]][a[a.length-1]]);break;case 3:return!0}}return!0}};function ce(){this.yy={}}return oe.lexer={EOF:1,parseError:function(r,a){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,a)},setInput:function(i,r){return this.yy=r||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},input:function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.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),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var n=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 E=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===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+"\n"+r+"^"},test_match:function(i,r){var a,n,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),(n=i[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in E)this[s]=E[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var i,r,a,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),s=0;sr[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(!1!==(i=this.test_match(a,E[s])))return i;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(i=this.test_match(r,E[n]))&&i:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,n,E){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 48:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:case 10:case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}},ce.prototype=oe,oe.Parser=ce,new ce}());se.parser=se;let ae=[],m={},j={},V={},z={};const le={CONTAINS:"contains",ARROW:"arrow"},ye_ReqMarkers=le;let y={},fe=0;const pe=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),ge=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(p=>{0==d?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(p):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",.75*y.line_height).text(p),d++});let o=1.5*y.rect_padding+d*y.line_height*.75;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},Re=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0,h=[];return l.forEach(o=>{let p=o.length;for(;p>30&&d<3;){let R=o.substring(0,30);p=(o=o.substring(30,o.length)).length,h[h.length]=R,d++}if(3==d){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},P=e=>e.replace(/\s/g,"").replace(/\./g,"_"),st={parser:se,db:{RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},getConfig:()=>(0,T.c)().req,addRequirement:(e,t)=>(void 0===j[e]&&(j[e]={name:e,type:t,id:m.id,text:m.text,risk:m.risk,verifyMethod:m.verifyMethod}),m={},j[e]),getRequirements:()=>j,setNewReqId:e=>{void 0!==m&&(m.id=e)},setNewReqText:e=>{void 0!==m&&(m.text=e)},setNewReqRisk:e=>{void 0!==m&&(m.risk=e)},setNewReqVerifyMethod:e=>{void 0!==m&&(m.verifyMethod=e)},setAccTitle:T.s,getAccTitle:T.g,setAccDescription:T.b,getAccDescription:T.a,addElement:e=>(void 0===z[e]&&(z[e]={name:e,type:V.type,docRef:V.docRef},T.l.info("Added new requirement: ",e)),V={},z[e]),getElements:()=>z,setNewElementType:e=>{void 0!==V&&(V.type=e)},setNewElementDocRef:e=>{void 0!==V&&(V.docRef=e)},addRelationship:(e,t,l)=>{ae.push({type:e,src:t,dst:l})},getRelationships:()=>ae,clear:()=>{ae=[],m={},j={},V={},z={},(0,T.v)()}},renderer:{draw:(e,t,l,c)=>{y=(0,T.c)().requirement;const u=y.securityLevel;let d;"sandbox"===u&&(d=(0,X.Ys)("#i"+t));const h=(0,X.Ys)("sandbox"===u?d.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);((e,t)=>{let l=e.append("defs").append("marker").attr("id",le.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",le.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${t.line_height},${t.line_height/2}\n M${t.line_height},${t.line_height/2}\n L0,${t.line_height}`).attr("stroke-width",1)})(h,y);const o=new we.k({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let p=c.db.getRequirements(),R=c.db.getElements(),O=c.db.getRelationships();((e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=P(c),T.l.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),h=pe(d,"req-"+c);let o=ge(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);Re(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const p=h.node().getBBox();t.setNode(c,{width:p.width,height:p.height,shape:"rect",id:c})})})(p,o,h),((e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=P(c),_=l.append("g").attr("id",d),h="element-"+d,o=pe(_,h);let p=ge(_,h+"_title",["<>",`${c}`]);Re(_,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],p.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})})(R,o,h),((e,t)=>{e.forEach(function(l){let c=P(l.src),u=P(l.dst);t.setEdge(c,u,{relationship:l})})})(O,o),(0,$e.bK)(o),function(e,t){t.nodes().forEach(function(l){void 0!==l&&void 0!==t.node(l)&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})}(h,o),O.forEach(function(v){!function(e,t,l,c,u){const d=l.edge(P(t.src),P(t.dst)),_=(0,X.jvg)().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",_(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+T.e.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+T.e.getUrl(y.arrowMarkerAbsolute)+"#"+ye_ReqMarkers.ARROW+"_line_ending)")),((e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(.5*u),_="rel"+fe;fe++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",_).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+_).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")})(e,h,0,`<<${t.type}>>`)}(h,v,o,t,c)});const N=y.rect_padding,x=h.node().getBBox(),$=x.width+2*N,k=x.height+2*N;(0,T.i)(h,k,$,y.useMaxWidth),h.attr("viewBox",`${x.x-N} ${x.y-N} ${$} ${k}`)}},styles:e=>`\n\n marker {\n fill: ${e.relationColor};\n stroke: ${e.relationColor};\n }\n\n marker.cross {\n stroke: ${e.lineColor};\n }\n\n svg {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n }\n\n .reqBox {\n fill: ${e.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${e.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${e.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${e.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${e.relationLabelColor};\n }\n\n`}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[294],{1294:(ut,Ee,A)=>{A.r(Ee),A.d(Ee,{diagram:()=>st});var T=A(8080),X=A(8586),$e=A(1065),we=A(8814),se=(A(1764),A(6780),A(2735),function(){var e=function(C,i,r,a){for(r=r||{},a=C.length;a--;r[C[a]]=i);return r},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],_=[1,18],h=[2,7],o=[1,22],p=[1,23],R=[1,24],O=[1,25],N=[1,26],x=[1,27],$=[1,20],k=[1,28],v=[1,29],F=[62,63],me=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],Ie=[1,47],be=[1,48],Te=[1,49],ke=[1,50],Se=[1,51],Ne=[1,52],xe=[1,53],M=[53,54],U=[1,64],Y=[1,60],B=[1,61],W=[1,62],K=[1,63],Q=[1,65],J=[1,69],Z=[1,70],ee=[1,67],te=[1,68],I=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],oe={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,r,a,n,E,s,G){var f=s.length-1;switch(E){case 4:this.$=s[f].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[f].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[f-3],s[f-4]);break;case 14:n.setNewReqId(s[f-2]);break;case 15:n.setNewReqText(s[f-2]);break;case 16:n.setNewReqRisk(s[f-2]);break;case 17:n.setNewReqVerifyMethod(s[f-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[f-3]);break;case 34:n.setNewElementType(s[f-2]);break;case 35:n.setNewElementDocRef(s[f-2]);break;case 38:n.addRelationship(s[f-2],s[f],s[f-4]);break;case 39:n.addRelationship(s[f-2],s[f-4],s[f]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:_,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:_,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{4:17,5:_,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:p,33:R,34:O,35:N,36:x,44:$,62:k,63:v},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(me,[2,49]),e(me,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:Ie,56:be,57:Te,58:ke,59:Se,60:Ne,61:xe},{52:54,55:Ie,56:be,57:Te,58:ke,59:Se,60:Ne,61:xe},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(M,[2,40]),e(M,[2,41]),e(M,[2,42]),e(M,[2,43]),e(M,[2,44]),e(M,[2,45]),e(M,[2,46]),{54:[1,58]},{5:U,20:59,21:Y,24:B,26:W,28:K,30:Q},{5:J,30:Z,46:66,47:ee,49:te},{23:71,62:k,63:v},{23:72,62:k,63:v},e(I,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:U,20:77,21:Y,24:B,26:W,28:K,30:Q},e(I,[2,19]),e(I,[2,33]),{22:[1,78]},{22:[1,79]},{5:J,30:Z,46:80,47:ee,49:te},e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),{23:81,62:k,63:v},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(I,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(I,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:U,20:106,21:Y,24:B,26:W,28:K,30:Q},{5:U,20:107,21:Y,24:B,26:W,28:K,30:Q},{5:U,20:108,21:Y,24:B,26:W,28:K,30:Q},{5:U,20:109,21:Y,24:B,26:W,28:K,30:Q},{5:J,30:Z,46:110,47:ee,49:te},{5:J,30:Z,46:111,47:ee,49:te},e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),e(I,[2,17]),e(I,[2,34]),e(I,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,r){if(!r.recoverable){var a=new Error(i);throw a.hash=r,a}this.trace(i)},parse:function(i){var a=[0],n=[],E=[null],s=[],G=this.table,f="",ie=0,ve=0,ot=s.slice.call(arguments,1),g=Object.create(this.lexer),D={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(D.yy[he]=this.yy[he]);g.setInput(i,D.yy),D.yy.lexer=g,D.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var ue=g.yylloc;s.push(ue);var L,ct=g.options&&g.options.ranges;this.parseError="function"==typeof D.yy.parseError?D.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,q,S,de,ne,w,re,H={};;){if(this.defaultActions[q=a[a.length-1]]?S=this.defaultActions[q]:((null===b||typeof b>"u")&&(L=void 0,"number"!=typeof(L=n.pop()||g.lex()||1)&&(L instanceof Array&&(L=(n=L).pop()),L=this.symbols_[L]||L),b=L),S=G[q]&&G[q][b]),typeof S>"u"||!S.length||!S[0]){var _e;for(ne in re=[],G[q])this.terminals_[ne]&&ne>2&&re.push("'"+this.terminals_[ne]+"'");_e=g.showPosition?"Parse error on line "+(ie+1)+":\n"+g.showPosition()+"\nExpecting "+re.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(ie+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(_e,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:ue,expected:re})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+b);switch(S[0]){case 1:a.push(b),E.push(g.yytext),s.push(g.yylloc),a.push(S[1]),b=null,ve=g.yyleng,f=g.yytext,ie=g.yylineno,ue=g.yylloc;break;case 2:if(H.$=E[E.length-(w=this.productions_[S[1]][1])],H._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},ct&&(H._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),typeof(de=this.performAction.apply(H,[f,ve,ie,D.yy,S[1],E,s].concat(ot)))<"u")return de;w&&(a=a.slice(0,-1*w*2),E=E.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),E.push(H.$),s.push(H._$),a.push(G[a[a.length-2]][a[a.length-1]]);break;case 3:return!0}}return!0}};function ce(){this.yy={}}return oe.lexer={EOF:1,parseError:function(r,a){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,a)},setInput:function(i,r){return this.yy=r||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},input:function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.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),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var n=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 E=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===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+"\n"+r+"^"},test_match:function(i,r){var a,n,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),(n=i[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in E)this[s]=E[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var i,r,a,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),s=0;sr[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(!1!==(i=this.test_match(a,E[s])))return i;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(i=this.test_match(r,E[n]))&&i:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,n,E){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 48:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:case 10:case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}},ce.prototype=oe,oe.Parser=ce,new ce}());se.parser=se;let ae=[],m={},j={},V={},z={};const le={CONTAINS:"contains",ARROW:"arrow"},ye_ReqMarkers=le;let y={},fe=0;const pe=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),ge=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(p=>{0==d?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(p):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",.75*y.line_height).text(p),d++});let o=1.5*y.rect_padding+d*y.line_height*.75;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},Re=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0,h=[];return l.forEach(o=>{let p=o.length;for(;p>30&&d<3;){let R=o.substring(0,30);p=(o=o.substring(30,o.length)).length,h[h.length]=R,d++}if(3==d){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},P=e=>e.replace(/\s/g,"").replace(/\./g,"_"),st={parser:se,db:{RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},getConfig:()=>(0,T.c)().req,addRequirement:(e,t)=>(void 0===j[e]&&(j[e]={name:e,type:t,id:m.id,text:m.text,risk:m.risk,verifyMethod:m.verifyMethod}),m={},j[e]),getRequirements:()=>j,setNewReqId:e=>{void 0!==m&&(m.id=e)},setNewReqText:e=>{void 0!==m&&(m.text=e)},setNewReqRisk:e=>{void 0!==m&&(m.risk=e)},setNewReqVerifyMethod:e=>{void 0!==m&&(m.verifyMethod=e)},setAccTitle:T.s,getAccTitle:T.g,setAccDescription:T.b,getAccDescription:T.a,addElement:e=>(void 0===z[e]&&(z[e]={name:e,type:V.type,docRef:V.docRef},T.l.info("Added new requirement: ",e)),V={},z[e]),getElements:()=>z,setNewElementType:e=>{void 0!==V&&(V.type=e)},setNewElementDocRef:e=>{void 0!==V&&(V.docRef=e)},addRelationship:(e,t,l)=>{ae.push({type:e,src:t,dst:l})},getRelationships:()=>ae,clear:()=>{ae=[],m={},j={},V={},z={},(0,T.v)()}},renderer:{draw:(e,t,l,c)=>{y=(0,T.c)().requirement;const u=y.securityLevel;let d;"sandbox"===u&&(d=(0,X.Ys)("#i"+t));const h=(0,X.Ys)("sandbox"===u?d.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);((e,t)=>{let l=e.append("defs").append("marker").attr("id",le.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",le.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${t.line_height},${t.line_height/2}\n M${t.line_height},${t.line_height/2}\n L0,${t.line_height}`).attr("stroke-width",1)})(h,y);const o=new we.k({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let p=c.db.getRequirements(),R=c.db.getElements(),O=c.db.getRelationships();((e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=P(c),T.l.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),h=pe(d,"req-"+c);let o=ge(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);Re(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const p=h.node().getBBox();t.setNode(c,{width:p.width,height:p.height,shape:"rect",id:c})})})(p,o,h),((e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=P(c),_=l.append("g").attr("id",d),h="element-"+d,o=pe(_,h);let p=ge(_,h+"_title",["<>",`${c}`]);Re(_,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],p.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})})(R,o,h),((e,t)=>{e.forEach(function(l){let c=P(l.src),u=P(l.dst);t.setEdge(c,u,{relationship:l})})})(O,o),(0,$e.bK)(o),function(e,t){t.nodes().forEach(function(l){void 0!==l&&void 0!==t.node(l)&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})}(h,o),O.forEach(function(v){!function(e,t,l,c,u){const d=l.edge(P(t.src),P(t.dst)),_=(0,X.jvg)().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",_(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+T.e.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+T.e.getUrl(y.arrowMarkerAbsolute)+"#"+ye_ReqMarkers.ARROW+"_line_ending)")),((e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(.5*u),_="rel"+fe;fe++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",_).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+_).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")})(e,h,0,`<<${t.type}>>`)}(h,v,o,t,c)});const N=y.rect_padding,x=h.node().getBBox(),$=x.width+2*N,k=x.height+2*N;(0,T.i)(h,k,$,y.useMaxWidth),h.attr("viewBox",`${x.x-N} ${x.y-N} ${$} ${k}`)}},styles:e=>`\n\n marker {\n fill: ${e.relationColor};\n stroke: ${e.relationColor};\n }\n\n marker.cross {\n stroke: ${e.lineColor};\n }\n\n svg {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n }\n\n .reqBox {\n fill: ${e.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${e.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${e.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${e.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${e.relationLabelColor};\n }\n\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/325.5442c16224d7ead3.js b/pkg/apiserver-impl/ui/325.5442c16224d7ead3.js deleted file mode 100644 index d51a371783..0000000000 --- a/pkg/apiserver-impl/ui/325.5442c16224d7ead3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[325],{9325:(at,L,b)=>{b.r(L),b.d(L,{diagram:()=>et});var m=b(839),P=b(8586),C=b(1065),W=b(8814),t=b(9037);b(1764),b(6780),b(2735);const N={},F=(e,i,r)=>{const o=(0,t.c)().state.padding,s=2*(0,t.c)().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,d=e.append("text").attr("x",0).attr("y",(0,t.c)().state.titleShift).attr("font-size",(0,t.c)().state.fontSize).attr("class","state-title").text(i.id),x=d.node().getBBox().width+s;let l,c=Math.max(x,p);c===p&&(c+=s);const w=e.node().getBBox();l=a-o,x>p&&(l=(p-c)/2+o),Math.abs(a-w.x)p&&(l=a-(x-p)/2);const B=1-(0,t.c)().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",B).attr("class",r?"alt-composit":"composit").attr("width",c).attr("height",w.height+(0,t.c)().state.textHeight+(0,t.c)().state.titleShift+1).attr("rx","0"),d.attr("x",l+o),x<=p&&d.attr("x",a+(c-s)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",(0,t.c)().state.titleShift-(0,t.c)().state.textHeight-(0,t.c)().state.padding).attr("width",c).attr("height",3*(0,t.c)().state.textHeight).attr("rx",(0,t.c)().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",(0,t.c)().state.titleShift-(0,t.c)().state.textHeight-(0,t.c)().state.padding).attr("width",c).attr("height",w.height+3+2*(0,t.c)().state.textHeight).attr("rx",(0,t.c)().state.radius),e},H=function(e,i){const r=i.id,o={id:r,label:i.id,width:0,height:0},s=e.append("g").attr("id",r).attr("class","stateGroup");"start"===i.type&&(e=>{e.append("circle").attr("class","start-state").attr("r",(0,t.c)().state.sizeUnit).attr("cx",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit).attr("cy",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit)})(s),"end"===i.type&&(e=>{e.append("circle").attr("class","end-state-outer").attr("r",(0,t.c)().state.sizeUnit+(0,t.c)().state.miniPadding).attr("cx",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+(0,t.c)().state.miniPadding).attr("cy",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+(0,t.c)().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",(0,t.c)().state.sizeUnit).attr("cx",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+2).attr("cy",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+2)})(s),("fork"===i.type||"join"===i.type)&&((e,i)=>{let r=(0,t.c)().state.forkWidth,o=(0,t.c)().state.forkHeight;if(i.parentId){let s=r;r=o,o=s}e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",o).attr("x",(0,t.c)().state.padding).attr("y",(0,t.c)().state.padding)})(s,i),"note"===i.type&&((e,i)=>{i.attr("class","state-note");const r=i.append("rect").attr("x",0).attr("y",(0,t.c)().state.padding),o=i.append("g"),{textWidth:s,textHeight:g}=((e,i,r,o)=>{let s=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(t.e.lineBreakRegex);let d=1.25*(0,t.c)().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");c.text(x),0===d&&(d+=c.node().getBBox().height),s+=d,c.attr("x",0+(0,t.c)().state.noteMargin),c.attr("y",0+s+1.25*(0,t.c)().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}})(e,0,0,o);r.attr("height",g+2*(0,t.c)().state.noteMargin),r.attr("width",s+2*(0,t.c)().state.noteMargin)})(i.note.text,s),"divider"===i.type&&(e=>{e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,t.c)().state.textHeight).attr("class","divider").attr("x2",2*(0,t.c)().state.textHeight).attr("y1",0).attr("y2",0)})(s),"default"===i.type&&0===i.descriptions.length&&((e,i)=>{const o=e.append("text").attr("x",2*(0,t.c)().state.padding).attr("y",(0,t.c)().state.textHeight+2*(0,t.c)().state.padding).attr("font-size",(0,t.c)().state.fontSize).attr("class","state-title").text(i.id).node().getBBox();e.insert("rect",":first-child").attr("x",(0,t.c)().state.padding).attr("y",(0,t.c)().state.padding).attr("width",o.width+2*(0,t.c)().state.padding).attr("height",o.height+2*(0,t.c)().state.padding).attr("rx",(0,t.c)().state.radius)})(s,i),"default"===i.type&&i.descriptions.length>0&&((e,i)=>{const s=e.append("text").attr("x",2*(0,t.c)().state.padding).attr("y",(0,t.c)().state.textHeight+1.3*(0,t.c)().state.padding).attr("font-size",(0,t.c)().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",(0,t.c)().state.padding).attr("y",g+.4*(0,t.c)().state.padding+(0,t.c)().state.dividerMargin+(0,t.c)().state.textHeight).attr("class","state-description");let a=!0,d=!0;i.descriptions.forEach(function(l){a||(function(l,w,B){const M=l.append("tspan").attr("x",2*(0,t.c)().state.padding).text(w);B||M.attr("dy",(0,t.c)().state.textHeight)}(p,l,d),d=!1),a=!1});const y=e.append("line").attr("x1",(0,t.c)().state.padding).attr("y1",(0,t.c)().state.padding+g+(0,t.c)().state.dividerMargin/2).attr("y2",(0,t.c)().state.padding+g+(0,t.c)().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),c=Math.max(x.width,s.width);y.attr("x2",c+3*(0,t.c)().state.padding),e.insert("rect",":first-child").attr("x",(0,t.c)().state.padding).attr("y",(0,t.c)().state.padding).attr("width",c+2*(0,t.c)().state.padding).attr("height",x.height+g+2*(0,t.c)().state.padding).attr("rx",(0,t.c)().state.radius)})(s,i);const g=s.node().getBBox();return o.width=g.width+2*(0,t.c)().state.padding,o.height=g.height+2*(0,t.c)().state.padding,((e,i)=>{N[e]=i})(r,o),o};let E,z=0;const T={},q=e=>e?e.length*E.fontSizeFactor:1,A=(e,i,r,o,s,g,p)=>{const a=new W.k({compound:!0,multigraph:!0});let d,y=!0;for(d=0;d{const f=h.parentElement;let _=0,k=0;f&&(f.parentElement&&(_=f.parentElement.getBBox().width),k=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),h.setAttribute("x1",0-k+8),h.setAttribute("x2",_-k-8)})):t.l.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let M=B.getBBox();a.edges().forEach(function(n){void 0!==n&&void 0!==a.edge(n)&&(t.l.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),function(e,i,r){i.points=i.points.filter(d=>!Number.isNaN(d.y));const s=i.points,g=(0,P.jvg)().x(function(d){return d.x}).y(function(d){return d.y}).curve(P.$0Z),p=e.append("path").attr("d",g(s)).attr("id","edge"+z).attr("class","transition");let a="";if((0,t.c)().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+function(d){switch(d){case m.d.relationType.AGGREGATION:return"aggregation";case m.d.relationType.EXTENSION:return"extension";case m.d.relationType.COMPOSITION:return"composition";case m.d.relationType.DEPENDENCY:return"dependency"}}(m.d.relationType.DEPENDENCY)+"End)"),void 0!==r.title){const d=e.append("g").attr("class","stateLabel"),{x:y,y:x}=t.u.calcLabelPosition(i.points),c=t.e.getRows(r.title);let l=0;const w=[];let B=0,M=0;for(let u=0;u<=c.length;u++){const h=d.append("text").attr("text-anchor","middle").text(c[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();B=Math.max(B,f.width),M=Math.min(M,f.x),t.l.info(f.x,y,x+l),0===l&&(l=h.node().getBBox().height,t.l.info("Title height",l,x)),w.push(h)}let S=l*c.length;if(c.length>1){const u=(c.length-1)*l*.5;w.forEach((h,f)=>h.attr("y",x+f*l-u)),S=l*c.length}const n=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y-B/2-(0,t.c)().state.padding/2).attr("y",x-S/2-(0,t.c)().state.padding/2-3.5).attr("width",B+(0,t.c)().state.padding).attr("height",S+(0,t.c)().state.padding),t.l.info(n)}z++}(i,a.edge(n),a.edge(n).relation))}),M=B.getBBox();const S={id:r||"root",label:r||"root",width:0,height:0};return S.width=M.width+2*E.padding,S.height=M.height+2*E.padding,t.l.debug("Doc rendered",S,a),S},et={parser:m.p,db:m.d,renderer:{setConf:function(){},draw:function(e,i,r,o){E=(0,t.c)().state;const s=(0,t.c)().securityLevel;let g;"sandbox"===s&&(g=(0,P.Ys)("#i"+i));const p=(0,P.Ys)("sandbox"===s?g.nodes()[0].contentDocument.body:"body"),a="sandbox"===s?g.nodes()[0].contentDocument:document;t.l.debug("Rendering diagram "+e);const d=p.select(`[id='${i}']`);!function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}(d);const y=o.db.getRootDoc();A(y,d,void 0,!1,p,a,o);const x=E.padding,c=d.node().getBBox(),l=c.width+2*x,w=c.height+2*x;(0,t.i)(d,w,1.75*l,E.useMaxWidth),d.attr("viewBox",`${c.x-E.padding} ${c.y-E.padding} `+l+" "+w)}},styles:m.s,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,m.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/38.fba2ecc6e4763433.js b/pkg/apiserver-impl/ui/38.fba2ecc6e4763433.js deleted file mode 100644 index 24a939d4a8..0000000000 --- a/pkg/apiserver-impl/ui/38.fba2ecc6e4763433.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[38],{9038:(Jt,ct,W)=>{W.d(ct,{a:()=>ft,b:()=>Xt,c:()=>C,d:()=>zt,e:()=>Nt,f:()=>Gt,g:()=>et,h:()=>Vt,i:()=>P,j:()=>Kt,k:()=>st,l:()=>k,m:()=>it,p:()=>jt,s:()=>At,u:()=>w});var v=W(5861),f=W(9037),S=W(8586),Q=W(9627);const ht={extension:(e,r,t)=>{f.l.trace("Making markers for ",t),e.append("defs").append("marker").attr("id",t+"_"+r+"-extensionStart").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-compositionStart").attr("class","marker composition "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",t+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(e,r,t)=>{e.append("marker").attr("id",t+"_"+r+"-pointEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(e,r,t)=>{e.append("marker").attr("id",t+"_"+r+"-circleEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"_"+r+"-circleStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(e,r,t)=>{e.append("marker").attr("id",t+"_"+r+"-crossEnd").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"_"+r+"-crossStart").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(e,r,t)=>{e.append("defs").append("marker").attr("id",t+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},ft=(e,r,t,n)=>{r.forEach(l=>{ht[l](e,t,n)})},C=(e,r,t,n)=>{let l=e||"";if("object"==typeof l&&(l=l[0]),(0,f.m)((0,f.c)().flowchart.htmlLabels))return l=l.replace(/\\n|\n/g,"
"),f.l.debug("vertexText"+l),function yt(e){const r=(0,S.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),t=r.append("xhtml:div");return t.html('"+e.label+""),function pt(e,r){r&&e.attr("style",r)}(t,e.labelStyle),t.style("display","inline-block"),t.style("white-space","nowrap"),t.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}({isNode:n,label:(0,f.M)(l).replace(/fa[blrs]?:fa-[\w-]+/g,s=>``),labelStyle:r.replace("fill:","color:")});{const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("style",r.replace("color:","fill:"));let a=[];a="string"==typeof l?l.split(/\\n|\n|/gi):Array.isArray(l)?l:[];for(const s of a){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class",t?"title-row":"row"),c.textContent=s.trim(),i.appendChild(c)}return i}},k=function(){var e=(0,v.Z)(function*(r,t,n,l){let i;const a=t.useHtmlLabels||(0,f.m)((0,f.c)().flowchart.htmlLabels);i=n||"node default";const s=r.insert("g").attr("class",i).attr("id",t.domId||t.id),c=s.insert("g").attr("class","label").attr("style",t.labelStyle);let h;h=void 0===t.labelText?"":"string"==typeof t.labelText?t.labelText:t.labelText[0];const o=c.node();let p;p="markdown"===t.labelType?(0,Q.a)(c,(0,f.d)((0,f.M)(h),(0,f.c)()),{useHtmlLabels:a,width:t.width||(0,f.c)().flowchart.wrappingWidth,classes:"markdown-node-label"}):o.appendChild(C((0,f.d)((0,f.M)(h),(0,f.c)()),t.labelStyle,!1,l));let y=p.getBBox();const x=t.padding/2;if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const u=p.children[0],m=(0,S.Ys)(p),d=u.getElementsByTagName("img");if(d){const T=""===h.replace(/]*>/g,"").trim();yield Promise.all([...d].map(g=>new Promise(B=>{function E(){if(g.style.display="flex",g.style.flexDirection="column",T){const D=(0,f.c)().fontSize?(0,f.c)().fontSize:window.getComputedStyle(document.body).fontSize,z=5,G=parseInt(D,10)*z+"px";g.style.minWidth=G,g.style.maxWidth=G}else g.style.width="100%";B(g)}setTimeout(()=>{g.complete&&E()}),g.addEventListener("error",E),g.addEventListener("load",E)})))}y=u.getBoundingClientRect(),m.attr("width",y.width),m.attr("height",y.height)}return c.attr("transform",a?"translate("+-y.width/2+", "+-y.height/2+")":"translate(0, "+-y.height/2+")"),t.centerLabel&&c.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:x,label:c}});return function(t,n,l,i){return e.apply(this,arguments)}}(),w=(e,r)=>{const t=r.node().getBBox();e.width=t.width,e.height=t.height};function R(e,r,t,n){return e.insert("polygon",":first-child").attr("points",n.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-r/2+","+t/2+")")}function V(e,r,t,n){var l=e.x,i=e.y,a=l-n.x,s=i-n.y,c=Math.sqrt(r*r*s*s+t*t*a*a),h=Math.abs(r*t*a/c);n.x0}const P=(e,r)=>{var c,h,t=e.x,n=e.y,l=r.x-t,i=r.y-n,a=e.width/2,s=e.height/2;return Math.abs(i)*a>Math.abs(l)*s?(i<0&&(s=-s),c=0===i?0:s*l/i,h=s):(l<0&&(a=-a),c=a,h=0===l?0:a*i/l),{x:t+c,y:n+h}},b={node:function ut(e,r){return e.intersect(r)},circle:function xt(e,r,t){return V(e,r,r,t)},ellipse:V,polygon:function gt(e,r,t){var n=e.x,l=e.y,i=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof r.forEach?r.forEach(function(u){a=Math.min(a,u.x),s=Math.min(s,u.y)}):(a=Math.min(a,r.x),s=Math.min(s,r.y));for(var c=n-e.width/2-a,h=l-e.height/2-s,o=0;o1&&i.sort(function(u,m){var d=u.x-t.x,T=u.y-t.y,g=Math.sqrt(d*d+T*T),B=m.x-t.x,E=m.y-t.y,D=Math.sqrt(B*B+E*E);return ge?" "+e:"",$=(e,r)=>`${r||"node default"}${q(e.classes)} ${q(e.class)}`,tt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),s=l.width+t.padding+(l.height+t.padding),c=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];f.l.info("Question main (Circle)");const h=R(n,s,s,c);return h.attr("style",t.style),w(t,h),t.intersect=function(o){return f.l.warn("Intersect called"),b.polygon(t,c,o)},n});return function(t,n){return e.apply(this,arguments)}}(),kt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),a=l.height+t.padding,s=a/4,c=l.width+2*s+t.padding,h=[{x:s,y:0},{x:c-s,y:0},{x:c,y:-a/2},{x:c-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],o=R(n,c,a,h);return o.attr("style",t.style),w(t,o),t.intersect=function(p){return b.polygon(t,h,p)},n});return function(t,n){return e.apply(this,arguments)}}(),_t=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,void 0,!0),a=l.height+2*t.padding,c=l.width+a/2*2+t.padding,h=((e,r,t)=>{const n=(e=>{const r=new Set;for(const t of e)switch(t){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(t)}return r})(e),i=r.height+2*t.padding,a=i/2,s=r.width+2*a+t.padding,c=t.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:a,y:0},{x:s/2,y:2*c},{x:s-a,y:0},{x:s,y:0},{x:s,y:-i/3},{x:s+2*c,y:-i/2},{x:s,y:-2*i/3},{x:s,y:-i},{x:s-a,y:-i},{x:s/2,y:-i-2*c},{x:a,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*c,y:-i/2},{x:0,y:-i/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:a,y:0},{x:s-a,y:0},{x:s,y:-i/2},{x:s-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:a,y:-i},{x:s-a,y:-i},{x:s,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:s,y:-a},{x:s,y:-i+a},{x:0,y:-i}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:s,y:0},{x:0,y:-a},{x:0,y:-i+a},{x:s,y:-i}]:n.has("right")&&n.has("left")?[{x:a,y:0},{x:a,y:-c},{x:s-a,y:-c},{x:s-a,y:0},{x:s,y:-i/2},{x:s-a,y:-i},{x:s-a,y:-i+c},{x:a,y:-i+c},{x:a,y:-i},{x:0,y:-i/2}]:n.has("up")&&n.has("down")?[{x:s/2,y:0},{x:0,y:-c},{x:a,y:-c},{x:a,y:-i+c},{x:0,y:-i+c},{x:s/2,y:-i},{x:s,y:-i+c},{x:s-a,y:-i+c},{x:s-a,y:-c},{x:s,y:-c}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:s,y:-a},{x:0,y:-i}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:s,y:0},{x:0,y:-i}]:n.has("left")&&n.has("up")?[{x:s,y:0},{x:0,y:-a},{x:s,y:-i}]:n.has("left")&&n.has("down")?[{x:s,y:0},{x:0,y:0},{x:s,y:-i}]:n.has("right")?[{x:a,y:-c},{x:a,y:-c},{x:s-a,y:-c},{x:s-a,y:0},{x:s,y:-i/2},{x:s-a,y:-i},{x:s-a,y:-i+c},{x:a,y:-i+c},{x:a,y:-i+c}]:n.has("left")?[{x:a,y:0},{x:a,y:-c},{x:s-a,y:-c},{x:s-a,y:-i+c},{x:a,y:-i+c},{x:a,y:-i},{x:0,y:-i/2}]:n.has("up")?[{x:a,y:-c},{x:a,y:-i+c},{x:0,y:-i+c},{x:s/2,y:-i},{x:s,y:-i+c},{x:s-a,y:-i+c},{x:s-a,y:-c}]:n.has("down")?[{x:s/2,y:0},{x:0,y:-c},{x:a,y:-c},{x:a,y:-i+c},{x:s-a,y:-i+c},{x:s-a,y:-c},{x:s,y:-c}]:[{x:0,y:0}]})(t.directions,l,t),o=R(n,c,a,h);return o.attr("style",t.style),w(t,o),t.intersect=function(p){return b.polygon(t,h,p)},n});return function(t,n){return e.apply(this,arguments)}}(),Lt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return R(n,i,a,s).attr("style",t.style),t.width=i+a,t.height=a,t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),St=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Mt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Tt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Et=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Bt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),Ct=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=i/2,s=a/(2.5+i/50),c=l.height+s+t.padding,h="M 0,"+s+" a "+a+","+s+" 0,0,0 "+i+" 0 a "+a+","+s+" 0,0,0 "+-i+" 0 l 0,"+c+" a "+a+","+s+" 0,0,0 "+i+" 0 l 0,"+-c,o=n.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",h).attr("transform","translate("+-i/2+","+-(c/2+s)+")");return w(t,o),t.intersect=function(p){const y=b.rect(t,p),x=y.x-t.x;if(0!=a&&(Math.abs(x)t.height/2-s)){let u=s*s*(1-x*x/(a*a));0!=u&&(u=Math.sqrt(u)),u=s-u,p.y-t.y>0&&(u=-u),y.y+=u}return y},n});return function(t,n){return e.apply(this,arguments)}}(),$t=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,"node "+t.classes+" "+t.class,!0),a=n.insert("rect",":first-child"),s=t.positioned?t.width:l.width+t.padding,c=t.positioned?t.height:l.height+t.padding,h=t.positioned?-s/2:-l.width/2-i,o=t.positioned?-c/2:-l.height/2-i;if(a.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",h).attr("y",o).attr("width",s).attr("height",c),t.props){const p=new Set(Object.keys(t.props));t.props.borders&&(K(a,t.props.borders,s,c),p.delete("borders")),p.forEach(y=>{f.l.warn(`Unknown node property ${y}`)})}return w(t,a),t.intersect=function(p){return b.rect(t,p)},n});return function(t,n){return e.apply(this,arguments)}}(),Yt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,"node "+t.classes,!0),a=n.insert("rect",":first-child"),s=t.positioned?t.width:l.width+t.padding,c=t.positioned?t.height:l.height+t.padding,h=t.positioned?-s/2:-l.width/2-i,o=t.positioned?-c/2:-l.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",h).attr("y",o).attr("width",s).attr("height",c),t.props){const p=new Set(Object.keys(t.props));t.props.borders&&(K(a,t.props.borders,s,c),p.delete("borders")),p.forEach(y=>{f.l.warn(`Unknown node property ${y}`)})}return w(t,a),t.intersect=function(p){return b.rect(t,p)},n});return function(t,n){return e.apply(this,arguments)}}(),Rt=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n}=yield k(r,t,"label",!0);f.l.trace("Classes = ",t.class);const l=n.insert("rect",":first-child");if(l.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(K(l,t.props.borders,0,0),s.delete("borders")),s.forEach(c=>{f.l.warn(`Unknown node property ${c}`)})}return w(t,l),t.intersect=function(s){return b.rect(t,s)},n});return function(t,n){return e.apply(this,arguments)}}();function K(e,r,t,n){const l=[],i=s=>{l.push(s,0)},a=s=>{l.push(0,s)};r.includes("t")?(f.l.debug("add top border"),i(t)):a(t),r.includes("r")?(f.l.debug("add right border"),i(n)):a(n),r.includes("b")?(f.l.debug("add bottom border"),i(t)):a(t),r.includes("l")?(f.l.debug("add left border"),i(n)):a(n),e.attr("stroke-dasharray",l.join(" "))}const It=function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.height+t.padding,a=l.width+i/4+t.padding,s=n.insert("rect",":first-child").attr("style",t.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return w(t,s),t.intersect=function(c){return b.rect(t,c)},n});return function(t,n){return e.apply(this,arguments)}}(),rt=(e,r,t)=>{const n=e.insert("g").attr("class","node default").attr("id",r.domId||r.id);let l=70,i=10;"LR"===t&&(l=10,i=70);const a=n.append("rect").attr("x",-1*l/2).attr("y",-1*i/2).attr("width",l).attr("height",i).attr("class","fork-join");return w(r,a),r.height=r.height+r.padding/2,r.width=r.width+r.padding/2,r.intersect=function(s){return b.rect(r,s)},n},at={rhombus:tt,composite:Yt,question:tt,rect:$t,labelRect:Rt,rectWithTitle:(e,r)=>{let t;t=r.classes?"node "+r.classes:"node default";const n=e.insert("g").attr("class",t).attr("id",r.domId||r.id),l=n.insert("rect",":first-child"),i=n.insert("line"),a=n.insert("g").attr("class","label"),s=r.labelText.flat?r.labelText.flat():r.labelText;let c="";c="object"==typeof s?s[0]:s,f.l.info("Label text abc79",c,s,"object"==typeof s);const h=a.node().appendChild(C(c,r.labelStyle,!0,!0));let o={width:0,height:0};if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const m=h.children[0],d=(0,S.Ys)(h);o=m.getBoundingClientRect(),d.attr("width",o.width),d.attr("height",o.height)}f.l.info("Text 2",s);const p=s.slice(1,s.length);let y=h.getBBox();const x=a.node().appendChild(C(p.join?p.join("
"):p,r.labelStyle,!0,!0));if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const m=x.children[0],d=(0,S.Ys)(x);o=m.getBoundingClientRect(),d.attr("width",o.width),d.attr("height",o.height)}const u=r.padding/2;return(0,S.Ys)(x).attr("transform","translate( "+(o.width>y.width?0:(y.width-o.width)/2)+", "+(y.height+u+5)+")"),(0,S.Ys)(h).attr("transform","translate( "+(o.width{const t=e.insert("g").attr("class","node default").attr("id",r.domId||r.id);return t.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),r.width=28,r.height=28,r.intersect=function(a){return b.circle(r,14,a)},t},circle:function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,$(t,void 0),!0),a=n.insert("circle",":first-child");return a.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+i).attr("width",l.width+t.padding).attr("height",l.height+t.padding),f.l.info("Circle main"),w(t,a),t.intersect=function(s){return f.l.info("Circle intersect",t,l.width/2+i,s),b.circle(t,l.width/2+i,s)},n});return function(t,n){return e.apply(this,arguments)}}(),doublecircle:function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l,halfPadding:i}=yield k(r,t,$(t,void 0),!0),s=n.insert("g",":first-child"),c=s.insert("circle"),h=s.insert("circle");return s.attr("class",t.class),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+i+5).attr("width",l.width+t.padding+10).attr("height",l.height+t.padding+10),h.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+i).attr("width",l.width+t.padding).attr("height",l.height+t.padding),f.l.info("DoubleCircle main"),w(t,c),t.intersect=function(o){return f.l.info("DoubleCircle intersect",t,l.width/2+i+5,o),b.circle(t,l.width/2+i+5,o)},n});return function(t,n){return e.apply(this,arguments)}}(),stadium:It,hexagon:kt,block_arrow:_t,rect_left_inv_arrow:Lt,lean_right:St,lean_left:Mt,trapezoid:Tt,inv_trapezoid:Et,rect_right_inv_arrow:Bt,cylinder:Ct,start:(e,r)=>{const t=e.insert("g").attr("class","node default").attr("id",r.domId||r.id),n=t.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),w(r,n),r.intersect=function(l){return b.circle(r,7,l)},t},end:(e,r)=>{const t=e.insert("g").attr("class","node default").attr("id",r.domId||r.id),n=t.insert("circle",":first-child"),l=t.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),w(r,l),r.intersect=function(i){return b.circle(r,7,i)},t},note:bt,subroutine:function(){var e=(0,v.Z)(function*(r,t){const{shapeSvg:n,bbox:l}=yield k(r,t,$(t,void 0),!0),i=l.width+t.padding,a=l.height+t.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],c=R(n,i,a,s);return c.attr("style",t.style),w(t,c),t.intersect=function(h){return b.polygon(t,s,h)},n});return function(t,n){return e.apply(this,arguments)}}(),fork:rt,join:rt,class_box:(e,r)=>{const t=r.padding/2;let i;i=r.classes?"node "+r.classes:"node default";const a=e.insert("g").attr("class",i).attr("id",r.domId||r.id),s=a.insert("rect",":first-child"),c=a.insert("line"),h=a.insert("line");let o=0,p=4;const y=a.insert("g").attr("class","label");let x=0;const u=r.classData.annotations&&r.classData.annotations[0],m=r.classData.annotations[0]?"\xab"+r.classData.annotations[0]+"\xbb":"",d=y.node().appendChild(C(m,r.labelStyle,!0,!0));let T=d.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const _=d.children[0],L=(0,S.Ys)(d);T=_.getBoundingClientRect(),L.attr("width",T.width),L.attr("height",T.height)}r.classData.annotations[0]&&(p+=T.height+4,o+=T.width);let g=r.classData.label;void 0!==r.classData.type&&""!==r.classData.type&&((0,f.c)().flowchart.htmlLabels?g+="<"+r.classData.type+">":g+="<"+r.classData.type+">");const B=y.node().appendChild(C(g,r.labelStyle,!0,!0));(0,S.Ys)(B).attr("class","classTitle");let E=B.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const _=B.children[0],L=(0,S.Ys)(B);E=_.getBoundingClientRect(),L.attr("width",E.width),L.attr("height",E.height)}p+=E.height+4,E.width>o&&(o=E.width);const D=[];r.classData.members.forEach(_=>{const L=_.getDisplayDetails();let Z=L.displayText;(0,f.c)().flowchart.htmlLabels&&(Z=Z.replace(//g,">"));const O=y.node().appendChild(C(Z,L.cssStyle?L.cssStyle:r.labelStyle,!0,!0));let Y=O.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const F=O.children[0],N=(0,S.Ys)(O);Y=F.getBoundingClientRect(),N.attr("width",Y.width),N.attr("height",Y.height)}Y.width>o&&(o=Y.width),p+=Y.height+4,D.push(O)}),p+=8;const z=[];if(r.classData.methods.forEach(_=>{const L=_.getDisplayDetails();let Z=L.displayText;(0,f.c)().flowchart.htmlLabels&&(Z=Z.replace(//g,">"));const O=y.node().appendChild(C(Z,L.cssStyle?L.cssStyle:r.labelStyle,!0,!0));let Y=O.getBBox();if((0,f.m)((0,f.c)().flowchart.htmlLabels)){const F=O.children[0],N=(0,S.Ys)(O);Y=F.getBoundingClientRect(),N.attr("width",Y.width),N.attr("height",Y.height)}Y.width>o&&(o=Y.width),p+=Y.height+4,z.push(O)}),p+=8,u){let _=(o-T.width)/2;(0,S.Ys)(d).attr("transform","translate( "+(-1*o/2+_)+", "+-1*p/2+")"),x=T.height+4}let G=(o-E.width)/2;return(0,S.Ys)(B).attr("transform","translate( "+(-1*o/2+G)+", "+(-1*p/2+x)+")"),x+=E.height+4,c.attr("class","divider").attr("x1",-o/2-t).attr("x2",o/2+t).attr("y1",-p/2-t+8+x).attr("y2",-p/2-t+8+x),x+=8,D.forEach(_=>{(0,S.Ys)(_).attr("transform","translate( "+-o/2+", "+(-1*p/2+x+4)+")");const L=_?.getBBox();x+=(L?.height??0)+4}),x+=8,h.attr("class","divider").attr("x1",-o/2-t).attr("x2",o/2+t).attr("y1",-p/2-t+8+x).attr("y2",-p/2-t+8+x),x+=8,z.forEach(_=>{(0,S.Ys)(_).attr("transform","translate( "+-o/2+", "+(-1*p/2+x)+")");const L=_?.getBBox();x+=(L?.height??0)+4}),s.attr("style",r.style).attr("class","outer title-state").attr("x",-o/2-t).attr("y",-p/2-t).attr("width",o+r.padding).attr("height",p+r.padding),w(r,s),r.intersect=function(_){return b.rect(r,_)},a}};let H={};const Nt=function(){var e=(0,v.Z)(function*(r,t,n){let l,i;if(t.link){let a;"sandbox"===(0,f.c)().securityLevel?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),l=r.insert("svg:a").attr("xlink:href",t.link).attr("target",a),i=yield at[t.shape](l,t,n)}else i=yield at[t.shape](r,t,n),l=i;return t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),l.attr("data-node","true"),l.attr("data-id",t.id),H[t.id]=l,t.haveCallback&&H[t.id].attr("class",H[t.id].attr("class")+" clickable"),l});return function(t,n,l){return e.apply(this,arguments)}}(),At=(e,r)=>{H[r.id]=e},Xt=()=>{H={}},jt=e=>{const r=H[e.id];f.l.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=e.diff||0;return r.attr("transform",e.clusterNode?"translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-8)+")":"translate("+e.x+", "+e.y+")"),n},et=({flowchart:e})=>{var r,t;const n=(null==(r=e?.subGraphTitleMargin)?void 0:r.top)??0,l=(null==(t=e?.subGraphTitleMargin)?void 0:t.bottom)??0;return{subGraphTitleTopMargin:n,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:n+l}},I={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function A(e,r){if(void 0===e||void 0===r)return{angle:0,deltaX:0,deltaY:0};e=X(e),r=X(r);const[t,n]=[e.x,e.y],[l,i]=[r.x,r.y],a=l-t,s=i-n;return{angle:Math.atan(s/a),deltaX:a,deltaY:s}}const X=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,st=e=>({x:function(r,t,n){let l=0;if(0===t&&Object.hasOwn(I,e.arrowTypeStart)){const{angle:i,deltaX:a}=A(n[0],n[1]);l=I[e.arrowTypeStart]*Math.cos(i)*(a>=0?1:-1)}else if(t===n.length-1&&Object.hasOwn(I,e.arrowTypeEnd)){const{angle:i,deltaX:a}=A(n[n.length-1],n[n.length-2]);l=I[e.arrowTypeEnd]*Math.cos(i)*(a>=0?1:-1)}return X(r).x+l},y:function(r,t,n){let l=0;if(0===t&&Object.hasOwn(I,e.arrowTypeStart)){const{angle:i,deltaY:a}=A(n[0],n[1]);l=I[e.arrowTypeStart]*Math.abs(Math.sin(i))*(a>=0?1:-1)}else if(t===n.length-1&&Object.hasOwn(I,e.arrowTypeEnd)){const{angle:i,deltaY:a}=A(n[n.length-1],n[n.length-2]);l=I[e.arrowTypeEnd]*Math.abs(Math.sin(i))*(a>=0?1:-1)}return X(r).y+l}}),it=(e,r,t,n,l)=>{r.arrowTypeStart&&nt(e,"start",r.arrowTypeStart,t,n,l),r.arrowTypeEnd&&nt(e,"end",r.arrowTypeEnd,t,n,l)},Ut={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},nt=(e,r,t,n,l,i)=>{const a=Ut[t];a?e.attr(`marker-${r}`,`url(${n}#${l}_${i}-${a}${"start"===r?"Start":"End"})`):f.l.warn(`Unknown arrow type: ${t}`)};let j={},M={};const zt=()=>{j={},M={}},Gt=(e,r)=>{const t=(0,f.m)((0,f.c)().flowchart.htmlLabels),n="markdown"===r.labelType?(0,Q.a)(e,r.label,{style:r.labelStyle,useHtmlLabels:t,addSvgBackground:!0}):C(r.label,r.labelStyle),l=e.insert("g").attr("class","edgeLabel"),i=l.insert("g").attr("class","label");i.node().appendChild(n);let s,a=n.getBBox();if(t){const c=n.children[0],h=(0,S.Ys)(n);a=c.getBoundingClientRect(),h.attr("width",a.width),h.attr("height",a.height)}if(i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),j[r.id]=l,r.width=a.width,r.height=a.height,r.startLabelLeft){const c=C(r.startLabelLeft,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),M[r.id]||(M[r.id]={}),M[r.id].startLeft=h,U(s,r.startLabelLeft)}if(r.startLabelRight){const c=C(r.startLabelRight,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=h.node().appendChild(c),o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),M[r.id]||(M[r.id]={}),M[r.id].startRight=h,U(s,r.startLabelRight)}if(r.endLabelLeft){const c=C(r.endLabelLeft,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),h.node().appendChild(c),M[r.id]||(M[r.id]={}),M[r.id].endLeft=h,U(s,r.endLabelLeft)}if(r.endLabelRight){const c=C(r.endLabelRight,r.labelStyle),h=e.insert("g").attr("class","edgeTerminals"),o=h.insert("g").attr("class","inner");s=o.node().appendChild(c);const p=c.getBBox();o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),h.node().appendChild(c),M[r.id]||(M[r.id]={}),M[r.id].endRight=h,U(s,r.endLabelRight)}return n};function U(e,r){(0,f.c)().flowchart.htmlLabels&&e&&(e.style.width=9*r.length+"px",e.style.height="12px")}const Kt=(e,r)=>{f.l.debug("Moving label abc88 ",e.id,e.label,j[e.id],r);let t=r.updatedPath?r.updatedPath:r.originalPath;const n=(0,f.c)(),{subGraphTitleTotalMargin:l}=et(n);if(e.label){const i=j[e.id];let a=e.x,s=e.y;if(t){const c=f.u.calcLabelPosition(t);f.l.debug("Moving label "+e.label+" from (",a,",",s,") to (",c.x,",",c.y,") abc88"),r.updatedPath&&(a=c.x,s=c.y)}i.attr("transform",`translate(${a}, ${s+l/2})`)}if(e.startLabelLeft){const i=M[e.id].startLeft;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}if(e.startLabelRight){const i=M[e.id].startRight;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}if(e.endLabelLeft){const i=M[e.id].endLeft;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}if(e.endLabelRight){const i=M[e.id].endRight;let a=e.x,s=e.y;if(t){const c=f.u.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",t);a=c.x,s=c.y}i.attr("transform",`translate(${a}, ${s})`)}},lt=(e,r)=>{f.l.debug("abc88 cutPathAtIntersect",e,r);let t=[],n=e[0],l=!1;return e.forEach(i=>{if(((e,r)=>{const n=e.y,l=Math.abs(r.x-e.x),i=Math.abs(r.y-n);return l>=e.width/2||i>=e.height/2})(r,i)||l)n=i,l||t.push(i);else{const a=((e,r,t)=>{f.l.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(r)}\n insidePoint : ${JSON.stringify(t)}\n node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,l=e.y,i=Math.abs(n-t.x),a=e.width/2;let s=t.xMath.abs(n-r.x)*c){let p=t.y{s=s||c.x===a.x&&c.y===a.y}),t.some(c=>c.x===a.x&&c.y===a.y)||t.push(a),l=!0}}),t},Vt=function(e,r,t,n,l,i,a){let s=t.points;f.l.debug("abc88 InsertEdge: edge=",t,"e=",r);let c=!1;const h=i.node(r.v);var o=i.node(r.w);o?.intersect&&h?.intersect&&(s=s.slice(1,t.points.length-1),s.unshift(h.intersect(s[0])),s.push(o.intersect(s[s.length-1]))),t.toCluster&&(f.l.debug("to cluster abc88",n[t.toCluster]),s=lt(t.points,n[t.toCluster].node),c=!0),t.fromCluster&&(f.l.debug("from cluster abc88",n[t.fromCluster]),s=lt(s.reverse(),n[t.fromCluster].node).reverse(),c=!0);const p=s.filter(E=>!Number.isNaN(E.y));let y=S.$0Z;t.curve&&("graph"===l||"flowchart"===l)&&(y=t.curve);const{x,y:u}=st(t),m=(0,S.jvg)().x(x).y(u).curve(y);let d;switch(t.thickness){case"normal":d="edge-thickness-normal";break;case"thick":case"invisible":d="edge-thickness-thick";break;default:d=""}switch(t.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}const T=e.append("path").attr("d",m(p)).attr("id",t.id).attr("class"," "+d+(t.classes?" "+t.classes:"")).attr("style",t.style);let g="";((0,f.c)().flowchart.arrowMarkerAbsolute||(0,f.c)().state.arrowMarkerAbsolute)&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),it(T,t,g,a,l);let B={};return c&&(B.updatedPath=s),B.originalPath=t.points,B}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/400.251b299514a70c5d.js b/pkg/apiserver-impl/ui/400.251b299514a70c5d.js deleted file mode 100644 index c481a2b44b..0000000000 --- a/pkg/apiserver-impl/ui/400.251b299514a70c5d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[400],{8400:(At,$,l)=>{l.r($),l.d($,{diagram:()=>Dt});var Z=l(5861),_=l(839),J=l(8814),P=l(8586),i=l(9037),Q=l(9547);l(1764),l(6780),l(2735),l(1065),l(317);const y="rect",O="rectWithTitle",D="statediagram",st=`${D}-state`,v="transition",nt=`${v} note-edge`,ct=`${D}-note`,it=`${D}-cluster`,rt=`${D}-cluster-alt`,G="parent",B="note",lt="state",R="----",dt=`${R}${B}`,N=`${R}${G}`,U="fill:none",w="fill: #333",K="text",H="normal";let p={},E=0;function x(e="",c=0,t="",r=R){return`${lt}-${e}${null!==t&&t.length>0?`${r}${t}`:""}-${c}`}const f=(e,c,t,r,n,d)=>{const s=t.id,h=function Et(e){return null==e?"":e.classes?e.classes.join(" "):""}(r[s]);if("root"!==s){let u=y;!0===t.start&&(u="start"),!1===t.start&&(u="end"),t.type!==_.D&&(u=t.type),p[s]||(p[s]={id:s,shape:u,description:i.e.sanitizeText(s,(0,i.c)()),classes:`${h} ${st}`});const o=p[s];t.description&&(Array.isArray(o.description)?(o.shape=O,o.description.push(t.description)):o.description.length>0?(o.shape=O,o.description=o.description===s?[t.description]:[o.description,t.description]):(o.shape=y,o.description=t.description),o.description=i.e.sanitizeTextOrArray(o.description,(0,i.c)())),1===o.description.length&&o.shape===O&&(o.shape=y),!o.type&&t.doc&&(i.l.info("Setting cluster for ",s,M(t)),o.type="group",o.dir=M(t),o.shape=t.type===_.a?"divider":"roundedWithTitle",o.classes=o.classes+" "+it+" "+(d?rt:""));const A={labelStyle:"",shape:o.shape,labelText:o.description,classes:o.classes,style:"",id:s,dir:o.dir,domId:x(s,E),type:o.type,padding:15,centerLabel:!0};if(t.note){const S={labelStyle:"",shape:"note",labelText:t.note.text,classes:ct,style:"",id:s+dt+"-"+E,domId:x(s,E,B),type:o.type,padding:15},C={labelStyle:"",shape:"noteGroup",labelText:t.note.text,classes:o.classes,style:"",id:s+N,domId:x(s,E,G),type:"group",padding:0};E++;const a=s+N;e.setNode(a,C),e.setNode(S.id,S),e.setNode(s,A),e.setParent(s,a),e.setParent(S.id,a);let g=s,T=S.id;"left of"===t.note.position&&(g=S.id,T=s),e.setEdge(g,T,{arrowhead:"none",arrowType:"",style:U,labelStyle:"",classes:nt,arrowheadStyle:w,labelpos:"c",labelType:K,thickness:H})}else e.setNode(s,A)}c&&"root"!==c.id&&(i.l.trace("Setting node ",s," to be child of its parent ",c.id),e.setParent(s,c.id)),t.doc&&(i.l.trace("Adding nodes children "),St(e,t,t.doc,r,n,!d))},St=(e,c,t,r,n,d)=>{i.l.trace("items",t),t.forEach(s=>{switch(s.stmt){case _.b:case _.D:f(e,c,s,r,n,d);break;case _.S:{f(e,c,s.state1,r,n,d),f(e,c,s.state2,r,n,d);const h={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:U,labelStyle:"",label:i.e.sanitizeText(s.description,(0,i.c)()),arrowheadStyle:w,labelpos:"c",labelType:K,thickness:H,classes:v};e.setEdge(s.state1.id,s.state2.id,h,E),E++}}})},M=(e,c=_.c)=>{let t=c;if(e.doc)for(let r=0;r{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,_.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/167.17f92c6e702d25df.js b/pkg/apiserver-impl/ui/412.59466dc862aa4b87.js similarity index 99% rename from pkg/apiserver-impl/ui/167.17f92c6e702d25df.js rename to pkg/apiserver-impl/ui/412.59466dc862aa4b87.js index 30f85ea3a8..4f69a8da13 100644 --- a/pkg/apiserver-impl/ui/167.17f92c6e702d25df.js +++ b/pkg/apiserver-impl/ui/412.59466dc862aa4b87.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[167],{8167:(g0,ie,H)=>{H.r(ie),H.d(ie,{diagram:()=>h0});var w=H(9037),Pt=H(8586),ne=H(3118),xe=H(6780),Mt=(H(1764),H(2735),function(){var e=function(Et,b,x,m){for(x=x||{},m=Et.length;m--;x[Et[m]]=b);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],T=[1,30],D=[1,31],P=[1,32],B=[1,33],F=[1,34],q=[1,35],J=[1,36],Z=[1,37],$=[1,38],tt=[1,39],et=[1,40],it=[1,41],nt=[1,42],st=[1,43],at=[1,44],rt=[1,45],lt=[1,46],ot=[1,47],ct=[1,48],ht=[1,50],ut=[1,51],dt=[1,52],ft=[1,53],pt=[1,54],yt=[1,55],gt=[1,56],_t=[1,57],bt=[1,58],xt=[1,59],mt=[1,60],Ot=[14,42],Gt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Dt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],A=[1,83],k=[1,84],C=[1,85],O=[12,14,42],ye=[12,14,33,42],jt=[12,14,33,42,76,77,79,80],vt=[12,33],Kt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(b,x,m,g,R,u,St){var y=u.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let At={};At[u[y-1].trim()]=u[y].trim(),this.$=At;break;case 76:this.$=""}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{14:[1,74]},e(Ot,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(Ot,[2,14]),e(Gt,[2,16],{12:[1,76]}),e(Ot,[2,36],{12:[1,77]}),e(Dt,[2,19]),e(Dt,[2,20]),{25:[1,78]},{27:[1,79]},e(Dt,[2,23]),{35:80,75:81,76:v,77:A,79:k,80:C},{35:86,75:81,76:v,77:A,79:k,80:C},{35:87,75:81,76:v,77:A,79:k,80:C},{35:88,75:81,76:v,77:A,79:k,80:C},{35:89,75:81,76:v,77:A,79:k,80:C},{35:90,75:81,76:v,77:A,79:k,80:C},{35:91,75:81,76:v,77:A,79:k,80:C},{35:92,75:81,76:v,77:A,79:k,80:C},{35:93,75:81,76:v,77:A,79:k,80:C},{35:94,75:81,76:v,77:A,79:k,80:C},{35:95,75:81,76:v,77:A,79:k,80:C},{35:96,75:81,76:v,77:A,79:k,80:C},{35:97,75:81,76:v,77:A,79:k,80:C},{35:98,75:81,76:v,77:A,79:k,80:C},{35:99,75:81,76:v,77:A,79:k,80:C},{35:100,75:81,76:v,77:A,79:k,80:C},{35:101,75:81,76:v,77:A,79:k,80:C},{35:102,75:81,76:v,77:A,79:k,80:C},{35:103,75:81,76:v,77:A,79:k,80:C},{35:104,75:81,76:v,77:A,79:k,80:C},e(O,[2,59]),{35:105,75:81,76:v,77:A,79:k,80:C},{35:106,75:81,76:v,77:A,79:k,80:C},{35:107,75:81,76:v,77:A,79:k,80:C},{35:108,75:81,76:v,77:A,79:k,80:C},{35:109,75:81,76:v,77:A,79:k,80:C},{35:110,75:81,76:v,77:A,79:k,80:C},{35:111,75:81,76:v,77:A,79:k,80:C},{35:112,75:81,76:v,77:A,79:k,80:C},{35:113,75:81,76:v,77:A,79:k,80:C},{35:114,75:81,76:v,77:A,79:k,80:C},{35:115,75:81,76:v,77:A,79:k,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:A,79:k,80:C},{35:120,75:81,76:v,77:A,79:k,80:C},{35:121,75:81,76:v,77:A,79:k,80:C},{35:122,75:81,76:v,77:A,79:k,80:C},{35:123,75:81,76:v,77:A,79:k,80:C},{35:124,75:81,76:v,77:A,79:k,80:C},{35:125,75:81,76:v,77:A,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ot,[2,15]),e(Gt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(Ot,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(Dt,[2,21]),e(Dt,[2,22]),e(O,[2,39]),e(ye,[2,71],{75:81,35:132,76:v,77:A,79:k,80:C}),e(jt,[2,73]),{78:[1,133]},e(jt,[2,75]),e(jt,[2,76]),e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),e(O,[2,53]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),e(O,[2,57]),e(O,[2,58]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(O,[2,64]),e(O,[2,65]),e(O,[2,66]),e(O,[2,67]),e(O,[2,68]),e(O,[2,69]),e(O,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Gt,[2,18]),e(Ot,[2,38]),e(ye,[2,72]),e(jt,[2,74]),e(O,[2,24]),e(O,[2,35]),e(Kt,[2,25]),e(Kt,[2,26],{12:[1,138]}),e(Kt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(b,x){if(!x.recoverable){var m=new Error(b);throw m.hash=x,m}this.trace(b)},parse:function(b){var m=[0],g=[],R=[null],u=[],St=this.table,y="",At=0,ge=0,f0=u.slice.call(arguments,1),S=Object.create(this.lexer),kt={yy:{}};for(var Zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Zt)&&(kt.yy[Zt]=this.yy[Zt]);S.setInput(b,kt.yy),kt.yy.lexer=S,kt.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var $t=S.yylloc;u.push($t);var Q,p0=S.options&&S.options.ranges;this.parseError="function"==typeof kt.yy.parseError?kt.yy.parseError:Object.getPrototypeOf(this).parseError;for(var L,Ct,N,te,Ut,z,Ft,Tt={};;){if(this.defaultActions[Ct=m[m.length-1]]?N=this.defaultActions[Ct]:((null===L||typeof L>"u")&&(Q=void 0,"number"!=typeof(Q=g.pop()||S.lex()||1)&&(Q instanceof Array&&(Q=(g=Q).pop()),Q=this.symbols_[Q]||Q),L=Q),N=St[Ct]&&St[Ct][L]),typeof N>"u"||!N.length||!N[0]){var ee;for(Ut in Ft=[],St[Ct])this.terminals_[Ut]&&Ut>2&&Ft.push("'"+this.terminals_[Ut]+"'");ee=S.showPosition?"Parse error on line "+(At+1)+":\n"+S.showPosition()+"\nExpecting "+Ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":"Parse error on line "+(At+1)+": Unexpected "+(1==L?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(ee,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:$t,expected:Ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+L);switch(N[0]){case 1:m.push(L),R.push(S.yytext),u.push(S.yylloc),m.push(N[1]),L=null,ge=S.yyleng,y=S.yytext,At=S.yylineno,$t=S.yylloc;break;case 2:if(Tt.$=R[R.length-(z=this.productions_[N[1]][1])],Tt._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},p0&&(Tt._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),typeof(te=this.performAction.apply(Tt,[y,ge,At,kt.yy,N[1],R,u].concat(f0)))<"u")return te;z&&(m=m.slice(0,-1*z*2),R=R.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),R.push(Tt.$),u.push(Tt._$),m.push(St[m[m.length-2]][m[m.length-1]]);break;case 3:return!0}}return!0}};function Jt(){this.yy={}}return qt.lexer={EOF:1,parseError:function(x,m){if(!this.yy.parser)throw new Error(x);this.yy.parser.parseError(x,m)},setInput:function(b,x){return this.yy=x||this.yy||{},this._input=b,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},input:function(){var b=this._input[0];return this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b,b.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),b},unput:function(b){var x=b.length,m=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=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),m.length-1&&(this.yylineno-=m.length-1);var R=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:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),x=new Array(b.length+1).join("-");return b+this.upcomingInput()+"\n"+x+"^"},test_match:function(b,x){var m,g,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),(g=b[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in R)this[u]=R[u];return!1}return!1},next:function(){if(this.done)return this.EOF;var b,x,m,g;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),u=0;ux[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(!1!==(b=this.test_match(m,R[u])))return b;if(this._backtrack){x=!1;continue}return!1}if(!this.options.flex)break}return x?!1!==(b=this.test_match(x,R[g]))&&b:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return(x=this.conditionStack.length-1-Math.abs(x||0))>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,R){switch(g){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}},Jt.prototype=qt,qt.Parser=Jt,new Jt}());Mt.parser=Mt;const me=Mt;let Y=[],G=[""],M="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],wt=[],Vt="",Wt=!1,Lt=4,Bt=2;var se;const ae=function(e){return null==e?Y:Y.filter(t=>t.parentBoundary===e)},re=function(e){return null==e?V:V.filter(t=>t.parentBoundary===e)},K=function(){return Wt},Xt={addPersonOrSystem:function(e,t,a,o,l,i,s){if(null===t||null===a)return;let r={};const n=Y.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,Y.push(r)),r.label=null==a?{text:""}:{text:a},null==o)r.descr={text:""};else if("object"==typeof o){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if("object"==typeof l){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if("object"==typeof i){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if("object"==typeof s){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=M,r.wrap=K()},addPersonOrSystemBoundary:function(e,t,a,o,l){if(null===e||null===t)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),i.label=null==t?{text:""}:{text:t},null==a)i.type={text:"system"};else if("object"==typeof a){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if("object"==typeof o){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if("object"==typeof l){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=M,i.wrap=K(),j=M,M=e,G.push(j)},addContainer:function(e,t,a,o,l,i,s,r){if(null===t||null===a)return;let n={};const h=Y.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,Y.push(n)),n.label=null==a?{text:""}:{text:a},null==o)n.techn={text:""};else if("object"==typeof o){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(null==l)n.descr={text:""};else if("object"==typeof l){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if("object"==typeof i){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if("object"==typeof s){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if("object"==typeof r){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=K(),n.typeC4Shape={text:e},n.parentBoundary=M},addContainerBoundary:function(e,t,a,o,l){if(null===e||null===t)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),i.label=null==t?{text:""}:{text:t},null==a)i.type={text:"container"};else if("object"==typeof a){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if("object"==typeof o){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if("object"==typeof l){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=M,i.wrap=K(),j=M,M=e,G.push(j)},addComponent:function(e,t,a,o,l,i,s,r){if(null===t||null===a)return;let n={};const h=Y.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,Y.push(n)),n.label=null==a?{text:""}:{text:a},null==o)n.techn={text:""};else if("object"==typeof o){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(null==l)n.descr={text:""};else if("object"==typeof l){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if("object"==typeof i){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if("object"==typeof s){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if("object"==typeof r){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=K(),n.typeC4Shape={text:e},n.parentBoundary=M},addDeploymentNode:function(e,t,a,o,l,i,s,r){if(null===t||null===a)return;let n={};const h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),n.label=null==a?{text:""}:{text:a},null==o)n.type={text:"node"};else if("object"==typeof o){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(null==l)n.descr={text:""};else if("object"==typeof l){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if("object"==typeof s){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if("object"==typeof r){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=M,n.wrap=K(),j=M,M=t,G.push(j)},popBoundaryParseStack:function(){M=j,G.pop(),j=G.pop(),G.push(j)},addRel:function(e,t,a,o,l,i,s,r,n){if(null==e||null==t||null==a||null==o)return;let h={};const f=wt.find(d=>d.from===t&&d.to===a);if(f?h=f:wt.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},null==l)h.techn={text:""};else if("object"==typeof l){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(null==i)h.descr={text:""};else if("object"==typeof i){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if("object"==typeof s){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if("object"==typeof r){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if("object"==typeof n){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=K()},updateElStyle:function(e,t,a,o,l,i,s,r,n,h,f){let d=Y.find(p=>p.alias===t);if(void 0!==d||(d=V.find(p=>p.alias===t),void 0!==d)){if(null!=a)if("object"==typeof a){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(null!=o)if("object"==typeof o){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(null!=l)if("object"==typeof l){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(null!=i)if("object"==typeof i){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(null!=s)if("object"==typeof s){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(null!=r)if("object"==typeof r){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(null!=n)if("object"==typeof n){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(null!=h)if("object"==typeof h){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(null!=f)if("object"==typeof f){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},updateRelStyle:function(e,t,a,o,l,i,s){const r=wt.find(n=>n.from===t&&n.to===a);if(void 0!==r){if(null!=o)if("object"==typeof o){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(null!=l)if("object"==typeof l){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(null!=i)if("object"==typeof i){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(null!=s)if("object"==typeof s){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},updateLayoutConfig:function(e,t,a){let o=Lt,l=Bt;if("object"==typeof t){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if("object"==typeof a){const i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(Lt=o),l>=1&&(Bt=l)},autoWrap:K,setWrap:function(e){Wt=e},getC4ShapeArray:ae,getC4Shape:function(e){return Y.find(t=>t.alias===e)},getC4ShapeKeys:function(e){return Object.keys(ae(e))},getBoundaries:re,getBoundarys:re,getCurrentBoundaryParse:function(){return M},getParentBoundaryParse:function(){return j},getRels:function(){return wt},getTitle:function(){return Vt},getC4Type:function(){return se},getC4ShapeInRow:function(){return Lt},getC4BoundaryInRow:function(){return Bt},setAccTitle:w.s,getAccTitle:w.g,getAccDescription:w.a,setAccDescription:w.b,getConfig:()=>(0,w.c)().c4,clear:function(){Y=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",M="global",G=[""],wt=[],G=[""],Vt="",Wt=!1,Lt=4,Bt=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(e){Vt=(0,w.d)(e,(0,w.c)())},setC4Type:function(e){se=(0,w.d)(e,(0,w.c)())}},zt=function(e,t){return(0,ne.d)(e,t)},X=function(){function e(l,i,s,r,n,h,f){o(i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l),f)}function t(l,i,s,r,n,h,f,d){const{fontSize:p,fontFamily:E,fontWeight:T}=d,D=l.split(w.e.lineBreakRegex);for(let P=0;P({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}))(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":!function(e,t,a,o,l,i){const s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:(0,xe.N)(i);s.attr("xlink:href",r)}(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r)}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,X(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&""!==(null==(o=t.techn)?void 0:o.text)?X(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&""!==t.type.text&&X(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&""!==t.descr.text&&(d=a.personFont(),d.fontColor=s,X(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height};let It=0,Nt=0,oe=4,Qt=2;Mt.yy=Xt;let _={};class ce{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Ht(t.db.getConfig())}setData(t,a,o,l){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=a,this.nextData.starty=this.data.starty=o,this.nextData.stopy=this.data.stopy=l}updateVal(t,a,o,l){t[a]=void 0===t[a]?o:l(o,t[a])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let a=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,o=a+t.width,l=this.nextData.starty+2*t.margin,i=l+t.height;(a>=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>oe)&&(a=this.nextData.startx+t.margin+_.nextLinePaddingX,l=this.nextData.stopy+2*t.margin,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Ht(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const Ht=function(e){(0,w.f)(_,e),e.fontFamily&&(_.personFontFamily=_.systemFontFamily=_.messageFontFamily=e.fontFamily),e.fontSize&&(_.personFontSize=_.systemFontSize=_.messageFontSize=e.fontSize),e.fontWeight&&(_.personFontWeight=_.systemFontWeight=_.messageFontWeight=e.fontWeight)},Rt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Yt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),l0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function U(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=(0,w.w)(t[e].text,l,o),t[e].textLines=t[e].text.split(w.e.lineBreakRegex).length,t[e].width=l,t[e].height=(0,w.j)(t[e].text,o);else{let i=t[e].text.split(w.e.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max((0,w.h)(r,o),t[e].width),s=(0,w.j)(r,o),t[e].height=t[e].height+s}}const he=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=_.c4ShapeMargin-35;let o=t.wrap&&_.wrap,l=Yt(_);l.fontSize=l.fontSize+2,l.fontWeight="bold",U("label",t,o,l,(0,w.h)(t.label.text,l)),function(e,t,a){const o=e.append("g");let s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1}),zt(o,{x:t.x,y:t.y,fill:t.bgColor?t.bgColor:"none",stroke:t.borderColor?t.borderColor:"#444444",width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r});let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,X(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&""!==t.type.text&&(h=a.boundaryFont(),h.fontColor=s,X(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&""!==t.descr.text&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,X(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))}(e,t,_)},ue=function(e,t,a,o){let l=0;for(const i of o){l=0;const s=a[i];let r=Rt(_,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=(0,w.h)("\xab"+s.typeC4Shape.text+"\xbb",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=_.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&_.wrap,h=_.width-2*_.c4ShapePadding,f=Rt(_,s.typeC4Shape.text);f.fontSize=f.fontSize+2,f.fontWeight="bold",U("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&""!==s.type.text?(s.type.text="["+s.type.text+"]",U("type",s,n,Rt(_,s.typeC4Shape.text),h),s.type.Y=l+5,l=s.type.Y+s.type.height):s.techn&&""!==s.techn.text&&(s.techn.text="["+s.techn.text+"]",U("techn",s,n,Rt(_,s.techn.text),h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height);let d=l,p=s.label.width;s.descr&&""!==s.descr.text&&(U("descr",s,n,Rt(_,s.typeC4Shape.text),h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-5*s.descr.textLines),p+=_.c4ShapePadding,s.width=Math.max(s.width||_.width,p,_.width),s.height=Math.max(s.height||_.height,d,_.height),s.margin=s.margin||_.c4ShapeMargin,e.insert(s),W_drawC4Shape(t,s,_)}e.bumpLastMargin(_.c4ShapeMargin)};class I{constructor(t,a){this.x=t,this.y=a}}let de=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&al?p=new I(a,r):a==l&&oi&&(p=new I(s,o)),a>l&&o=f?new I(a,r+f*e.width/2):new I(s-n/h*e.height/2,o+e.height):a=f?new I(a+e.width,r+f*e.width/2):new I(s+n/h*e.height/2,o+e.height):ai?p=d>=f?new I(a+e.width,r-f*e.width/2):new I(s+e.height/2*n/h,o):a>l&&o>i&&(p=d>=f?new I(a,r-e.width/2*f):new I(s-e.height/2*n/h,o)),p},o0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=de(e,a);return a.x=e.x+e.width/2,a.y=e.y+e.height/2,{startPoint:o,endPoint:de(t,a)}};function fe(e,t,a,o,l){let i=new ce(l);i.data.widthLimit=a.data.widthLimit/Math.min(Qt,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&_.wrap,f=Yt(_);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",U("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&""!==r.type.text&&(r.type.text="["+r.type.text+"]",U("type",r,h,Yt(_),i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height),r.descr&&""!==r.descr.text){let T=Yt(_);T.fontSize=T.fontSize-2,U("descr",r,h,T,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(0==s||s%Qt==0){let T=a.data.startx+_.diagramMarginX,D=a.data.stopy+_.diagramMarginY+n;i.setData(T,T,D,D)}else{let T=i.data.stopx!==i.data.startx?i.data.stopx+_.diagramMarginX:i.data.startx,D=i.data.starty;i.setData(T,T,D,D)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&ue(i,e,d,p);let E=l.db.getBoundarys(t=r.alias);E.length>0&&fe(e,t,i,E,l),"global"!==r.alias&&he(e,r,i),a.data.stopy=Math.max(i.data.stopy+_.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+_.c4ShapeMargin,a.data.stopx),It=Math.max(It,a.data.stopx),Nt=Math.max(Nt,a.data.stopy)}}const pe={drawPersonOrSystemArray:ue,drawBoundary:he,setConf:Ht,draw:function(e,t,a,o){_=(0,w.c)().c4;const l=(0,w.c)().securityLevel;let i;"sandbox"===l&&(i=(0,Pt.Ys)("#i"+t));const s=(0,Pt.Ys)("sandbox"===l?i.nodes()[0].contentDocument.body:"body");let r=o.db;o.db.setWrap(_.wrap),oe=r.getC4ShapeInRow(),Qt=r.getC4BoundaryInRow(),w.l.debug(`C:${JSON.stringify(_,null,2)}`);const n="sandbox"===l?s.select(`[id="${t}"]`):(0,Pt.Ys)(`[id="${t}"]`);(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")})(n),function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(n),function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(n);let h=new ce(o);h.setData(_.diagramMarginX,_.diagramMarginX,_.diagramMarginY,_.diagramMarginY),h.data.widthLimit=screen.availWidth,It=_.diagramMarginX,Nt=_.diagramMarginY;const f=o.db.getTitle();fe(n,"",h,o.db.getBoundarys(""),o),function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(n),function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(n),function(e){const a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(n),function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(n),function(e,t,a,o){let l=0;for(let i of t){l+=1;let s=i.wrap&&_.wrap,r=l0(_);"C4Dynamic"===o.db.getC4Type()&&(i.label.text=l+": "+i.label.text);let h=(0,w.h)(i.label.text,r);U("label",i,s,r,h),i.techn&&""!==i.techn.text&&(h=(0,w.h)(i.techn.text,r),U("techn",i,s,r,h)),i.descr&&""!==i.descr.text&&(h=(0,w.h)(i.descr.text,r),U("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=o0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}((e,t,a)=>{const o=e.append("g");let l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(0===l){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),"rel_b"!==i.type&&p.attr("marker-end","url("+f+"#arrowhead)"),("birel"===i.type||"rel_b"===i.type)&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),"rel_b"!==i.type&&p.attr("marker-end","url("+f+"#arrowhead)"),("birel"===i.type||"rel_b"===i.type)&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();X(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&""!==i.techn.text&&(d=a.messageFont(),X(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}})(e,t,_)}(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=It,h.data.stopy=Nt;const p=h.data;let T=p.stopy-p.starty+2*_.diagramMarginY;const P=p.stopx-p.startx+2*_.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*_.diagramMarginX).attr("y",p.starty+_.diagramMarginY),(0,w.i)(n,T,P,_.useMaxWidth);const B=f?60:0;n.attr("viewBox",p.startx-_.diagramMarginX+" -"+(_.diagramMarginY+B)+" "+P+" "+(T+B)),w.l.debug("models:",p)}},h0={parser:me,db:Xt,renderer:pe,styles:e=>`.person {\n stroke: ${e.personBorder};\n fill: ${e.personBkg};\n }\n`,init:({c4:e,wrap:t})=>{pe.setConf(e),Xt.setWrap(t)}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[412],{2412:(g0,ie,H)=>{H.r(ie),H.d(ie,{diagram:()=>h0});var w=H(8080),Pt=H(8586),ne=H(6938),xe=H(6780),Mt=(H(1764),H(2735),function(){var e=function(Et,b,x,m){for(x=x||{},m=Et.length;m--;x[Et[m]]=b);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],T=[1,30],D=[1,31],P=[1,32],B=[1,33],F=[1,34],q=[1,35],J=[1,36],Z=[1,37],$=[1,38],tt=[1,39],et=[1,40],it=[1,41],nt=[1,42],st=[1,43],at=[1,44],rt=[1,45],lt=[1,46],ot=[1,47],ct=[1,48],ht=[1,50],ut=[1,51],dt=[1,52],ft=[1,53],pt=[1,54],yt=[1,55],gt=[1,56],_t=[1,57],bt=[1,58],xt=[1,59],mt=[1,60],Ot=[14,42],Gt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Dt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],A=[1,83],k=[1,84],C=[1,85],O=[12,14,42],ye=[12,14,33,42],jt=[12,14,33,42,76,77,79,80],vt=[12,33],Kt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(b,x,m,g,R,u,St){var y=u.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let At={};At[u[y-1].trim()]=u[y].trim(),this.$=At;break;case 76:this.$=""}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{14:[1,74]},e(Ot,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(Ot,[2,14]),e(Gt,[2,16],{12:[1,76]}),e(Ot,[2,36],{12:[1,77]}),e(Dt,[2,19]),e(Dt,[2,20]),{25:[1,78]},{27:[1,79]},e(Dt,[2,23]),{35:80,75:81,76:v,77:A,79:k,80:C},{35:86,75:81,76:v,77:A,79:k,80:C},{35:87,75:81,76:v,77:A,79:k,80:C},{35:88,75:81,76:v,77:A,79:k,80:C},{35:89,75:81,76:v,77:A,79:k,80:C},{35:90,75:81,76:v,77:A,79:k,80:C},{35:91,75:81,76:v,77:A,79:k,80:C},{35:92,75:81,76:v,77:A,79:k,80:C},{35:93,75:81,76:v,77:A,79:k,80:C},{35:94,75:81,76:v,77:A,79:k,80:C},{35:95,75:81,76:v,77:A,79:k,80:C},{35:96,75:81,76:v,77:A,79:k,80:C},{35:97,75:81,76:v,77:A,79:k,80:C},{35:98,75:81,76:v,77:A,79:k,80:C},{35:99,75:81,76:v,77:A,79:k,80:C},{35:100,75:81,76:v,77:A,79:k,80:C},{35:101,75:81,76:v,77:A,79:k,80:C},{35:102,75:81,76:v,77:A,79:k,80:C},{35:103,75:81,76:v,77:A,79:k,80:C},{35:104,75:81,76:v,77:A,79:k,80:C},e(O,[2,59]),{35:105,75:81,76:v,77:A,79:k,80:C},{35:106,75:81,76:v,77:A,79:k,80:C},{35:107,75:81,76:v,77:A,79:k,80:C},{35:108,75:81,76:v,77:A,79:k,80:C},{35:109,75:81,76:v,77:A,79:k,80:C},{35:110,75:81,76:v,77:A,79:k,80:C},{35:111,75:81,76:v,77:A,79:k,80:C},{35:112,75:81,76:v,77:A,79:k,80:C},{35:113,75:81,76:v,77:A,79:k,80:C},{35:114,75:81,76:v,77:A,79:k,80:C},{35:115,75:81,76:v,77:A,79:k,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:A,79:k,80:C},{35:120,75:81,76:v,77:A,79:k,80:C},{35:121,75:81,76:v,77:A,79:k,80:C},{35:122,75:81,76:v,77:A,79:k,80:C},{35:123,75:81,76:v,77:A,79:k,80:C},{35:124,75:81,76:v,77:A,79:k,80:C},{35:125,75:81,76:v,77:A,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ot,[2,15]),e(Gt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(Ot,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:T,46:D,47:P,48:B,49:F,50:q,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:st,59:at,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(Dt,[2,21]),e(Dt,[2,22]),e(O,[2,39]),e(ye,[2,71],{75:81,35:132,76:v,77:A,79:k,80:C}),e(jt,[2,73]),{78:[1,133]},e(jt,[2,75]),e(jt,[2,76]),e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),e(O,[2,53]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),e(O,[2,57]),e(O,[2,58]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(O,[2,64]),e(O,[2,65]),e(O,[2,66]),e(O,[2,67]),e(O,[2,68]),e(O,[2,69]),e(O,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Gt,[2,18]),e(Ot,[2,38]),e(ye,[2,72]),e(jt,[2,74]),e(O,[2,24]),e(O,[2,35]),e(Kt,[2,25]),e(Kt,[2,26],{12:[1,138]}),e(Kt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(b,x){if(!x.recoverable){var m=new Error(b);throw m.hash=x,m}this.trace(b)},parse:function(b){var m=[0],g=[],R=[null],u=[],St=this.table,y="",At=0,ge=0,f0=u.slice.call(arguments,1),S=Object.create(this.lexer),kt={yy:{}};for(var Zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Zt)&&(kt.yy[Zt]=this.yy[Zt]);S.setInput(b,kt.yy),kt.yy.lexer=S,kt.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var $t=S.yylloc;u.push($t);var Q,p0=S.options&&S.options.ranges;this.parseError="function"==typeof kt.yy.parseError?kt.yy.parseError:Object.getPrototypeOf(this).parseError;for(var L,Ct,N,te,Ut,z,Ft,Tt={};;){if(this.defaultActions[Ct=m[m.length-1]]?N=this.defaultActions[Ct]:((null===L||typeof L>"u")&&(Q=void 0,"number"!=typeof(Q=g.pop()||S.lex()||1)&&(Q instanceof Array&&(Q=(g=Q).pop()),Q=this.symbols_[Q]||Q),L=Q),N=St[Ct]&&St[Ct][L]),typeof N>"u"||!N.length||!N[0]){var ee;for(Ut in Ft=[],St[Ct])this.terminals_[Ut]&&Ut>2&&Ft.push("'"+this.terminals_[Ut]+"'");ee=S.showPosition?"Parse error on line "+(At+1)+":\n"+S.showPosition()+"\nExpecting "+Ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":"Parse error on line "+(At+1)+": Unexpected "+(1==L?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(ee,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:$t,expected:Ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+L);switch(N[0]){case 1:m.push(L),R.push(S.yytext),u.push(S.yylloc),m.push(N[1]),L=null,ge=S.yyleng,y=S.yytext,At=S.yylineno,$t=S.yylloc;break;case 2:if(Tt.$=R[R.length-(z=this.productions_[N[1]][1])],Tt._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},p0&&(Tt._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),typeof(te=this.performAction.apply(Tt,[y,ge,At,kt.yy,N[1],R,u].concat(f0)))<"u")return te;z&&(m=m.slice(0,-1*z*2),R=R.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),R.push(Tt.$),u.push(Tt._$),m.push(St[m[m.length-2]][m[m.length-1]]);break;case 3:return!0}}return!0}};function Jt(){this.yy={}}return qt.lexer={EOF:1,parseError:function(x,m){if(!this.yy.parser)throw new Error(x);this.yy.parser.parseError(x,m)},setInput:function(b,x){return this.yy=x||this.yy||{},this._input=b,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},input:function(){var b=this._input[0];return this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b,b.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),b},unput:function(b){var x=b.length,m=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=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),m.length-1&&(this.yylineno-=m.length-1);var R=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:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),x=new Array(b.length+1).join("-");return b+this.upcomingInput()+"\n"+x+"^"},test_match:function(b,x){var m,g,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),(g=b[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in R)this[u]=R[u];return!1}return!1},next:function(){if(this.done)return this.EOF;var b,x,m,g;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),u=0;ux[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(!1!==(b=this.test_match(m,R[u])))return b;if(this._backtrack){x=!1;continue}return!1}if(!this.options.flex)break}return x?!1!==(b=this.test_match(x,R[g]))&&b:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return(x=this.conditionStack.length-1-Math.abs(x||0))>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,R){switch(g){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}},Jt.prototype=qt,qt.Parser=Jt,new Jt}());Mt.parser=Mt;const me=Mt;let Y=[],G=[""],M="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],wt=[],Vt="",Wt=!1,Lt=4,Bt=2;var se;const ae=function(e){return null==e?Y:Y.filter(t=>t.parentBoundary===e)},re=function(e){return null==e?V:V.filter(t=>t.parentBoundary===e)},K=function(){return Wt},Xt={addPersonOrSystem:function(e,t,a,o,l,i,s){if(null===t||null===a)return;let r={};const n=Y.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,Y.push(r)),r.label=null==a?{text:""}:{text:a},null==o)r.descr={text:""};else if("object"==typeof o){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if("object"==typeof l){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if("object"==typeof i){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if("object"==typeof s){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=M,r.wrap=K()},addPersonOrSystemBoundary:function(e,t,a,o,l){if(null===e||null===t)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),i.label=null==t?{text:""}:{text:t},null==a)i.type={text:"system"};else if("object"==typeof a){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if("object"==typeof o){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if("object"==typeof l){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=M,i.wrap=K(),j=M,M=e,G.push(j)},addContainer:function(e,t,a,o,l,i,s,r){if(null===t||null===a)return;let n={};const h=Y.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,Y.push(n)),n.label=null==a?{text:""}:{text:a},null==o)n.techn={text:""};else if("object"==typeof o){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(null==l)n.descr={text:""};else if("object"==typeof l){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if("object"==typeof i){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if("object"==typeof s){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if("object"==typeof r){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=K(),n.typeC4Shape={text:e},n.parentBoundary=M},addContainerBoundary:function(e,t,a,o,l){if(null===e||null===t)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),i.label=null==t?{text:""}:{text:t},null==a)i.type={text:"container"};else if("object"==typeof a){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if("object"==typeof o){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if("object"==typeof l){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=M,i.wrap=K(),j=M,M=e,G.push(j)},addComponent:function(e,t,a,o,l,i,s,r){if(null===t||null===a)return;let n={};const h=Y.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,Y.push(n)),n.label=null==a?{text:""}:{text:a},null==o)n.techn={text:""};else if("object"==typeof o){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(null==l)n.descr={text:""};else if("object"==typeof l){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if("object"==typeof i){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if("object"==typeof s){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if("object"==typeof r){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=K(),n.typeC4Shape={text:e},n.parentBoundary=M},addDeploymentNode:function(e,t,a,o,l,i,s,r){if(null===t||null===a)return;let n={};const h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),n.label=null==a?{text:""}:{text:a},null==o)n.type={text:"node"};else if("object"==typeof o){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(null==l)n.descr={text:""};else if("object"==typeof l){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if("object"==typeof s){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if("object"==typeof r){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=M,n.wrap=K(),j=M,M=t,G.push(j)},popBoundaryParseStack:function(){M=j,G.pop(),j=G.pop(),G.push(j)},addRel:function(e,t,a,o,l,i,s,r,n){if(null==e||null==t||null==a||null==o)return;let h={};const f=wt.find(d=>d.from===t&&d.to===a);if(f?h=f:wt.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},null==l)h.techn={text:""};else if("object"==typeof l){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(null==i)h.descr={text:""};else if("object"==typeof i){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if("object"==typeof s){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if("object"==typeof r){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if("object"==typeof n){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=K()},updateElStyle:function(e,t,a,o,l,i,s,r,n,h,f){let d=Y.find(p=>p.alias===t);if(void 0!==d||(d=V.find(p=>p.alias===t),void 0!==d)){if(null!=a)if("object"==typeof a){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(null!=o)if("object"==typeof o){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(null!=l)if("object"==typeof l){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(null!=i)if("object"==typeof i){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(null!=s)if("object"==typeof s){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(null!=r)if("object"==typeof r){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(null!=n)if("object"==typeof n){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(null!=h)if("object"==typeof h){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(null!=f)if("object"==typeof f){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},updateRelStyle:function(e,t,a,o,l,i,s){const r=wt.find(n=>n.from===t&&n.to===a);if(void 0!==r){if(null!=o)if("object"==typeof o){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(null!=l)if("object"==typeof l){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(null!=i)if("object"==typeof i){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(null!=s)if("object"==typeof s){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},updateLayoutConfig:function(e,t,a){let o=Lt,l=Bt;if("object"==typeof t){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if("object"==typeof a){const i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(Lt=o),l>=1&&(Bt=l)},autoWrap:K,setWrap:function(e){Wt=e},getC4ShapeArray:ae,getC4Shape:function(e){return Y.find(t=>t.alias===e)},getC4ShapeKeys:function(e){return Object.keys(ae(e))},getBoundaries:re,getBoundarys:re,getCurrentBoundaryParse:function(){return M},getParentBoundaryParse:function(){return j},getRels:function(){return wt},getTitle:function(){return Vt},getC4Type:function(){return se},getC4ShapeInRow:function(){return Lt},getC4BoundaryInRow:function(){return Bt},setAccTitle:w.s,getAccTitle:w.g,getAccDescription:w.a,setAccDescription:w.b,getConfig:()=>(0,w.c)().c4,clear:function(){Y=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",M="global",G=[""],wt=[],G=[""],Vt="",Wt=!1,Lt=4,Bt=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(e){Vt=(0,w.d)(e,(0,w.c)())},setC4Type:function(e){se=(0,w.d)(e,(0,w.c)())}},zt=function(e,t){return(0,ne.d)(e,t)},X=function(){function e(l,i,s,r,n,h,f){o(i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l),f)}function t(l,i,s,r,n,h,f,d){const{fontSize:p,fontFamily:E,fontWeight:T}=d,D=l.split(w.e.lineBreakRegex);for(let P=0;P({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}))(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":!function(e,t,a,o,l,i){const s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:(0,xe.N)(i);s.attr("xlink:href",r)}(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r)}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,X(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&""!==(null==(o=t.techn)?void 0:o.text)?X(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&""!==t.type.text&&X(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&""!==t.descr.text&&(d=a.personFont(),d.fontColor=s,X(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height};let It=0,Nt=0,oe=4,Qt=2;Mt.yy=Xt;let _={};class ce{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Ht(t.db.getConfig())}setData(t,a,o,l){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=a,this.nextData.starty=this.data.starty=o,this.nextData.stopy=this.data.stopy=l}updateVal(t,a,o,l){t[a]=void 0===t[a]?o:l(o,t[a])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let a=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,o=a+t.width,l=this.nextData.starty+2*t.margin,i=l+t.height;(a>=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>oe)&&(a=this.nextData.startx+t.margin+_.nextLinePaddingX,l=this.nextData.stopy+2*t.margin,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Ht(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const Ht=function(e){(0,w.f)(_,e),e.fontFamily&&(_.personFontFamily=_.systemFontFamily=_.messageFontFamily=e.fontFamily),e.fontSize&&(_.personFontSize=_.systemFontSize=_.messageFontSize=e.fontSize),e.fontWeight&&(_.personFontWeight=_.systemFontWeight=_.messageFontWeight=e.fontWeight)},Rt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Yt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),l0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function U(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=(0,w.w)(t[e].text,l,o),t[e].textLines=t[e].text.split(w.e.lineBreakRegex).length,t[e].width=l,t[e].height=(0,w.j)(t[e].text,o);else{let i=t[e].text.split(w.e.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max((0,w.h)(r,o),t[e].width),s=(0,w.j)(r,o),t[e].height=t[e].height+s}}const he=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=_.c4ShapeMargin-35;let o=t.wrap&&_.wrap,l=Yt(_);l.fontSize=l.fontSize+2,l.fontWeight="bold",U("label",t,o,l,(0,w.h)(t.label.text,l)),function(e,t,a){const o=e.append("g");let s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1}),zt(o,{x:t.x,y:t.y,fill:t.bgColor?t.bgColor:"none",stroke:t.borderColor?t.borderColor:"#444444",width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r});let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,X(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&""!==t.type.text&&(h=a.boundaryFont(),h.fontColor=s,X(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&""!==t.descr.text&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,X(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))}(e,t,_)},ue=function(e,t,a,o){let l=0;for(const i of o){l=0;const s=a[i];let r=Rt(_,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=(0,w.h)("\xab"+s.typeC4Shape.text+"\xbb",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=_.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&_.wrap,h=_.width-2*_.c4ShapePadding,f=Rt(_,s.typeC4Shape.text);f.fontSize=f.fontSize+2,f.fontWeight="bold",U("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&""!==s.type.text?(s.type.text="["+s.type.text+"]",U("type",s,n,Rt(_,s.typeC4Shape.text),h),s.type.Y=l+5,l=s.type.Y+s.type.height):s.techn&&""!==s.techn.text&&(s.techn.text="["+s.techn.text+"]",U("techn",s,n,Rt(_,s.techn.text),h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height);let d=l,p=s.label.width;s.descr&&""!==s.descr.text&&(U("descr",s,n,Rt(_,s.typeC4Shape.text),h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-5*s.descr.textLines),p+=_.c4ShapePadding,s.width=Math.max(s.width||_.width,p,_.width),s.height=Math.max(s.height||_.height,d,_.height),s.margin=s.margin||_.c4ShapeMargin,e.insert(s),W_drawC4Shape(t,s,_)}e.bumpLastMargin(_.c4ShapeMargin)};class I{constructor(t,a){this.x=t,this.y=a}}let de=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&al?p=new I(a,r):a==l&&oi&&(p=new I(s,o)),a>l&&o=f?new I(a,r+f*e.width/2):new I(s-n/h*e.height/2,o+e.height):a=f?new I(a+e.width,r+f*e.width/2):new I(s+n/h*e.height/2,o+e.height):ai?p=d>=f?new I(a+e.width,r-f*e.width/2):new I(s+e.height/2*n/h,o):a>l&&o>i&&(p=d>=f?new I(a,r-e.width/2*f):new I(s-e.height/2*n/h,o)),p},o0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=de(e,a);return a.x=e.x+e.width/2,a.y=e.y+e.height/2,{startPoint:o,endPoint:de(t,a)}};function fe(e,t,a,o,l){let i=new ce(l);i.data.widthLimit=a.data.widthLimit/Math.min(Qt,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&_.wrap,f=Yt(_);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",U("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&""!==r.type.text&&(r.type.text="["+r.type.text+"]",U("type",r,h,Yt(_),i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height),r.descr&&""!==r.descr.text){let T=Yt(_);T.fontSize=T.fontSize-2,U("descr",r,h,T,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(0==s||s%Qt==0){let T=a.data.startx+_.diagramMarginX,D=a.data.stopy+_.diagramMarginY+n;i.setData(T,T,D,D)}else{let T=i.data.stopx!==i.data.startx?i.data.stopx+_.diagramMarginX:i.data.startx,D=i.data.starty;i.setData(T,T,D,D)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&ue(i,e,d,p);let E=l.db.getBoundarys(t=r.alias);E.length>0&&fe(e,t,i,E,l),"global"!==r.alias&&he(e,r,i),a.data.stopy=Math.max(i.data.stopy+_.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+_.c4ShapeMargin,a.data.stopx),It=Math.max(It,a.data.stopx),Nt=Math.max(Nt,a.data.stopy)}}const pe={drawPersonOrSystemArray:ue,drawBoundary:he,setConf:Ht,draw:function(e,t,a,o){_=(0,w.c)().c4;const l=(0,w.c)().securityLevel;let i;"sandbox"===l&&(i=(0,Pt.Ys)("#i"+t));const s=(0,Pt.Ys)("sandbox"===l?i.nodes()[0].contentDocument.body:"body");let r=o.db;o.db.setWrap(_.wrap),oe=r.getC4ShapeInRow(),Qt=r.getC4BoundaryInRow(),w.l.debug(`C:${JSON.stringify(_,null,2)}`);const n="sandbox"===l?s.select(`[id="${t}"]`):(0,Pt.Ys)(`[id="${t}"]`);(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")})(n),function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(n),function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(n);let h=new ce(o);h.setData(_.diagramMarginX,_.diagramMarginX,_.diagramMarginY,_.diagramMarginY),h.data.widthLimit=screen.availWidth,It=_.diagramMarginX,Nt=_.diagramMarginY;const f=o.db.getTitle();fe(n,"",h,o.db.getBoundarys(""),o),function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(n),function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(n),function(e){const a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(n),function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(n),function(e,t,a,o){let l=0;for(let i of t){l+=1;let s=i.wrap&&_.wrap,r=l0(_);"C4Dynamic"===o.db.getC4Type()&&(i.label.text=l+": "+i.label.text);let h=(0,w.h)(i.label.text,r);U("label",i,s,r,h),i.techn&&""!==i.techn.text&&(h=(0,w.h)(i.techn.text,r),U("techn",i,s,r,h)),i.descr&&""!==i.descr.text&&(h=(0,w.h)(i.descr.text,r),U("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=o0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}((e,t,a)=>{const o=e.append("g");let l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(0===l){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),"rel_b"!==i.type&&p.attr("marker-end","url("+f+"#arrowhead)"),("birel"===i.type||"rel_b"===i.type)&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),"rel_b"!==i.type&&p.attr("marker-end","url("+f+"#arrowhead)"),("birel"===i.type||"rel_b"===i.type)&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();X(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&""!==i.techn.text&&(d=a.messageFont(),X(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}})(e,t,_)}(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=It,h.data.stopy=Nt;const p=h.data;let T=p.stopy-p.starty+2*_.diagramMarginY;const P=p.stopx-p.startx+2*_.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*_.diagramMarginX).attr("y",p.starty+_.diagramMarginY),(0,w.i)(n,T,P,_.useMaxWidth);const B=f?60:0;n.attr("viewBox",p.startx-_.diagramMarginX+" -"+(_.diagramMarginY+B)+" "+P+" "+(T+B)),w.l.debug("models:",p)}},h0={parser:me,db:Xt,renderer:pe,styles:e=>`.person {\n stroke: ${e.personBorder};\n fill: ${e.personBkg};\n }\n`,init:({c4:e,wrap:t})=>{pe.setConf(e),Xt.setWrap(t)}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/44.94245195e1d0b050.js b/pkg/apiserver-impl/ui/44.94245195e1d0b050.js deleted file mode 100644 index 4c665ec916..0000000000 --- a/pkg/apiserver-impl/ui/44.94245195e1d0b050.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[44],{8044:(tt,ue,Y)=>{Y.r(ue),Y.d(ue,{diagram:()=>Qe});var p=Y(9037),we=Y(8586),ne=(Y(1764),Y(6780),Y(2735),function(){var r=function(I,o,u,k){for(u=u||{},k=I.length;k--;u[I[k]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],b=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],y=[7,13,19,21,23,24,26,28,31,37,40],_=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],v=[1,42],E=[1,41],g=[7,13,29,32,35,38,47],f=[1,55],x=[1,56],d=[1,57],T=[7,13,32,35,42,47],D={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,k,s,w,e,ee){var t=e.length-1;switch(w){case 2:return e[t];case 3:return e[t-1];case 4:return s.setDirection(e[t-3]),e[t-1];case 6:s.setOptions(e[t-1]),this.$=e[t];break;case 7:e[t-1]+=e[t],this.$=e[t-1];break;case 9:this.$=[];break;case 10:e[t-1].push(e[t]),this.$=e[t-1];break;case 11:this.$=e[t-1];break;case 16:this.$=e[t].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=e[t].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 21:s.checkout(e[t]);break;case 22:s.branch(e[t]);break;case 23:s.branch(e[t-2],e[t]);break;case 24:s.cherryPick(e[t],"",void 0);break;case 25:s.cherryPick(e[t-2],"",void 0,e[t]);break;case 26:s.cherryPick(e[t-2],"",e[t]);break;case 27:s.cherryPick(e[t-4],"",e[t],e[t-2]);break;case 28:s.cherryPick(e[t-4],"",e[t-2],e[t]);break;case 29:s.cherryPick(e[t],"",e[t-2]);break;case 30:s.cherryPick(e[t],"","");break;case 31:s.cherryPick(e[t-2],"","");break;case 32:s.cherryPick(e[t-4],"","",e[t-2]);break;case 33:s.cherryPick(e[t-4],"","",e[t]);break;case 34:s.cherryPick(e[t-2],"",e[t-4],e[t]);break;case 35:s.cherryPick(e[t-2],"","",e[t]);break;case 36:s.merge(e[t],"","","");break;case 37:s.merge(e[t-2],e[t],"","");break;case 38:s.merge(e[t-2],"",e[t],"");break;case 39:s.merge(e[t-2],"","",e[t]);break;case 40:s.merge(e[t-4],e[t],"",e[t-2]);break;case 41:s.merge(e[t-4],"",e[t],e[t-2]);break;case 42:s.merge(e[t-4],"",e[t-2],e[t]);break;case 43:s.merge(e[t-4],e[t-2],e[t],"");break;case 44:s.merge(e[t-4],e[t-2],"",e[t]);break;case 45:s.merge(e[t-4],e[t],e[t-2],"");break;case 46:s.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 47:s.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 48:s.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 49:s.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 50:s.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 51:s.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 52:s.commit(e[t]);break;case 53:s.commit("","",s.commitType.NORMAL,e[t]);break;case 54:s.commit("","",e[t],"");break;case 55:s.commit("","",e[t],e[t-2]);break;case 56:s.commit("","",e[t-2],e[t]);break;case 57:s.commit("",e[t],s.commitType.NORMAL,"");break;case 58:s.commit("",e[t-2],s.commitType.NORMAL,e[t]);break;case 59:s.commit("",e[t],s.commitType.NORMAL,e[t-2]);break;case 60:s.commit("",e[t-2],e[t],"");break;case 61:s.commit("",e[t],e[t-2],"");break;case 62:s.commit("",e[t-4],e[t-2],e[t]);break;case 63:s.commit("",e[t-4],e[t],e[t-2]);break;case 64:s.commit("",e[t-2],e[t-4],e[t]);break;case 65:s.commit("",e[t],e[t-4],e[t-2]);break;case 66:s.commit("",e[t],e[t-2],e[t-4]);break;case 67:s.commit("",e[t-2],e[t],e[t-4]);break;case 68:s.commit(e[t],"",s.commitType.NORMAL,"");break;case 69:s.commit(e[t],"",s.commitType.NORMAL,e[t-2]);break;case 70:s.commit(e[t-2],"",s.commitType.NORMAL,e[t]);break;case 71:s.commit(e[t-2],"",e[t],"");break;case 72:s.commit(e[t],"",e[t-2],"");break;case 73:s.commit(e[t],e[t-2],s.commitType.NORMAL,"");break;case 74:s.commit(e[t-2],e[t],s.commitType.NORMAL,"");break;case 75:s.commit(e[t-4],"",e[t-2],e[t]);break;case 76:s.commit(e[t-4],"",e[t],e[t-2]);break;case 77:s.commit(e[t-2],"",e[t-4],e[t]);break;case 78:s.commit(e[t],"",e[t-4],e[t-2]);break;case 79:s.commit(e[t],"",e[t-2],e[t-4]);break;case 80:s.commit(e[t-2],"",e[t],e[t-4]);break;case 81:s.commit(e[t-4],e[t],e[t-2],"");break;case 82:s.commit(e[t-4],e[t-2],e[t],"");break;case 83:s.commit(e[t-2],e[t],e[t-4],"");break;case 84:s.commit(e[t],e[t-2],e[t-4],"");break;case 85:s.commit(e[t],e[t-4],e[t-2],"");break;case 86:s.commit(e[t-2],e[t-4],e[t],"");break;case 87:s.commit(e[t-4],e[t],s.commitType.NORMAL,e[t-2]);break;case 88:s.commit(e[t-4],e[t-2],s.commitType.NORMAL,e[t]);break;case 89:s.commit(e[t-2],e[t],s.commitType.NORMAL,e[t-4]);break;case 90:s.commit(e[t],e[t-2],s.commitType.NORMAL,e[t-4]);break;case 91:s.commit(e[t],e[t-4],s.commitType.NORMAL,e[t-2]);break;case 92:s.commit(e[t-2],e[t-4],s.commitType.NORMAL,e[t]);break;case 93:s.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 94:s.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 95:s.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 96:s.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 97:s.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 98:s.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 99:s.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 100:s.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 101:s.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 102:s.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 103:s.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 104:s.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 105:s.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 106:s.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 107:s.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 108:s.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 109:s.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 110:s.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 111:s.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 112:s.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 113:s.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 114:s.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 115:s.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 116:s.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 117:this.$="";break;case 118:this.$=e[t];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:b},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:b},{8:[1,15]},r(y,[2,9],{11:16,12:[1,17]}),r(_,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:b},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(_,[2,7]),{1:[2,3]},{7:[1,36]},r(y,[2,10]),{4:37,7:l,13:h,47:i},r(y,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:v,46:E},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:v,46:E},{32:[1,50],35:[1,51]},{27:52,33:v,46:E},{1:[2,4]},r(y,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(g,[2,122]),r(g,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:x,45:d},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(T,[2,119]),r(T,[2,120]),r(T,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:x,45:d},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:x,45:d},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:x,45:d},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:x,45:d},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:x,45:d},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:x,45:d},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:x,45:d},{33:[1,148]},{39:149,43:f,44:x,45:d},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:x,45:d},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:x,45:d},{33:[1,162]},{39:163,43:f,44:x,45:d},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:x,45:d},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:x,45:d},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:x,45:d},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:x,45:d},{33:[1,215]},{39:216,43:f,44:x,45:d},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:x,45:d},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:x,45:d},{33:[1,229]},{39:230,43:f,44:x,45:d},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:x,45:d},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(!u.recoverable){var k=new Error(o);throw k.hash=u,k}this.trace(o)},parse:function(o){var k=[0],s=[],w=[null],e=[],ee=this.table,t="",ie=0,_e=0,Ze=e.slice.call(arguments,1),A=Object.create(this.lexer),U={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(U.yy[oe]=this.yy[oe]);A.setInput(o,U.yy),U.yy.lexer=A,U.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var le=A.yylloc;e.push(le);var j,$e=A.options&&A.options.ranges;this.parseError="function"==typeof U.yy.parseError?U.yy.parseError:Object.getPrototypeOf(this).parseError;for(var H,q,B,he,se,z,ae,J={};;){if(this.defaultActions[q=k[k.length-1]]?B=this.defaultActions[q]:((null===H||typeof H>"u")&&(j=void 0,"number"!=typeof(j=s.pop()||A.lex()||1)&&(j instanceof Array&&(j=(s=j).pop()),j=this.symbols_[j]||j),H=j),B=ee[q]&&ee[q][H]),typeof B>"u"||!B.length||!B[0]){var me;for(se in ae=[],ee[q])this.terminals_[se]&&se>2&&ae.push("'"+this.terminals_[se]+"'");me=A.showPosition?"Parse error on line "+(ie+1)+":\n"+A.showPosition()+"\nExpecting "+ae.join(", ")+", got '"+(this.terminals_[H]||H)+"'":"Parse error on line "+(ie+1)+": Unexpected "+(1==H?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(me,{text:A.match,token:this.terminals_[H]||H,line:A.yylineno,loc:le,expected:ae})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+H);switch(B[0]){case 1:k.push(H),w.push(A.yytext),e.push(A.yylloc),k.push(B[1]),H=null,_e=A.yyleng,t=A.yytext,ie=A.yylineno,le=A.yylloc;break;case 2:if(J.$=w[w.length-(z=this.productions_[B[1]][1])],J._$={first_line:e[e.length-(z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(z||1)].first_column,last_column:e[e.length-1].last_column},$e&&(J._$.range=[e[e.length-(z||1)].range[0],e[e.length-1].range[1]]),typeof(he=this.performAction.apply(J,[t,_e,ie,U.yy,B[1],w,e].concat(Ze)))<"u")return he;z&&(k=k.slice(0,-1*z*2),w=w.slice(0,-1*z),e=e.slice(0,-1*z)),k.push(this.productions_[B[1]][0]),w.push(J.$),e.push(J._$),k.push(ee[k[k.length-2]][k[k.length-1]]);break;case 3:return!0}}return!0}};function S(){this.yy={}}return D.lexer={EOF:1,parseError:function(u,k){if(!this.yy.parser)throw new Error(u);this.yy.parser.parseError(u,k)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,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},input:function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},unput:function(o){var u=o.length,k=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=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),k.length-1&&(this.yylineno-=k.length-1);var w=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:k?(k.length===s.length?this.yylloc.first_column:0)+s[s.length-k.length].length-k[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+"\n"+u+"^"},test_match:function(o,u){var k,s,w;if(this.options.backtrack_lexer&&(w={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&&(w.yylloc.range=this.yylloc.range.slice(0))),(s=o[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],k=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var e in w)this[e]=w[e];return!1}return!1},next:function(){if(this.done)return this.EOF;var o,u,k,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),e=0;eu[0].length)){if(u=k,s=e,this.options.backtrack_lexer){if(!1!==(o=this.test_match(k,w[e])))return o;if(this._backtrack){u=!1;continue}return!1}if(!this.options.flex)break}return u?!1!==(o=this.test_match(u,w[s]))&&o:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return(u=this.conditionStack.length-1-Math.abs(u||0))>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,k,s,w){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 30:case 34:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}},S.prototype=D,D.Parser=S,new S}());ne.parser=ne;const Me=ne;let te=(0,p.c)().gitGraph.mainBranchName,Re=(0,p.c)().gitGraph.mainBranchOrder,L={},G=null,Q={};Q[te]={name:te,order:Re};let M={};M[te]=G;let O=te,fe="LR",K=0;function ce(){return(0,p.y)({length:7})}let pe={};const be=function(r){if(r=p.e.sanitizeText(r,(0,p.c)()),void 0===M[r]){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}O=r,G=L[M[O]]};function ge(r,n,l){const h=r.indexOf(n);-1===h?r.push(l):r.splice(h,1,l)}function de(r){const n=r.reduce((i,c)=>i.seq>c.seq?i:c,r[0]);let l="";r.forEach(function(i){l+=i===n?"\t*":"\t|"});const h=[l,n.id,n.seq];for(let i in M)M[i]===n.id&&h.push(i);if(p.l.debug(h.join(" ")),n.parents&&2==n.parents.length)ge(r,n,L[n.parents[0]]),r.push(L[n.parents[1]]);else{if(0==n.parents.length)return;ge(r,n,L[n.parents])}r=function Le(r,n){const l=Object.create(null);return r.reduce((h,i)=>{const c=n(i);return l[c]||(l[c]=!0,h.push(i)),h},[])}(r,i=>i.id),de(r)}const ke=function(){const r=Object.keys(L).map(function(n){return L[n]});return r.forEach(function(n){p.l.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},W={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};let X={};let N={},V={},re=[],Z=0,R="LR";const xe=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];l="string"==typeof r?r.split(/\\n|\n|/gi):Array.isArray(r)?r:[];for(const h of l){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=h.trim(),n.appendChild(i)}return n},ye=(r,n,l)=>{const h=(0,p.c)().gitGraph,i=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let b=0;"TB"===R&&(b=30);const y=Object.keys(n).sort((E,g)=>n[E].seq-n[g].seq),_=h.parallelCommits;y.forEach(E=>{const g=n[E];if(_)if(g.parents.length){const T=(r=>{let n="",l=0;return r.forEach(h=>{const i="TB"===R?V[h].y:V[h].x;i>=l&&(n=h,l=i)}),n||void 0})(g.parents);b="TB"===R?V[T].y+40:V[T].x+40}else b=0,"TB"===R&&(b=30);const f=b+10,x="TB"===R?f:N[g.branch].pos,d="TB"===R?N[g.branch].pos:f;if(l){let T,D=void 0!==g.customType&&""!==g.customType?g.customType:g.type;switch(D){case 0:default:T="commit-normal";break;case 1:T="commit-reverse";break;case 2:T="commit-highlight";break;case 3:T="commit-merge";break;case 4:T="commit-cherry-pick"}if(2===D){const C=i.append("rect");C.attr("x",d-10),C.attr("y",x-10),C.attr("height",20),C.attr("width",20),C.attr("class",`commit ${g.id} commit-highlight${N[g.branch].index%8} ${T}-outer`),i.append("rect").attr("x",d-6).attr("y",x-6).attr("height",12).attr("width",12).attr("class",`commit ${g.id} commit${N[g.branch].index%8} ${T}-inner`)}else if(4===D)i.append("circle").attr("cx",d).attr("cy",x).attr("r",10).attr("class",`commit ${g.id} ${T}`),i.append("circle").attr("cx",d-3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${g.id} ${T}`),i.append("circle").attr("cx",d+3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${g.id} ${T}`),i.append("line").attr("x1",d+3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${g.id} ${T}`),i.append("line").attr("x1",d-3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${g.id} ${T}`);else{const C=i.append("circle");if(C.attr("cx",d),C.attr("cy",x),C.attr("r",3===g.type?9:10),C.attr("class",`commit ${g.id} commit${N[g.branch].index%8}`),3===D){const S=i.append("circle");S.attr("cx",d),S.attr("cy",x),S.attr("r",6),S.attr("class",`commit ${T} ${g.id} commit${N[g.branch].index%8}`)}1===D&&i.append("path").attr("d",`M ${d-5},${x-5}L${d+5},${x+5}M${d-5},${x+5}L${d+5},${x-5}`).attr("class",`commit ${T} ${g.id} commit${N[g.branch].index%8}`)}}if(V[g.id]="TB"===R?{x:d,y:f}:{x:f,y:x},l){if(4!==g.type&&(g.customId&&3===g.type||3!==g.type)&&h.showCommitLabel){const C=c.append("g"),S=C.insert("rect").attr("class","commit-label-bkg"),I=C.append("text").attr("x",b).attr("y",x+25).attr("class","commit-label").text(g.id);let o=I.node().getBBox();S.attr("x",f-o.width/2-2).attr("y",x+13.5).attr("width",o.width+4).attr("height",o.height+4),"TB"===R&&(S.attr("x",d-(o.width+16+5)).attr("y",x-12),I.attr("x",d-(o.width+16)).attr("y",x+o.height-12)),"TB"!==R&&I.attr("x",f-o.width/2),h.rotateCommitLabel&&("TB"===R?(I.attr("transform","rotate(-45, "+d+", "+x+")"),S.attr("transform","rotate(-45, "+d+", "+x+")")):C.attr("transform","translate("+(-7.5-(o.width+10)/25*9.5)+", "+(10+o.width/25*8.5)+") rotate(-45, "+b+", "+x+")"))}if(g.tag){const C=c.insert("polygon"),S=c.append("circle"),I=c.append("text").attr("y",x-16).attr("class","tag-label").text(g.tag);let o=I.node().getBBox();I.attr("x",f-o.width/2);const u=o.height/2,k=x-19.2;C.attr("class","tag-label-bkg").attr("points",`\n ${b-o.width/2-2},${k+2}\n ${b-o.width/2-2},${k-2}\n ${f-o.width/2-4},${k-u-2}\n ${f+o.width/2+4},${k-u-2}\n ${f+o.width/2+4},${k+u+2}\n ${f-o.width/2-4},${k+u+2}`),S.attr("cx",b-o.width/2+2).attr("cy",k).attr("r",1.5).attr("class","tag-hole"),"TB"===R&&(C.attr("class","tag-label-bkg").attr("points",`\n ${d},${b+2}\n ${d},${b-2}\n ${d+10},${b-u-2}\n ${d+10+o.width+4},${b-u-2}\n ${d+10+o.width+4},${b+u+2}\n ${d+10},${b+u+2}`).attr("transform","translate(12,12) rotate(45, "+d+","+b+")"),S.attr("cx",d+2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+d+","+b+")"),I.attr("x",d+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+d+","+b+")"))}}b+=50,b>Z&&(Z=b)})},$=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(re.every(b=>Math.abs(b-h)>=10))return re.push(h),h;const c=Math.abs(r-n);return $(r,n-c/5,l+1)},We=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const i=n[h];i.parents&&i.parents.length>0&&i.parents.forEach(c=>{((r,n,l,h)=>{const i=V[n.id],c=V[l.id],b=((r,n,l,h,i)=>{const b=("TB"===R?l.x(_=>_.seq>r.seq&&_.seq_.branch===b)(_))})(n,l,i,c,h);let E,m="",y="",_=0,a=0,v=N[l.branch].index;if(3===l.type&&n.id!==l.parents[0]&&(v=N[n.branch].index),b){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",_=10,a=10;const g=i.yc.x&&(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",_=20,a=20,E=3===l.type&&n.id!==l.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${y} ${i.x-a} ${c.y} L ${c.x} ${c.y}`:`M ${i.x} ${i.y} L ${c.x+_} ${i.y} ${m} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x===c.x&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`)):(i.yc.y&&(E=3===l.type&&n.id!==l.parents[0]?`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${m} ${c.x} ${i.y-a} L ${c.x} ${c.y}`:`M ${i.x} ${i.y} L ${i.x} ${c.y+_} ${y} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y===c.y&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`));r.append("path").attr("d",E).attr("class","arrow arrow"+v%8)})(l,n[c],i,n)})})},Qe={parser:Me,db:{getConfig:()=>(0,p.c)().gitGraph,setDirection:function(r){fe=r},setOptions:function(r){p.l.debug("options str",r),r=(r=r&&r.trim())||"{}";try{pe=JSON.parse(r)}catch(n){p.l.error("error while parsing gitGraph options",n.message)}},getOptions:function(){return pe},commit:function(r,n,l,h){p.l.debug("Entering commit:",r,n,l,h),n=p.e.sanitizeText(n,(0,p.c)()),r=p.e.sanitizeText(r,(0,p.c)()),h=p.e.sanitizeText(h,(0,p.c)());const i={id:n||K+"-"+ce(),message:r,seq:K++,type:l||W.NORMAL,tag:h||"",parents:null==G?[]:[G.id],branch:O};G=i,L[i.id]=i,M[O]=i.id,p.l.debug("in pushCommit "+i.id)},branch:function(r,n){if(r=p.e.sanitizeText(r,(0,p.c)()),void 0!==M[r]){let l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}M[r]=null!=G?G.id:null,Q[r]={name:r,order:n?parseInt(n,10):null},be(r),p.l.debug("in createBranch")},merge:function(r,n,l,h){r=p.e.sanitizeText(r,(0,p.c)()),n=p.e.sanitizeText(n,(0,p.c)());const i=L[M[O]],c=L[M[r]];if(O===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}if(void 0===i||!i){let m=new Error('Incorrect usage of "merge". Current branch ('+O+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}if(void 0===M[r]){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}if(void 0===c||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}if(i===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}if(n&&void 0!==L[n]){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const b={id:n||K+"-"+ce(),message:"merged branch "+r+" into "+O,seq:K++,parents:[null==G?null:G.id,M[r]],branch:O,type:W.MERGE,customType:l,customId:!!n,tag:h||""};G=b,L[b.id]=b,M[O]=b.id,p.l.debug(M),p.l.debug("in mergeBranch")},cherryPick:function(r,n,l,h){if(p.l.debug("Entering cherryPick:",r,n,l),r=p.e.sanitizeText(r,(0,p.c)()),n=p.e.sanitizeText(n,(0,p.c)()),l=p.e.sanitizeText(l,(0,p.c)()),h=p.e.sanitizeText(h,(0,p.c)()),!r||void 0===L[r]){let b=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw b.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},b}let i=L[r],c=i.branch;if(h&&(!Array.isArray(i.parents)||!i.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(i.type===W.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||void 0===L[n]){if(c===O){let y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const b=L[M[O]];if(void 0===b||!b){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('+O+")has no commits");throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const m={id:K+"-"+ce(),message:"cherry-picked "+i+" into "+O,seq:K++,parents:[null==G?null:G.id,i.id],branch:O,type:W.CHERRY_PICK,tag:l??`cherry-pick:${i.id}${i.type===W.MERGE?`|parent:${h}`:""}`};G=m,L[m.id]=m,M[O]=m.id,p.l.debug(M),p.l.debug("in cherryPick")}},checkout:be,prettyPrint:function(){p.l.debug(L),de([ke()[0]])},clear:function(){L={},G=null;let r=(0,p.c)().gitGraph.mainBranchName,n=(0,p.c)().gitGraph.mainBranchOrder;M={},M[r]=null,Q={},Q[r]={name:r,order:n},O=r,K=0,(0,p.v)()},getBranchesAsObjArray:function(){return Object.values(Q).map((n,l)=>null!==n.order?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},getBranches:function(){return M},getCommits:function(){return L},getCommitsArray:ke,getCurrentBranch:function(){return O},getDirection:function(){return fe},getHead:function(){return G},setAccTitle:p.s,getAccTitle:p.g,getAccDescription:p.a,setAccDescription:p.b,setDiagramTitle:p.q,getDiagramTitle:p.t,commitType:W},renderer:{draw:function(r,n,l,h){N={},V={},X={},Z=0,re=[],R="LR";const i=(0,p.c)(),c=i.gitGraph;p.l.debug("in gitgraph renderer",r+"\n","id:",n,l),X=h.db.getCommits();const b=h.db.getBranchesAsObjArray();R=h.db.getDirection();const m=(0,we.Ys)(`[id="${n}"]`);let y=0;b.forEach((_,a)=>{const v=xe(_.name),E=m.append("g"),g=E.insert("g").attr("class","branchLabel"),f=g.insert("g").attr("class","label branch-label");f.node().appendChild(v);let x=v.getBBox();N[_.name]={pos:y,index:a},y+=50+(c.rotateCommitLabel?40:0)+("TB"===R?x.width/2:0),f.remove(),g.remove(),E.remove()}),ye(m,X,!1),c.showBranches&&((r,n)=>{const l=(0,p.c)().gitGraph,h=r.append("g");n.forEach((i,c)=>{const b=c%8,m=N[i.name].pos,y=h.append("line");y.attr("x1",0),y.attr("y1",m),y.attr("x2",Z),y.attr("y2",m),y.attr("class","branch branch"+b),"TB"===R&&(y.attr("y1",30),y.attr("x1",m),y.attr("y2",Z),y.attr("x2",m)),re.push(m);const a=xe(i.name),v=h.insert("rect"),g=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);g.node().appendChild(a);let f=a.getBBox();v.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-f.width-4-(!0===l.rotateCommitLabel?30:0)).attr("y",-f.height/2+8).attr("width",f.width+18).attr("height",f.height+4),g.attr("transform","translate("+(-f.width-14-(!0===l.rotateCommitLabel?30:0))+", "+(m-f.height/2-1)+")"),"TB"===R&&(v.attr("x",m-f.width/2-10).attr("y",0),g.attr("transform","translate("+(m-f.width/2-5)+", 0)")),"TB"!==R&&v.attr("transform","translate(-19, "+(m-f.height/2)+")")})})(m,b),We(m,X),ye(m,X,!0),p.u.insertTitle(m,"gitTitleText",c.titleTopMargin,h.db.getDiagramTitle()),(0,p.z)(void 0,m,c.diagramPadding,c.useMaxWidth??i.useMaxWidth)}},styles:r=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map(n=>`\n .branch-label${n} { fill: ${r["gitBranchLabel"+n]}; }\n .commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; }\n .commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; }\n .label${n} { fill: ${r["git"+n]}; }\n .arrow${n} { stroke: ${r["git"+n]}; }\n `).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${r.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}\n .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}\n .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }\n .tag-hole { fill: ${r.textColor}; }\n\n .commit-merge {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n }\n .commit-reverse {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${r.textColor};\n }\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/463.dc3a51287a3daffe.js b/pkg/apiserver-impl/ui/463.dc3a51287a3daffe.js deleted file mode 100644 index 0fc4f097d5..0000000000 --- a/pkg/apiserver-impl/ui/463.dc3a51287a3daffe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[463],{463:(Ot,yt,Z)=>{Z.r(yt),Z.d(yt,{diagram:()=>Wt});var d=Z(9037),it=Z(8586),ct=(Z(1764),Z(6780),Z(2735),function(){var e=function($,n,r,l){for(r=r||{},l=$.length;l--;r[$[l]]=n);return r},s=[1,3],h=[1,4],f=[1,5],g=[1,6],u=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],p=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],q=[2,7],y=[1,13],R=[1,17],U=[1,18],w=[1,19],z=[1,20],b=[1,21],Q=[1,22],H=[1,23],E=[1,24],nt=[1,25],st=[1,26],rt=[1,27],M=[1,30],N=[1,31],T=[1,32],A=[1,33],m=[1,34],t=[1,35],S=[1,36],k=[1,37],P=[1,38],F=[1,39],v=[1,40],L=[1,41],C=[1,42],Y=[1,57],j=[1,58],B=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,_,a,at){var x=a.length-1;switch(_){case 12:this.$=a[x].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[x].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[x].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[x].substr(8)),this.$=a[x].substr(8);break;case 17:o.addPoint(a[x-3],a[x-1],a[x]);break;case 18:o.setXAxisLeftText(a[x-2]),o.setXAxisRightText(a[x]);break;case 19:a[x-1].text+=" \u27f6 ",o.setXAxisLeftText(a[x-1]);break;case 20:o.setXAxisLeftText(a[x]);break;case 21:o.setYAxisBottomText(a[x-2]),o.setYAxisTopText(a[x]);break;case 22:a[x-1].text+=" \u27f6 ",o.setYAxisBottomText(a[x-1]);break;case 23:o.setYAxisBottomText(a[x]);break;case 24:o.setQuadrant1Text(a[x]);break;case 25:o.setQuadrant2Text(a[x]);break;case 26:o.setQuadrant3Text(a[x]);break;case 27:o.setQuadrant4Text(a[x]);break;case 31:case 33:this.$={text:a[x],type:"text"};break;case 32:this.$={text:a[x-1].text+""+a[x],type:a[x-1].type};break;case 34:this.$={text:a[x],type:"markdown"};break;case 35:this.$=a[x];break;case 36:this.$=a[x-1]+""+a[x]}},table:[{3:1,4:2,5:s,6:h,32:f,33:g,34:u},{1:[3]},{3:8,4:2,5:s,6:h,32:f,33:g,34:u},{3:9,4:2,5:s,6:h,32:f,33:g,34:u},e(c,[2,4],{7:10}),e(p,[2,28]),e(p,[2,29]),e(p,[2,30]),{1:[2,1]},{1:[2,2]},e(i,q,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:y,13:R,15:U,17:w,19:z,20:b,25:Q,27:H,28:E,29:nt,30:st,31:rt,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),e(c,[2,5]),{4:43,32:f,33:g,34:u},e(i,q,{10:14,11:15,12:16,21:28,35:29,9:44,5:y,13:R,15:U,17:w,19:z,20:b,25:Q,27:H,28:E,29:nt,30:st,31:rt,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:49,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:50,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:51,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:52,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:53,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{5:Y,22:[1,54],35:56,36:55,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j},e(B,[2,31]),e(B,[2,33]),e(B,[2,34]),e(B,[2,37]),e(B,[2,38]),e(B,[2,39]),e(B,[2,40]),e(B,[2,41]),e(B,[2,42]),e(B,[2,43]),e(B,[2,44]),e(B,[2,45]),e(B,[2,46]),e(B,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:Y,26:[1,59],40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,23],{36:55,35:56,5:Y,26:[1,60],40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,24],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,25],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,26],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,27],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),{23:[1,61]},e(B,[2,32]),e(B,[2,48]),e(B,[2,49]),e(B,[2,50]),e(i,[2,19],{35:29,21:62,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),e(i,[2,22],{35:29,21:63,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,21],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(!r.recoverable){var l=new Error(n);throw l.hash=r,l}this.trace(n)},parse:function(n){var l=[0],o=[],_=[null],a=[],at=this.table,x="",lt=0,qt=0,Ut=a.slice.call(arguments,1),D=Object.create(this.lexer),J={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(J.yy[xt]=this.yy[xt]);D.setInput(n,J.yy),J.yy.lexer=D,J.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ft=D.yylloc;a.push(ft);var G,Mt=D.options&&D.options.ranges;this.parseError="function"==typeof J.yy.parseError?J.yy.parseError:Object.getPrototypeOf(this).parseError;for(var V,tt,O,gt,ot,K,ht,et={};;){if(this.defaultActions[tt=l[l.length-1]]?O=this.defaultActions[tt]:((null===V||typeof V>"u")&&(G=void 0,"number"!=typeof(G=o.pop()||D.lex()||1)&&(G instanceof Array&&(G=(o=G).pop()),G=this.symbols_[G]||G),V=G),O=at[tt]&&at[tt][V]),typeof O>"u"||!O.length||!O[0]){var pt;for(ot in ht=[],at[tt])this.terminals_[ot]&&ot>2&&ht.push("'"+this.terminals_[ot]+"'");pt=D.showPosition?"Parse error on line "+(lt+1)+":\n"+D.showPosition()+"\nExpecting "+ht.join(", ")+", got '"+(this.terminals_[V]||V)+"'":"Parse error on line "+(lt+1)+": Unexpected "+(1==V?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(pt,{text:D.match,token:this.terminals_[V]||V,line:D.yylineno,loc:ft,expected:ht})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+tt+", token: "+V);switch(O[0]){case 1:l.push(V),_.push(D.yytext),a.push(D.yylloc),l.push(O[1]),V=null,qt=D.yyleng,x=D.yytext,lt=D.yylineno,ft=D.yylloc;break;case 2:if(et.$=_[_.length-(K=this.productions_[O[1]][1])],et._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},Mt&&(et._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),typeof(gt=this.performAction.apply(et,[x,qt,lt,J.yy,O[1],_,a].concat(Ut)))<"u")return gt;K&&(l=l.slice(0,-1*K*2),_=_.slice(0,-1*K),a=a.slice(0,-1*K)),l.push(this.productions_[O[1]][0]),_.push(et.$),a.push(et._$),l.push(at[l[l.length-2]][l[l.length-1]]);break;case 3:return!0}}return!0}};function ut(){this.yy={}}return dt.lexer={EOF:1,parseError:function(r,l){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,l)},setInput:function(n,r){return this.yy=r||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},input: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},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=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),l.length-1&&(this.yylineno-=l.length-1);var _=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:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+r+"^"},test_match:function(n,r){var l,o,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),(o=n[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.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],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in _)this[a]=_[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var n,r,l,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),a=0;a<_.length;a++)if((l=this._input.match(this.rules[_[a]]))&&(!r||l[0].length>r[0].length)){if(r=l,o=a,this.options.backtrack_lexer){if(!1!==(n=this.test_match(l,_[a])))return n;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(n=this.test_match(r,_[o]))&&n:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,_){switch(o){case 0:case 1:case 3:break;case 2:return 32;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 22:case 24:case 28:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 23:this.begin("string");break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}},ut.prototype=dt,dt.Parser=ut,new ut}());ct.parser=ct;const mt=ct,W=(0,d.E)(),bt=(0,d.c)();function X(e){return(0,d.d)(e.trim(),bt)}const I=new class At{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,f,g,u,c,p,i,q,y,R,U,w,z,b,Q,H,E;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(s=d.B.quadrantChart)?void 0:s.chartWidth)||500,chartWidth:(null==(h=d.B.quadrantChart)?void 0:h.chartHeight)||500,titlePadding:(null==(f=d.B.quadrantChart)?void 0:f.titlePadding)||10,titleFontSize:(null==(g=d.B.quadrantChart)?void 0:g.titleFontSize)||20,quadrantPadding:(null==(u=d.B.quadrantChart)?void 0:u.quadrantPadding)||5,xAxisLabelPadding:(null==(c=d.B.quadrantChart)?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(p=d.B.quadrantChart)?void 0:p.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(i=d.B.quadrantChart)?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(q=d.B.quadrantChart)?void 0:q.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(y=d.B.quadrantChart)?void 0:y.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(R=d.B.quadrantChart)?void 0:R.quadrantTextTopPadding)||5,pointTextPadding:(null==(U=d.B.quadrantChart)?void 0:U.pointTextPadding)||5,pointLabelFontSize:(null==(w=d.B.quadrantChart)?void 0:w.pointLabelFontSize)||12,pointRadius:(null==(z=d.B.quadrantChart)?void 0:z.pointRadius)||5,xAxisPosition:(null==(b=d.B.quadrantChart)?void 0:b.xAxisPosition)||"top",yAxisPosition:(null==(Q=d.B.quadrantChart)?void 0:Q.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(H=d.B.quadrantChart)?void 0:H.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(E=d.B.quadrantChart)?void 0:E.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:W.quadrant1Fill,quadrant2Fill:W.quadrant2Fill,quadrant3Fill:W.quadrant3Fill,quadrant4Fill:W.quadrant4Fill,quadrant1TextFill:W.quadrant1TextFill,quadrant2TextFill:W.quadrant2TextFill,quadrant3TextFill:W.quadrant3TextFill,quadrant4TextFill:W.quadrant4TextFill,quadrantPointFill:W.quadrantPointFill,quadrantPointTextFill:W.quadrantPointTextFill,quadrantXAxisTextFill:W.quadrantXAxisTextFill,quadrantYAxisTextFill:W.quadrantYAxisTextFill,quadrantTitleFill:W.quadrantTitleFill,quadrantInternalBorderStrokeFill:W.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:W.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),d.l.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){d.l.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){d.l.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,f,g){const u=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,c={top:"top"===s&&h?u:0,bottom:"bottom"===s&&h?u:0},p=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,i={left:"left"===this.config.yAxisPosition&&f?p:0,right:"right"===this.config.yAxisPosition&&f?p:0},y={top:g?this.config.titleFontSize+2*this.config.titlePadding:0},w=this.config.chartWidth-2*this.config.quadrantPadding-i.left-i.right,z=this.config.chartHeight-2*this.config.quadrantPadding-c.top-c.bottom-y.top;return{xAxisSpace:c,yAxisSpace:i,titleSpace:y,quadrantSpace:{quadrantLeft:this.config.quadrantPadding+i.left,quadrantTop:this.config.quadrantPadding+c.top+y.top,quadrantWidth:w,quadrantHalfWidth:w/2,quadrantHeight:z,quadrantHalfHeight:z/2}}}getAxisLabels(s,h,f,g){const{quadrantSpace:u,titleSpace:c}=g,{quadrantHalfHeight:p,quadrantHeight:i,quadrantLeft:q,quadrantHalfWidth:y,quadrantTop:R,quadrantWidth:U}=u,w=Boolean(this.data.xAxisRightText),z=Boolean(this.data.yAxisTopText),b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+(w?y/2:0),y:"top"===s?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+y+(w?y/2:0),y:"top"===s?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&f&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+U+this.config.quadrantPadding,y:R+i-(z?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:z?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&f&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+U+this.config.quadrantPadding,y:R+p-(z?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:z?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:f,quadrantLeft:g,quadrantHalfWidth:u,quadrantTop:c}=h,p=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:c,width:u,height:f,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:c,width:u,height:f,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:c+f,width:u,height:f,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:c+f,width:u,height:f,fill:this.themeConfig.quadrant4Fill}];for(const i of p)i.text.x=i.x+i.width/2,0===this.data.points.length?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return p}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:f,quadrantLeft:g,quadrantTop:u,quadrantWidth:c}=h,p=(0,it.BYU)().domain([0,1]).range([g,c+g]),i=(0,it.BYU)().domain([0,1]).range([f+u,u]);return this.data.points.map(y=>({x:p(y.x),y:i(y.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:y.text,fill:this.themeConfig.quadrantPointTextFill,x:p(y.x),y:i(y.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:f}=s,{quadrantHalfHeight:g,quadrantHeight:u,quadrantLeft:c,quadrantHalfWidth:p,quadrantTop:i,quadrantWidth:q}=f;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+q+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+q,y1:i+h,x2:c+q,y2:i+u-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+u,x2:c+q+h,y2:i+u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+p,y1:i+h,x2:c+p,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+g,x2:c+q-h,y2:i+g}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),h=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),f=this.config.showTitle&&!!this.data.titleText,g=this.data.points.length>0?"bottom":this.config.xAxisPosition,u=this.calculateSpace(g,s,h,f);return{points:this.getQuadrantPoints(u),quadrants:this.getQuadrants(u),axisLabels:this.getAxisLabels(g,s,h,u),borderLines:this.getBorders(u),title:this.getTitle(f)}}},Wt={parser:mt,db:{setWidth:function Dt(e){I.setConfig({chartWidth:e})},setHeight:function zt(e){I.setConfig({chartHeight:e})},setQuadrant1Text:function St(e){I.setData({quadrant1Text:X(e.text)})},setQuadrant2Text:function kt(e){I.setData({quadrant2Text:X(e.text)})},setQuadrant3Text:function Pt(e){I.setData({quadrant3Text:X(e.text)})},setQuadrant4Text:function Ft(e){I.setData({quadrant4Text:X(e.text)})},setXAxisLeftText:function vt(e){I.setData({xAxisLeftText:X(e.text)})},setXAxisRightText:function Lt(e){I.setData({xAxisRightText:X(e.text)})},setYAxisTopText:function Ct(e){I.setData({yAxisTopText:X(e.text)})},setYAxisBottomText:function Et(e){I.setData({yAxisBottomText:X(e.text)})},addPoint:function Bt(e,s,h){I.addPoints([{x:s,y:h,text:X(e.text)}])},getQuadrantData:function It(){const e=(0,d.c)(),{themeVariables:s,quadrantChart:h}=e;return h&&I.setConfig(h),I.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),I.setData({titleText:(0,d.t)()}),I.build()},clear:function(){I.clear(),(0,d.v)()},setAccTitle:d.s,getAccTitle:d.g,setDiagramTitle:d.q,getDiagramTitle:d.t,getAccDescription:d.a,setAccDescription:d.b},renderer:{draw:(e,s,h,f)=>{var g,u,c;function p(t){return"top"===t?"hanging":"middle"}function i(t){return"left"===t?"start":"middle"}function q(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const y=(0,d.c)();d.l.debug("Rendering quadrant chart\n"+e);const R=y.securityLevel;let U;"sandbox"===R&&(U=(0,it.Ys)("#i"+s));const z=(0,it.Ys)("sandbox"===R?U.nodes()[0].contentDocument.body:"body").select(`[id="${s}"]`),b=z.append("g").attr("class","main"),Q=(null==(g=y.quadrantChart)?void 0:g.chartWidth)||500,H=(null==(u=y.quadrantChart)?void 0:u.chartHeight)||500;(0,d.i)(z,H,Q,(null==(c=y.quadrantChart)?void 0:c.useMaxWidth)||!0),z.attr("viewBox","0 0 "+Q+" "+H),f.db.setHeight(H),f.db.setWidth(Q);const E=f.db.getQuadrantData(),nt=b.append("g").attr("class","quadrants"),st=b.append("g").attr("class","border"),rt=b.append("g").attr("class","data-points"),M=b.append("g").attr("class","labels"),N=b.append("g").attr("class","title");E.title&&N.append("text").attr("x",0).attr("y",0).attr("fill",E.title.fill).attr("font-size",E.title.fontSize).attr("dominant-baseline",p(E.title.horizontalPos)).attr("text-anchor",i(E.title.verticalPos)).attr("transform",q(E.title)).text(E.title.text),E.borderLines&&st.selectAll("line").data(E.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=nt.selectAll("g.quadrant").data(E.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text)).text(t=>t.text.text),M.selectAll("g.label").data(E.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>p(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>q(t));const m=rt.selectAll("g.data-point").data(E.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text))}},styles:()=>""}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/474.fc76b77c0b0a42c1.js b/pkg/apiserver-impl/ui/474.fc76b77c0b0a42c1.js deleted file mode 100644 index 4ccb9e4dc8..0000000000 --- a/pkg/apiserver-impl/ui/474.fc76b77c0b0a42c1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[474],{474:(ri,ct,B)=>{B.r(ct),B.d(ct,{diagram:()=>ei});var A=B(9037),Lt=B(9627),z=B(8586),J=(B(1764),B(6780),B(2735),function(){var e=function(O,o,l,c){for(l=l||{},c=O.length;c--;l[O[c]]=o);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],h=[1,6],g=[1,7],f=[1,5,10,12,14,16,18,19,21,23,34,35,36],y=[1,25],E=[1,26],S=[1,28],R=[1,29],L=[1,30],v=[1,31],k=[1,32],M=[1,33],p=[1,34],w=[1,35],r=[1,36],T=[1,37],$=[1,43],kt=[1,42],Rt=[1,47],G=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],st=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],D=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Tt=[1,64],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(o,l,c,u,m,a,j){var x=a.length-1;switch(m){case 5:u.setOrientation(a[x]);break;case 9:u.setDiagramTitle(a[x].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[x]);break;case 13:u.setLineData(a[x-1],a[x]);break;case 14:u.setBarData({text:"",type:"text"},a[x]);break;case 15:u.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),u.setAccDescription(this.$);break;case 19:case 27:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:u.setXAxisTitle(a[x]);break;case 23:u.setXAxisTitle(a[x-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[x]);break;case 26:u.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:u.setYAxisTitle(a[x]);break;case 31:u.setYAxisTitle(a[x-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x]}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:h,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:h,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:h,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:h,36:g}),{1:[2,3]},e(f,[2,5]),e(t,[2,7],{4:22,34:n,35:h,36:g}),{11:23,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:39,13:38,24:$,27:kt,29:40,30:41,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:45,15:44,27:Rt,33:46,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:49,17:48,24:G,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{11:52,17:51,24:G,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},{20:[1,53]},{22:[1,54]},e(b,[2,18]),{1:[2,2]},e(b,[2,8]),e(b,[2,9]),e(st,[2,37],{40:55,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T}),e(st,[2,38]),e(st,[2,39]),e(D,[2,40]),e(D,[2,42]),e(D,[2,43]),e(D,[2,44]),e(D,[2,45]),e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(b,[2,10]),e(b,[2,22],{30:41,29:56,24:$,27:kt}),e(b,[2,24]),e(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},e(b,[2,11]),e(b,[2,30],{33:60,27:Rt}),e(b,[2,32]),{31:[1,61]},e(b,[2,12]),{17:62,24:G},{25:63,27:Tt},e(b,[2,14]),{17:65,24:G},e(b,[2,16]),e(b,[2,17]),e(D,[2,41]),e(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(b,[2,31]),{27:[1,69]},e(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(b,[2,15]),e(b,[2,26]),e(b,[2,27]),{11:59,32:72,37:24,38:y,39:E,40:27,41:S,42:R,43:L,44:v,45:k,46:M,47:p,48:w,49:r,50:T},e(b,[2,33]),e(b,[2,19]),{25:73,27:Tt},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(o,l){if(!l.recoverable){var c=new Error(o);throw c.hash=l,c}this.trace(o)},parse:function(o){var c=[0],u=[],m=[null],a=[],j=this.table,x="",Q=0,Dt=0,ai=a.slice.call(arguments,1),_=Object.create(this.lexer),W={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(W.yy[ot]=this.yy[ot]);_.setInput(o,W.yy),W.yy.lexer=_,W.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ht=_.yylloc;a.push(ht);var V,oi=_.options&&_.options.ranges;this.parseError="function"==typeof W.yy.parseError?W.yy.parseError:Object.getPrototypeOf(this).parseError;for(var C,F,P,rt,q,I,Z,N={};;){if(this.defaultActions[F=c[c.length-1]]?P=this.defaultActions[F]:((null===C||typeof C>"u")&&(V=void 0,"number"!=typeof(V=u.pop()||_.lex()||1)&&(V instanceof Array&&(V=(u=V).pop()),V=this.symbols_[V]||V),C=V),P=j[F]&&j[F][C]),typeof P>"u"||!P.length||!P[0]){var lt;for(q in Z=[],j[F])this.terminals_[q]&&q>2&&Z.push("'"+this.terminals_[q]+"'");lt=_.showPosition?"Parse error on line "+(Q+1)+":\n"+_.showPosition()+"\nExpecting "+Z.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(Q+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(lt,{text:_.match,token:this.terminals_[C]||C,line:_.yylineno,loc:ht,expected:Z})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+C);switch(P[0]){case 1:c.push(C),m.push(_.yytext),a.push(_.yylloc),c.push(P[1]),C=null,Dt=_.yyleng,x=_.yytext,Q=_.yylineno,ht=_.yylloc;break;case 2:if(N.$=m[m.length-(I=this.productions_[P[1]][1])],N._$={first_line:a[a.length-(I||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(I||1)].first_column,last_column:a[a.length-1].last_column},oi&&(N._$.range=[a[a.length-(I||1)].range[0],a[a.length-1].range[1]]),typeof(rt=this.performAction.apply(N,[x,Dt,Q,W.yy,P[1],m,a].concat(ai)))<"u")return rt;I&&(c=c.slice(0,-1*I*2),m=m.slice(0,-1*I),a=a.slice(0,-1*I)),c.push(this.productions_[P[1]][0]),m.push(N.$),a.push(N._$),c.push(j[c[c.length-2]][c[c.length-1]]);break;case 3:return!0}}return!0}};function at(){this.yy={}}return nt.lexer={EOF:1,parseError:function(l,c){if(!this.yy.parser)throw new Error(l);this.yy.parser.parseError(l,c)},setInput:function(o,l){return this.yy=l||this.yy||{},this._input=o,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},input:function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},unput:function(o){var l=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;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),c.length-1&&(this.yylineno-=c.length-1);var m=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===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+"\n"+l+"^"},test_match:function(o,l){var c,u,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),(u=o[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+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],c=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var a in m)this[a]=m[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var o,l,c,u;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),a=0;al[0].length)){if(l=c,u=a,this.options.backtrack_lexer){if(!1!==(o=this.test_match(c,m[a])))return o;if(this._backtrack){l=!1;continue}return!1}if(!this.options.flex)break}return l?!1!==(o=this.test_match(l,m[u]))&&o:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return(l=this.conditionStack.length-1-Math.abs(l||0))>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,c,u,m){switch(u){case 0:case 1:case 5:case 43:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 25:case 27:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 26:this.pushState("string");break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}},at.prototype=nt,nt.Parser=at,new at}());J.parser=J;const vt=J;function ut(e){return"bar"===e.type}function gt(e){return"band"===e.type}function X(e){return"linear"===e.type}class xt{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((h,g)=>Math.max(g.length,h),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const h of t){const g=(0,Lt.c)(n,1,h),y=g?g.height:i;s.width=Math.max(s.width,g?g.width:h.length*i),s.height=Math.max(s.height,y)}return n.remove(),s}}class ft{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension();this.outerPadding=Math.min(s.width/2,.2*t.width);const h=s.height+2*this.axisConfig.labelPadding;this.labelTextHeight=s.height,h<=i&&(i-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+2*this.axisConfig.titlePadding;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension();this.outerPadding=Math.min(s.height/2,.2*t.height);const h=s.width+2*this.axisConfig.labelPadding;h<=i&&(i-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+2*this.axisConfig.titlePadding;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}}class Mt extends ft{constructor(t,i,s,n,h){super(t,n,h,i),this.categories=s,this.scale=(0,z.tiA)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,z.tiA)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),A.l.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class It extends ft{constructor(t,i,s,n,h){super(t,n,h,i),this.domain=s,this.scale=(0,z.BYU)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=(0,z.BYU)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function yt(e,t,i,s){const n=new xt(s);return gt(e)?new Mt(t,i,e.categories,e.title,n):new It(t,i,[e.min,e.max],e.title,n)}class Vt{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function Bt(e,t,i,s){const n=new xt(s);return new Vt(n,e,t,i)}class Ot{constructor(t,i,s,n,h){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=h}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return i="horizontal"===this.orientation?(0,z.jvg)().y(s=>s[0]).x(s=>s[1])(t):(0,z.jvg)().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class Wt{constructor(t,i,s,n,h,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=h,this.plotIndex=g}getDrawableElement(){const t=this.barData.data.map(h=>[this.xAxis.getScaleValue(h[0]),this.yAxis.getScaleValue(h[1])]),s=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),n=s/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:this.boundingRect.x,y:h[0]-n,height:s,width:h[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:h[0]-n,y:h[1],width:s,height:this.boundingRect.y+this.boundingRect.height-h[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class Ft{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Ot(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Wt(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}}return t}}function zt(e,t,i){return new Ft(e,t,i)}class Nt{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:Bt(t,i,s,n),plot:zt(t,i,s),xAxis:yt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:yt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:h,height:g});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=f.width,t-=f.width,t>0&&(h+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+h]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+g}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(y=>ut(y))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,h=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),y=this.componentStore.plot.calculateSpace({width:g,height:f});t-=y.width,i-=y.height,y=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=y.height,i-=y.height,this.componentStore.xAxis.setAxisPosition("left"),y=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=y.width,n=y.width,this.componentStore.yAxis.setAxisPosition("top"),y=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=y.height,h=s+y.height,t>0&&(g+=t,t=0),i>0&&(f+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:f}),this.componentStore.plot.setBoundingBoxXY({x:n,y:h}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([h,h+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(E=>ut(E))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class Xt{static build(t,i,s,n){return new Nt(t,i,s,n).getDrawableElement()}}let mt,Y=0,U=At(),H=bt(),d={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},tt=H.plotColorPalette.split(",").map(e=>e.trim()),K=!1,it=!1;function bt(){const e=(0,A.E)(),t=(0,A.F)();return(0,A.C)(e.xyChart,t.themeVariables.xyChart)}function At(){const e=(0,A.F)();return(0,A.C)(A.B.xyChart,e.xyChart)}function et(e){const t=(0,A.F)();return(0,A.d)(e.trim(),t)}function wt(e,t){d.xAxis={type:"linear",title:d.xAxis.title,min:e,max:t},K=!0}function Ct(e){let t=[];if(0===e.length)return t;if(!K){const i=X(d.xAxis)?d.xAxis.min:1/0,s=X(d.xAxis)?d.xAxis.max:-1/0;wt(Math.min(i,1),Math.max(s,e.length))}if(it||function Gt(e){const t=Math.min(...e),i=Math.max(...e),s=X(d.yAxis)?d.yAxis.min:1/0,n=X(d.yAxis)?d.yAxis.max:-1/0;d.yAxis={type:"linear",title:d.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}(e),gt(d.xAxis)&&(t=d.xAxis.categories.map((i,s)=>[i,e[s]])),X(d.xAxis)){const i=d.xAxis.min,s=d.xAxis.max,n=(s-i+1)/e.length,h=[];for(let g=i;g<=s;g+=n)h.push(`${g}`);t=h.map((g,f)=>[g,e[f]])}return t}function St(e){return tt[0===e?0:e%tt.length]}const ei={parser:vt,db:{getDrawableElem:function Zt(){if(0===d.plots.length)throw Error("No Plot to render, please provide a plot with some data");return d.title=(0,A.t)(),Xt.build(U,d,H,mt)},clear:function(){(0,A.v)(),Y=0,U=At(),d={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},H=bt(),tt=H.plotColorPalette.split(",").map(e=>e.trim()),K=!1,it=!1},setAccTitle:A.s,getAccTitle:A.g,setDiagramTitle:A.q,getDiagramTitle:A.t,getAccDescription:A.a,setAccDescription:A.b,setOrientation:function Ut(e){U.chartOrientation="horizontal"===e?"horizontal":"vertical"},setXAxisTitle:function Ht(e){d.xAxis.title=et(e.text)},setXAxisRangeData:wt,setXAxisBand:function $t(e){d.xAxis={type:"band",title:d.xAxis.title,categories:e.map(t=>et(t.text))},K=!0},setYAxisTitle:function jt(e){d.yAxis.title=et(e.text)},setYAxisRangeData:function Kt(e,t){d.yAxis={type:"linear",title:d.yAxis.title,min:e,max:t},it=!0},setLineData:function Qt(e,t){const i=Ct(t);d.plots.push({type:"line",strokeFill:St(Y),strokeWidth:2,data:i}),Y++},setBarData:function qt(e,t){const i=Ct(t);d.plots.push({type:"bar",fill:St(Y),data:i}),Y++},setTmpSVGG:function Yt(e){mt=e},getChartThemeConfig:function Jt(){return H},getChartConfig:function ti(){return U}},renderer:{draw:(e,t,i,s)=>{const n=s.db,h=n.getChartThemeConfig(),g=n.getChartConfig();function f(p){return"top"===p?"text-before-edge":"middle"}function y(p){return"left"===p?"start":"right"===p?"end":"middle"}function E(p){return`translate(${p.x}, ${p.y}) rotate(${p.rotation||0})`}A.l.debug("Rendering xychart chart\n"+e);const S=(0,A.A)(t),R=S.append("g").attr("class","main"),L=R.append("rect").attr("width",g.width).attr("height",g.height).attr("class","background");(0,A.i)(S,g.height,g.width,!0),S.attr("viewBox",`0 0 ${g.width} ${g.height}`),L.attr("fill",h.backgroundColor),n.setTmpSVGG(S.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),k={};function M(p){let w=R,r="";for(const[T]of p.entries()){let $=R;T>0&&k[r]&&($=k[r]),r+=p[T],w=k[r],w||(w=k[r]=$.append("g").attr("class",p[T]))}return w}for(const p of v){if(0===p.data.length)continue;const w=M(p.groupTexts);switch(p.type){case"rect":w.selectAll("rect").data(p.data).enter().append("rect").attr("x",r=>r.x).attr("y",r=>r.y).attr("width",r=>r.width).attr("height",r=>r.height).attr("fill",r=>r.fill).attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth);break;case"text":w.selectAll("text").data(p.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",r=>r.fill).attr("font-size",r=>r.fontSize).attr("dominant-baseline",r=>f(r.verticalPos)).attr("text-anchor",r=>y(r.horizontalPos)).attr("transform",r=>E(r)).text(r=>r.text);break;case"path":w.selectAll("path").data(p.data).enter().append("path").attr("d",r=>r.path).attr("fill",r=>r.fill?r.fill:"none").attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth)}}}}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/820.9423629b523fc453.js b/pkg/apiserver-impl/ui/508.8c9ab7239b64f64b.js similarity index 99% rename from pkg/apiserver-impl/ui/820.9423629b523fc453.js rename to pkg/apiserver-impl/ui/508.8c9ab7239b64f64b.js index 8f1561250b..47efc24c20 100644 --- a/pkg/apiserver-impl/ui/820.9423629b523fc453.js +++ b/pkg/apiserver-impl/ui/508.8c9ab7239b64f64b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[820],{6881:(Vt,q,P)=>{P.r(q),P.d(q,{diagram:()=>Pt});var k=P(9037),L=P(8586),R=P(3118),z=(P(1764),P(6780),P(2735),function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],o=[1,10],n=[1,11],h=[1,12],c=[1,13],d=[1,14],y={trace:function(){},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:function(s,r,a,u,f,l,E){var _=l.length-1;switch(f){case 1:return l[_-1];case 2:case 6:case 7:this.$=[];break;case 3:l[_-1].push(l[_]),this.$=l[_-1];break;case 4:case 5:this.$=l[_];break;case 8:u.setDiagramTitle(l[_].substr(6)),this.$=l[_].substr(6);break;case 9:this.$=l[_].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=l[_].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(l[_].substr(8)),this.$=l[_].substr(8);break;case 13:u.addTask(l[_-1],l[_]),this.$="task"}},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:i,12:o,14:n,16:h,17:c,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:o,14:n,16:h,17:c,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:function(s,r){if(!r.recoverable){var a=new Error(s);throw a.hash=r,a}this.trace(s)},parse:function(s){var a=[0],u=[],f=[null],l=[],E=this.table,_="",j=0,at=0,Ct=l.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(C.yy[G]=this.yy[G]);x.setInput(s,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var X=x.yylloc;l.push(X);var $,It=x.options&&x.options.ranges;this.parseError="function"==typeof C.yy.parseError?C.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,I,w,H,Y,T,W,V={};;){if(this.defaultActions[I=a[a.length-1]]?w=this.defaultActions[I]:((null===b||typeof b>"u")&&($=void 0,"number"!=typeof($=u.pop()||x.lex()||1)&&($ instanceof Array&&($=(u=$).pop()),$=this.symbols_[$]||$),b=$),w=E[I]&&E[I][b]),typeof w>"u"||!w.length||!w[0]){var Z;for(Y in W=[],E[I])this.terminals_[Y]&&Y>2&&W.push("'"+this.terminals_[Y]+"'");Z=x.showPosition?"Parse error on line "+(j+1)+":\n"+x.showPosition()+"\nExpecting "+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Z,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:X,expected:W})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(w[0]){case 1:a.push(b),f.push(x.yytext),l.push(x.yylloc),a.push(w[1]),b=null,at=x.yyleng,_=x.yytext,j=x.yylineno,X=x.yylloc;break;case 2:if(V.$=f[f.length-(T=this.productions_[w[1]][1])],V._$={first_line:l[l.length-(T||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(T||1)].first_column,last_column:l[l.length-1].last_column},It&&(V._$.range=[l[l.length-(T||1)].range[0],l[l.length-1].range[1]]),typeof(H=this.performAction.apply(V,[_,at,j,C.yy,w[1],f,l].concat(Ct)))<"u")return H;T&&(a=a.slice(0,-1*T*2),f=f.slice(0,-1*T),l=l.slice(0,-1*T)),a.push(this.productions_[w[1]][0]),f.push(V.$),l.push(V._$),a.push(E[a[a.length-2]][a[a.length-1]]);break;case 3:return!0}}return!0}};function g(){this.yy={}}return y.lexer={EOF:1,parseError:function(r,a){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,a)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,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},input:function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.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),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;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-r},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+"\n"+r+"^"},test_match:function(s,r){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=s[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+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var l in f)this[l]=f[l];return!1}return!1},next:function(){if(this.done)return this.EOF;var s,r,a,u;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),l=0;lr[0].length)){if(r=a,u=l,this.options.backtrack_lexer){if(!1!==(s=this.test_match(a,f[l])))return s;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(s=this.test_match(r,f[u]))&&s:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,f){switch(u){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"}},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}}},g.prototype=y,y.Parser=g,new g}());z.parser=z;const ct=z;let A="";const U=[],F=[],O=[],J=function(){const t=function(i){return O[i].processed};let e=!0;for(const[i,o]of O.entries())t(i),e=e&&o.processed;return e},Q={getConfig:()=>(0,k.c)().journey,clear:function(){U.length=0,F.length=0,A="",O.length=0,(0,k.v)()},setDiagramTitle:k.q,getDiagramTitle:k.t,setAccTitle:k.s,getAccTitle:k.g,setAccDescription:k.b,getAccDescription:k.a,addSection:function(t){A=t,U.push(t)},getSections:function(){return U},getTasks:function(){let t=J(),i=0;for(;!t&&i<100;)t=J(),i++;return F.push(...O),F},addTask:function(t,e){const i=e.substr(1).split(":");let o=0,n=[];1===i.length?(o=Number(i[0]),n=[]):(o=Number(i[0]),n=i[1].split(","));const h=n.map(d=>d.trim());O.push({section:A,type:A,people:h,task:t,score:o})},addTaskOrg:function(t){F.push({section:A,type:A,description:t,task:t,classes:[]})},getActors:function(){return function(){const t=[];return F.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()}()}},D=function(t,e){return(0,R.d)(t,e)},tt=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),void 0!==i.class&&i.attr("class",i.class),void 0!==e.title&&i.append("title").text(e.title),i},et=function(t,e){return(0,R.f)(t,e)};let st=-1;const nt=function(){function t(n,h,c,d,y,m,g,p){o(h.append("text").attr("x",c+y/2).attr("y",d+m/2+5).style("font-color",p).style("text-anchor","middle").text(n),g)}function e(n,h,c,d,y,m,g,p,s){const{taskFontSize:r,taskFontFamily:a}=p,u=n.split(//gi);for(let f=0;f3?function h(y){const m=(0,L.Nb1)().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)+")")}(n):e.score<3?function c(y){const m=(0,L.Nb1)().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)+")")}(n):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")}(n)}(n,{cx:o,cy:300+30*(5-e.score),score:e.score});const c=(0,R.g)();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,D(n,c);let d=e.x+14;e.people.forEach(y=>{tt(n,{cx:d,cy:e.y,r:7,fill:e.actors[y].color,stroke:"#000",title:y,pos:e.actors[y].position}),d+=10}),nt(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},B_initGraphics=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")},M={},N=(0,k.c)().journey,S=N.leftMargin,v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,o){t[e]=void 0===t[e]?i:o(i,t[e])},updateBounds:function(t,e,i,o){const n=(0,k.c)().journey,h=this;let c=0;this.sequenceItems.forEach(function d(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",o+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),"activation"!==y&&(h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",o+p*n.boxMargin,Math.max))}}())},insert:function(t,e,i,o){const n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,o),d=Math.max(e,o);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",d,Math.max),this.updateBounds(n,c,h,d)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},K=N.sectionFills,it=N.sectionColours,rt={setConf:function(t){Object.keys(t).forEach(function(i){N[i]=t[i]})},draw:function(t,e,i,o){const n=(0,k.c)().journey,h=(0,k.c)().securityLevel;let c;"sandbox"===h&&(c=(0,L.Ys)("#i"+e));const d=(0,L.Ys)("sandbox"===h?c.nodes()[0].contentDocument.body:"body");v.init();const y=d.select("#"+e);B_initGraphics(y);const m=o.db.getTasks(),g=o.db.getDiagramTitle(),p=o.db.getActors();for(const l in M)delete M[l];let s=0;p.forEach(l=>{M[l]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),function Et(t){const e=(0,k.c)().journey;let i=60;Object.keys(M).forEach(o=>{B_drawCircle(t,{cx:20,cy:i,r:7,fill:M[o].color,stroke:"#000",pos:M[o].position}),B_drawText(t,{x:40,y:i+7,fill:"#666",text:o,textMargin:5|e.boxTextMargin}),i+=20})}(y),v.insert(0,0,S,50*Object.keys(M).length),function(t,e,i){const o=(0,k.c)().journey;let n="";const c=i+(2*o.height+o.diagramMarginY);let d=0,y="#CCC",m="black",g=0;for(const[p,s]of e.entries()){if(n!==s.section){y=K[d%K.length],g=d%K.length,m=it[d%it.length];let a=0;const u=s.section;for(let l=p;l(M[u]&&(a[u]=M[u]),a),{});s.x=p*o.taskMargin+p*o.width+S,s.y=c,s.width=o.diagramMarginX,s.height=o.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,B_drawTask(t,s,o),v.insert(s.x,s.y,s.x+s.width+o.taskMargin,450)}}(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",S).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*n.diagramMarginY,u=S+r.stopx+2*n.diagramMarginX;(0,k.i)(y,a,u,n.useMaxWidth),y.append("line").attr("x1",S).attr("y1",4*n.height).attr("x2",u-S-4).attr("y2",4*n.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const f=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+f}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+f+25)}},Pt={parser:ct,db:Q,renderer:rt,styles:t=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`,init:t=>{rt.setConf(t.journey),Q.clear()}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[508],{7508:(Vt,q,P)=>{P.r(q),P.d(q,{diagram:()=>Pt});var k=P(8080),L=P(8586),R=P(6938),z=(P(1764),P(6780),P(2735),function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],o=[1,10],n=[1,11],h=[1,12],c=[1,13],d=[1,14],y={trace:function(){},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:function(s,r,a,u,f,l,E){var _=l.length-1;switch(f){case 1:return l[_-1];case 2:case 6:case 7:this.$=[];break;case 3:l[_-1].push(l[_]),this.$=l[_-1];break;case 4:case 5:this.$=l[_];break;case 8:u.setDiagramTitle(l[_].substr(6)),this.$=l[_].substr(6);break;case 9:this.$=l[_].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=l[_].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(l[_].substr(8)),this.$=l[_].substr(8);break;case 13:u.addTask(l[_-1],l[_]),this.$="task"}},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:i,12:o,14:n,16:h,17:c,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:o,14:n,16:h,17:c,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:function(s,r){if(!r.recoverable){var a=new Error(s);throw a.hash=r,a}this.trace(s)},parse:function(s){var a=[0],u=[],f=[null],l=[],E=this.table,_="",j=0,at=0,Ct=l.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(C.yy[G]=this.yy[G]);x.setInput(s,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var X=x.yylloc;l.push(X);var $,It=x.options&&x.options.ranges;this.parseError="function"==typeof C.yy.parseError?C.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,I,w,H,Y,T,W,V={};;){if(this.defaultActions[I=a[a.length-1]]?w=this.defaultActions[I]:((null===b||typeof b>"u")&&($=void 0,"number"!=typeof($=u.pop()||x.lex()||1)&&($ instanceof Array&&($=(u=$).pop()),$=this.symbols_[$]||$),b=$),w=E[I]&&E[I][b]),typeof w>"u"||!w.length||!w[0]){var Z;for(Y in W=[],E[I])this.terminals_[Y]&&Y>2&&W.push("'"+this.terminals_[Y]+"'");Z=x.showPosition?"Parse error on line "+(j+1)+":\n"+x.showPosition()+"\nExpecting "+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Z,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:X,expected:W})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(w[0]){case 1:a.push(b),f.push(x.yytext),l.push(x.yylloc),a.push(w[1]),b=null,at=x.yyleng,_=x.yytext,j=x.yylineno,X=x.yylloc;break;case 2:if(V.$=f[f.length-(T=this.productions_[w[1]][1])],V._$={first_line:l[l.length-(T||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(T||1)].first_column,last_column:l[l.length-1].last_column},It&&(V._$.range=[l[l.length-(T||1)].range[0],l[l.length-1].range[1]]),typeof(H=this.performAction.apply(V,[_,at,j,C.yy,w[1],f,l].concat(Ct)))<"u")return H;T&&(a=a.slice(0,-1*T*2),f=f.slice(0,-1*T),l=l.slice(0,-1*T)),a.push(this.productions_[w[1]][0]),f.push(V.$),l.push(V._$),a.push(E[a[a.length-2]][a[a.length-1]]);break;case 3:return!0}}return!0}};function g(){this.yy={}}return y.lexer={EOF:1,parseError:function(r,a){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,a)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,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},input:function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.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),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;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-r},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+"\n"+r+"^"},test_match:function(s,r){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=s[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+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var l in f)this[l]=f[l];return!1}return!1},next:function(){if(this.done)return this.EOF;var s,r,a,u;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),l=0;lr[0].length)){if(r=a,u=l,this.options.backtrack_lexer){if(!1!==(s=this.test_match(a,f[l])))return s;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(s=this.test_match(r,f[u]))&&s:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,f){switch(u){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"}},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}}},g.prototype=y,y.Parser=g,new g}());z.parser=z;const ct=z;let A="";const U=[],F=[],O=[],J=function(){const t=function(i){return O[i].processed};let e=!0;for(const[i,o]of O.entries())t(i),e=e&&o.processed;return e},Q={getConfig:()=>(0,k.c)().journey,clear:function(){U.length=0,F.length=0,A="",O.length=0,(0,k.v)()},setDiagramTitle:k.q,getDiagramTitle:k.t,setAccTitle:k.s,getAccTitle:k.g,setAccDescription:k.b,getAccDescription:k.a,addSection:function(t){A=t,U.push(t)},getSections:function(){return U},getTasks:function(){let t=J(),i=0;for(;!t&&i<100;)t=J(),i++;return F.push(...O),F},addTask:function(t,e){const i=e.substr(1).split(":");let o=0,n=[];1===i.length?(o=Number(i[0]),n=[]):(o=Number(i[0]),n=i[1].split(","));const h=n.map(d=>d.trim());O.push({section:A,type:A,people:h,task:t,score:o})},addTaskOrg:function(t){F.push({section:A,type:A,description:t,task:t,classes:[]})},getActors:function(){return function(){const t=[];return F.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()}()}},D=function(t,e){return(0,R.d)(t,e)},tt=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),void 0!==i.class&&i.attr("class",i.class),void 0!==e.title&&i.append("title").text(e.title),i},et=function(t,e){return(0,R.f)(t,e)};let st=-1;const nt=function(){function t(n,h,c,d,y,m,g,p){o(h.append("text").attr("x",c+y/2).attr("y",d+m/2+5).style("font-color",p).style("text-anchor","middle").text(n),g)}function e(n,h,c,d,y,m,g,p,s){const{taskFontSize:r,taskFontFamily:a}=p,u=n.split(//gi);for(let f=0;f3?function h(y){const m=(0,L.Nb1)().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)+")")}(n):e.score<3?function c(y){const m=(0,L.Nb1)().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)+")")}(n):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")}(n)}(n,{cx:o,cy:300+30*(5-e.score),score:e.score});const c=(0,R.g)();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,D(n,c);let d=e.x+14;e.people.forEach(y=>{tt(n,{cx:d,cy:e.y,r:7,fill:e.actors[y].color,stroke:"#000",title:y,pos:e.actors[y].position}),d+=10}),nt(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},B_initGraphics=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")},M={},N=(0,k.c)().journey,S=N.leftMargin,v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,o){t[e]=void 0===t[e]?i:o(i,t[e])},updateBounds:function(t,e,i,o){const n=(0,k.c)().journey,h=this;let c=0;this.sequenceItems.forEach(function d(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",o+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),"activation"!==y&&(h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",o+p*n.boxMargin,Math.max))}}())},insert:function(t,e,i,o){const n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,o),d=Math.max(e,o);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",d,Math.max),this.updateBounds(n,c,h,d)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},K=N.sectionFills,it=N.sectionColours,rt={setConf:function(t){Object.keys(t).forEach(function(i){N[i]=t[i]})},draw:function(t,e,i,o){const n=(0,k.c)().journey,h=(0,k.c)().securityLevel;let c;"sandbox"===h&&(c=(0,L.Ys)("#i"+e));const d=(0,L.Ys)("sandbox"===h?c.nodes()[0].contentDocument.body:"body");v.init();const y=d.select("#"+e);B_initGraphics(y);const m=o.db.getTasks(),g=o.db.getDiagramTitle(),p=o.db.getActors();for(const l in M)delete M[l];let s=0;p.forEach(l=>{M[l]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),function Et(t){const e=(0,k.c)().journey;let i=60;Object.keys(M).forEach(o=>{B_drawCircle(t,{cx:20,cy:i,r:7,fill:M[o].color,stroke:"#000",pos:M[o].position}),B_drawText(t,{x:40,y:i+7,fill:"#666",text:o,textMargin:5|e.boxTextMargin}),i+=20})}(y),v.insert(0,0,S,50*Object.keys(M).length),function(t,e,i){const o=(0,k.c)().journey;let n="";const c=i+(2*o.height+o.diagramMarginY);let d=0,y="#CCC",m="black",g=0;for(const[p,s]of e.entries()){if(n!==s.section){y=K[d%K.length],g=d%K.length,m=it[d%it.length];let a=0;const u=s.section;for(let l=p;l(M[u]&&(a[u]=M[u]),a),{});s.x=p*o.taskMargin+p*o.width+S,s.y=c,s.width=o.diagramMarginX,s.height=o.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,B_drawTask(t,s,o),v.insert(s.x,s.y,s.x+s.width+o.taskMargin,450)}}(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",S).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*n.diagramMarginY,u=S+r.stopx+2*n.diagramMarginX;(0,k.i)(y,a,u,n.useMaxWidth),y.append("line").attr("x1",S).attr("y1",4*n.height).attr("x2",u-S-4).attr("y2",4*n.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const f=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+f}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+f+25)}},Pt={parser:ct,db:Q,renderer:rt,styles:t=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`,init:t=>{rt.setConf(t.journey),Q.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/627.78bbe1b912458c32.js b/pkg/apiserver-impl/ui/552.7e3497fa1d244176.js similarity index 99% rename from pkg/apiserver-impl/ui/627.78bbe1b912458c32.js rename to pkg/apiserver-impl/ui/552.7e3497fa1d244176.js index 5a09a4d071..f5a4bb62b5 100644 --- a/pkg/apiserver-impl/ui/627.78bbe1b912458c32.js +++ b/pkg/apiserver-impl/ui/552.7e3497fa1d244176.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[627],{9627:(Zr,St,xn)=>{xn.d(St,{a:()=>Rr,c:()=>Mr});var Cn={};xn.r(Cn),xn.d(Cn,{attentionMarkers:()=>gr,contentInitial:()=>cr,disable:()=>kr,document:()=>sr,flow:()=>pr,flowInitial:()=>hr,insideSpan:()=>xr,string:()=>fr,text:()=>mr});var Nn=xn(9037);const Ft={};function Vn(n,r,t){if(function Ct(n){return Boolean(n&&"object"==typeof n)}(n)){if("value"in n)return"html"!==n.type||t?n.value:"";if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Wn(n.children,r,t)}return Array.isArray(n)?Wn(n,r,t):""}function Wn(n,r,t){const e=[];let l=-1;for(;++ll?0:l+r:r>l?l:r,t=t>0?t:0,e.length<1e4)u=Array.from(e),u.unshift(r,t),n.splice(...u);else for(t&&n.splice(r,t);i0?(nn(n,n.length,0,r),n):r}const wn={}.hasOwnProperty;function At(n,r){let t;for(t in r){const l=(wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let u;if(i)for(u in i){wn.call(l,u)||(l[u]=[]);const a=i[u];zt(l[u],Array.isArray(a)?a:a?[a]:[])}}}function zt(n,r){let t=-1;const e=[];for(;++tu))return;const D=r.events.length;let V,U,N=D;for(;N--;)if("exit"===r.events[N][0]&&"chunkFlow"===r.events[N][1].type){if(V){U=r.events[N][1].end;break}V=!0}for(b(e),k=D;ky;){const M=t[P];r.containerState=M[1],M[0].exit.call(r,n)}t.length=y}function j(){l.write([null]),i=void 0,l=void 0,r.containerState._closeFlow=void 0}}},Qn={tokenize:function Ht(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},Sn={tokenize:function qt(n,r,t){return function e(i){return z(i)?O(n,l,"linePrefix")(i):l(i)};function l(i){return null===i||F(i)?r(i):t(i)}},partial:!0};function Un(n){const r={};let e,l,i,u,a,m,p,t=-1;for(;++t=4?r(u):n.interrupt(e.parser.constructs.flow,t,r)(u)}},partial:!0},Zt={tokenize:function Yt(n){const r=this,t=n.attempt(Sn,function e(i){if(null!==i)return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t;n.consume(i)},n.attempt(this.parser.constructs.flowInitial,l,O(n,n.attempt(this.parser.constructs.flow,l,n.attempt(Vt,l)),"linePrefix")));return t;function l(i){if(null!==i)return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t;n.consume(i)}}},Gt={resolveAll:Zn()},Jt=$n("string"),Kt=$n("text");function $n(n){return{tokenize:function r(t){const e=this,l=this.parser.constructs[n],i=t.attempt(l,u,a);return u;function u(c){return p(c)?i(c):a(c)}function a(c){if(null!==c)return t.enter("data"),t.consume(c),m;t.consume(c)}function m(c){return p(c)?(t.exit("data"),i(c)):(t.consume(c),m)}function p(c){if(null===c)return!0;const x=l[c];let f=-1;if(x)for(;++f=3&&(null===p||F(p))?(n.exit("thematicBreak"),r(p)):t(p)}function m(p){return p===l?(n.consume(p),e++,m):(n.exit("thematicBreakSequence"),z(p)?O(n,a,"whitespace")(p):a(p))}}},Z={name:"list",tokenize:function ue(n,r,t){const e=this,l=e.events[e.events.length-1];let i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,u=0;return function a(h){const I=e.containerState.type||(42===h||43===h||45===h?"listUnordered":"listOrdered");if("listUnordered"===I?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=I,n.enter(I,{_container:!0})),"listUnordered"===I)return n.enter("listItemPrefix"),42===h||45===h?n.check(Fn,t,p)(h):p(h);if(!e.interrupt||49===h)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)};function m(h){return zn(h)&&++u<10?(n.consume(h),m):(!e.interrupt||u<2)&&(e.containerState.marker?h===e.containerState.marker:41===h||46===h)?(n.exit("listItemValue"),p(h)):t(h)}function p(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:c,n.attempt(re,f,x))}function c(h){return e.containerState.initialBlankLine=!0,i++,f(h)}function x(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),f):t(h)}function f(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}},continuation:{tokenize:function le(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,function l(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)},function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,u(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(ie,r,u)(a))});function u(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt(Z,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function oe(n){n.exit(this.containerState.type)}},re={tokenize:function se(n,r,t){const e=this;return O(n,function l(i){const u=e.events[e.events.length-1];return!z(i)&&u&&"listItemPrefixWhitespace"===u[1].type?r(i):t(i)},"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ie={tokenize:function ae(n,r,t){const e=this;return O(n,function l(i){const u=e.events[e.events.length-1];return u&&"listItemIndent"===u[1].type&&u[2].sliceSerialize(u[1],!0).length===e.containerState.size?r(i):t(i)},"listItemIndent",e.containerState.size+1)},partial:!0},Yn={name:"blockQuote",tokenize:function ce(n,r,t){const e=this;return function l(u){if(62===u){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(u),n.exit("blockQuoteMarker"),i}return t(u)};function i(u){return z(u)?(n.enter("blockQuotePrefixWhitespace"),n.consume(u),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(u))}},continuation:{tokenize:function he(n,r,t){const e=this;return function l(u){return z(u)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):i(u)};function i(u){return n.attempt(Yn,r,t)(u)}}},exit:function pe(n){n.exit("blockQuote")}};function Gn(n,r,t,e,l,i,u,a,m){const p=m||Number.POSITIVE_INFINITY;let c=0;return function x(b){return 60===b?(n.enter(e),n.enter(l),n.enter(i),n.consume(b),n.exit(i),f):null===b||32===b||41===b||An(b)?t(b):(n.enter(e),n.enter(u),n.enter(a),n.enter("chunkString",{contentType:"string"}),T(b))};function f(b){return 62===b?(n.enter(i),n.consume(b),n.exit(i),n.exit(l),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return 62===b?(n.exit("chunkString"),n.exit(a),f(b)):null===b||60===b||F(b)?t(b):(n.consume(b),92===b?I:h)}function I(b){return 60===b||62===b||92===b?(n.consume(b),h):h(b)}function T(b){return c||null!==b&&41!==b&&!$(b)?c999||null===h||91===h||93===h&&!m||94===h&&!a&&"_hiddenFootnoteSupport"in u.parser.constructs?t(h):93===h?(n.exit(i),n.enter(l),n.consume(h),n.exit(l),n.exit(e),r):F(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),x(h))}function x(h){return null===h||91===h||93===h||F(h)||a++>999?(n.exit("chunkString"),c(h)):(n.consume(h),m||(m=!z(h)),92===h?f:x)}function f(h){return 91===h||92===h||93===h?(n.consume(h),a++,x):x(h)}}function Kn(n,r,t,e,l,i){let u;return function a(f){return 34===f||39===f||40===f?(n.enter(e),n.enter(l),n.consume(f),n.exit(l),u=40===f?41:f,m):t(f)};function m(f){return f===u?(n.enter(l),n.consume(f),n.exit(l),n.exit(e),r):(n.enter(i),p(f))}function p(f){return f===u?(n.exit(i),m(u)):null===f?t(f):F(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),O(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===u||null===f||F(f)?(n.exit("chunkString"),p(f)):(n.consume(f),92===f?x:c)}function x(f){return f===u||92===f?(n.consume(f),c):c(f)}}function gn(n,r){let t;return function e(l){return F(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),t=!0,e):z(l)?O(n,e,t?"linePrefix":"lineSuffix")(l):r(l)}}function pn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fe={name:"definition",tokenize:function xe(n,r,t){const e=this;let l;return function i(h){return n.enter("definition"),function u(h){return Jn.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}(h)};function a(h){return l=pn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),58===h?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),m):t(h)}function m(h){return $(h)?gn(n,p)(h):p(h)}function p(h){return Gn(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return n.attempt(me,x,x)(h)}function x(h){return z(h)?O(n,f,"whitespace")(h):f(h)}function f(h){return null===h||F(h)?(n.exit("definition"),e.parser.defined.push(l),r(h)):t(h)}}},me={tokenize:function ge(n,r,t){return function e(a){return $(a)?gn(n,l)(a):t(a)};function l(a){return Kn(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,u,"whitespace")(a):u(a)}function u(a){return null===a||F(a)?r(a):t(a)}},partial:!0},Tn={name:"codeIndented",tokenize:function de(n,r,t){const e=this;return function l(p){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(p)};function i(p){const c=e.events[e.events.length-1];return c&&"linePrefix"===c[1].type&&c[2].sliceSerialize(c[1],!0).length>=4?u(p):t(p)}function u(p){return null===p?m(p):F(p)?n.attempt(ke,u,m)(p):(n.enter("codeFlowValue"),a(p))}function a(p){return null===p||F(p)?(n.exit("codeFlowValue"),u(p)):(n.consume(p),a)}function m(p){return n.exit("codeIndented"),r(p)}}},ke={tokenize:function be(n,r,t){const e=this;return l;function l(u){return e.parser.lazy[e.now().line]?t(u):F(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),l):O(n,i,"linePrefix",5)(u)}function i(u){const a=e.events[e.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(u):F(u)?l(u):t(u)}},partial:!0},ye={name:"headingAtx",tokenize:function Fe(n,r,t){let e=0;return function l(c){return n.enter("atxHeading"),function i(c){return n.enter("atxHeadingSequence"),u(c)}(c)};function u(c){return 35===c&&e++<6?(n.consume(c),u):null===c||$(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return 35===c?(n.enter("atxHeadingSequence"),m(c)):null===c||F(c)?(n.exit("atxHeading"),r(c)):z(c)?O(n,a,"whitespace")(c):(n.enter("atxHeadingText"),p(c))}function m(c){return 35===c?(n.consume(c),m):(n.exit("atxHeadingSequence"),a(c))}function p(c){return null===c||35===c||$(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),p)}},resolve:function Se(n,r){let l,i,t=n.length-2,e=3;return"whitespace"===n[e][1].type&&(e+=2),t-2>e&&"whitespace"===n[t][1].type&&(t-=2),"atxHeadingSequence"===n[t][1].type&&(e===t-1||t-4>e&&"whitespace"===n[t-2][1].type)&&(t-=e+1===t?2:4),t>e&&(l={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},nn(n,e,t-e+1,[["enter",l,r],["enter",i,r],["exit",i,r],["exit",l,r]])),n}},Xn={name:"setextUnderline",tokenize:function Ce(n,r,t){const e=this;let l;return function i(p){let x,c=e.events.length;for(;c--;)if("lineEnding"!==e.events[c][1].type&&"linePrefix"!==e.events[c][1].type&&"content"!==e.events[c][1].type){x="paragraph"===e.events[c][1].type;break}return e.parser.lazy[e.now().line]||!e.interrupt&&!x?t(p):(n.enter("setextHeadingLine"),l=p,function u(p){return n.enter("setextHeadingLineSequence"),a(p)}(p))};function a(p){return p===l?(n.consume(p),a):(n.exit("setextHeadingLineSequence"),z(p)?O(n,m,"lineSuffix")(p):m(p))}function m(p){return null===p||F(p)?(n.exit("setextHeadingLine"),r(p)):t(p)}},resolveTo:function Ee(n,r){let e,l,i,t=n.length;for(;t--;)if("enter"===n[t][0]){if("content"===n[t][1].type){e=t;break}"paragraph"===n[t][1].type&&(l=t)}else"content"===n[t][1].type&&n.splice(t,1),!i&&"definition"===n[t][1].type&&(i=t);const u={type:"setextHeading",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[l][1].type="setextHeadingText",i?(n.splice(l,0,["enter",u,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=u,n.push(["exit",u,r]),n}},we=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vn=["pre","script","style","textarea"],Ae={name:"htmlFlow",tokenize:function Be(n,r,t){const e=this;let l,i,u,a,m;return function p(s){return function c(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),x}(s)};function x(s){return 33===s?(n.consume(s),f):47===s?(n.consume(s),i=!0,T):63===s?(n.consume(s),l=3,e.interrupt?r:o):tn(s)?(n.consume(s),u=String.fromCharCode(s),_):t(s)}function f(s){return 45===s?(n.consume(s),l=2,h):91===s?(n.consume(s),l=5,a=0,I):tn(s)?(n.consume(s),l=4,e.interrupt?r:o):t(s)}function h(s){return 45===s?(n.consume(s),e.interrupt?r:o):t(s)}function I(s){const Y="CDATA[";return s===Y.charCodeAt(a++)?(n.consume(s),a===Y.length?e.interrupt?r:A:I):t(s)}function T(s){return tn(s)?(n.consume(s),u=String.fromCharCode(s),_):t(s)}function _(s){if(null===s||47===s||62===s||$(s)){const Y=47===s,fn=u.toLowerCase();return Y||i||!vn.includes(fn)?we.includes(u.toLowerCase())?(l=6,Y?(n.consume(s),b):e.interrupt?r(s):A(s)):(l=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):y(s)):(l=1,e.interrupt?r(s):A(s))}return 45===s||K(s)?(n.consume(s),u+=String.fromCharCode(s),_):t(s)}function b(s){return 62===s?(n.consume(s),e.interrupt?r:A):t(s)}function j(s){return z(s)?(n.consume(s),j):U(s)}function y(s){return 47===s?(n.consume(s),U):58===s||95===s||tn(s)?(n.consume(s),P):z(s)?(n.consume(s),y):U(s)}function P(s){return 45===s||46===s||58===s||95===s||K(s)?(n.consume(s),P):M(s)}function M(s){return 61===s?(n.consume(s),k):z(s)?(n.consume(s),M):y(s)}function k(s){return null===s||60===s||61===s||62===s||96===s?t(s):34===s||39===s?(n.consume(s),m=s,D):z(s)?(n.consume(s),k):N(s)}function D(s){return s===m?(n.consume(s),m=null,V):null===s||F(s)?t(s):(n.consume(s),D)}function N(s){return null===s||34===s||39===s||47===s||60===s||61===s||62===s||96===s||$(s)?M(s):(n.consume(s),N)}function V(s){return 47===s||62===s||z(s)?y(s):t(s)}function U(s){return 62===s?(n.consume(s),H):t(s)}function H(s){return null===s||F(s)?A(s):z(s)?(n.consume(s),H):t(s)}function A(s){return 45===s&&2===l?(n.consume(s),R):60===s&&1===l?(n.consume(s),W):62===s&&4===l?(n.consume(s),J):63===s&&3===l?(n.consume(s),o):93===s&&5===l?(n.consume(s),en):!F(s)||6!==l&&7!==l?null===s||F(s)?(n.exit("htmlFlowData"),S(s)):(n.consume(s),A):(n.exit("htmlFlowData"),n.check(ze,rn,S)(s))}function S(s){return n.check(Ie,w,rn)(s)}function w(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),C}function C(s){return null===s||F(s)?S(s):(n.enter("htmlFlowData"),A(s))}function R(s){return 45===s?(n.consume(s),o):A(s)}function W(s){return 47===s?(n.consume(s),u="",X):A(s)}function X(s){if(62===s){const Y=u.toLowerCase();return vn.includes(Y)?(n.consume(s),J):A(s)}return tn(s)&&u.length<8?(n.consume(s),u+=String.fromCharCode(s),X):A(s)}function en(s){return 93===s?(n.consume(s),o):A(s)}function o(s){return 62===s?(n.consume(s),J):45===s&&2===l?(n.consume(s),o):A(s)}function J(s){return null===s||F(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}function rn(s){return n.exit("htmlFlow"),r(s)}},resolveTo:function Te(n){let r=n.length;for(;r--&&("enter"!==n[r][0]||"htmlFlow"!==n[r][1].type););return r>1&&"linePrefix"===n[r-2][1].type&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n},concrete:!0},ze={tokenize:function Oe(n,r,t){return function e(l){return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),n.attempt(Sn,r,t)}},partial:!0},Ie={tokenize:function Le(n,r,t){const e=this;return function l(u){return F(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i):t(u)};function i(u){return e.parser.lazy[e.now().line]?t(u):r(u)}},partial:!0},nt={tokenize:function _e(n,r,t){const e=this;return function l(u){return null===u?t(u):(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i)};function i(u){return e.parser.lazy[e.now().line]?t(u):r(u)}},partial:!0},tt={name:"codeFenced",tokenize:function De(n,r,t){const e=this,l={tokenize:function M(k,D,N){let V=0;return function U(C){return k.enter("lineEnding"),k.consume(C),k.exit("lineEnding"),H};function H(C){return k.enter("codeFencedFence"),z(C)?O(k,A,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):A(C)}function A(C){return C===a?(k.enter("codeFencedFenceSequence"),S(C)):N(C)}function S(C){return C===a?(V++,k.consume(C),S):V>=u?(k.exit("codeFencedFenceSequence"),z(C)?O(k,w,"whitespace")(C):w(C)):N(C)}function w(C){return null===C||F(C)?(k.exit("codeFencedFence"),D(C)):N(C)}},partial:!0};let a,i=0,u=0;return function m(k){return function p(k){const D=e.events[e.events.length-1];return i=D&&"linePrefix"===D[1].type?D[2].sliceSerialize(D[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),c(k)}(k)};function c(k){return k===a?(u++,n.consume(k),c):u<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,x,"whitespace")(k):x(k))}function x(k){return null===k||F(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(nt,T,P)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return null===k||F(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),x(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):96===k&&k===a?t(k):(n.consume(k),f)}function h(k){return null===k||F(k)?x(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),I(k))}function I(k){return null===k||F(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),x(k)):96===k&&k===a?t(k):(n.consume(k),I)}function T(k){return n.attempt(l,P,_)(k)}function _(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),b}function b(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return null===k||F(k)?n.check(nt,T,P)(k):(n.enter("codeFlowValue"),y(k))}function y(k){return null===k||F(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),y)}function P(k){return n.exit("codeFenced"),r(k)}},concrete:!0},et=document.createElement("i");function Bn(n){const r="&"+n+";";et.innerHTML=r;const t=et.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===n)&&t!==r&&t}const rt={name:"characterReference",tokenize:function Pe(n,r,t){const e=this;let i,u,l=0;return function a(x){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(x),n.exit("characterReferenceMarker"),m};function m(x){return 35===x?(n.enter("characterReferenceMarkerNumeric"),n.consume(x),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),i=31,u=K,c(x))}function p(x){return 88===x||120===x?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(x),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,u=Lt,c):(n.enter("characterReferenceValue"),i=7,u=zn,c(x))}function c(x){if(59===x&&l){const f=n.exit("characterReferenceValue");return u!==K||Bn(e.sliceSerialize(f))?(n.enter("characterReferenceMarker"),n.consume(x),n.exit("characterReferenceMarker"),n.exit("characterReference"),r):t(x)}return u(x)&&l++1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const x=Object.assign({},n[e][1].end),f=Object.assign({},n[t][1].start);lt(x,-m),lt(f,m),u={type:m>1?"strongSequence":"emphasisSequence",start:x,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:f},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},l={type:m>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},u.start),n[t][1].start=Object.assign({},a.end),p=[],n[e][1].end.offset-n[e][1].start.offset&&(p=G(p,[["enter",n[e][1],r],["exit",n[e][1],r]])),p=G(p,[["enter",l,r],["enter",u,r],["exit",u,r],["enter",i,r]]),p=G(p,In(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),p=G(p,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",l,r]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,p=G(p,[["enter",n[t][1],r],["exit",n[t][1],r]])):c=0,nn(n,e-1,t-e+3,p),t=e+p.length-c-2;break}for(t=-1;++t-1){const a=u[0];"string"==typeof a?u[0]=a.slice(e):u.shift()}i>0&&u.push(n[l].slice(0,i))}return u}(u,S)}function _(){const{line:S,column:w,offset:C,_index:R,_bufferIndex:W}=e;return{line:S,column:w,offset:C,_index:R,_bufferIndex:W}}function y(S){m=void 0,f=S,x=x(S)}function N(S,w){w.restore()}function V(S,w){return function C(R,W,X){let en,o,J,rn;return Array.isArray(R)?Y(R):"tokenize"in R?Y([R]):function s(Q){return function dn(un){const mn=null!==un&&Q[un],hn=null!==un&&Q.null;return Y([...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(hn)?hn:hn?[hn]:[]])(un)}}(R);function Y(Q){return en=Q,o=0,0===Q.length?X:fn(Q[o])}function fn(Q){return function dn(un){return rn=function H(){const S=_(),w=c.previous,C=c.currentConstruct,R=c.events.length,W=Array.from(a);return{restore:function X(){e=S,c.previous=w,c.currentConstruct=C,c.events.length=R,a=W,A()},from:R}}(),J=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?kn():Q.tokenize.call(w?Object.assign(Object.create(c),w):c,p,Rn,kn)(un)}}function Rn(Q){return m=!0,S(J,rn),W}function kn(Q){return m=!0,rn.restore(),++o13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535==(65535&t)||65534==(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const Sr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Er(n,r,t){if(r)return r;if(35===t.charCodeAt(0)){const l=t.charCodeAt(1),i=120===l||88===l;return ot(t.slice(i?2:1),i?16:10)}return Bn(t)||n}function En(n){return n&&"object"==typeof n?"position"in n||"type"in n?st(n.position):"start"in n||"end"in n?st(n):"line"in n||"column"in n?_n(n):"":""}function _n(n){return ct(n&&n.line)+":"+ct(n&&n.column)}function st(n){return _n(n&&n.start)+"-"+_n(n&&n.end)}function ct(n){return n&&"number"==typeof n?n:1}const ht={}.hasOwnProperty,pt=function(n,r,t){return"string"!=typeof r&&(t=r,r=void 0),function Cr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(bt),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(gt),blockQuote:a(function mn(){return{type:"blockquote",children:[]}}),characterEscape:H,characterReference:H,codeFenced:a(hn),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:a(hn,m),codeText:a(function Hn(){return{type:"inlineCode",value:""}},m),codeTextData:H,data:H,codeFlowValue:H,definition:a(function Hr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:a(function qr(){return{type:"emphasis",children:[]}}),hardBreakEscape:a(kt),hardBreakTrailing:a(kt),htmlFlow:a(dt,m),htmlFlowData:H,htmlText:a(dt,m),htmlTextData:H,image:a(function Nr(){return{type:"image",title:null,url:"",alt:null}}),label:m,link:a(bt),listItem:a(function Vr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}),listItemValue:function I(g){u("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(g),10),i("expectingFirstListItemValue"))},listOrdered:a(yt,function h(){i("expectingFirstListItemValue",!0)}),listUnordered:a(yt),paragraph:a(function Wr(){return{type:"paragraph",children:[]}}),reference:function fn(){i("referenceType","collapsed")},referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:a(gt),strong:a(function Qr(){return{type:"strong",children:[]}}),thematicBreak:a(function $r(){return{type:"thematicBreak"}})},exit:{atxHeading:c(),atxHeadingSequence:function D(g){const d=this.stack[this.stack.length-1];if(!d.depth){const E=this.sliceSerialize(g).length;d.depth=E}},autolink:c(),autolinkEmail:function un(g){A.call(this,g),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(g)},autolinkProtocol:function dn(g){A.call(this,g),this.stack[this.stack.length-1].url=this.sliceSerialize(g)},blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:kn,characterReferenceMarkerNumeric:kn,characterReferenceValue:function Q(g){const d=this.sliceSerialize(g),E=u("characterReferenceType");let B;E?(B=ot(d,"characterReferenceMarkerNumeric"===E?10:16),i("characterReferenceType")):B=Bn(d);const L=this.stack.pop();L.value+=B,L.position.end=sn(g.end)},codeFenced:c(function j(){const g=this.resume();this.stack[this.stack.length-1].value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}),codeFencedFence:function b(){u("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))},codeFencedFenceInfo:function T(){const g=this.resume();this.stack[this.stack.length-1].lang=g},codeFencedFenceMeta:function _(){const g=this.resume();this.stack[this.stack.length-1].meta=g},codeFlowValue:A,codeIndented:c(function y(){const g=this.resume();this.stack[this.stack.length-1].value=g.replace(/(\r?\n|\r)$/g,"")}),codeText:c(function W(){const g=this.resume();this.stack[this.stack.length-1].value=g}),codeTextData:A,data:A,definition:c(),definitionDestinationString:function k(){const g=this.resume();this.stack[this.stack.length-1].url=g},definitionLabelString:function P(g){const d=this.resume(),E=this.stack[this.stack.length-1];E.label=d,E.identifier=pn(this.sliceSerialize(g)).toLowerCase()},definitionTitleString:function M(){const g=this.resume();this.stack[this.stack.length-1].title=g},emphasis:c(),hardBreakEscape:c(w),hardBreakTrailing:c(w),htmlFlow:c(function C(){const g=this.resume();this.stack[this.stack.length-1].value=g}),htmlFlowData:A,htmlText:c(function R(){const g=this.resume();this.stack[this.stack.length-1].value=g}),htmlTextData:A,image:c(function en(){const g=this.stack[this.stack.length-1];if(u("inReference")){const d=u("referenceType")||"shortcut";g.type+="Reference",g.referenceType=d,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}),label:function J(){const g=this.stack[this.stack.length-1],d=this.resume(),E=this.stack[this.stack.length-1];i("inReference",!0),"link"===E.type?E.children=g.children:E.alt=d},labelText:function o(g){const d=this.sliceSerialize(g),E=this.stack[this.stack.length-2];E.label=function Fr(n){return n.replace(Sr,Er)}(d),E.identifier=pn(d).toLowerCase()},lineEnding:function S(g){const d=this.stack[this.stack.length-1];if(u("atHardBreak"))return d.children[d.children.length-1].position.end=sn(g.end),void i("atHardBreak");!u("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(d.type)&&(H.call(this,g),A.call(this,g))},link:c(function X(){const g=this.stack[this.stack.length-1];if(u("inReference")){const d=u("referenceType")||"shortcut";g.type+="Reference",g.referenceType=d,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function Rn(g){const d=this.resume(),E=this.stack[this.stack.length-1];E.label=d,E.identifier=pn(this.sliceSerialize(g)).toLowerCase(),i("referenceType","full")},resourceDestinationString:function rn(){const g=this.resume();this.stack[this.stack.length-1].url=g},resourceTitleString:function s(){const g=this.resume();this.stack[this.stack.length-1].title=g},resource:function Y(){i("inReference")},setextHeading:c(function U(){i("setextHeadingSlurpLineEnding")}),setextHeadingLineSequence:function V(g){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(g).charCodeAt(0)?1:2},setextHeadingText:function N(){i("setextHeadingSlurpLineEnding",!0)},strong:c(),thematicBreak:c()}};ft(r,(n||{}).mdastExtensions||[]);const t={};return function e(g){let d={type:"root",children:[]};const E={stack:[d],tokenStack:[],config:r,enter:p,exit:x,buffer:m,resume:f,setData:i,getData:u},B=[];let L=-1;for(;++L0){const v=E.tokenStack[E.tokenStack.length-1];(v[1]||mt).call(E,void 0,v[0])}for(d.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L{0!==c&&(l++,e.push([])),p.split(" ").forEach(x=>{x&&e[l].push({content:x,type:a})})}):("strong"===u.type||"emphasis"===u.type)&&u.children.forEach(m=>{i(m,u.type)})}return t.forEach(u=>{"paragraph"===u.type&&u.children.forEach(a=>{i(a)})}),e}function Lr(n,r){const t=function Br(n){return Intl.Segmenter?[...(new Intl.Segmenter).segment(n)].map(r=>r.segment):[...n]}(r.content);return xt(n,[],t,r.type)}function xt(n,r,t,e){if(0===t.length)return[{content:r.join(""),type:e},{content:"",type:e}];const[l,...i]=t,u=[...r,l];return n([{content:u.join(""),type:e}])?xt(n,u,i,e):(0===r.length&&l&&(r.push(l),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function Or(n,r){if(n.some(({content:t})=>t.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return Pn(n,r)}function Pn(n,r,t=[],e=[]){if(0===n.length)return e.length>0&&t.push(e),t.length>0?t:[];let l="";" "===n[0].content&&(l=" ",n.shift());const i=n.shift()??{content:" ",type:"normal"},u=[...e];if(""!==l&&u.push({content:l,type:"normal"}),u.push(i),r(u))return Pn(n,r,t,u);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){const[a,m]=Lr(r,i);t.push([a]),m.content&&n.unshift(m)}return Pn(n,r,t)}function Mn(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Pr(n,r,t){const e=n.append("text"),l=Mn(e,1,r);jn(l,t);const i=l.node().getComputedTextLength();return e.remove(),i}function Mr(n,r,t){var e;const l=n.append("text"),i=Mn(l,1,r);jn(i,[{content:t,type:"normal"}]);const u=null==(e=i.node())?void 0:e.getBoundingClientRect();return u&&l.remove(),u}function jn(n,r){n.text(""),r.forEach((t,e)=>{n.append("tspan").attr("font-style","emphasis"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal").text(0===e?t.content:" "+t.content)})}const Rr=(n,r="",{style:t="",isTitle:e=!1,classes:l="",useHtmlLabels:i=!0,isNode:u=!0,width:a=200,addSvgBackground:m=!1}={})=>{if(Nn.l.info("createText",r,t,e,l,i,u,m),i){const p=function Tr(n){const{children:r}=pt(n);return r.map(function t(e){return"text"===e.type?e.value.replace(/\n/g,"
"):"strong"===e.type?`${e.children.map(t).join("")}`:"emphasis"===e.type?`${e.children.map(t).join("")}`:"paragraph"===e.type?`

${e.children.map(t).join("")}

`:`Unsupported markdown: ${e.type}`}).join("")}(r);return function _r(n,r,t,e,l=!1){const i=n.append("foreignObject"),u=i.append("xhtml:div");u.html(`\n "+r.label+""),function Dr(n,r){r&&n.attr("style",r)}(u,r.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("max-width",t+"px"),u.attr("xmlns","http://www.w3.org/1999/xhtml"),l&&u.attr("class","labelBkg");let p=u.node().getBoundingClientRect();return p.width===t&&(u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",t+"px"),p=u.node().getBoundingClientRect()),i.style("width",p.width),i.style("height",p.height),i.node()}(n,{isNode:u,label:(0,Nn.M)(p).replace(/fa[blrs]?:fa-[\w-]+/g,f=>``),labelStyle:t.replace("fill:","color:")},a,l,m)}return function jr(n,r,t,e=!1){const i=r.append("g"),u=i.insert("rect").attr("class","background"),a=i.append("text").attr("y","-10.1");let m=0;for(const p of t){const c=f=>Pr(i,1.1,f)<=n,x=c(p)?[p]:Or(p,c);for(const f of x)jn(Mn(a,m,1.1),f),m++}if(e){const p=a.node().getBBox(),c=2;return u.attr("x",-c).attr("y",-c).attr("width",p.width+2*c).attr("height",p.height+2*c),i.node()}return a.node()}(a,n,Ir(r),m)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[552],{4118:(Zr,St,xn)=>{xn.d(St,{a:()=>Rr,c:()=>Mr});var Cn={};xn.r(Cn),xn.d(Cn,{attentionMarkers:()=>gr,contentInitial:()=>cr,disable:()=>kr,document:()=>sr,flow:()=>pr,flowInitial:()=>hr,insideSpan:()=>xr,string:()=>fr,text:()=>mr});var Nn=xn(8080);const Ft={};function Vn(n,r,t){if(function Ct(n){return Boolean(n&&"object"==typeof n)}(n)){if("value"in n)return"html"!==n.type||t?n.value:"";if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Wn(n.children,r,t)}return Array.isArray(n)?Wn(n,r,t):""}function Wn(n,r,t){const e=[];let l=-1;for(;++ll?0:l+r:r>l?l:r,t=t>0?t:0,e.length<1e4)u=Array.from(e),u.unshift(r,t),n.splice(...u);else for(t&&n.splice(r,t);i0?(nn(n,n.length,0,r),n):r}const wn={}.hasOwnProperty;function At(n,r){let t;for(t in r){const l=(wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let u;if(i)for(u in i){wn.call(l,u)||(l[u]=[]);const a=i[u];zt(l[u],Array.isArray(a)?a:a?[a]:[])}}}function zt(n,r){let t=-1;const e=[];for(;++tu))return;const D=r.events.length;let V,U,N=D;for(;N--;)if("exit"===r.events[N][0]&&"chunkFlow"===r.events[N][1].type){if(V){U=r.events[N][1].end;break}V=!0}for(b(e),k=D;ky;){const M=t[P];r.containerState=M[1],M[0].exit.call(r,n)}t.length=y}function j(){l.write([null]),i=void 0,l=void 0,r.containerState._closeFlow=void 0}}},Qn={tokenize:function Ht(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},Sn={tokenize:function qt(n,r,t){return function e(i){return z(i)?O(n,l,"linePrefix")(i):l(i)};function l(i){return null===i||F(i)?r(i):t(i)}},partial:!0};function Un(n){const r={};let e,l,i,u,a,m,p,t=-1;for(;++t=4?r(u):n.interrupt(e.parser.constructs.flow,t,r)(u)}},partial:!0},Zt={tokenize:function Yt(n){const r=this,t=n.attempt(Sn,function e(i){if(null!==i)return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t;n.consume(i)},n.attempt(this.parser.constructs.flowInitial,l,O(n,n.attempt(this.parser.constructs.flow,l,n.attempt(Vt,l)),"linePrefix")));return t;function l(i){if(null!==i)return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t;n.consume(i)}}},Gt={resolveAll:Zn()},Jt=$n("string"),Kt=$n("text");function $n(n){return{tokenize:function r(t){const e=this,l=this.parser.constructs[n],i=t.attempt(l,u,a);return u;function u(c){return p(c)?i(c):a(c)}function a(c){if(null!==c)return t.enter("data"),t.consume(c),m;t.consume(c)}function m(c){return p(c)?(t.exit("data"),i(c)):(t.consume(c),m)}function p(c){if(null===c)return!0;const x=l[c];let f=-1;if(x)for(;++f=3&&(null===p||F(p))?(n.exit("thematicBreak"),r(p)):t(p)}function m(p){return p===l?(n.consume(p),e++,m):(n.exit("thematicBreakSequence"),z(p)?O(n,a,"whitespace")(p):a(p))}}},Z={name:"list",tokenize:function ue(n,r,t){const e=this,l=e.events[e.events.length-1];let i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,u=0;return function a(h){const I=e.containerState.type||(42===h||43===h||45===h?"listUnordered":"listOrdered");if("listUnordered"===I?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=I,n.enter(I,{_container:!0})),"listUnordered"===I)return n.enter("listItemPrefix"),42===h||45===h?n.check(Fn,t,p)(h):p(h);if(!e.interrupt||49===h)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)};function m(h){return zn(h)&&++u<10?(n.consume(h),m):(!e.interrupt||u<2)&&(e.containerState.marker?h===e.containerState.marker:41===h||46===h)?(n.exit("listItemValue"),p(h)):t(h)}function p(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:c,n.attempt(re,f,x))}function c(h){return e.containerState.initialBlankLine=!0,i++,f(h)}function x(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),f):t(h)}function f(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}},continuation:{tokenize:function le(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,function l(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)},function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,u(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(ie,r,u)(a))});function u(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt(Z,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function oe(n){n.exit(this.containerState.type)}},re={tokenize:function se(n,r,t){const e=this;return O(n,function l(i){const u=e.events[e.events.length-1];return!z(i)&&u&&"listItemPrefixWhitespace"===u[1].type?r(i):t(i)},"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ie={tokenize:function ae(n,r,t){const e=this;return O(n,function l(i){const u=e.events[e.events.length-1];return u&&"listItemIndent"===u[1].type&&u[2].sliceSerialize(u[1],!0).length===e.containerState.size?r(i):t(i)},"listItemIndent",e.containerState.size+1)},partial:!0},Yn={name:"blockQuote",tokenize:function ce(n,r,t){const e=this;return function l(u){if(62===u){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(u),n.exit("blockQuoteMarker"),i}return t(u)};function i(u){return z(u)?(n.enter("blockQuotePrefixWhitespace"),n.consume(u),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(u))}},continuation:{tokenize:function he(n,r,t){const e=this;return function l(u){return z(u)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):i(u)};function i(u){return n.attempt(Yn,r,t)(u)}}},exit:function pe(n){n.exit("blockQuote")}};function Gn(n,r,t,e,l,i,u,a,m){const p=m||Number.POSITIVE_INFINITY;let c=0;return function x(b){return 60===b?(n.enter(e),n.enter(l),n.enter(i),n.consume(b),n.exit(i),f):null===b||32===b||41===b||An(b)?t(b):(n.enter(e),n.enter(u),n.enter(a),n.enter("chunkString",{contentType:"string"}),T(b))};function f(b){return 62===b?(n.enter(i),n.consume(b),n.exit(i),n.exit(l),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return 62===b?(n.exit("chunkString"),n.exit(a),f(b)):null===b||60===b||F(b)?t(b):(n.consume(b),92===b?I:h)}function I(b){return 60===b||62===b||92===b?(n.consume(b),h):h(b)}function T(b){return c||null!==b&&41!==b&&!$(b)?c999||null===h||91===h||93===h&&!m||94===h&&!a&&"_hiddenFootnoteSupport"in u.parser.constructs?t(h):93===h?(n.exit(i),n.enter(l),n.consume(h),n.exit(l),n.exit(e),r):F(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),x(h))}function x(h){return null===h||91===h||93===h||F(h)||a++>999?(n.exit("chunkString"),c(h)):(n.consume(h),m||(m=!z(h)),92===h?f:x)}function f(h){return 91===h||92===h||93===h?(n.consume(h),a++,x):x(h)}}function Kn(n,r,t,e,l,i){let u;return function a(f){return 34===f||39===f||40===f?(n.enter(e),n.enter(l),n.consume(f),n.exit(l),u=40===f?41:f,m):t(f)};function m(f){return f===u?(n.enter(l),n.consume(f),n.exit(l),n.exit(e),r):(n.enter(i),p(f))}function p(f){return f===u?(n.exit(i),m(u)):null===f?t(f):F(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),O(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===u||null===f||F(f)?(n.exit("chunkString"),p(f)):(n.consume(f),92===f?x:c)}function x(f){return f===u||92===f?(n.consume(f),c):c(f)}}function gn(n,r){let t;return function e(l){return F(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),t=!0,e):z(l)?O(n,e,t?"linePrefix":"lineSuffix")(l):r(l)}}function pn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fe={name:"definition",tokenize:function xe(n,r,t){const e=this;let l;return function i(h){return n.enter("definition"),function u(h){return Jn.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}(h)};function a(h){return l=pn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),58===h?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),m):t(h)}function m(h){return $(h)?gn(n,p)(h):p(h)}function p(h){return Gn(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return n.attempt(me,x,x)(h)}function x(h){return z(h)?O(n,f,"whitespace")(h):f(h)}function f(h){return null===h||F(h)?(n.exit("definition"),e.parser.defined.push(l),r(h)):t(h)}}},me={tokenize:function ge(n,r,t){return function e(a){return $(a)?gn(n,l)(a):t(a)};function l(a){return Kn(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,u,"whitespace")(a):u(a)}function u(a){return null===a||F(a)?r(a):t(a)}},partial:!0},Tn={name:"codeIndented",tokenize:function de(n,r,t){const e=this;return function l(p){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(p)};function i(p){const c=e.events[e.events.length-1];return c&&"linePrefix"===c[1].type&&c[2].sliceSerialize(c[1],!0).length>=4?u(p):t(p)}function u(p){return null===p?m(p):F(p)?n.attempt(ke,u,m)(p):(n.enter("codeFlowValue"),a(p))}function a(p){return null===p||F(p)?(n.exit("codeFlowValue"),u(p)):(n.consume(p),a)}function m(p){return n.exit("codeIndented"),r(p)}}},ke={tokenize:function be(n,r,t){const e=this;return l;function l(u){return e.parser.lazy[e.now().line]?t(u):F(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),l):O(n,i,"linePrefix",5)(u)}function i(u){const a=e.events[e.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(u):F(u)?l(u):t(u)}},partial:!0},ye={name:"headingAtx",tokenize:function Fe(n,r,t){let e=0;return function l(c){return n.enter("atxHeading"),function i(c){return n.enter("atxHeadingSequence"),u(c)}(c)};function u(c){return 35===c&&e++<6?(n.consume(c),u):null===c||$(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return 35===c?(n.enter("atxHeadingSequence"),m(c)):null===c||F(c)?(n.exit("atxHeading"),r(c)):z(c)?O(n,a,"whitespace")(c):(n.enter("atxHeadingText"),p(c))}function m(c){return 35===c?(n.consume(c),m):(n.exit("atxHeadingSequence"),a(c))}function p(c){return null===c||35===c||$(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),p)}},resolve:function Se(n,r){let l,i,t=n.length-2,e=3;return"whitespace"===n[e][1].type&&(e+=2),t-2>e&&"whitespace"===n[t][1].type&&(t-=2),"atxHeadingSequence"===n[t][1].type&&(e===t-1||t-4>e&&"whitespace"===n[t-2][1].type)&&(t-=e+1===t?2:4),t>e&&(l={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},nn(n,e,t-e+1,[["enter",l,r],["enter",i,r],["exit",i,r],["exit",l,r]])),n}},Xn={name:"setextUnderline",tokenize:function Ce(n,r,t){const e=this;let l;return function i(p){let x,c=e.events.length;for(;c--;)if("lineEnding"!==e.events[c][1].type&&"linePrefix"!==e.events[c][1].type&&"content"!==e.events[c][1].type){x="paragraph"===e.events[c][1].type;break}return e.parser.lazy[e.now().line]||!e.interrupt&&!x?t(p):(n.enter("setextHeadingLine"),l=p,function u(p){return n.enter("setextHeadingLineSequence"),a(p)}(p))};function a(p){return p===l?(n.consume(p),a):(n.exit("setextHeadingLineSequence"),z(p)?O(n,m,"lineSuffix")(p):m(p))}function m(p){return null===p||F(p)?(n.exit("setextHeadingLine"),r(p)):t(p)}},resolveTo:function Ee(n,r){let e,l,i,t=n.length;for(;t--;)if("enter"===n[t][0]){if("content"===n[t][1].type){e=t;break}"paragraph"===n[t][1].type&&(l=t)}else"content"===n[t][1].type&&n.splice(t,1),!i&&"definition"===n[t][1].type&&(i=t);const u={type:"setextHeading",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[l][1].type="setextHeadingText",i?(n.splice(l,0,["enter",u,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=u,n.push(["exit",u,r]),n}},we=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vn=["pre","script","style","textarea"],Ae={name:"htmlFlow",tokenize:function Be(n,r,t){const e=this;let l,i,u,a,m;return function p(s){return function c(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),x}(s)};function x(s){return 33===s?(n.consume(s),f):47===s?(n.consume(s),i=!0,T):63===s?(n.consume(s),l=3,e.interrupt?r:o):tn(s)?(n.consume(s),u=String.fromCharCode(s),_):t(s)}function f(s){return 45===s?(n.consume(s),l=2,h):91===s?(n.consume(s),l=5,a=0,I):tn(s)?(n.consume(s),l=4,e.interrupt?r:o):t(s)}function h(s){return 45===s?(n.consume(s),e.interrupt?r:o):t(s)}function I(s){const Y="CDATA[";return s===Y.charCodeAt(a++)?(n.consume(s),a===Y.length?e.interrupt?r:A:I):t(s)}function T(s){return tn(s)?(n.consume(s),u=String.fromCharCode(s),_):t(s)}function _(s){if(null===s||47===s||62===s||$(s)){const Y=47===s,fn=u.toLowerCase();return Y||i||!vn.includes(fn)?we.includes(u.toLowerCase())?(l=6,Y?(n.consume(s),b):e.interrupt?r(s):A(s)):(l=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):y(s)):(l=1,e.interrupt?r(s):A(s))}return 45===s||K(s)?(n.consume(s),u+=String.fromCharCode(s),_):t(s)}function b(s){return 62===s?(n.consume(s),e.interrupt?r:A):t(s)}function j(s){return z(s)?(n.consume(s),j):U(s)}function y(s){return 47===s?(n.consume(s),U):58===s||95===s||tn(s)?(n.consume(s),P):z(s)?(n.consume(s),y):U(s)}function P(s){return 45===s||46===s||58===s||95===s||K(s)?(n.consume(s),P):M(s)}function M(s){return 61===s?(n.consume(s),k):z(s)?(n.consume(s),M):y(s)}function k(s){return null===s||60===s||61===s||62===s||96===s?t(s):34===s||39===s?(n.consume(s),m=s,D):z(s)?(n.consume(s),k):N(s)}function D(s){return s===m?(n.consume(s),m=null,V):null===s||F(s)?t(s):(n.consume(s),D)}function N(s){return null===s||34===s||39===s||47===s||60===s||61===s||62===s||96===s||$(s)?M(s):(n.consume(s),N)}function V(s){return 47===s||62===s||z(s)?y(s):t(s)}function U(s){return 62===s?(n.consume(s),H):t(s)}function H(s){return null===s||F(s)?A(s):z(s)?(n.consume(s),H):t(s)}function A(s){return 45===s&&2===l?(n.consume(s),R):60===s&&1===l?(n.consume(s),W):62===s&&4===l?(n.consume(s),J):63===s&&3===l?(n.consume(s),o):93===s&&5===l?(n.consume(s),en):!F(s)||6!==l&&7!==l?null===s||F(s)?(n.exit("htmlFlowData"),S(s)):(n.consume(s),A):(n.exit("htmlFlowData"),n.check(ze,rn,S)(s))}function S(s){return n.check(Ie,w,rn)(s)}function w(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),C}function C(s){return null===s||F(s)?S(s):(n.enter("htmlFlowData"),A(s))}function R(s){return 45===s?(n.consume(s),o):A(s)}function W(s){return 47===s?(n.consume(s),u="",X):A(s)}function X(s){if(62===s){const Y=u.toLowerCase();return vn.includes(Y)?(n.consume(s),J):A(s)}return tn(s)&&u.length<8?(n.consume(s),u+=String.fromCharCode(s),X):A(s)}function en(s){return 93===s?(n.consume(s),o):A(s)}function o(s){return 62===s?(n.consume(s),J):45===s&&2===l?(n.consume(s),o):A(s)}function J(s){return null===s||F(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}function rn(s){return n.exit("htmlFlow"),r(s)}},resolveTo:function Te(n){let r=n.length;for(;r--&&("enter"!==n[r][0]||"htmlFlow"!==n[r][1].type););return r>1&&"linePrefix"===n[r-2][1].type&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n},concrete:!0},ze={tokenize:function Oe(n,r,t){return function e(l){return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),n.attempt(Sn,r,t)}},partial:!0},Ie={tokenize:function Le(n,r,t){const e=this;return function l(u){return F(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i):t(u)};function i(u){return e.parser.lazy[e.now().line]?t(u):r(u)}},partial:!0},nt={tokenize:function _e(n,r,t){const e=this;return function l(u){return null===u?t(u):(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i)};function i(u){return e.parser.lazy[e.now().line]?t(u):r(u)}},partial:!0},tt={name:"codeFenced",tokenize:function De(n,r,t){const e=this,l={tokenize:function M(k,D,N){let V=0;return function U(C){return k.enter("lineEnding"),k.consume(C),k.exit("lineEnding"),H};function H(C){return k.enter("codeFencedFence"),z(C)?O(k,A,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):A(C)}function A(C){return C===a?(k.enter("codeFencedFenceSequence"),S(C)):N(C)}function S(C){return C===a?(V++,k.consume(C),S):V>=u?(k.exit("codeFencedFenceSequence"),z(C)?O(k,w,"whitespace")(C):w(C)):N(C)}function w(C){return null===C||F(C)?(k.exit("codeFencedFence"),D(C)):N(C)}},partial:!0};let a,i=0,u=0;return function m(k){return function p(k){const D=e.events[e.events.length-1];return i=D&&"linePrefix"===D[1].type?D[2].sliceSerialize(D[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),c(k)}(k)};function c(k){return k===a?(u++,n.consume(k),c):u<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,x,"whitespace")(k):x(k))}function x(k){return null===k||F(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(nt,T,P)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return null===k||F(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),x(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):96===k&&k===a?t(k):(n.consume(k),f)}function h(k){return null===k||F(k)?x(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),I(k))}function I(k){return null===k||F(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),x(k)):96===k&&k===a?t(k):(n.consume(k),I)}function T(k){return n.attempt(l,P,_)(k)}function _(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),b}function b(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return null===k||F(k)?n.check(nt,T,P)(k):(n.enter("codeFlowValue"),y(k))}function y(k){return null===k||F(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),y)}function P(k){return n.exit("codeFenced"),r(k)}},concrete:!0},et=document.createElement("i");function Bn(n){const r="&"+n+";";et.innerHTML=r;const t=et.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===n)&&t!==r&&t}const rt={name:"characterReference",tokenize:function Pe(n,r,t){const e=this;let i,u,l=0;return function a(x){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(x),n.exit("characterReferenceMarker"),m};function m(x){return 35===x?(n.enter("characterReferenceMarkerNumeric"),n.consume(x),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),i=31,u=K,c(x))}function p(x){return 88===x||120===x?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(x),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,u=Lt,c):(n.enter("characterReferenceValue"),i=7,u=zn,c(x))}function c(x){if(59===x&&l){const f=n.exit("characterReferenceValue");return u!==K||Bn(e.sliceSerialize(f))?(n.enter("characterReferenceMarker"),n.consume(x),n.exit("characterReferenceMarker"),n.exit("characterReference"),r):t(x)}return u(x)&&l++1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const x=Object.assign({},n[e][1].end),f=Object.assign({},n[t][1].start);lt(x,-m),lt(f,m),u={type:m>1?"strongSequence":"emphasisSequence",start:x,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:f},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},l={type:m>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},u.start),n[t][1].start=Object.assign({},a.end),p=[],n[e][1].end.offset-n[e][1].start.offset&&(p=G(p,[["enter",n[e][1],r],["exit",n[e][1],r]])),p=G(p,[["enter",l,r],["enter",u,r],["exit",u,r],["enter",i,r]]),p=G(p,In(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),p=G(p,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",l,r]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,p=G(p,[["enter",n[t][1],r],["exit",n[t][1],r]])):c=0,nn(n,e-1,t-e+3,p),t=e+p.length-c-2;break}for(t=-1;++t-1){const a=u[0];"string"==typeof a?u[0]=a.slice(e):u.shift()}i>0&&u.push(n[l].slice(0,i))}return u}(u,S)}function _(){const{line:S,column:w,offset:C,_index:R,_bufferIndex:W}=e;return{line:S,column:w,offset:C,_index:R,_bufferIndex:W}}function y(S){m=void 0,f=S,x=x(S)}function N(S,w){w.restore()}function V(S,w){return function C(R,W,X){let en,o,J,rn;return Array.isArray(R)?Y(R):"tokenize"in R?Y([R]):function s(Q){return function dn(un){const mn=null!==un&&Q[un],hn=null!==un&&Q.null;return Y([...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(hn)?hn:hn?[hn]:[]])(un)}}(R);function Y(Q){return en=Q,o=0,0===Q.length?X:fn(Q[o])}function fn(Q){return function dn(un){return rn=function H(){const S=_(),w=c.previous,C=c.currentConstruct,R=c.events.length,W=Array.from(a);return{restore:function X(){e=S,c.previous=w,c.currentConstruct=C,c.events.length=R,a=W,A()},from:R}}(),J=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?kn():Q.tokenize.call(w?Object.assign(Object.create(c),w):c,p,Rn,kn)(un)}}function Rn(Q){return m=!0,S(J,rn),W}function kn(Q){return m=!0,rn.restore(),++o13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535==(65535&t)||65534==(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const Sr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Er(n,r,t){if(r)return r;if(35===t.charCodeAt(0)){const l=t.charCodeAt(1),i=120===l||88===l;return ot(t.slice(i?2:1),i?16:10)}return Bn(t)||n}function En(n){return n&&"object"==typeof n?"position"in n||"type"in n?st(n.position):"start"in n||"end"in n?st(n):"line"in n||"column"in n?_n(n):"":""}function _n(n){return ct(n&&n.line)+":"+ct(n&&n.column)}function st(n){return _n(n&&n.start)+"-"+_n(n&&n.end)}function ct(n){return n&&"number"==typeof n?n:1}const ht={}.hasOwnProperty,pt=function(n,r,t){return"string"!=typeof r&&(t=r,r=void 0),function Cr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(bt),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(gt),blockQuote:a(function mn(){return{type:"blockquote",children:[]}}),characterEscape:H,characterReference:H,codeFenced:a(hn),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:a(hn,m),codeText:a(function Hn(){return{type:"inlineCode",value:""}},m),codeTextData:H,data:H,codeFlowValue:H,definition:a(function Hr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:a(function qr(){return{type:"emphasis",children:[]}}),hardBreakEscape:a(kt),hardBreakTrailing:a(kt),htmlFlow:a(dt,m),htmlFlowData:H,htmlText:a(dt,m),htmlTextData:H,image:a(function Nr(){return{type:"image",title:null,url:"",alt:null}}),label:m,link:a(bt),listItem:a(function Vr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}),listItemValue:function I(g){u("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(g),10),i("expectingFirstListItemValue"))},listOrdered:a(yt,function h(){i("expectingFirstListItemValue",!0)}),listUnordered:a(yt),paragraph:a(function Wr(){return{type:"paragraph",children:[]}}),reference:function fn(){i("referenceType","collapsed")},referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:a(gt),strong:a(function Qr(){return{type:"strong",children:[]}}),thematicBreak:a(function $r(){return{type:"thematicBreak"}})},exit:{atxHeading:c(),atxHeadingSequence:function D(g){const d=this.stack[this.stack.length-1];if(!d.depth){const E=this.sliceSerialize(g).length;d.depth=E}},autolink:c(),autolinkEmail:function un(g){A.call(this,g),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(g)},autolinkProtocol:function dn(g){A.call(this,g),this.stack[this.stack.length-1].url=this.sliceSerialize(g)},blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:kn,characterReferenceMarkerNumeric:kn,characterReferenceValue:function Q(g){const d=this.sliceSerialize(g),E=u("characterReferenceType");let B;E?(B=ot(d,"characterReferenceMarkerNumeric"===E?10:16),i("characterReferenceType")):B=Bn(d);const L=this.stack.pop();L.value+=B,L.position.end=sn(g.end)},codeFenced:c(function j(){const g=this.resume();this.stack[this.stack.length-1].value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}),codeFencedFence:function b(){u("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))},codeFencedFenceInfo:function T(){const g=this.resume();this.stack[this.stack.length-1].lang=g},codeFencedFenceMeta:function _(){const g=this.resume();this.stack[this.stack.length-1].meta=g},codeFlowValue:A,codeIndented:c(function y(){const g=this.resume();this.stack[this.stack.length-1].value=g.replace(/(\r?\n|\r)$/g,"")}),codeText:c(function W(){const g=this.resume();this.stack[this.stack.length-1].value=g}),codeTextData:A,data:A,definition:c(),definitionDestinationString:function k(){const g=this.resume();this.stack[this.stack.length-1].url=g},definitionLabelString:function P(g){const d=this.resume(),E=this.stack[this.stack.length-1];E.label=d,E.identifier=pn(this.sliceSerialize(g)).toLowerCase()},definitionTitleString:function M(){const g=this.resume();this.stack[this.stack.length-1].title=g},emphasis:c(),hardBreakEscape:c(w),hardBreakTrailing:c(w),htmlFlow:c(function C(){const g=this.resume();this.stack[this.stack.length-1].value=g}),htmlFlowData:A,htmlText:c(function R(){const g=this.resume();this.stack[this.stack.length-1].value=g}),htmlTextData:A,image:c(function en(){const g=this.stack[this.stack.length-1];if(u("inReference")){const d=u("referenceType")||"shortcut";g.type+="Reference",g.referenceType=d,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}),label:function J(){const g=this.stack[this.stack.length-1],d=this.resume(),E=this.stack[this.stack.length-1];i("inReference",!0),"link"===E.type?E.children=g.children:E.alt=d},labelText:function o(g){const d=this.sliceSerialize(g),E=this.stack[this.stack.length-2];E.label=function Fr(n){return n.replace(Sr,Er)}(d),E.identifier=pn(d).toLowerCase()},lineEnding:function S(g){const d=this.stack[this.stack.length-1];if(u("atHardBreak"))return d.children[d.children.length-1].position.end=sn(g.end),void i("atHardBreak");!u("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(d.type)&&(H.call(this,g),A.call(this,g))},link:c(function X(){const g=this.stack[this.stack.length-1];if(u("inReference")){const d=u("referenceType")||"shortcut";g.type+="Reference",g.referenceType=d,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function Rn(g){const d=this.resume(),E=this.stack[this.stack.length-1];E.label=d,E.identifier=pn(this.sliceSerialize(g)).toLowerCase(),i("referenceType","full")},resourceDestinationString:function rn(){const g=this.resume();this.stack[this.stack.length-1].url=g},resourceTitleString:function s(){const g=this.resume();this.stack[this.stack.length-1].title=g},resource:function Y(){i("inReference")},setextHeading:c(function U(){i("setextHeadingSlurpLineEnding")}),setextHeadingLineSequence:function V(g){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(g).charCodeAt(0)?1:2},setextHeadingText:function N(){i("setextHeadingSlurpLineEnding",!0)},strong:c(),thematicBreak:c()}};ft(r,(n||{}).mdastExtensions||[]);const t={};return function e(g){let d={type:"root",children:[]};const E={stack:[d],tokenStack:[],config:r,enter:p,exit:x,buffer:m,resume:f,setData:i,getData:u},B=[];let L=-1;for(;++L0){const v=E.tokenStack[E.tokenStack.length-1];(v[1]||mt).call(E,void 0,v[0])}for(d.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L{0!==c&&(l++,e.push([])),p.split(" ").forEach(x=>{x&&e[l].push({content:x,type:a})})}):("strong"===u.type||"emphasis"===u.type)&&u.children.forEach(m=>{i(m,u.type)})}return t.forEach(u=>{"paragraph"===u.type&&u.children.forEach(a=>{i(a)})}),e}function Lr(n,r){const t=function Br(n){return Intl.Segmenter?[...(new Intl.Segmenter).segment(n)].map(r=>r.segment):[...n]}(r.content);return xt(n,[],t,r.type)}function xt(n,r,t,e){if(0===t.length)return[{content:r.join(""),type:e},{content:"",type:e}];const[l,...i]=t,u=[...r,l];return n([{content:u.join(""),type:e}])?xt(n,u,i,e):(0===r.length&&l&&(r.push(l),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function Or(n,r){if(n.some(({content:t})=>t.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return Pn(n,r)}function Pn(n,r,t=[],e=[]){if(0===n.length)return e.length>0&&t.push(e),t.length>0?t:[];let l="";" "===n[0].content&&(l=" ",n.shift());const i=n.shift()??{content:" ",type:"normal"},u=[...e];if(""!==l&&u.push({content:l,type:"normal"}),u.push(i),r(u))return Pn(n,r,t,u);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){const[a,m]=Lr(r,i);t.push([a]),m.content&&n.unshift(m)}return Pn(n,r,t)}function Mn(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Pr(n,r,t){const e=n.append("text"),l=Mn(e,1,r);jn(l,t);const i=l.node().getComputedTextLength();return e.remove(),i}function Mr(n,r,t){var e;const l=n.append("text"),i=Mn(l,1,r);jn(i,[{content:t,type:"normal"}]);const u=null==(e=i.node())?void 0:e.getBoundingClientRect();return u&&l.remove(),u}function jn(n,r){n.text(""),r.forEach((t,e)=>{n.append("tspan").attr("font-style","emphasis"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal").text(0===e?t.content:" "+t.content)})}const Rr=(n,r="",{style:t="",isTitle:e=!1,classes:l="",useHtmlLabels:i=!0,isNode:u=!0,width:a=200,addSvgBackground:m=!1}={})=>{if(Nn.l.info("createText",r,t,e,l,i,u,m),i){const p=function Tr(n){const{children:r}=pt(n);return r.map(function t(e){return"text"===e.type?e.value.replace(/\n/g,"
"):"strong"===e.type?`${e.children.map(t).join("")}`:"emphasis"===e.type?`${e.children.map(t).join("")}`:"paragraph"===e.type?`

${e.children.map(t).join("")}

`:`Unsupported markdown: ${e.type}`}).join("")}(r);return function _r(n,r,t,e,l=!1){const i=n.append("foreignObject"),u=i.append("xhtml:div");u.html(`\n "+r.label+""),function Dr(n,r){r&&n.attr("style",r)}(u,r.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("max-width",t+"px"),u.attr("xmlns","http://www.w3.org/1999/xhtml"),l&&u.attr("class","labelBkg");let p=u.node().getBoundingClientRect();return p.width===t&&(u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",t+"px"),p=u.node().getBoundingClientRect()),i.style("width",p.width),i.style("height",p.height),i.node()}(n,{isNode:u,label:(0,Nn.M)(p).replace(/fa[blrs]?:fa-[\w-]+/g,f=>``),labelStyle:t.replace("fill:","color:")},a,l,m)}return function jr(n,r,t,e=!1){const i=r.append("g"),u=i.insert("rect").attr("class","background"),a=i.append("text").attr("y","-10.1");let m=0;for(const p of t){const c=f=>Pr(i,1.1,f)<=n,x=c(p)?[p]:Or(p,c);for(const f of x)jn(Mn(a,m,1.1),f),m++}if(e){const p=a.node().getBBox(),c=2;return u.attr("x",-c).attr("y",-c).attr("width",p.width+2*c).attr("height",p.height+2*c),i.node()}return a.node()}(a,n,Ir(r),m)}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/609.32c373e0fbdc4f95.js b/pkg/apiserver-impl/ui/567.dcca9e7b48f5dfdf.js similarity index 99% rename from pkg/apiserver-impl/ui/609.32c373e0fbdc4f95.js rename to pkg/apiserver-impl/ui/567.dcca9e7b48f5dfdf.js index 1596df0729..9d257af54b 100644 --- a/pkg/apiserver-impl/ui/609.32c373e0fbdc4f95.js +++ b/pkg/apiserver-impl/ui/567.dcca9e7b48f5dfdf.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[609],{2609:(Wt,D,I)=>{I.r(D),I.d(D,{diagram:()=>Ht});var v=I(9037),R=I(8586),gt=I(5847),mt=I(1223),xt=I(8674),J=(I(1764),I(6780),I(2735),function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,P){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:case 6:case 7:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x]}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(!r.recoverable){var c=new Error(i);throw c.hash=r,c}this.trace(i)},parse:function(i){var c=[0],d=[],u=[null],o=[],P=this.table,x="",M=0,V=0,U=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(E.yy[w]=this.yy[w]);k.setInput(i,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var T=k.yylloc;o.push(T);var N,O=k.options&&k.options.ranges;this.parseError="function"==typeof E.yy.parseError?E.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,A,S,X,Z,L,G,F={};;){if(this.defaultActions[A=c[c.length-1]]?S=this.defaultActions[A]:((null===b||typeof b>"u")&&(N=void 0,"number"!=typeof(N=d.pop()||k.lex()||1)&&(N instanceof Array&&(N=(d=N).pop()),N=this.symbols_[N]||N),b=N),S=P[A]&&P[A][b]),typeof S>"u"||!S.length||!S[0]){var q;for(Z in G=[],P[A])this.terminals_[Z]&&Z>2&&G.push("'"+this.terminals_[Z]+"'");q=k.showPosition?"Parse error on line "+(M+1)+":\n"+k.showPosition()+"\nExpecting "+G.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(M+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(q,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:T,expected:G})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),o.push(k.yylloc),c.push(S[1]),b=null,V=k.yyleng,x=k.yytext,M=k.yylineno,T=k.yylloc;break;case 2:if(F.$=u[u.length-(L=this.productions_[S[1]][1])],F._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},O&&(F._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),typeof(X=this.performAction.apply(F,[x,V,M,E.yy,S[1],u,o].concat(U)))<"u")return X;L&&(c=c.slice(0,-1*L*2),u=u.slice(0,-1*L),o=o.slice(0,-1*L)),c.push(this.productions_[S[1]][0]),u.push(F.$),o.push(F._$),c.push(P[c[c.length-2]][c[c.length-1]]);break;case 3:return!0}}return!0}};function m(){this.yy={}}return f.lexer={EOF:1,parseError:function(r,c){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,c)},setInput:function(i,r){return this.yy=r||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},input:function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.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),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=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 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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+"\n"+r+"^"},test_match:function(i,r){var c,d,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),(d=i[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in u)this[o]=u[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var i,r,c,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),o=0;or[0].length)){if(r=c,d=o,this.options.backtrack_lexer){if(!1!==(i=this.test_match(c,u[o])))return i;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(i=this.test_match(r,u[d]))&&i:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){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 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/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;]+)/i,/^(?:[^#:\n;]+)/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],inclusive:!0}}},m.prototype=f,f.Parser=m,new m}());J.parser=J;const _t=J;let H="",tt=0;const Q=[],j=[],W=[],et=()=>v.L,nt=function(){Q.length=0,j.length=0,H="",W.length=0,(0,v.v)()},st=function(n){H=n,Q.push(n)},it=function(){return Q},rt=function(){let n=ct(),e=0;for(;!n&&e<100;)n=ct(),e++;return j.push(...W),j},at=function(n,t,e){const a={id:tt++,section:H,type:H,task:n,score:t||0,events:e?[e]:[]};W.push(a)},lt=function(n){W.find(e=>e.id===tt-1).events.push(n)},ot=function(n){j.push({section:H,type:H,description:n,task:n,classes:[]})},ct=function(){const n=function(e){return W[e].processed};let t=!0;for(const[e,a]of W.entries())n(e),t=t&&a.processed;return t},bt=Object.freeze(Object.defineProperty({__proto__:null,addEvent:lt,addSection:st,addTask:at,addTaskOrg:ot,clear:nt,default:{clear:nt,getCommonDb:et,addSection:st,getSections:it,getTasks:rt,addTask:at,addTaskOrg:ot,addEvent:lt},getCommonDb:et,getSections:it,getTasks:rt},Symbol.toStringTag,{value:"Module"}));function pt(n,t){n.each(function(){var s,e=(0,R.Ys)(this),a=e.text().split(/(\s+|
)/).reverse(),h=[],p=e.attr("y"),y=parseFloat(e.attr("dy")),f=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let _=0;_t||"
"===s)&&(h.pop(),f.text(h.join(" ").trim()),h="
"===s?[""]:[s],f=e.append("tspan").attr("x",0).attr("y",p).attr("dy","1.1em").text(s))})}const $_drawNode=function(n,t,e,a){const s=e%12-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node section-"+s);const l=h.append("g"),p=h.append("g"),f=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),_=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=f.height+1.1*_*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${10-t.height} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)}(l,t,s),t},$_getVirtualNodeHeight=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),l=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+1.1*l*.5+t.padding},yt=function(n,t,e,a,s,h,l,p,y,f,_){var m;for(const g of t){const i={descr:g.task,section:e,number:e,width:150,padding:20,maxHeight:h};v.l.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),d=$_drawNode(r,i,e,l).height;if(v.l.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,d),g.events){const u=n.append("g").attr("class","lineWrapper");let o=h;o+=Ct(n,g.events,e,a,s+=100,l),s-=100,u.append("line").attr("x1",a+95).attr("y1",s+h).attr("x2",a+95).attr("y2",s+h+(_?h:f)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a+=200,_&&(null==(m=l.timeline)||!m.disableMulticolor)&&e++}s-=10},Ct=function(n,t,e,a,s,h){let l=0;const p=s;s+=100;for(const y of t){const f={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};v.l.debug("eventNode",f);const _=n.append("g").attr("class","eventWrapper"),g=$_drawNode(_,f,e,h).height;l+=g,_.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,l},Ht={db:bt,renderer:{setConf:()=>{},draw:function(n,t,e,a){var s,h;const l=(0,v.c)(),p=l.leftMargin??50;v.l.debug("timeline",a.db);const y=l.securityLevel;let f;"sandbox"===y&&(f=(0,R.Ys)("#i"+t));const m=(0,R.Ys)("sandbox"===y?f.nodes()[0].contentDocument.body:"body").select("#"+t);m.append("g");const g=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();v.l.debug("task",g),function(n){n.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")}(m);const r=a.db.getSections();v.l.debug("sections",r);let c=0,d=0,u=0,o=0,P=50+p,x=50;o=50;let M=0,V=!0;r.forEach(function(E){const T=$_getVirtualNodeHeight(m,{number:M,descr:E,section:M,width:150,padding:20,maxHeight:c},l);v.l.debug("sectionHeight before draw",T),c=Math.max(c,T+20)});let B=0,C=0;v.l.debug("tasks.length",g.length);for(const[E,w]of g.entries()){const O=$_getVirtualNodeHeight(m,{number:E,descr:w,section:w.section,width:150,padding:20,maxHeight:d},l);v.l.debug("taskHeight before draw",O),d=Math.max(d,O+20),B=Math.max(B,w.events.length);let z=0;for(let b=0;b0?r.forEach(E=>{const w=g.filter(b=>b.section===E),T={number:M,descr:E,section:M,width:200*Math.max(w.length,1)-50,padding:20,maxHeight:c};v.l.debug("sectionNode",T);const O=m.append("g"),z=$_drawNode(O,T,M,l);v.l.debug("sectionNode output",z),O.attr("transform",`translate(${P}, 50)`),x+=c+50,w.length>0&&yt(m,w,M,P,x,d,l,0,C,c,!1),P+=200*Math.max(w.length,1),x=50,M++}):(V=!1,yt(m,g,M,P,x,d,l,0,C,c,!0));const U=m.node().getBBox();v.l.debug("bounds",U),i&&m.append("text").text(i).attr("x",U.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=V?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",U.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,v.o)(void 0,m,(null==(s=l.timeline)?void 0:s.padding)??50,(null==(h=l.timeline)?void 0:h.useMaxWidth)??!1)}},parser:_t,styles:n=>`\n .edge {\n stroke-width: 3;\n }\n ${(n=>{let t="";for(let e=0;e{I.r(D),I.d(D,{diagram:()=>Ht});var v=I(8080),R=I(8586),gt=I(5847),mt=I(1223),xt=I(8674),J=(I(1764),I(6780),I(2735),function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,P){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:case 6:case 7:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x]}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(!r.recoverable){var c=new Error(i);throw c.hash=r,c}this.trace(i)},parse:function(i){var c=[0],d=[],u=[null],o=[],P=this.table,x="",M=0,V=0,U=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(E.yy[w]=this.yy[w]);k.setInput(i,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var T=k.yylloc;o.push(T);var N,O=k.options&&k.options.ranges;this.parseError="function"==typeof E.yy.parseError?E.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,A,S,X,Z,L,G,F={};;){if(this.defaultActions[A=c[c.length-1]]?S=this.defaultActions[A]:((null===b||typeof b>"u")&&(N=void 0,"number"!=typeof(N=d.pop()||k.lex()||1)&&(N instanceof Array&&(N=(d=N).pop()),N=this.symbols_[N]||N),b=N),S=P[A]&&P[A][b]),typeof S>"u"||!S.length||!S[0]){var q;for(Z in G=[],P[A])this.terminals_[Z]&&Z>2&&G.push("'"+this.terminals_[Z]+"'");q=k.showPosition?"Parse error on line "+(M+1)+":\n"+k.showPosition()+"\nExpecting "+G.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(M+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(q,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:T,expected:G})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),o.push(k.yylloc),c.push(S[1]),b=null,V=k.yyleng,x=k.yytext,M=k.yylineno,T=k.yylloc;break;case 2:if(F.$=u[u.length-(L=this.productions_[S[1]][1])],F._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},O&&(F._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),typeof(X=this.performAction.apply(F,[x,V,M,E.yy,S[1],u,o].concat(U)))<"u")return X;L&&(c=c.slice(0,-1*L*2),u=u.slice(0,-1*L),o=o.slice(0,-1*L)),c.push(this.productions_[S[1]][0]),u.push(F.$),o.push(F._$),c.push(P[c[c.length-2]][c[c.length-1]]);break;case 3:return!0}}return!0}};function m(){this.yy={}}return f.lexer={EOF:1,parseError:function(r,c){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,c)},setInput:function(i,r){return this.yy=r||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},input:function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.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),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=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 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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+"\n"+r+"^"},test_match:function(i,r){var c,d,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),(d=i[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in u)this[o]=u[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var i,r,c,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),o=0;or[0].length)){if(r=c,d=o,this.options.backtrack_lexer){if(!1!==(i=this.test_match(c,u[o])))return i;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(i=this.test_match(r,u[d]))&&i:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){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 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/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;]+)/i,/^(?:[^#:\n;]+)/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],inclusive:!0}}},m.prototype=f,f.Parser=m,new m}());J.parser=J;const _t=J;let H="",tt=0;const Q=[],j=[],W=[],et=()=>v.L,nt=function(){Q.length=0,j.length=0,H="",W.length=0,(0,v.v)()},st=function(n){H=n,Q.push(n)},it=function(){return Q},rt=function(){let n=ct(),e=0;for(;!n&&e<100;)n=ct(),e++;return j.push(...W),j},at=function(n,t,e){const a={id:tt++,section:H,type:H,task:n,score:t||0,events:e?[e]:[]};W.push(a)},lt=function(n){W.find(e=>e.id===tt-1).events.push(n)},ot=function(n){j.push({section:H,type:H,description:n,task:n,classes:[]})},ct=function(){const n=function(e){return W[e].processed};let t=!0;for(const[e,a]of W.entries())n(e),t=t&&a.processed;return t},bt=Object.freeze(Object.defineProperty({__proto__:null,addEvent:lt,addSection:st,addTask:at,addTaskOrg:ot,clear:nt,default:{clear:nt,getCommonDb:et,addSection:st,getSections:it,getTasks:rt,addTask:at,addTaskOrg:ot,addEvent:lt},getCommonDb:et,getSections:it,getTasks:rt},Symbol.toStringTag,{value:"Module"}));function pt(n,t){n.each(function(){var s,e=(0,R.Ys)(this),a=e.text().split(/(\s+|
)/).reverse(),h=[],p=e.attr("y"),y=parseFloat(e.attr("dy")),f=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let _=0;_t||"
"===s)&&(h.pop(),f.text(h.join(" ").trim()),h="
"===s?[""]:[s],f=e.append("tspan").attr("x",0).attr("y",p).attr("dy","1.1em").text(s))})}const $_drawNode=function(n,t,e,a){const s=e%12-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node section-"+s);const l=h.append("g"),p=h.append("g"),f=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),_=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=f.height+1.1*_*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${10-t.height} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)}(l,t,s),t},$_getVirtualNodeHeight=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),l=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+1.1*l*.5+t.padding},yt=function(n,t,e,a,s,h,l,p,y,f,_){var m;for(const g of t){const i={descr:g.task,section:e,number:e,width:150,padding:20,maxHeight:h};v.l.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),d=$_drawNode(r,i,e,l).height;if(v.l.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,d),g.events){const u=n.append("g").attr("class","lineWrapper");let o=h;o+=Ct(n,g.events,e,a,s+=100,l),s-=100,u.append("line").attr("x1",a+95).attr("y1",s+h).attr("x2",a+95).attr("y2",s+h+(_?h:f)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a+=200,_&&(null==(m=l.timeline)||!m.disableMulticolor)&&e++}s-=10},Ct=function(n,t,e,a,s,h){let l=0;const p=s;s+=100;for(const y of t){const f={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};v.l.debug("eventNode",f);const _=n.append("g").attr("class","eventWrapper"),g=$_drawNode(_,f,e,h).height;l+=g,_.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,l},Ht={db:bt,renderer:{setConf:()=>{},draw:function(n,t,e,a){var s,h;const l=(0,v.c)(),p=l.leftMargin??50;v.l.debug("timeline",a.db);const y=l.securityLevel;let f;"sandbox"===y&&(f=(0,R.Ys)("#i"+t));const m=(0,R.Ys)("sandbox"===y?f.nodes()[0].contentDocument.body:"body").select("#"+t);m.append("g");const g=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();v.l.debug("task",g),function(n){n.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")}(m);const r=a.db.getSections();v.l.debug("sections",r);let c=0,d=0,u=0,o=0,P=50+p,x=50;o=50;let M=0,V=!0;r.forEach(function(E){const T=$_getVirtualNodeHeight(m,{number:M,descr:E,section:M,width:150,padding:20,maxHeight:c},l);v.l.debug("sectionHeight before draw",T),c=Math.max(c,T+20)});let B=0,C=0;v.l.debug("tasks.length",g.length);for(const[E,w]of g.entries()){const O=$_getVirtualNodeHeight(m,{number:E,descr:w,section:w.section,width:150,padding:20,maxHeight:d},l);v.l.debug("taskHeight before draw",O),d=Math.max(d,O+20),B=Math.max(B,w.events.length);let z=0;for(let b=0;b0?r.forEach(E=>{const w=g.filter(b=>b.section===E),T={number:M,descr:E,section:M,width:200*Math.max(w.length,1)-50,padding:20,maxHeight:c};v.l.debug("sectionNode",T);const O=m.append("g"),z=$_drawNode(O,T,M,l);v.l.debug("sectionNode output",z),O.attr("transform",`translate(${P}, 50)`),x+=c+50,w.length>0&&yt(m,w,M,P,x,d,l,0,C,c,!1),P+=200*Math.max(w.length,1),x=50,M++}):(V=!1,yt(m,g,M,P,x,d,l,0,C,c,!0));const U=m.node().getBBox();v.l.debug("bounds",U),i&&m.append("text").text(i).attr("x",U.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=V?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",U.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,v.o)(void 0,m,(null==(s=l.timeline)?void 0:s.padding)??50,(null==(h=l.timeline)?void 0:h.useMaxWidth)??!1)}},parser:_t,styles:n=>`\n .edge {\n stroke-width: 3;\n }\n ${(n=>{let t="";for(let e=0;e{at.r(Kt),at.d(Kt,{diagram:()=>f0});var W=at(5861),p=at(9037),wt=at(8586),st=at(3118),Ut=at(6780),At=(at(1764),at(2735),function(){var t=function(dt,w,L,I){for(L=L||{},I=dt.length;I--;L[dt[I]]=w);return L},e=[1,2],s=[1,3],a=[1,4],r=[2,4],i=[1,9],c=[1,11],o=[1,13],f=[1,14],h=[1,16],l=[1,17],T=[1,18],E=[1,24],y=[1,25],x=[1,26],v=[1,27],P=[1,28],M=[1,29],D=[1,30],C=[1,31],Y=[1,32],O=[1,33],z=[1,34],H=[1,35],Q=[1,36],K=[1,37],U=[1,38],G=[1,39],Z=[1,41],q=[1,42],j=[1,43],X=[1,44],$=[1,45],N=[1,46],A=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],_=[4,5,16,50,52,53],k=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Yt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,L,I,b,R,d,_t){var u=d.length-1;switch(R){case 3:return b.apply(d[u]),d[u];case 4:case 9:case 8:case 13:this.$=[];break;case 5:case 10:d[u-1].push(d[u]),this.$=d[u-1];break;case 6:case 7:case 11:case 12:case 62:this.$=d[u];break;case 15:d[u].type="createParticipant",this.$=d[u];break;case 16:d[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(d[u-2])}),d[u-1].push({type:"boxEnd",boxText:d[u-2]}),this.$=d[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-2]),sequenceIndexStep:Number(d[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-1]};break;case 29:b.setDiagramTitle(d[u].substring(6)),this.$=d[u].substring(6);break;case 30:b.setDiagramTitle(d[u].substring(7)),this.$=d[u].substring(7);break;case 31:this.$=d[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=d[u].trim(),b.setAccDescription(this.$);break;case 34:d[u-1].unshift({type:"loopStart",loopText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.LOOP_START}),d[u-1].push({type:"loopEnd",loopText:d[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=d[u-1];break;case 35:d[u-1].unshift({type:"rectStart",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_START}),d[u-1].push({type:"rectEnd",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=d[u-1];break;case 36:d[u-1].unshift({type:"optStart",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_START}),d[u-1].push({type:"optEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=d[u-1];break;case 37:d[u-1].unshift({type:"altStart",altText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.ALT_START}),d[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=d[u-1];break;case 38:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 39:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 40:d[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.CRITICAL_START}),d[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=d[u-1];break;case 41:d[u-1].unshift({type:"breakStart",breakText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_START}),d[u-1].push({type:"breakEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=d[u-1];break;case 43:this.$=d[u-3].concat([{type:"option",optionText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},d[u]]);break;case 45:this.$=d[u-3].concat([{type:"and",parText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.PAR_AND},d[u]]);break;case 47:this.$=d[u-3].concat([{type:"else",altText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.ALT_ELSE},d[u]]);break;case 48:d[u-3].draw="participant",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 49:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 50:d[u-3].draw="actor",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 51:d[u-1].draw="actor",d[u-1].type="addParticipant",this.$=d[u-1];break;case 52:d[u-1].type="destroyParticipant",this.$=d[u-1];break;case 53:this.$=[d[u-1],{type:"addNote",placement:d[u-2],actor:d[u-1].actor,text:d[u]}];break;case 54:d[u-2]=[].concat(d[u-1],d[u-1]).slice(0,2),d[u-2][0]=d[u-2][0].actor,d[u-2][1]=d[u-2][1].actor,this.$=[d[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:d[u-2].slice(0,2),text:d[u]}];break;case 55:this.$=[d[u-1],{type:"addLinks",actor:d[u-1].actor,text:d[u]}];break;case 56:this.$=[d[u-1],{type:"addALink",actor:d[u-1].actor,text:d[u]}];break;case 57:this.$=[d[u-1],{type:"addProperties",actor:d[u-1].actor,text:d[u]}];break;case 58:this.$=[d[u-1],{type:"addDetails",actor:d[u-1].actor,text:d[u]}];break;case 61:this.$=[d[u-2],d[u]];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1]}];break;case 66:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-4]}];break;case 67:this.$=[d[u-3],d[u-1],{type:"addMessage",from:d[u-3].actor,to:d[u-1].actor,signalType:d[u-2],msg:d[u]}];break;case 68:this.$={type:"addParticipant",actor:d[u]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(d[u].trim().substring(1))}},table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:o,14:f,17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},t(A,[2,5]),{9:47,12:12,13:o,14:f,17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},t(A,[2,7]),t(A,[2,8]),t(A,[2,14]),{12:48,50:K,52:U,53:G},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(A,[2,29]),t(A,[2,30]),{32:[1,61]},{34:[1,62]},t(A,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(A,[2,6]),t(A,[2,15]),t(_,[2,9],{10:91}),t(A,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(A,[2,21]),{5:[1,95]},{5:[1,96]},t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,31]),t(A,[2,32]),t(k,r,{7:97}),t(k,r,{7:98}),t(k,r,{7:99}),t(rt,r,{40:100,7:101}),t(tt,r,{42:102,7:103}),t(tt,r,{7:103,42:104}),t(S,r,{45:105,7:106}),t(k,r,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:K,52:U,53:G},{5:[1,129]},t(A,[2,19]),t(A,[2,20]),t(A,[2,22]),t(A,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,130],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,131],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,132],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{16:[1,133]},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[2,46],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,49:[1,134],50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[2,44],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,48:[1,136],50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{16:[1,137]},{16:[1,138]},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[2,42],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,47:[1,139],50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,140],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{15:[1,141]},t(A,[2,49]),{15:[1,142]},t(A,[2,51]),t(A,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(A,[2,16]),t(_,[2,10]),{12:149,50:K,52:U,53:G},t(_,[2,12]),t(_,[2,13]),t(A,[2,18]),t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),{15:[1,150]},t(A,[2,38]),{15:[1,151]},t(A,[2,39]),t(A,[2,40]),{15:[1,152]},t(A,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(_,[2,11]),t(rt,r,{7:101,40:158}),t(tt,r,{7:103,42:159}),t(S,r,{7:106,45:160}),t(A,[2,48]),t(A,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,L){if(!L.recoverable){var I=new Error(w);throw I.hash=L,I}this.trace(w)},parse:function(w){var I=[0],b=[],R=[null],d=[],_t=this.table,u="",Lt=0,le=0,y0=d.slice.call(arguments,1),F=Object.create(this.lexer),gt={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(gt.yy[Wt]=this.yy[Wt]);F.setInput(w,gt.yy),gt.yy.lexer=F,gt.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var qt=F.yylloc;d.push(qt);var lt,T0=F.options&&F.options.ranges;this.parseError="function"==typeof gt.yy.parseError?gt.yy.parseError:Object.getPrototypeOf(this).parseError;for(var J,xt,et,zt,kt,ct,It,Et={};;){if(this.defaultActions[xt=I[I.length-1]]?et=this.defaultActions[xt]:((null===J||typeof J>"u")&&(lt=void 0,"number"!=typeof(lt=b.pop()||F.lex()||1)&&(lt instanceof Array&&(lt=(b=lt).pop()),lt=this.symbols_[lt]||lt),J=lt),et=_t[xt]&&_t[xt][J]),typeof et>"u"||!et.length||!et[0]){var Ht;for(kt in It=[],_t[xt])this.terminals_[kt]&&kt>2&&It.push("'"+this.terminals_[kt]+"'");Ht=F.showPosition?"Parse error on line "+(Lt+1)+":\n"+F.showPosition()+"\nExpecting "+It.join(", ")+", got '"+(this.terminals_[J]||J)+"'":"Parse error on line "+(Lt+1)+": Unexpected "+(1==J?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError(Ht,{text:F.match,token:this.terminals_[J]||J,line:F.yylineno,loc:qt,expected:It})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+J);switch(et[0]){case 1:I.push(J),R.push(F.yytext),d.push(F.yylloc),I.push(et[1]),J=null,le=F.yyleng,u=F.yytext,Lt=F.yylineno,qt=F.yylloc;break;case 2:if(Et.$=R[R.length-(ct=this.productions_[et[1]][1])],Et._$={first_line:d[d.length-(ct||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(ct||1)].first_column,last_column:d[d.length-1].last_column},T0&&(Et._$.range=[d[d.length-(ct||1)].range[0],d[d.length-1].range[1]]),typeof(zt=this.performAction.apply(Et,[u,le,Lt,gt.yy,et[1],R,d].concat(y0)))<"u")return zt;ct&&(I=I.slice(0,-1*ct*2),R=R.slice(0,-1*ct),d=d.slice(0,-1*ct)),I.push(this.productions_[et[1]][0]),R.push(Et.$),d.push(Et._$),I.push(_t[I[I.length-2]][I[I.length-1]]);break;case 3:return!0}}return!0}};function Ft(){this.yy={}}return Yt.lexer={EOF:1,parseError:function(L,I){if(!this.yy.parser)throw new Error(L);this.yy.parser.parseError(L,I)},setInput:function(w,L){return this.yy=L||this.yy||{},this._input=w,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},input:function(){var w=this._input[0];return this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w,w.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),w},unput:function(w){var L=w.length,I=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var b=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),I.length-1&&(this.yylineno-=I.length-1);var R=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:I?(I.length===b.length?this.yylloc.first_column:0)+b[b.length-I.length].length-I[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),L=new Array(w.length+1).join("-");return w+this.upcomingInput()+"\n"+L+"^"},test_match:function(w,L){var I,b,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),(b=w[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],I=this.performAction.call(this,this.yy,this,L,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var d in R)this[d]=R[d];return!1}return!1},next:function(){if(this.done)return this.EOF;var w,L,I,b;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),d=0;dL[0].length)){if(L=I,b=d,this.options.backtrack_lexer){if(!1!==(w=this.test_match(I,R[d])))return w;if(this._backtrack){L=!1;continue}return!1}if(!this.options.flex)break}return L?!1!==(w=this.test_match(L,R[b]))&&w:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(L){this.conditionStack.push(L)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(L){return(L=this.conditionStack.length-1-Math.abs(L||0))>=0?this.conditionStack[L]:"INITIAL"},pushState:function(L){this.begin(L)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(L,I,b,R){switch(b){case 0:case 51:case 64:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return I.yytext=I.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 52:return I.yytext=I.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/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,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}},Ft.prototype=Yt,Yt.Parser=Ft,new Ft}());At.parser=At;const ue=At,m=new class pe{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}}(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Nt=function(t,e,s,a){let r=m.records.currentBox;const i=m.records.actors[t];if(i){if(m.records.currentBox&&i.box&&m.records.currentBox!==i.box)throw new Error("A same participant should only be defined in one Box: "+i.name+" can't be in '"+i.box.name+"' and in '"+m.records.currentBox.name+"' at the same time.");if(r=i.box?i.box:m.records.currentBox,i.box=r,i&&e===i.name&&null==s)return}(null==s||null==s.text)&&(s={text:e,wrap:null,type:a}),(null==a||null==s.text)&&(s={text:e,wrap:null,type:a}),m.records.actors[t]={box:r,name:e,description:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,prevActor:m.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},m.records.prevActor&&m.records.actors[m.records.prevActor]&&(m.records.actors[m.records.prevActor].nextActor=t),m.records.currentBox&&m.records.currentBox.actorKeys.push(t),m.records.prevActor=t},V=function(t,e,s={text:void 0,wrap:void 0},a,r=!1){if(a===mt.ACTIVE_END&&(t=>{let e,s=0;for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}return m.records.messages.push({from:t,to:e,message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,type:a,activate:r}),!0},bt=function(t){return m.records.actors[t]},ut=()=>void 0!==m.records.wrapEnabled?m.records.wrapEnabled:(0,p.c)().sequence.wrap,mt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},Gt=function(t,e,s){const a={actor:t,placement:e,message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap},r=[].concat(t,t);m.records.notes.push(a),m.records.messages.push({from:r[0],to:r[1],message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,type:mt.NOTE,placement:e})},Zt=function(t,e){const s=bt(t);try{let a=(0,p.d)(e.text,(0,p.c)());a=a.replace(/&/g,"&"),a=a.replace(/=/g,"="),St(s,JSON.parse(a))}catch(a){p.l.error("error while parsing actor link text",a)}};function St(t,e){if(null==t.links)t.links=e;else for(let s in e)t.links[s]=e[s]}const Xt=function(t,e){const s=bt(t);try{let a=(0,p.d)(e.text,(0,p.c)());Jt(s,JSON.parse(a))}catch(a){p.l.error("error while parsing actor properties text",a)}};function Jt(t,e){if(null==t.properties)t.properties=e;else for(let s in e)t.properties[s]=e[s]}const Qt=function(t,e){const s=bt(t),a=document.getElementById(e.text);try{const i=JSON.parse(a.innerHTML);i.properties&&Jt(s,i.properties),i.links&&St(s,i.links)}catch(r){p.l.error("error while parsing actor details text",r)}},jt=function(t){if(Array.isArray(t))t.forEach(function(e){jt(e)});else switch(t.type){case"sequenceIndex":m.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Nt(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(m.records.actors[t.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");m.records.lastCreated=t.actor,Nt(t.actor,t.actor,t.description,t.draw),m.records.createdActors[t.actor]=m.records.messages.length;break;case"destroyParticipant":m.records.lastDestroyed=t.actor,m.records.destroyedActors[t.actor]=m.records.messages.length;break;case"activeStart":case"activeEnd":V(t.actor,void 0,void 0,t.signalType);break;case"addNote":Gt(t.actor,t.placement,t.text);break;case"addLinks":Zt(t.actor,t.text);break;case"addALink":!function(t,e){const s=bt(t);try{const c={};let o=(0,p.d)(e.text,(0,p.c)());var a=o.indexOf("@");o=o.replace(/&/g,"&"),o=o.replace(/=/g,"=");var r=o.slice(0,a-1).trim(),i=o.slice(a+1).trim();c[r]=i,St(s,c)}catch(c){p.l.error("error while parsing actor link text",c)}}(t.actor,t.text);break;case"addProperties":Xt(t.actor,t.text);break;case"addDetails":Qt(t.actor,t.text);break;case"addMessage":if(m.records.lastCreated){if(t.to!==m.records.lastCreated)throw new Error("The created participant "+m.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");m.records.lastCreated=void 0}else if(m.records.lastDestroyed){if(t.to!==m.records.lastDestroyed&&t.from!==m.records.lastDestroyed)throw new Error("The destroyed participant "+m.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");m.records.lastDestroyed=void 0}V(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":!function(t){m.records.boxes.push({name:t.text,wrap:void 0===t.wrap&&ut()||!!t.wrap,fill:t.color,actorKeys:[]}),m.records.currentBox=m.records.boxes.slice(-1)[0]}(t.boxData);break;case"boxEnd":!function Ce(){m.records.currentBox=void 0}();break;case"loopStart":V(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":V(void 0,void 0,void 0,t.signalType);break;case"rectStart":V(void 0,void 0,t.color,t.signalType);break;case"optStart":V(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":V(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,p.s)(t.text);break;case"parStart":case"and":V(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":V(void 0,void 0,t.criticalText,t.signalType);break;case"option":V(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":V(void 0,void 0,t.breakText,t.signalType)}},$t={addActor:Nt,addMessage:function(t,e,s,a){m.records.messages.push({from:t,to:e,message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,answer:a})},addSignal:V,addLinks:Zt,addDetails:Qt,addProperties:Xt,autoWrap:ut,setWrap:function(t){m.records.wrapEnabled=t},enableSequenceNumbers:function(){m.records.sequenceNumbersEnabled=!0},disableSequenceNumbers:function(){m.records.sequenceNumbersEnabled=!1},showSequenceNumbers:()=>m.records.sequenceNumbersEnabled,getMessages:function(){return m.records.messages},getActors:function(){return m.records.actors},getCreatedActors:function(){return m.records.createdActors},getDestroyedActors:function(){return m.records.destroyedActors},getActor:bt,getActorKeys:function(){return Object.keys(m.records.actors)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:p.g,getBoxes:function(){return m.records.boxes},getDiagramTitle:p.t,setDiagramTitle:p.q,getConfig:()=>(0,p.c)().sequence,clear:function(){m.reset(),(0,p.v)()},parseMessage:function(t){const e=t.trim(),s={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return p.l.debug("parseMessage:",s),s},parseBoxData:function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let s=null!=e&&e[1]?e[1].trim():"transparent",a=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",s)||(s="transparent",a=t.trim());else{const r=(new Option).style;r.color=s,r.color!==s&&(s="transparent",a=t.trim())}return{color:s,text:void 0!==a?(0,p.d)(a.replace(/^:?(?:no)?wrap:/,""),(0,p.c)()):void 0,wrap:void 0!==a?null!==a.match(/^:?wrap:/)||null===a.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:mt,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Gt,setAccTitle:p.s,apply:jt,setAccDescription:p.b,getAccDescription:p.a,hasAtLeastOneBox:function(){return m.records.boxes.length>0},hasAtLeastOneBoxWithTitle:function(){return m.records.boxes.some(t=>t.name)}},pt=36,te="actor-top",ee="actor-bottom",Mt=function(t,e){return(0,st.d)(t,e)},vt=function(){var t=(0,W.Z)(function*(e,s,a=null){let r=e.append("foreignObject");const i=yield(0,p.r)(s.text,(0,p.F)()),o=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(r.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===s.class){const f=e.node().firstChild;f.setAttribute("height",o.height+2*s.textMargin);const h=f.getBBox();r.attr("x",Math.round(h.x+h.width/2-o.width/2)).attr("y",Math.round(h.y+h.height/2-o.height/2))}else if(a){let{startx:f,stopx:h,starty:l}=a;if(f>h){const T=f;f=h,h=T}r.attr("x",Math.round(f+Math.abs(f-h)/2-o.width/2)),r.attr("y","loopText"===s.class?Math.round(l):Math.round(l-o.height))}return[r]});return function(s,a){return t.apply(this,arguments)}}(),yt=function(t,e){let s=0,a=0;const r=e.text.split(p.e.lineBreakRegex),[i,c]=(0,p.D)(e.fontSize);let o=[],f=0,h=()=>e.y;if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":h=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":h=()=>Math.round(e.y+(s+a+e.textMargin)/2);break;case"bottom":case"end":h=()=>Math.round(e.y+(s+a+2*e.textMargin)-e.textMargin)}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[l,T]of r.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==i&&(f=l*i);const E=t.append("text");E.attr("x",e.x),E.attr("y",h()),void 0!==e.anchor&&E.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&E.style("font-family",e.fontFamily),void 0!==c&&E.style("font-size",c),void 0!==e.fontWeight&&E.style("font-weight",e.fontWeight),void 0!==e.fill&&E.attr("fill",e.fill),void 0!==e.class&&E.attr("class",e.class),void 0!==e.dy?E.attr("dy",e.dy):0!==f&&E.attr("dy",f);const y=T||p.Z;if(e.tspan){const x=E.append("tspan");x.attr("x",e.x),void 0!==e.fill&&x.attr("fill",e.fill),x.text(y)}else E.text(y);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(a+=(E._groups||E)[0][0].getBBox().height,s=a),o.push(E)}return o},se=function(t,e){const a=t.append("polygon");return a.attr("points",function s(r,i,c,o,f){return r+","+i+" "+(r+c)+","+i+" "+(r+c)+","+(i+o-f)+" "+(r+c-1.2*f)+","+(i+o)+" "+r+","+(i+o)}(e.x,e.y,e.width,e.height,7)),a.attr("class","labelBox"),e.y=e.y+e.height/2,yt(t,e),a};let it=-1;const re=(t,e,s,a)=>{t.select&&s.forEach(r=>{const i=e[r],c=t.select("#actor"+i.actorCnt);!a.mirrorActors&&i.stopy?c.attr("y2",i.stopy+i.height/2):a.mirrorActors&&c.attr("y2",i.stopy)})},Fe=function(){var t=(0,W.Z)(function*(e,s,a,r){const i=r?s.stopy:s.starty,c=s.x+s.width/2,o=i+5,f=e.append("g").lower();var h=f;r||(it++,Object.keys(s.links||{}).length&&!a.forceMenus&&h.attr("onclick",function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"}(`actor${it}_popup`)).attr("cursor","pointer"),h.append("line").attr("id","actor"+it).attr("x1",c).attr("y1",o).attr("x2",c).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),h=f.append("g"),s.actorCnt=it,null!=s.links&&h.attr("id","root-"+it));const l=(0,st.g)();var T="actor";null!=s.properties&&s.properties.class?T=s.properties.class:l.fill="#eaeaea",T+=r?` ${ee}`:` ${te}`,l.x=s.x,l.y=i,l.width=s.width,l.height=s.height,l.class=T,l.rx=3,l.ry=3,l.name=s.name;const E=Mt(h,l);if(s.rectData=l,null!=s.properties&&s.properties.icon){const x=s.properties.icon.trim();"@"===x.charAt(0)?(0,st.b)(h,l.x+l.width-20,l.y+10,x.substr(1)):(0,st.c)(h,l.x+l.width-20,l.y+10,x)}yield Rt(a,(0,p.G)(s.description))(s.description,h,l.x,l.y,l.width,l.height,{class:"actor"},a);let y=s.height;if(E.node){const x=E.node().getBBox();s.height=x.height,y=x.height}return y});return function(s,a,r,i){return t.apply(this,arguments)}}(),We=function(){var t=(0,W.Z)(function*(e,s,a,r){const i=r?s.stopy:s.starty,c=s.x+s.width/2,o=i+80;e.lower(),r||(it++,e.append("line").attr("id","actor"+it).attr("x1",c).attr("y1",o).attr("x2",c).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),s.actorCnt=it);const f=e.append("g");let h="actor-man";h+=r?` ${ee}`:` ${te}`,f.attr("class",h),f.attr("name",s.name);const l=(0,st.g)();l.x=s.x,l.y=i,l.fill="#eaeaea",l.width=s.width,l.height=s.height,l.class="actor",l.rx=3,l.ry=3,f.append("line").attr("id","actor-man-torso"+it).attr("x1",c).attr("y1",i+25).attr("x2",c).attr("y2",i+45),f.append("line").attr("id","actor-man-arms"+it).attr("x1",c-pt/2).attr("y1",i+33).attr("x2",c+pt/2).attr("y2",i+33),f.append("line").attr("x1",c-pt/2).attr("y1",i+60).attr("x2",c).attr("y2",i+45),f.append("line").attr("x1",c).attr("y1",i+45).attr("x2",c+pt/2-2).attr("y2",i+60);const T=f.append("circle");T.attr("cx",s.x+s.width/2),T.attr("cy",i+10),T.attr("r",15),T.attr("width",s.width),T.attr("height",s.height);const E=f.node().getBBox();return s.height=E.height,yield Rt(a,(0,p.G)(s.description))(s.description,f,l.x,l.y+35,l.width,l.height,{class:"actor"},a),s.height});return function(s,a,r,i){return t.apply(this,arguments)}}(),qe=function(){var t=(0,W.Z)(function*(e,s,a,r){switch(s.type){case"actor":return yield We(e,s,a,r);case"participant":return yield Fe(e,s,a,r)}});return function(s,a,r,i){return t.apply(this,arguments)}}(),ze=function(){var t=(0,W.Z)(function*(e,s,a){const i=e.append("g");ie(i,s),s.name&&(yield Rt(a)(s.name,i,s.x,s.y+(s.textMaxHeight||0)/2,s.width,0,{class:"text"},a)),i.lower()});return function(s,a,r){return t.apply(this,arguments)}}(),Ue=function(){var t=(0,W.Z)(function*(e,s,a,r){const{boxMargin:i,boxTextMargin:c,labelBoxHeight:o,labelBoxWidth:f,messageFontFamily:h,messageFontSize:l,messageFontWeight:T}=r,E=e.append("g"),y=function(P,M,D,C){return E.append("line").attr("x1",P).attr("y1",M).attr("x2",D).attr("y2",C).attr("class","loopLine")};y(s.startx,s.starty,s.stopx,s.starty),y(s.stopx,s.starty,s.stopx,s.stopy),y(s.startx,s.stopy,s.stopx,s.stopy),y(s.startx,s.starty,s.startx,s.stopy),void 0!==s.sections&&s.sections.forEach(function(P){y(s.startx,P.y,s.stopx,P.y).style("stroke-dasharray","3, 3")});let x=(0,st.e)();x.text=a,x.x=s.startx,x.y=s.starty,x.fontFamily=h,x.fontSize=l,x.fontWeight=T,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=f||50,x.height=o||20,x.textMargin=c,x.class="labelText",se(E,x),x=ne(),x.text=s.title,x.x=s.startx+f/2+(s.stopx-s.startx)/2,x.y=s.starty+i+c,x.anchor="middle",x.valign="middle",x.textMargin=c,x.class="loopText",x.fontFamily=h,x.fontSize=l,x.fontWeight=T,x.wrap=!0;let v=(0,p.G)(x.text)?yield vt(E,x,s):yt(E,x);if(void 0!==s.sectionTitles)for(const[P,M]of Object.entries(s.sectionTitles))if(M.message){x.text=M.message,x.x=s.startx+(s.stopx-s.startx)/2,x.y=s.sections[P].y+i+c,x.class="loopText",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=h,x.fontSize=l,x.fontWeight=T,x.wrap=s.wrap,(0,p.G)(x.text)?(s.starty=s.sections[P].y,yield vt(E,x,s)):yt(E,x);let D=Math.round(v.map(C=>(C._groups||C)[0][0].getBBox().height).reduce((C,Y)=>C+Y));s.sections[P].height+=D-(i+c)}return s.height=Math.round(s.stopy-s.starty),E});return function(s,a,r,i){return t.apply(this,arguments)}}(),ie=function(t,e){(0,st.a)(t,e)},ne=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Rt=function(){function t(c,o,f,h,l,T,E){i(o.append("text").attr("x",f+l/2).attr("y",h+T/2+5).style("text-anchor","middle").text(c),E)}function e(c,o,f,h,l,T,E,y){const{actorFontSize:x,actorFontFamily:v,actorFontWeight:P}=y,[M,D]=(0,p.D)(x),C=c.split(p.e.lineBreakRegex);for(let Y=0;Ys?o.width:s;const E=h.append("rect");if(E.attr("class","actorPopupMenuPanel"+l),E.attr("x",o.x),E.attr("y",o.height),E.attr("fill",o.fill),E.attr("stroke",o.stroke),E.attr("width",T),E.attr("height",o.height),E.attr("rx",o.rx),E.attr("ry",o.ry),null!=i){var y=20;for(let P in i){var x=h.append("a"),v=(0,Ut.N)(i[P]);x.attr("xlink:href",v),x.attr("target","_blank"),e0(a)(P,x,o.x+10,o.height+y,T,20,{class:"actor"},a),y+=30}}return E.attr("height",y),{height:o.height+y,width:T}},anchorElement:function(t){return t.append("g")},drawActivation:function(t,e,s,a,r){const i=(0,st.g)(),c=e.anchored;i.x=e.startx,i.y=e.starty,i.class="activation"+r%3,i.width=e.stopx-e.startx,i.height=s-e.starty,Mt(c,i)},drawLoop:Ue,drawBackgroundRect:ie,insertArrowHead:function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowFilledHead:function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertSequenceNumber:function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead:function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},insertDatabaseIcon:function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon:function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon:function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},getTextObj:ne,getNoteRect:function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},fixLifeLineHeights:re,sanitizeUrl:Ut.N};let n={};const g={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(t=>t.height||0))+(0===this.loops.length?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.messages.length?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.notes.length?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,oe((0,p.c)())},updateVal:function(t,e,s,a){t[e]=void 0===t[e]?s:a(s,t[e])},updateBounds:function(t,e,s,a){const r=this;let i=0;function c(o){return function(h){i++;const l=r.sequenceItems.length-i+1;r.updateVal(h,"starty",e-l*n.boxMargin,Math.min),r.updateVal(h,"stopy",a+l*n.boxMargin,Math.max),r.updateVal(g.data,"startx",t-l*n.boxMargin,Math.min),r.updateVal(g.data,"stopx",s+l*n.boxMargin,Math.max),"activation"!==o&&(r.updateVal(h,"startx",t-l*n.boxMargin,Math.min),r.updateVal(h,"stopx",s+l*n.boxMargin,Math.max),r.updateVal(g.data,"starty",e-l*n.boxMargin,Math.min),r.updateVal(g.data,"stopy",a+l*n.boxMargin,Math.max))}}this.sequenceItems.forEach(c()),this.activations.forEach(c("activation"))},insert:function(t,e,s,a){const r=p.e.getMin(t,s),i=p.e.getMax(t,s),c=p.e.getMin(e,a),o=p.e.getMax(e,a);this.updateVal(g.data,"startx",r,Math.min),this.updateVal(g.data,"starty",c,Math.min),this.updateVal(g.data,"stopx",i,Math.max),this.updateVal(g.data,"stopy",o,Math.max),this.updateBounds(r,c,i,o)},newActivation:function(t,e,s){const a=s[t.from.actor],r=Pt(t.from.actor).length||0,i=a.x+a.width/2+(r-1)*n.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+n.activationWidth,stopy:void 0,actor:t.from.actor,anchored:B.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(s){return s.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:g.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=p.e.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},s0=function(){var t=(0,W.Z)(function*(e,s){g.bumpVerticalPos(n.boxMargin),s.height=n.boxMargin,s.starty=g.getVerticalPos();const a=(0,st.g)();a.x=s.startx,a.y=s.starty,a.width=s.width||n.width,a.class="note";const r=e.append("g"),i=B.drawRect(r,a),c=(0,st.e)();c.x=s.startx,c.y=s.starty,c.width=a.width,c.dy="1em",c.text=s.message,c.class="noteText",c.fontFamily=n.noteFontFamily,c.fontSize=n.noteFontSize,c.fontWeight=n.noteFontWeight,c.anchor=n.noteAlign,c.textMargin=n.noteMargin,c.valign="center";const o=(0,p.G)(c.text)?yield vt(r,c):yt(r,c),f=Math.round(o.map(h=>(h._groups||h)[0][0].getBBox().height).reduce((h,l)=>h+l));i.attr("height",f+2*n.noteMargin),s.height+=f+2*n.noteMargin,g.bumpVerticalPos(f+2*n.noteMargin),s.stopy=s.starty+f+2*n.noteMargin,s.stopx=s.startx+a.width,g.insert(s.startx,s.starty,s.stopx,s.stopy),g.models.addNote(s)});return function(s,a){return t.apply(this,arguments)}}(),ft=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Tt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Dt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});function r0(t,e){return Ct.apply(this,arguments)}function Ct(){return(Ct=(0,W.Z)(function*(t,e){g.bumpVerticalPos(10);const{startx:s,stopx:a,message:r}=e,i=p.e.splitBreaks(r).length,c=(0,p.G)(r),o=c?yield(0,p.H)(r,(0,p.c)()):p.u.calculateTextDimensions(r,ft(n));if(!c){const T=o.height/i;e.height+=T,g.bumpVerticalPos(T)}let f,h=o.height-10;const l=o.width;if(s===a){f=g.getVerticalPos()+h,n.rightAngles||(h+=n.boxMargin,f=g.getVerticalPos()+h),h+=30;const T=p.e.getMax(l/2,n.width/2);g.insert(s-T,g.getVerticalPos()-10+h,a+T,g.getVerticalPos()+30+h)}else h+=n.boxMargin,f=g.getVerticalPos()+h,g.insert(s,f-10,a,f);return g.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,g.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),f})).apply(this,arguments)}const i0=function(){var t=(0,W.Z)(function*(e,s,a,r){const{startx:i,stopx:c,starty:o,message:f,type:h,sequenceIndex:l,sequenceVisible:T}=s,E=p.u.calculateTextDimensions(f,ft(n)),y=(0,st.e)();y.x=i,y.y=o+10,y.width=c-i,y.class="messageText",y.dy="1em",y.text=f,y.fontFamily=n.messageFontFamily,y.fontSize=n.messageFontSize,y.fontWeight=n.messageFontWeight,y.anchor=n.messageAlign,y.valign="center",y.textMargin=n.wrapPadding,y.tspan=!1,(0,p.G)(y.text)?yield vt(e,y,{startx:i,stopx:c,starty:a}):yt(e,y);const x=E.width;let v;i===c?v=n.rightAngles?e.append("path").attr("d",`M ${i},${a} H ${i+p.e.getMax(n.width/2,x/2)} V ${a+25} H ${i}`):e.append("path").attr("d","M "+i+","+a+" C "+(i+60)+","+(a-10)+" "+(i+60)+","+(a+30)+" "+i+","+(a+20)):(v=e.append("line"),v.attr("x1",i),v.attr("y1",a),v.attr("x2",c),v.attr("y2",a)),h===r.db.LINETYPE.DOTTED||h===r.db.LINETYPE.DOTTED_CROSS||h===r.db.LINETYPE.DOTTED_POINT||h===r.db.LINETYPE.DOTTED_OPEN?(v.style("stroke-dasharray","3, 3"),v.attr("class","messageLine1")):v.attr("class","messageLine0");let P="";n.arrowMarkerAbsolute&&(P=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,P=P.replace(/\(/g,"\\("),P=P.replace(/\)/g,"\\)")),v.attr("stroke-width",2),v.attr("stroke","none"),v.style("fill","none"),(h===r.db.LINETYPE.SOLID||h===r.db.LINETYPE.DOTTED)&&v.attr("marker-end","url("+P+"#arrowhead)"),(h===r.db.LINETYPE.SOLID_POINT||h===r.db.LINETYPE.DOTTED_POINT)&&v.attr("marker-end","url("+P+"#filled-head)"),(h===r.db.LINETYPE.SOLID_CROSS||h===r.db.LINETYPE.DOTTED_CROSS)&&v.attr("marker-end","url("+P+"#crosshead)"),(T||n.showSequenceNumbers)&&(v.attr("marker-start","url("+P+"#sequencenumber)"),e.append("text").attr("x",i).attr("y",a+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))});return function(s,a,r,i){return t.apply(this,arguments)}}(),n0=function(){var t=(0,W.Z)(function*(e,s,a,r,i,c,o){let l,f=0,h=0,T=0;for(const E of r){const y=s[E],x=y.box;l&&l!=x&&(o||g.models.addBox(l),h+=n.boxMargin+l.margin),x&&x!=l&&(o||(x.x=f+h,x.y=i),h+=x.margin),y.width=y.width||n.width,y.height=p.e.getMax(y.height||n.height,n.height),y.margin=y.margin||n.actorMargin,T=p.e.getMax(T,y.height),a[y.name]&&(h+=y.width/2),y.x=f+h,y.starty=g.getVerticalPos(),g.insert(y.x,i,y.x+y.width,y.height),f+=y.width+h,y.box&&(y.box.width=f+x.margin-y.box.x),h=y.margin,l=y.box,g.models.addActor(y)}l&&!o&&g.models.addBox(l),g.bumpVerticalPos(T)});return function(s,a,r,i,c,o,f){return t.apply(this,arguments)}}(),Ot=function(){var t=(0,W.Z)(function*(e,s,a,r){if(r){let i=0;g.bumpVerticalPos(2*n.boxMargin);for(const c of a){const o=s[c];o.stopy||(o.stopy=g.getVerticalPos());const f=yield B.drawActor(e,o,n,!0);i=p.e.getMax(i,f)}g.bumpVerticalPos(i+n.boxMargin)}else for(const i of a){const c=s[i];yield B.drawActor(e,c,n,!1)}});return function(s,a,r,i){return t.apply(this,arguments)}}(),ae=function(t,e,s,a){let r=0,i=0;for(const c of s){const o=e[c],f=l0(o),h=B.drawPopup(t,o,f,n,n.forceMenus,a);h.height>r&&(r=h.height),h.width+o.x>i&&(i=h.width+o.x)}return{maxHeight:r,maxWidth:i}},oe=function(t){(0,p.f)(n,t),t.fontFamily&&(n.actorFontFamily=n.noteFontFamily=n.messageFontFamily=t.fontFamily),t.fontSize&&(n.actorFontSize=n.noteFontSize=n.messageFontSize=t.fontSize),t.fontWeight&&(n.actorFontWeight=n.noteFontWeight=n.messageFontWeight=t.fontWeight)},Pt=function(t){return g.activations.filter(function(e){return e.actor===t})},ce=function(t,e){const s=e[t],a=Pt(t);return[a.reduce(function(c,o){return p.e.getMin(c,o.startx)},s.x+s.width/2-1),a.reduce(function(c,o){return p.e.getMax(c,o.stopx)},s.x+s.width/2+1)]};function nt(t,e,s,a,r){g.bumpVerticalPos(s);let i=a;if(e.id&&e.message&&t[e.id]){const c=t[e.id].width,o=ft(n);e.message=p.u.wrapLabel(`[${e.message}]`,c-2*n.wrapPadding,o),e.width=c,e.wrap=!0;const f=p.u.calculateTextDimensions(e.message,o),h=p.e.getMax(f.height,n.labelBoxHeight);i=a+h,p.l.debug(`${h} - ${e.message}`)}r(e),g.bumpVerticalPos(i)}function a0(t,e,s,a,r,i,c){function o(h,l){h.x{_.add(k.from),_.add(k.to)}),v=v.filter(k=>_.has(k))}yield n0(l,T,E,v,0,P,!1);const O=yield p0(P,T,Y,r);function z(_,k){const rt=g.endActivation(_);rt.starty+18>k&&(rt.starty=k-6,k+=12),B.drawActivation(l,rt,k,n,Pt(_.from.actor).length),g.insert(rt.startx,k-10,rt.stopx,k)}B.insertArrowHead(l),B.insertArrowCrossHead(l),B.insertArrowFilledHead(l),B.insertSequenceNumber(l);let H=1,Q=1;const K=[],U=[];let G=0;for(const _ of P){let k,rt,tt;switch(_.type){case r.db.LINETYPE.NOTE:g.resetVerticalPos(),rt=_.noteModel,yield s0(l,rt);break;case r.db.LINETYPE.ACTIVE_START:g.newActivation(_,l,T);break;case r.db.LINETYPE.ACTIVE_END:z(_,g.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.LOOP_END:k=g.endLoop(),yield B.drawLoop(l,k,"loop",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.RECT_START:nt(O,_,n.boxMargin,n.boxMargin,S=>g.newLoop(void 0,S.message));break;case r.db.LINETYPE.RECT_END:k=g.endLoop(),U.push(k),g.models.addLoop(k),g.bumpVerticalPos(k.stopy-g.getVerticalPos());break;case r.db.LINETYPE.OPT_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.OPT_END:k=g.endLoop(),yield B.drawLoop(l,k,"opt",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.ALT_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.ALT_ELSE:nt(O,_,n.boxMargin+n.boxTextMargin,n.boxMargin,S=>g.addSectionToLoop(S));break;case r.db.LINETYPE.ALT_END:k=g.endLoop(),yield B.drawLoop(l,k,"alt",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S)),g.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:nt(O,_,n.boxMargin+n.boxTextMargin,n.boxMargin,S=>g.addSectionToLoop(S));break;case r.db.LINETYPE.PAR_END:k=g.endLoop(),yield B.drawLoop(l,k,"par",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.AUTONUMBER:H=_.message.start||H,Q=_.message.step||Q,_.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.CRITICAL_OPTION:nt(O,_,n.boxMargin+n.boxTextMargin,n.boxMargin,S=>g.addSectionToLoop(S));break;case r.db.LINETYPE.CRITICAL_END:k=g.endLoop(),yield B.drawLoop(l,k,"critical",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.BREAK_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.BREAK_END:k=g.endLoop(),yield B.drawLoop(l,k,"break",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;default:try{tt=_.msgModel,tt.starty=g.getVerticalPos(),tt.sequenceIndex=H,tt.sequenceVisible=r.db.showSequenceNumbers();const S=yield r0(l,tt);a0(_,tt,S,G,T,E,y),K.push({messageModel:tt,lineStartY:S}),g.models.addMessage(tt)}catch(S){p.l.error("error while drawing message",S)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(_.type)&&(H+=Q),G++}p.l.debug("createdActors",E),p.l.debug("destroyedActors",y),yield Ot(l,T,v,!1);for(const _ of K)yield i0(l,_.messageModel,_.lineStartY,r);n.mirrorActors&&(yield Ot(l,T,v,!0)),U.forEach(_=>B.drawBackgroundRect(l,_)),re(l,T,v,n);for(const _ of g.models.boxes)_.height=g.getVerticalPos()-_.y,g.insert(_.x,_.y,_.x+_.width,_.height),_.startx=_.x,_.starty=_.y,_.stopx=_.startx+_.width,_.stopy=_.starty+_.height,_.stroke="rgb(0,0,0, 0.5)",yield B.drawBox(l,_,n);D&&g.bumpVerticalPos(n.boxMargin);const Z=ae(l,T,v,h),{bounds:q}=g.getBounds();let j=q.stopy-q.starty;j{const c=ft(n);let o=i.actorKeys.reduce((l,T)=>l+(t[T].width+(t[T].margin||0)),0);o-=2*n.boxTextMargin,i.wrap&&(i.name=p.u.wrapLabel(i.name,o-2*n.wrapPadding,c));const f=p.u.calculateTextDimensions(i.name,c);r=p.e.getMax(f.height,r);const h=p.e.getMax(o,f.width+2*n.wrapPadding);i.margin=n.boxTextMargin,oi.textMaxHeight=r),p.e.getMax(a,n.height)})).apply(this,arguments)}const d0=function(){var t=(0,W.Z)(function*(e,s,a){const r=s[e.from].x,i=s[e.to].x,c=e.wrap&&e.message;let o=(0,p.G)(e.message)?yield(0,p.H)(e.message,(0,p.c)()):p.u.calculateTextDimensions(c?p.u.wrapLabel(e.message,n.width,Tt(n)):e.message,Tt(n));const f={width:c?n.width:p.e.getMax(n.width,o.width+2*n.noteMargin),height:0,startx:s[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===a.db.PLACEMENT.RIGHTOF?(f.width=c?p.e.getMax(n.width,o.width):p.e.getMax(s[e.from].width/2+s[e.to].width/2,o.width+2*n.noteMargin),f.startx=r+(s[e.from].width+n.actorMargin)/2):e.placement===a.db.PLACEMENT.LEFTOF?(f.width=p.e.getMax(c?n.width:s[e.from].width/2+s[e.to].width/2,o.width+2*n.noteMargin),f.startx=r-f.width+(s[e.from].width-n.actorMargin)/2):e.to===e.from?(o=p.u.calculateTextDimensions(c?p.u.wrapLabel(e.message,p.e.getMax(n.width,s[e.from].width),Tt(n)):e.message,Tt(n)),f.width=c?p.e.getMax(n.width,s[e.from].width):p.e.getMax(s[e.from].width,n.width,o.width+2*n.noteMargin),f.startx=r+(s[e.from].width-f.width)/2):(f.width=Math.abs(r+s[e.from].width/2-(i+s[e.to].width/2))+n.actorMargin,f.startx=r2,T=v=>o?-v:v;t.from===t.to?h=f:(t.activate&&!l&&(h+=T(n.activationWidth/2-1)),[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(h+=T(3)));const E=[a,r,i,c],y=Math.abs(f-h);t.wrap&&t.message&&(t.message=p.u.wrapLabel(t.message,p.e.getMax(y+2*n.wrapPadding,n.width),ft(n)));const x=p.u.calculateTextDimensions(t.message,ft(n));return{width:p.e.getMax(t.wrap?0:x.width+2*n.wrapPadding,y+2*n.wrapPadding,n.width),height:0,startx:f,stopx:h,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,E),toBounds:Math.max.apply(null,E)}},p0=function(){var t=(0,W.Z)(function*(e,s,a,r){const i={},c=[];let o,f,h;for(const l of e){switch(l.id=p.u.random({length:10}),l.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:c.push({id:l.id,msg:l.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:l.message&&(o=c.pop(),i[o.id]=o,i[l.id]=o,c.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=c.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{const E=s[l.from?l.from.actor:l.to.actor],y=Pt(l.from?l.from.actor:l.to.actor).length,x=E.x+E.width/2+(y-1)*n.activationWidth/2;g.activations.push({startx:x,stopx:x+n.activationWidth,actor:l.from.actor,enabled:!0})}break;case r.db.LINETYPE.ACTIVE_END:{const E=g.activations.map(y=>y.actor).lastIndexOf(l.from.actor);delete g.activations.splice(E,1)[0]}}void 0!==l.placement?(f=yield d0(l,s,r),l.noteModel=f,c.forEach(E=>{o=E,o.from=p.e.getMin(o.from,f.startx),o.to=p.e.getMax(o.to,f.startx+f.width),o.width=p.e.getMax(o.width,Math.abs(o.from-o.to))-n.labelBoxWidth})):(h=u0(l,s,r),l.msgModel=h,h.startx&&h.stopx&&c.length>0&&c.forEach(E=>{if(o=E,h.startx===h.stopx){const y=s[l.from],x=s[l.to];o.from=p.e.getMin(y.x-h.width/2,y.x-y.width/2,o.from),o.to=p.e.getMax(x.x+h.width/2,x.x+y.width/2,o.to),o.width=p.e.getMax(o.width,Math.abs(o.to-o.from))-n.labelBoxWidth}else o.from=p.e.getMin(h.startx,o.from),o.to=p.e.getMax(h.stopx,o.to),o.width=p.e.getMax(o.width,h.width)-n.labelBoxWidth}))}return g.activations=[],p.l.debug("Loop type widths:",i),i});return function(s,a,r,i){return t.apply(this,arguments)}}(),f0={parser:ue,db:$t,renderer:{bounds:g,drawActors:Ot,drawActorsPopup:ae,setConf:oe,draw:o0},styles:t=>`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`,init:({wrap:t})=>{$t.setWrap(t)}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/60.685c2165b0aaa640.js b/pkg/apiserver-impl/ui/60.685c2165b0aaa640.js new file mode 100644 index 0000000000..0eb7d3736d --- /dev/null +++ b/pkg/apiserver-impl/ui/60.685c2165b0aaa640.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[60],{60:(mt,tt,E)=>{E.r(tt),E.d(tt,{diagram:()=>dt});var o=E(8080),F=E(8586),Y=(E(1764),E(6780),E(2735),function(){var i=function(_,t,e,s){for(e=e||{},s=_.length;s--;e[_[s]]=t);return e},m=[1,3],N=[1,4],p=[1,5],g=[1,6],$=[1,10,12,14,16,18,19,20,21,22],W=[2,4],P=[1,5,10,12,14,16,18,19,20,21,22],h=[20,21,22],w=[2,7],b=[1,12],C=[1,13],L=[1,14],v=[1,15],R=[1,16],u=[1,17],A={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,e,s,r,a,n,D){var y=n.length-1;switch(a){case 3:r.setShowData(!0);break;case 6:this.$=n[y-1];break;case 8:r.addSection(n[y-1],r.cleanupValue(n[y]));break;case 9:this.$=n[y].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=n[y].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=n[y].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(n[y].substr(8)),this.$=n[y].substr(8)}},table:[{3:1,4:2,5:m,20:N,21:p,22:g},{1:[3]},{3:7,4:2,5:m,20:N,21:p,22:g},i($,W,{6:8,7:[1,9]}),i(P,[2,14]),i(P,[2,15]),i(P,[2,16]),{1:[2,1]},i(h,w,{8:10,9:11,1:[2,2],10:b,12:C,14:L,16:v,18:R,19:u}),i($,W,{6:18}),i($,[2,5]),{4:19,20:N,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},i(h,[2,12]),i(h,[2,13]),i(h,w,{8:10,9:11,1:[2,3],10:b,12:C,14:L,16:v,18:R,19:u}),i($,[2,6]),i(h,[2,8]),i(h,[2,9]),i(h,[2,10]),i(h,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},parse:function(t){var s=[0],r=[],a=[null],n=[],D=this.table,y="",c=0,T=0,H=n.slice.call(arguments,1),l=Object.create(this.lexer),I={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(I.yy[J]=this.yy[J]);l.setInput(t,I.yy),I.yy.lexer=l,I.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var Q=l.yylloc;n.push(Q);var x,gt=l.options&&l.options.ranges;this.parseError="function"==typeof I.yy.parseError?I.yy.parseError:Object.getPrototypeOf(this).parseError;for(var f,O,d,X,G,k,K,M={};;){if(this.defaultActions[O=s[s.length-1]]?d=this.defaultActions[O]:((null===f||typeof f>"u")&&(x=void 0,"number"!=typeof(x=r.pop()||l.lex()||1)&&(x instanceof Array&&(x=(r=x).pop()),x=this.symbols_[x]||x),f=x),d=D[O]&&D[O][f]),typeof d>"u"||!d.length||!d[0]){var q;for(G in K=[],D[O])this.terminals_[G]&&G>2&&K.push("'"+this.terminals_[G]+"'");q=l.showPosition?"Parse error on line "+(c+1)+":\n"+l.showPosition()+"\nExpecting "+K.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(q,{text:l.match,token:this.terminals_[f]||f,line:l.yylineno,loc:Q,expected:K})}if(d[0]instanceof Array&&d.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+f);switch(d[0]){case 1:s.push(f),a.push(l.yytext),n.push(l.yylloc),s.push(d[1]),f=null,T=l.yyleng,y=l.yytext,c=l.yylineno,Q=l.yylloc;break;case 2:if(M.$=a[a.length-(k=this.productions_[d[1]][1])],M._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},gt&&(M._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),typeof(X=this.performAction.apply(M,[y,T,c,I.yy,d[1],a,n].concat(H)))<"u")return X;k&&(s=s.slice(0,-1*k*2),a=a.slice(0,-1*k),n=n.slice(0,-1*k)),s.push(this.productions_[d[1]][0]),a.push(M.$),n.push(M._$),s.push(D[s[s.length-2]][s[s.length-1]]);break;case 3:return!0}}return!0}};function S(){this.yy={}}return A.lexer={EOF:1,parseError:function(e,s){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,s)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),s.length-1&&(this.yylineno-=s.length-1);var a=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:s?(s.length===r.length?this.yylloc.first_column:0)+r[r.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var s,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(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+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var n in a)this[n]=a[n];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,s,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),n=0;ne[0].length)){if(e=s,r=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,a[n])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,s,r,a){switch(r){case 0:case 1:case 3:case 4:break;case 2:return 20;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}},S.prototype=A,A.Parser=S,new S}());Y.parser=Y;const st=Y,j_sections={};let z=j_sections,Z=false;const nt=structuredClone(o.B.pie),dt={parser:st,db:{getConfig:()=>structuredClone(nt),clear:()=>{z=structuredClone(j_sections),Z=false,(0,o.v)()},setDiagramTitle:o.q,getDiagramTitle:o.t,setAccTitle:o.s,getAccTitle:o.g,setAccDescription:o.b,getAccDescription:o.a,addSection:(i,m)=>{i=(0,o.d)(i,(0,o.c)()),void 0===z[i]&&(z[i]=m,o.l.debug(`added new section: ${i}, with value: ${m}`))},getSections:()=>z,cleanupValue:i=>(":"===i.substring(0,1)&&(i=i.substring(1).trim()),Number(i.trim())),setShowData:i=>{Z=i},getShowData:()=>Z},renderer:{draw:(i,m,N,p)=>{o.l.debug("rendering pie chart\n"+i);const g=p.db,$=(0,o.c)(),W=(0,o.C)(g.getConfig(),$.pie),L=(0,o.A)(m),v=L.append("g"),R=g.getSections();v.attr("transform","translate(225,225)");const{themeVariables:u}=$;let[A]=(0,o.D)(u.pieOuterStrokeWidth);A??(A=2);const B=W.textPosition,S=Math.min(450,450)/2-40,_=(0,F.Nb1)().innerRadius(0).outerRadius(S),t=(0,F.Nb1)().innerRadius(S*B).outerRadius(S*B);v.append("circle").attr("cx",0).attr("cy",0).attr("r",S+A/2).attr("class","pieOuterCircle");const e=(i=>{const m=Object.entries(i).map(p=>({label:p[0],value:p[1]})).sort((p,g)=>g.value-p.value);return(0,F.ve8)().value(p=>p.value)(m)})(R),r=(0,F.PKp)([u.pie1,u.pie2,u.pie3,u.pie4,u.pie5,u.pie6,u.pie7,u.pie8,u.pie9,u.pie10,u.pie11,u.pie12]);v.selectAll("mySlices").data(e).enter().append("path").attr("d",_).attr("fill",c=>r(c.data.label)).attr("class","pieCircle");let a=0;Object.keys(R).forEach(c=>{a+=R[c]}),v.selectAll("mySlices").data(e).enter().append("text").text(c=>(c.data.value/a*100).toFixed(0)+"%").attr("transform",c=>"translate("+t.centroid(c)+")").style("text-anchor","middle").attr("class","slice"),v.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");const n=v.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(c,T)=>"translate(216,"+(22*T-22*r.domain().length/2)+")");n.append("rect").attr("width",18).attr("height",18).style("fill",r).style("stroke",r),n.data(e).append("text").attr("x",22).attr("y",14).text(c=>{const{label:T,value:V}=c.data;return g.getShowData()?`${T} [${V}]`:T});const y=512+Math.max(...n.selectAll("text").nodes().map(c=>c?.getBoundingClientRect().width??0));L.attr("viewBox",`0 0 ${y} 450`),(0,o.i)(L,450,y,W.useMaxWidth)}},styles:i=>`\n .pieCircle{\n stroke: ${i.pieStrokeColor};\n stroke-width : ${i.pieStrokeWidth};\n opacity : ${i.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${i.pieOuterStrokeColor};\n stroke-width: ${i.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${i.pieTitleTextSize};\n fill: ${i.pieTitleTextColor};\n font-family: ${i.fontFamily};\n }\n .slice {\n font-family: ${i.fontFamily};\n fill: ${i.pieSectionTextColor};\n font-size:${i.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${i.pieLegendTextColor};\n font-family: ${i.fontFamily};\n font-size: ${i.pieLegendTextSize};\n }\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/633.98936ec9d0fd371a.js b/pkg/apiserver-impl/ui/633.98936ec9d0fd371a.js deleted file mode 100644 index 28d63ae14d..0000000000 --- a/pkg/apiserver-impl/ui/633.98936ec9d0fd371a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[633],{4633:(mt,tt,E)=>{E.r(tt),E.d(tt,{diagram:()=>dt});var o=E(9037),F=E(8586),Y=(E(1764),E(6780),E(2735),function(){var i=function(_,t,e,s){for(e=e||{},s=_.length;s--;e[_[s]]=t);return e},m=[1,3],N=[1,4],p=[1,5],g=[1,6],$=[1,10,12,14,16,18,19,20,21,22],W=[2,4],P=[1,5,10,12,14,16,18,19,20,21,22],h=[20,21,22],w=[2,7],v=[1,12],C=[1,13],L=[1,14],b=[1,15],R=[1,16],u=[1,17],A={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,e,s,r,a,n,D){var y=n.length-1;switch(a){case 3:r.setShowData(!0);break;case 6:this.$=n[y-1];break;case 8:r.addSection(n[y-1],r.cleanupValue(n[y]));break;case 9:this.$=n[y].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=n[y].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=n[y].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(n[y].substr(8)),this.$=n[y].substr(8)}},table:[{3:1,4:2,5:m,20:N,21:p,22:g},{1:[3]},{3:7,4:2,5:m,20:N,21:p,22:g},i($,W,{6:8,7:[1,9]}),i(P,[2,14]),i(P,[2,15]),i(P,[2,16]),{1:[2,1]},i(h,w,{8:10,9:11,1:[2,2],10:v,12:C,14:L,16:b,18:R,19:u}),i($,W,{6:18}),i($,[2,5]),{4:19,20:N,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},i(h,[2,12]),i(h,[2,13]),i(h,w,{8:10,9:11,1:[2,3],10:v,12:C,14:L,16:b,18:R,19:u}),i($,[2,6]),i(h,[2,8]),i(h,[2,9]),i(h,[2,10]),i(h,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},parse:function(t){var s=[0],r=[],a=[null],n=[],D=this.table,y="",c=0,T=0,H=n.slice.call(arguments,1),l=Object.create(this.lexer),I={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(I.yy[J]=this.yy[J]);l.setInput(t,I.yy),I.yy.lexer=l,I.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var Q=l.yylloc;n.push(Q);var x,gt=l.options&&l.options.ranges;this.parseError="function"==typeof I.yy.parseError?I.yy.parseError:Object.getPrototypeOf(this).parseError;for(var f,O,d,X,G,k,K,M={};;){if(this.defaultActions[O=s[s.length-1]]?d=this.defaultActions[O]:((null===f||typeof f>"u")&&(x=void 0,"number"!=typeof(x=r.pop()||l.lex()||1)&&(x instanceof Array&&(x=(r=x).pop()),x=this.symbols_[x]||x),f=x),d=D[O]&&D[O][f]),typeof d>"u"||!d.length||!d[0]){var q;for(G in K=[],D[O])this.terminals_[G]&&G>2&&K.push("'"+this.terminals_[G]+"'");q=l.showPosition?"Parse error on line "+(c+1)+":\n"+l.showPosition()+"\nExpecting "+K.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(q,{text:l.match,token:this.terminals_[f]||f,line:l.yylineno,loc:Q,expected:K})}if(d[0]instanceof Array&&d.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+f);switch(d[0]){case 1:s.push(f),a.push(l.yytext),n.push(l.yylloc),s.push(d[1]),f=null,T=l.yyleng,y=l.yytext,c=l.yylineno,Q=l.yylloc;break;case 2:if(M.$=a[a.length-(k=this.productions_[d[1]][1])],M._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},gt&&(M._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),typeof(X=this.performAction.apply(M,[y,T,c,I.yy,d[1],a,n].concat(H)))<"u")return X;k&&(s=s.slice(0,-1*k*2),a=a.slice(0,-1*k),n=n.slice(0,-1*k)),s.push(this.productions_[d[1]][0]),a.push(M.$),n.push(M._$),s.push(D[s[s.length-2]][s[s.length-1]]);break;case 3:return!0}}return!0}};function S(){this.yy={}}return A.lexer={EOF:1,parseError:function(e,s){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,s)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),s.length-1&&(this.yylineno-=s.length-1);var a=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:s?(s.length===r.length?this.yylloc.first_column:0)+r[r.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var s,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(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+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var n in a)this[n]=a[n];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,s,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),n=0;ne[0].length)){if(e=s,r=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,a[n])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,s,r,a){switch(r){case 0:case 1:case 3:case 4:break;case 2:return 20;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}},S.prototype=A,A.Parser=S,new S}());Y.parser=Y;const st=Y,j_sections={};let z=j_sections,Z=false;const nt=structuredClone(o.B.pie),dt={parser:st,db:{getConfig:()=>structuredClone(nt),clear:()=>{z=structuredClone(j_sections),Z=false,(0,o.v)()},setDiagramTitle:o.q,getDiagramTitle:o.t,setAccTitle:o.s,getAccTitle:o.g,setAccDescription:o.b,getAccDescription:o.a,addSection:(i,m)=>{i=(0,o.d)(i,(0,o.c)()),void 0===z[i]&&(z[i]=m,o.l.debug(`added new section: ${i}, with value: ${m}`))},getSections:()=>z,cleanupValue:i=>(":"===i.substring(0,1)&&(i=i.substring(1).trim()),Number(i.trim())),setShowData:i=>{Z=i},getShowData:()=>Z},renderer:{draw:(i,m,N,p)=>{o.l.debug("rendering pie chart\n"+i);const g=p.db,$=(0,o.c)(),W=(0,o.C)(g.getConfig(),$.pie),L=(0,o.A)(m),b=L.append("g"),R=g.getSections();b.attr("transform","translate(225,225)");const{themeVariables:u}=$;let[A]=(0,o.D)(u.pieOuterStrokeWidth);A??(A=2);const B=W.textPosition,S=Math.min(450,450)/2-40,_=(0,F.Nb1)().innerRadius(0).outerRadius(S),t=(0,F.Nb1)().innerRadius(S*B).outerRadius(S*B);b.append("circle").attr("cx",0).attr("cy",0).attr("r",S+A/2).attr("class","pieOuterCircle");const e=(i=>{const m=Object.entries(i).map(p=>({label:p[0],value:p[1]})).sort((p,g)=>g.value-p.value);return(0,F.ve8)().value(p=>p.value)(m)})(R),r=(0,F.PKp)([u.pie1,u.pie2,u.pie3,u.pie4,u.pie5,u.pie6,u.pie7,u.pie8,u.pie9,u.pie10,u.pie11,u.pie12]);b.selectAll("mySlices").data(e).enter().append("path").attr("d",_).attr("fill",c=>r(c.data.label)).attr("class","pieCircle");let a=0;Object.keys(R).forEach(c=>{a+=R[c]}),b.selectAll("mySlices").data(e).enter().append("text").text(c=>(c.data.value/a*100).toFixed(0)+"%").attr("transform",c=>"translate("+t.centroid(c)+")").style("text-anchor","middle").attr("class","slice"),b.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");const n=b.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(c,T)=>"translate(216,"+(22*T-22*r.domain().length/2)+")");n.append("rect").attr("width",18).attr("height",18).style("fill",r).style("stroke",r),n.data(e).append("text").attr("x",22).attr("y",14).text(c=>{const{label:T,value:V}=c.data;return g.getShowData()?`${T} [${V}]`:T});const y=512+Math.max(...n.selectAll("text").nodes().map(c=>c?.getBoundingClientRect().width??0));L.attr("viewBox",`0 0 ${y} 450`),(0,o.i)(L,450,y,W.useMaxWidth)}},styles:i=>`\n .pieCircle{\n stroke: ${i.pieStrokeColor};\n stroke-width : ${i.pieStrokeWidth};\n opacity : ${i.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${i.pieOuterStrokeColor};\n stroke-width: ${i.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${i.pieTitleTextSize};\n fill: ${i.pieTitleTextColor};\n font-family: ${i.fontFamily};\n }\n .slice {\n font-family: ${i.fontFamily};\n fill: ${i.pieSectionTextColor};\n font-size:${i.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${i.pieLegendTextColor};\n font-family: ${i.fontFamily};\n font-size: ${i.pieLegendTextSize};\n }\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/652.a257982f6cb94696.js b/pkg/apiserver-impl/ui/652.a257982f6cb94696.js new file mode 100644 index 0000000000..7d4594ee99 --- /dev/null +++ b/pkg/apiserver-impl/ui/652.a257982f6cb94696.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[652],{7153:(at,L,b)=>{b.r(L),b.d(L,{diagram:()=>et});var m=b(1106),P=b(8586),C=b(1065),W=b(8814),t=b(8080);b(1764),b(6780),b(2735);const N={},F=(e,i,r)=>{const o=(0,t.c)().state.padding,s=2*(0,t.c)().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,d=e.append("text").attr("x",0).attr("y",(0,t.c)().state.titleShift).attr("font-size",(0,t.c)().state.fontSize).attr("class","state-title").text(i.id),x=d.node().getBBox().width+s;let l,c=Math.max(x,p);c===p&&(c+=s);const w=e.node().getBBox();l=a-o,x>p&&(l=(p-c)/2+o),Math.abs(a-w.x)p&&(l=a-(x-p)/2);const B=1-(0,t.c)().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",B).attr("class",r?"alt-composit":"composit").attr("width",c).attr("height",w.height+(0,t.c)().state.textHeight+(0,t.c)().state.titleShift+1).attr("rx","0"),d.attr("x",l+o),x<=p&&d.attr("x",a+(c-s)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",(0,t.c)().state.titleShift-(0,t.c)().state.textHeight-(0,t.c)().state.padding).attr("width",c).attr("height",3*(0,t.c)().state.textHeight).attr("rx",(0,t.c)().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",(0,t.c)().state.titleShift-(0,t.c)().state.textHeight-(0,t.c)().state.padding).attr("width",c).attr("height",w.height+3+2*(0,t.c)().state.textHeight).attr("rx",(0,t.c)().state.radius),e},H=function(e,i){const r=i.id,o={id:r,label:i.id,width:0,height:0},s=e.append("g").attr("id",r).attr("class","stateGroup");"start"===i.type&&(e=>{e.append("circle").attr("class","start-state").attr("r",(0,t.c)().state.sizeUnit).attr("cx",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit).attr("cy",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit)})(s),"end"===i.type&&(e=>{e.append("circle").attr("class","end-state-outer").attr("r",(0,t.c)().state.sizeUnit+(0,t.c)().state.miniPadding).attr("cx",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+(0,t.c)().state.miniPadding).attr("cy",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+(0,t.c)().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",(0,t.c)().state.sizeUnit).attr("cx",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+2).attr("cy",(0,t.c)().state.padding+(0,t.c)().state.sizeUnit+2)})(s),("fork"===i.type||"join"===i.type)&&((e,i)=>{let r=(0,t.c)().state.forkWidth,o=(0,t.c)().state.forkHeight;if(i.parentId){let s=r;r=o,o=s}e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",o).attr("x",(0,t.c)().state.padding).attr("y",(0,t.c)().state.padding)})(s,i),"note"===i.type&&((e,i)=>{i.attr("class","state-note");const r=i.append("rect").attr("x",0).attr("y",(0,t.c)().state.padding),o=i.append("g"),{textWidth:s,textHeight:g}=((e,i,r,o)=>{let s=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(t.e.lineBreakRegex);let d=1.25*(0,t.c)().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");c.text(x),0===d&&(d+=c.node().getBBox().height),s+=d,c.attr("x",0+(0,t.c)().state.noteMargin),c.attr("y",0+s+1.25*(0,t.c)().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}})(e,0,0,o);r.attr("height",g+2*(0,t.c)().state.noteMargin),r.attr("width",s+2*(0,t.c)().state.noteMargin)})(i.note.text,s),"divider"===i.type&&(e=>{e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,t.c)().state.textHeight).attr("class","divider").attr("x2",2*(0,t.c)().state.textHeight).attr("y1",0).attr("y2",0)})(s),"default"===i.type&&0===i.descriptions.length&&((e,i)=>{const o=e.append("text").attr("x",2*(0,t.c)().state.padding).attr("y",(0,t.c)().state.textHeight+2*(0,t.c)().state.padding).attr("font-size",(0,t.c)().state.fontSize).attr("class","state-title").text(i.id).node().getBBox();e.insert("rect",":first-child").attr("x",(0,t.c)().state.padding).attr("y",(0,t.c)().state.padding).attr("width",o.width+2*(0,t.c)().state.padding).attr("height",o.height+2*(0,t.c)().state.padding).attr("rx",(0,t.c)().state.radius)})(s,i),"default"===i.type&&i.descriptions.length>0&&((e,i)=>{const s=e.append("text").attr("x",2*(0,t.c)().state.padding).attr("y",(0,t.c)().state.textHeight+1.3*(0,t.c)().state.padding).attr("font-size",(0,t.c)().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",(0,t.c)().state.padding).attr("y",g+.4*(0,t.c)().state.padding+(0,t.c)().state.dividerMargin+(0,t.c)().state.textHeight).attr("class","state-description");let a=!0,d=!0;i.descriptions.forEach(function(l){a||(function(l,w,B){const M=l.append("tspan").attr("x",2*(0,t.c)().state.padding).text(w);B||M.attr("dy",(0,t.c)().state.textHeight)}(p,l,d),d=!1),a=!1});const y=e.append("line").attr("x1",(0,t.c)().state.padding).attr("y1",(0,t.c)().state.padding+g+(0,t.c)().state.dividerMargin/2).attr("y2",(0,t.c)().state.padding+g+(0,t.c)().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),c=Math.max(x.width,s.width);y.attr("x2",c+3*(0,t.c)().state.padding),e.insert("rect",":first-child").attr("x",(0,t.c)().state.padding).attr("y",(0,t.c)().state.padding).attr("width",c+2*(0,t.c)().state.padding).attr("height",x.height+g+2*(0,t.c)().state.padding).attr("rx",(0,t.c)().state.radius)})(s,i);const g=s.node().getBBox();return o.width=g.width+2*(0,t.c)().state.padding,o.height=g.height+2*(0,t.c)().state.padding,((e,i)=>{N[e]=i})(r,o),o};let E,z=0;const T={},q=e=>e?e.length*E.fontSizeFactor:1,A=(e,i,r,o,s,g,p)=>{const a=new W.k({compound:!0,multigraph:!0});let d,y=!0;for(d=0;d{const f=h.parentElement;let _=0,k=0;f&&(f.parentElement&&(_=f.parentElement.getBBox().width),k=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),h.setAttribute("x1",0-k+8),h.setAttribute("x2",_-k-8)})):t.l.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let M=B.getBBox();a.edges().forEach(function(n){void 0!==n&&void 0!==a.edge(n)&&(t.l.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),function(e,i,r){i.points=i.points.filter(d=>!Number.isNaN(d.y));const s=i.points,g=(0,P.jvg)().x(function(d){return d.x}).y(function(d){return d.y}).curve(P.$0Z),p=e.append("path").attr("d",g(s)).attr("id","edge"+z).attr("class","transition");let a="";if((0,t.c)().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+function(d){switch(d){case m.d.relationType.AGGREGATION:return"aggregation";case m.d.relationType.EXTENSION:return"extension";case m.d.relationType.COMPOSITION:return"composition";case m.d.relationType.DEPENDENCY:return"dependency"}}(m.d.relationType.DEPENDENCY)+"End)"),void 0!==r.title){const d=e.append("g").attr("class","stateLabel"),{x:y,y:x}=t.u.calcLabelPosition(i.points),c=t.e.getRows(r.title);let l=0;const w=[];let B=0,M=0;for(let u=0;u<=c.length;u++){const h=d.append("text").attr("text-anchor","middle").text(c[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();B=Math.max(B,f.width),M=Math.min(M,f.x),t.l.info(f.x,y,x+l),0===l&&(l=h.node().getBBox().height,t.l.info("Title height",l,x)),w.push(h)}let S=l*c.length;if(c.length>1){const u=(c.length-1)*l*.5;w.forEach((h,f)=>h.attr("y",x+f*l-u)),S=l*c.length}const n=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y-B/2-(0,t.c)().state.padding/2).attr("y",x-S/2-(0,t.c)().state.padding/2-3.5).attr("width",B+(0,t.c)().state.padding).attr("height",S+(0,t.c)().state.padding),t.l.info(n)}z++}(i,a.edge(n),a.edge(n).relation))}),M=B.getBBox();const S={id:r||"root",label:r||"root",width:0,height:0};return S.width=M.width+2*E.padding,S.height=M.height+2*E.padding,t.l.debug("Doc rendered",S,a),S},et={parser:m.p,db:m.d,renderer:{setConf:function(){},draw:function(e,i,r,o){E=(0,t.c)().state;const s=(0,t.c)().securityLevel;let g;"sandbox"===s&&(g=(0,P.Ys)("#i"+i));const p=(0,P.Ys)("sandbox"===s?g.nodes()[0].contentDocument.body:"body"),a="sandbox"===s?g.nodes()[0].contentDocument:document;t.l.debug("Rendering diagram "+e);const d=p.select(`[id='${i}']`);!function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}(d);const y=o.db.getRootDoc();A(y,d,void 0,!1,p,a,o);const x=E.padding,c=d.node().getBBox(),l=c.width+2*x,w=c.height+2*x;(0,t.i)(d,w,1.75*l,E.useMaxWidth),d.attr("viewBox",`${c.x-E.padding} ${c.y-E.padding} `+l+" "+w)}},styles:m.s,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,m.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/665.07fb59cca43331d0.js b/pkg/apiserver-impl/ui/665.07fb59cca43331d0.js new file mode 100644 index 0000000000..3dd80158a3 --- /dev/null +++ b/pkg/apiserver-impl/ui/665.07fb59cca43331d0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[665],{4665:(tt,ue,Y)=>{Y.r(ue),Y.d(ue,{diagram:()=>Qe});var p=Y(8080),we=Y(8586),ne=(Y(1764),Y(6780),Y(2735),function(){var r=function(I,o,u,k){for(u=u||{},k=I.length;k--;u[I[k]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],b=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],y=[7,13,19,21,23,24,26,28,31,37,40],_=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],v=[1,42],E=[1,41],g=[7,13,29,32,35,38,47],f=[1,55],x=[1,56],d=[1,57],T=[7,13,32,35,42,47],D={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,k,s,w,e,ee){var t=e.length-1;switch(w){case 2:return e[t];case 3:return e[t-1];case 4:return s.setDirection(e[t-3]),e[t-1];case 6:s.setOptions(e[t-1]),this.$=e[t];break;case 7:e[t-1]+=e[t],this.$=e[t-1];break;case 9:this.$=[];break;case 10:e[t-1].push(e[t]),this.$=e[t-1];break;case 11:this.$=e[t-1];break;case 16:this.$=e[t].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=e[t].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 21:s.checkout(e[t]);break;case 22:s.branch(e[t]);break;case 23:s.branch(e[t-2],e[t]);break;case 24:s.cherryPick(e[t],"",void 0);break;case 25:s.cherryPick(e[t-2],"",void 0,e[t]);break;case 26:s.cherryPick(e[t-2],"",e[t]);break;case 27:s.cherryPick(e[t-4],"",e[t],e[t-2]);break;case 28:s.cherryPick(e[t-4],"",e[t-2],e[t]);break;case 29:s.cherryPick(e[t],"",e[t-2]);break;case 30:s.cherryPick(e[t],"","");break;case 31:s.cherryPick(e[t-2],"","");break;case 32:s.cherryPick(e[t-4],"","",e[t-2]);break;case 33:s.cherryPick(e[t-4],"","",e[t]);break;case 34:s.cherryPick(e[t-2],"",e[t-4],e[t]);break;case 35:s.cherryPick(e[t-2],"","",e[t]);break;case 36:s.merge(e[t],"","","");break;case 37:s.merge(e[t-2],e[t],"","");break;case 38:s.merge(e[t-2],"",e[t],"");break;case 39:s.merge(e[t-2],"","",e[t]);break;case 40:s.merge(e[t-4],e[t],"",e[t-2]);break;case 41:s.merge(e[t-4],"",e[t],e[t-2]);break;case 42:s.merge(e[t-4],"",e[t-2],e[t]);break;case 43:s.merge(e[t-4],e[t-2],e[t],"");break;case 44:s.merge(e[t-4],e[t-2],"",e[t]);break;case 45:s.merge(e[t-4],e[t],e[t-2],"");break;case 46:s.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 47:s.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 48:s.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 49:s.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 50:s.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 51:s.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 52:s.commit(e[t]);break;case 53:s.commit("","",s.commitType.NORMAL,e[t]);break;case 54:s.commit("","",e[t],"");break;case 55:s.commit("","",e[t],e[t-2]);break;case 56:s.commit("","",e[t-2],e[t]);break;case 57:s.commit("",e[t],s.commitType.NORMAL,"");break;case 58:s.commit("",e[t-2],s.commitType.NORMAL,e[t]);break;case 59:s.commit("",e[t],s.commitType.NORMAL,e[t-2]);break;case 60:s.commit("",e[t-2],e[t],"");break;case 61:s.commit("",e[t],e[t-2],"");break;case 62:s.commit("",e[t-4],e[t-2],e[t]);break;case 63:s.commit("",e[t-4],e[t],e[t-2]);break;case 64:s.commit("",e[t-2],e[t-4],e[t]);break;case 65:s.commit("",e[t],e[t-4],e[t-2]);break;case 66:s.commit("",e[t],e[t-2],e[t-4]);break;case 67:s.commit("",e[t-2],e[t],e[t-4]);break;case 68:s.commit(e[t],"",s.commitType.NORMAL,"");break;case 69:s.commit(e[t],"",s.commitType.NORMAL,e[t-2]);break;case 70:s.commit(e[t-2],"",s.commitType.NORMAL,e[t]);break;case 71:s.commit(e[t-2],"",e[t],"");break;case 72:s.commit(e[t],"",e[t-2],"");break;case 73:s.commit(e[t],e[t-2],s.commitType.NORMAL,"");break;case 74:s.commit(e[t-2],e[t],s.commitType.NORMAL,"");break;case 75:s.commit(e[t-4],"",e[t-2],e[t]);break;case 76:s.commit(e[t-4],"",e[t],e[t-2]);break;case 77:s.commit(e[t-2],"",e[t-4],e[t]);break;case 78:s.commit(e[t],"",e[t-4],e[t-2]);break;case 79:s.commit(e[t],"",e[t-2],e[t-4]);break;case 80:s.commit(e[t-2],"",e[t],e[t-4]);break;case 81:s.commit(e[t-4],e[t],e[t-2],"");break;case 82:s.commit(e[t-4],e[t-2],e[t],"");break;case 83:s.commit(e[t-2],e[t],e[t-4],"");break;case 84:s.commit(e[t],e[t-2],e[t-4],"");break;case 85:s.commit(e[t],e[t-4],e[t-2],"");break;case 86:s.commit(e[t-2],e[t-4],e[t],"");break;case 87:s.commit(e[t-4],e[t],s.commitType.NORMAL,e[t-2]);break;case 88:s.commit(e[t-4],e[t-2],s.commitType.NORMAL,e[t]);break;case 89:s.commit(e[t-2],e[t],s.commitType.NORMAL,e[t-4]);break;case 90:s.commit(e[t],e[t-2],s.commitType.NORMAL,e[t-4]);break;case 91:s.commit(e[t],e[t-4],s.commitType.NORMAL,e[t-2]);break;case 92:s.commit(e[t-2],e[t-4],s.commitType.NORMAL,e[t]);break;case 93:s.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 94:s.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 95:s.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 96:s.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 97:s.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 98:s.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 99:s.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 100:s.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 101:s.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 102:s.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 103:s.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 104:s.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 105:s.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 106:s.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 107:s.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 108:s.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 109:s.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 110:s.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 111:s.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 112:s.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 113:s.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 114:s.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 115:s.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 116:s.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 117:this.$="";break;case 118:this.$=e[t];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:b},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:b},{8:[1,15]},r(y,[2,9],{11:16,12:[1,17]}),r(_,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:b},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(_,[2,7]),{1:[2,3]},{7:[1,36]},r(y,[2,10]),{4:37,7:l,13:h,47:i},r(y,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:v,46:E},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:v,46:E},{32:[1,50],35:[1,51]},{27:52,33:v,46:E},{1:[2,4]},r(y,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(g,[2,122]),r(g,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:x,45:d},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(T,[2,119]),r(T,[2,120]),r(T,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:x,45:d},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:x,45:d},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:x,45:d},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:x,45:d},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:x,45:d},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:x,45:d},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:x,45:d},{33:[1,148]},{39:149,43:f,44:x,45:d},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:x,45:d},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:x,45:d},{33:[1,162]},{39:163,43:f,44:x,45:d},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:x,45:d},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:x,45:d},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:x,45:d},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:x,45:d},{33:[1,215]},{39:216,43:f,44:x,45:d},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:x,45:d},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:x,45:d},{33:[1,229]},{39:230,43:f,44:x,45:d},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:x,45:d},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(!u.recoverable){var k=new Error(o);throw k.hash=u,k}this.trace(o)},parse:function(o){var k=[0],s=[],w=[null],e=[],ee=this.table,t="",ie=0,_e=0,Ze=e.slice.call(arguments,1),A=Object.create(this.lexer),U={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(U.yy[oe]=this.yy[oe]);A.setInput(o,U.yy),U.yy.lexer=A,U.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var le=A.yylloc;e.push(le);var j,$e=A.options&&A.options.ranges;this.parseError="function"==typeof U.yy.parseError?U.yy.parseError:Object.getPrototypeOf(this).parseError;for(var H,q,B,he,se,z,ae,J={};;){if(this.defaultActions[q=k[k.length-1]]?B=this.defaultActions[q]:((null===H||typeof H>"u")&&(j=void 0,"number"!=typeof(j=s.pop()||A.lex()||1)&&(j instanceof Array&&(j=(s=j).pop()),j=this.symbols_[j]||j),H=j),B=ee[q]&&ee[q][H]),typeof B>"u"||!B.length||!B[0]){var me;for(se in ae=[],ee[q])this.terminals_[se]&&se>2&&ae.push("'"+this.terminals_[se]+"'");me=A.showPosition?"Parse error on line "+(ie+1)+":\n"+A.showPosition()+"\nExpecting "+ae.join(", ")+", got '"+(this.terminals_[H]||H)+"'":"Parse error on line "+(ie+1)+": Unexpected "+(1==H?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(me,{text:A.match,token:this.terminals_[H]||H,line:A.yylineno,loc:le,expected:ae})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+H);switch(B[0]){case 1:k.push(H),w.push(A.yytext),e.push(A.yylloc),k.push(B[1]),H=null,_e=A.yyleng,t=A.yytext,ie=A.yylineno,le=A.yylloc;break;case 2:if(J.$=w[w.length-(z=this.productions_[B[1]][1])],J._$={first_line:e[e.length-(z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(z||1)].first_column,last_column:e[e.length-1].last_column},$e&&(J._$.range=[e[e.length-(z||1)].range[0],e[e.length-1].range[1]]),typeof(he=this.performAction.apply(J,[t,_e,ie,U.yy,B[1],w,e].concat(Ze)))<"u")return he;z&&(k=k.slice(0,-1*z*2),w=w.slice(0,-1*z),e=e.slice(0,-1*z)),k.push(this.productions_[B[1]][0]),w.push(J.$),e.push(J._$),k.push(ee[k[k.length-2]][k[k.length-1]]);break;case 3:return!0}}return!0}};function S(){this.yy={}}return D.lexer={EOF:1,parseError:function(u,k){if(!this.yy.parser)throw new Error(u);this.yy.parser.parseError(u,k)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,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},input:function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},unput:function(o){var u=o.length,k=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=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),k.length-1&&(this.yylineno-=k.length-1);var w=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:k?(k.length===s.length?this.yylloc.first_column:0)+s[s.length-k.length].length-k[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+"\n"+u+"^"},test_match:function(o,u){var k,s,w;if(this.options.backtrack_lexer&&(w={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&&(w.yylloc.range=this.yylloc.range.slice(0))),(s=o[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],k=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var e in w)this[e]=w[e];return!1}return!1},next:function(){if(this.done)return this.EOF;var o,u,k,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),e=0;eu[0].length)){if(u=k,s=e,this.options.backtrack_lexer){if(!1!==(o=this.test_match(k,w[e])))return o;if(this._backtrack){u=!1;continue}return!1}if(!this.options.flex)break}return u?!1!==(o=this.test_match(u,w[s]))&&o:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return(u=this.conditionStack.length-1-Math.abs(u||0))>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,k,s,w){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 30:case 34:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}},S.prototype=D,D.Parser=S,new S}());ne.parser=ne;const Me=ne;let te=(0,p.c)().gitGraph.mainBranchName,Re=(0,p.c)().gitGraph.mainBranchOrder,L={},G=null,Q={};Q[te]={name:te,order:Re};let M={};M[te]=G;let O=te,fe="LR",K=0;function ce(){return(0,p.y)({length:7})}let pe={};const be=function(r){if(r=p.e.sanitizeText(r,(0,p.c)()),void 0===M[r]){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}O=r,G=L[M[O]]};function ge(r,n,l){const h=r.indexOf(n);-1===h?r.push(l):r.splice(h,1,l)}function de(r){const n=r.reduce((i,c)=>i.seq>c.seq?i:c,r[0]);let l="";r.forEach(function(i){l+=i===n?"\t*":"\t|"});const h=[l,n.id,n.seq];for(let i in M)M[i]===n.id&&h.push(i);if(p.l.debug(h.join(" ")),n.parents&&2==n.parents.length)ge(r,n,L[n.parents[0]]),r.push(L[n.parents[1]]);else{if(0==n.parents.length)return;ge(r,n,L[n.parents])}r=function Le(r,n){const l=Object.create(null);return r.reduce((h,i)=>{const c=n(i);return l[c]||(l[c]=!0,h.push(i)),h},[])}(r,i=>i.id),de(r)}const ke=function(){const r=Object.keys(L).map(function(n){return L[n]});return r.forEach(function(n){p.l.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},W={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};let X={};let N={},V={},re=[],Z=0,R="LR";const xe=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];l="string"==typeof r?r.split(/\\n|\n|/gi):Array.isArray(r)?r:[];for(const h of l){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=h.trim(),n.appendChild(i)}return n},ye=(r,n,l)=>{const h=(0,p.c)().gitGraph,i=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let b=0;"TB"===R&&(b=30);const y=Object.keys(n).sort((E,g)=>n[E].seq-n[g].seq),_=h.parallelCommits;y.forEach(E=>{const g=n[E];if(_)if(g.parents.length){const T=(r=>{let n="",l=0;return r.forEach(h=>{const i="TB"===R?V[h].y:V[h].x;i>=l&&(n=h,l=i)}),n||void 0})(g.parents);b="TB"===R?V[T].y+40:V[T].x+40}else b=0,"TB"===R&&(b=30);const f=b+10,x="TB"===R?f:N[g.branch].pos,d="TB"===R?N[g.branch].pos:f;if(l){let T,D=void 0!==g.customType&&""!==g.customType?g.customType:g.type;switch(D){case 0:default:T="commit-normal";break;case 1:T="commit-reverse";break;case 2:T="commit-highlight";break;case 3:T="commit-merge";break;case 4:T="commit-cherry-pick"}if(2===D){const C=i.append("rect");C.attr("x",d-10),C.attr("y",x-10),C.attr("height",20),C.attr("width",20),C.attr("class",`commit ${g.id} commit-highlight${N[g.branch].index%8} ${T}-outer`),i.append("rect").attr("x",d-6).attr("y",x-6).attr("height",12).attr("width",12).attr("class",`commit ${g.id} commit${N[g.branch].index%8} ${T}-inner`)}else if(4===D)i.append("circle").attr("cx",d).attr("cy",x).attr("r",10).attr("class",`commit ${g.id} ${T}`),i.append("circle").attr("cx",d-3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${g.id} ${T}`),i.append("circle").attr("cx",d+3).attr("cy",x+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${g.id} ${T}`),i.append("line").attr("x1",d+3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${g.id} ${T}`),i.append("line").attr("x1",d-3).attr("y1",x+1).attr("x2",d).attr("y2",x-5).attr("stroke","#fff").attr("class",`commit ${g.id} ${T}`);else{const C=i.append("circle");if(C.attr("cx",d),C.attr("cy",x),C.attr("r",3===g.type?9:10),C.attr("class",`commit ${g.id} commit${N[g.branch].index%8}`),3===D){const S=i.append("circle");S.attr("cx",d),S.attr("cy",x),S.attr("r",6),S.attr("class",`commit ${T} ${g.id} commit${N[g.branch].index%8}`)}1===D&&i.append("path").attr("d",`M ${d-5},${x-5}L${d+5},${x+5}M${d-5},${x+5}L${d+5},${x-5}`).attr("class",`commit ${T} ${g.id} commit${N[g.branch].index%8}`)}}if(V[g.id]="TB"===R?{x:d,y:f}:{x:f,y:x},l){if(4!==g.type&&(g.customId&&3===g.type||3!==g.type)&&h.showCommitLabel){const C=c.append("g"),S=C.insert("rect").attr("class","commit-label-bkg"),I=C.append("text").attr("x",b).attr("y",x+25).attr("class","commit-label").text(g.id);let o=I.node().getBBox();S.attr("x",f-o.width/2-2).attr("y",x+13.5).attr("width",o.width+4).attr("height",o.height+4),"TB"===R&&(S.attr("x",d-(o.width+16+5)).attr("y",x-12),I.attr("x",d-(o.width+16)).attr("y",x+o.height-12)),"TB"!==R&&I.attr("x",f-o.width/2),h.rotateCommitLabel&&("TB"===R?(I.attr("transform","rotate(-45, "+d+", "+x+")"),S.attr("transform","rotate(-45, "+d+", "+x+")")):C.attr("transform","translate("+(-7.5-(o.width+10)/25*9.5)+", "+(10+o.width/25*8.5)+") rotate(-45, "+b+", "+x+")"))}if(g.tag){const C=c.insert("polygon"),S=c.append("circle"),I=c.append("text").attr("y",x-16).attr("class","tag-label").text(g.tag);let o=I.node().getBBox();I.attr("x",f-o.width/2);const u=o.height/2,k=x-19.2;C.attr("class","tag-label-bkg").attr("points",`\n ${b-o.width/2-2},${k+2}\n ${b-o.width/2-2},${k-2}\n ${f-o.width/2-4},${k-u-2}\n ${f+o.width/2+4},${k-u-2}\n ${f+o.width/2+4},${k+u+2}\n ${f-o.width/2-4},${k+u+2}`),S.attr("cx",b-o.width/2+2).attr("cy",k).attr("r",1.5).attr("class","tag-hole"),"TB"===R&&(C.attr("class","tag-label-bkg").attr("points",`\n ${d},${b+2}\n ${d},${b-2}\n ${d+10},${b-u-2}\n ${d+10+o.width+4},${b-u-2}\n ${d+10+o.width+4},${b+u+2}\n ${d+10},${b+u+2}`).attr("transform","translate(12,12) rotate(45, "+d+","+b+")"),S.attr("cx",d+2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+d+","+b+")"),I.attr("x",d+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+d+","+b+")"))}}b+=50,b>Z&&(Z=b)})},$=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(re.every(b=>Math.abs(b-h)>=10))return re.push(h),h;const c=Math.abs(r-n);return $(r,n-c/5,l+1)},We=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const i=n[h];i.parents&&i.parents.length>0&&i.parents.forEach(c=>{((r,n,l,h)=>{const i=V[n.id],c=V[l.id],b=((r,n,l,h,i)=>{const b=("TB"===R?l.x(_=>_.seq>r.seq&&_.seq_.branch===b)(_))})(n,l,i,c,h);let E,m="",y="",_=0,a=0,v=N[l.branch].index;if(3===l.type&&n.id!==l.parents[0]&&(v=N[n.branch].index),b){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",_=10,a=10;const g=i.yc.x&&(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",_=20,a=20,E=3===l.type&&n.id!==l.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${c.y-_} ${y} ${i.x-a} ${c.y} L ${c.x} ${c.y}`:`M ${i.x} ${i.y} L ${c.x+_} ${i.y} ${m} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x===c.x&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`)):(i.yc.y&&(E=3===l.type&&n.id!==l.parents[0]?`M ${i.x} ${i.y} L ${c.x-_} ${i.y} ${m} ${c.x} ${i.y-a} L ${c.x} ${c.y}`:`M ${i.x} ${i.y} L ${i.x} ${c.y+_} ${y} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y===c.y&&(E=`M ${i.x} ${i.y} L ${c.x} ${c.y}`));r.append("path").attr("d",E).attr("class","arrow arrow"+v%8)})(l,n[c],i,n)})})},Qe={parser:Me,db:{getConfig:()=>(0,p.c)().gitGraph,setDirection:function(r){fe=r},setOptions:function(r){p.l.debug("options str",r),r=(r=r&&r.trim())||"{}";try{pe=JSON.parse(r)}catch(n){p.l.error("error while parsing gitGraph options",n.message)}},getOptions:function(){return pe},commit:function(r,n,l,h){p.l.debug("Entering commit:",r,n,l,h),n=p.e.sanitizeText(n,(0,p.c)()),r=p.e.sanitizeText(r,(0,p.c)()),h=p.e.sanitizeText(h,(0,p.c)());const i={id:n||K+"-"+ce(),message:r,seq:K++,type:l||W.NORMAL,tag:h||"",parents:null==G?[]:[G.id],branch:O};G=i,L[i.id]=i,M[O]=i.id,p.l.debug("in pushCommit "+i.id)},branch:function(r,n){if(r=p.e.sanitizeText(r,(0,p.c)()),void 0!==M[r]){let l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}M[r]=null!=G?G.id:null,Q[r]={name:r,order:n?parseInt(n,10):null},be(r),p.l.debug("in createBranch")},merge:function(r,n,l,h){r=p.e.sanitizeText(r,(0,p.c)()),n=p.e.sanitizeText(n,(0,p.c)());const i=L[M[O]],c=L[M[r]];if(O===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}if(void 0===i||!i){let m=new Error('Incorrect usage of "merge". Current branch ('+O+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}if(void 0===M[r]){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}if(void 0===c||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}if(i===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}if(n&&void 0!==L[n]){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const b={id:n||K+"-"+ce(),message:"merged branch "+r+" into "+O,seq:K++,parents:[null==G?null:G.id,M[r]],branch:O,type:W.MERGE,customType:l,customId:!!n,tag:h||""};G=b,L[b.id]=b,M[O]=b.id,p.l.debug(M),p.l.debug("in mergeBranch")},cherryPick:function(r,n,l,h){if(p.l.debug("Entering cherryPick:",r,n,l),r=p.e.sanitizeText(r,(0,p.c)()),n=p.e.sanitizeText(n,(0,p.c)()),l=p.e.sanitizeText(l,(0,p.c)()),h=p.e.sanitizeText(h,(0,p.c)()),!r||void 0===L[r]){let b=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw b.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},b}let i=L[r],c=i.branch;if(h&&(!Array.isArray(i.parents)||!i.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(i.type===W.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||void 0===L[n]){if(c===O){let y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const b=L[M[O]];if(void 0===b||!b){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('+O+")has no commits");throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const m={id:K+"-"+ce(),message:"cherry-picked "+i+" into "+O,seq:K++,parents:[null==G?null:G.id,i.id],branch:O,type:W.CHERRY_PICK,tag:l??`cherry-pick:${i.id}${i.type===W.MERGE?`|parent:${h}`:""}`};G=m,L[m.id]=m,M[O]=m.id,p.l.debug(M),p.l.debug("in cherryPick")}},checkout:be,prettyPrint:function(){p.l.debug(L),de([ke()[0]])},clear:function(){L={},G=null;let r=(0,p.c)().gitGraph.mainBranchName,n=(0,p.c)().gitGraph.mainBranchOrder;M={},M[r]=null,Q={},Q[r]={name:r,order:n},O=r,K=0,(0,p.v)()},getBranchesAsObjArray:function(){return Object.values(Q).map((n,l)=>null!==n.order?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},getBranches:function(){return M},getCommits:function(){return L},getCommitsArray:ke,getCurrentBranch:function(){return O},getDirection:function(){return fe},getHead:function(){return G},setAccTitle:p.s,getAccTitle:p.g,getAccDescription:p.a,setAccDescription:p.b,setDiagramTitle:p.q,getDiagramTitle:p.t,commitType:W},renderer:{draw:function(r,n,l,h){N={},V={},X={},Z=0,re=[],R="LR";const i=(0,p.c)(),c=i.gitGraph;p.l.debug("in gitgraph renderer",r+"\n","id:",n,l),X=h.db.getCommits();const b=h.db.getBranchesAsObjArray();R=h.db.getDirection();const m=(0,we.Ys)(`[id="${n}"]`);let y=0;b.forEach((_,a)=>{const v=xe(_.name),E=m.append("g"),g=E.insert("g").attr("class","branchLabel"),f=g.insert("g").attr("class","label branch-label");f.node().appendChild(v);let x=v.getBBox();N[_.name]={pos:y,index:a},y+=50+(c.rotateCommitLabel?40:0)+("TB"===R?x.width/2:0),f.remove(),g.remove(),E.remove()}),ye(m,X,!1),c.showBranches&&((r,n)=>{const l=(0,p.c)().gitGraph,h=r.append("g");n.forEach((i,c)=>{const b=c%8,m=N[i.name].pos,y=h.append("line");y.attr("x1",0),y.attr("y1",m),y.attr("x2",Z),y.attr("y2",m),y.attr("class","branch branch"+b),"TB"===R&&(y.attr("y1",30),y.attr("x1",m),y.attr("y2",Z),y.attr("x2",m)),re.push(m);const a=xe(i.name),v=h.insert("rect"),g=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);g.node().appendChild(a);let f=a.getBBox();v.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-f.width-4-(!0===l.rotateCommitLabel?30:0)).attr("y",-f.height/2+8).attr("width",f.width+18).attr("height",f.height+4),g.attr("transform","translate("+(-f.width-14-(!0===l.rotateCommitLabel?30:0))+", "+(m-f.height/2-1)+")"),"TB"===R&&(v.attr("x",m-f.width/2-10).attr("y",0),g.attr("transform","translate("+(m-f.width/2-5)+", 0)")),"TB"!==R&&v.attr("transform","translate(-19, "+(m-f.height/2)+")")})})(m,b),We(m,X),ye(m,X,!0),p.u.insertTitle(m,"gitTitleText",c.titleTopMargin,h.db.getDiagramTitle()),(0,p.z)(void 0,m,c.diagramPadding,c.useMaxWidth??i.useMaxWidth)}},styles:r=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map(n=>`\n .branch-label${n} { fill: ${r["gitBranchLabel"+n]}; }\n .commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; }\n .commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; }\n .label${n} { fill: ${r["git"+n]}; }\n .arrow${n} { stroke: ${r["git"+n]}; }\n `).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${r.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}\n .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}\n .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }\n .tag-hole { fill: ${r.textColor}; }\n\n .commit-merge {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n }\n .commit-reverse {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${r.primaryColor};\n fill: ${r.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${r.textColor};\n }\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/407.481a9d034fa71ad4.js b/pkg/apiserver-impl/ui/667.bce38317bbf96dd5.js similarity index 99% rename from pkg/apiserver-impl/ui/407.481a9d034fa71ad4.js rename to pkg/apiserver-impl/ui/667.bce38317bbf96dd5.js index 7faf441119..af66ec8fa1 100644 --- a/pkg/apiserver-impl/ui/407.481a9d034fa71ad4.js +++ b/pkg/apiserver-impl/ui/667.bce38317bbf96dd5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[407],{1410:(Ne,J,O)=>{O.d(J,{Z:()=>te});var B=O(4258);const te=function ee(se){return(0,B.Z)(se,4)}},7772:(Ne,J,O)=>{O.r(J),O.d(J,{diagram:()=>qe});var Le,be,B=O(5861),f=O(9037),ee=O(1410),te=O(3987),se=O(3396),W=O(9038),Ie=O(8814),j=O(8586),ie=(O(1764),O(6780),O(2735),function(){var e=function(w,o,s,i){for(s=s||{},i=w.length;i--;s[w[i]]=o);return s},l=[1,7],a=[1,13],c=[1,14],r=[1,15],g=[1,19],u=[1,16],p=[1,17],_=[1,18],x=[8,30],L=[8,21,28,29,30,31,32,40,44,47],E=[1,23],C=[1,24],k=[8,15,16,21,28,29,30,31,32,40,44,47],z=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],m={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(o,s,i,d,h,t,b){var n=t.length-1;switch(h){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[n-1]),d.setHierarchy(t[n-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[n]),this.$="number"==typeof t[n].length?t[n]:[t[n]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[n-1]),this.$=[t[n-1]].concat(t[n]);break;case 14:d.getLogger().debug("Rule: link: ",t[n],o),this.$={edgeTypeStr:t[n],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[n-3],t[n-1],t[n]),this.$={edgeTypeStr:t[n],label:t[n-1]};break;case 18:const P=parseInt(t[n]),V=d.generateId();this.$={id:V,type:"space",label:"",width:P,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[n-2],t[n-1],t[n]," typestr: ",t[n-1].edgeTypeStr);const F=d.edgeStrToEdgeData(t[n-1].edgeTypeStr);this.$=[{id:t[n-2].id,label:t[n-2].label,type:t[n-2].type,directions:t[n-2].directions},{id:t[n-2].id+"-"+t[n].id,start:t[n-2].id,end:t[n].id,label:t[n-1].label,type:"edge",directions:t[n].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[n].id,label:t[n].label,type:d.typeStr2Type(t[n].typeStr),directions:t[n].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[n-1],t[n]),this.$={id:t[n-1].id,label:t[n-1].label,type:d.typeStr2Type(t[n-1].typeStr),directions:t[n-1].directions,widthInColumns:parseInt(t[n],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[n]),this.$={id:t[n].id,label:t[n].label,type:d.typeStr2Type(t[n].typeStr),directions:t[n].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[n]),this.$={type:"column-setting",columns:"auto"===t[n]?-1:parseInt(t[n])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[n-2],t[n-1]),d.generateId(),this.$={...t[n-2],type:"composite",children:t[n-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[n-2],t[n-1],t[n]);const R=d.generateId();this.$={id:R,type:"composite",label:"",children:t[n-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[n]),this.$={id:t[n]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[n-1],t[n]),this.$={id:t[n-1],label:t[n].label,typeStr:t[n].typeStr,directions:t[n].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[n]),this.$=[t[n]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[n-1],t[n]),this.$=[t[n-1]].concat(t[n]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[n-2],t[n-1],t[n]),this.$={typeStr:t[n-2]+t[n],label:t[n-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[n-3],t[n-2]," #3:",t[n-1],t[n]),this.$={typeStr:t[n-3]+t[n],label:t[n-2],directions:t[n-1]};break;case 35:case 36:this.$={type:"classDef",id:t[n-1].trim(),css:t[n].trim()};break;case 37:this.$={type:"applyClass",id:t[n-1].trim(),styleClass:t[n].trim()};break;case 38:this.$={type:"applyStyles",id:t[n-1].trim(),stylesStr:t[n].trim()}}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:c,31:r,32:g,40:u,44:p,47:_},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:l,28:a,29:c,31:r,32:g,40:u,44:p,47:_}),e(L,[2,16],{14:22,15:E,16:C}),e(L,[2,17]),e(L,[2,18]),e(L,[2,19]),e(L,[2,20]),e(L,[2,21]),e(L,[2,22]),e(k,[2,25],{27:[1,25]}),e(L,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:c,31:r,32:g,40:u,44:p,47:_},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(z,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(k,[2,24]),{11:37,13:4,14:22,15:E,16:C,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:c,31:r,32:g,40:u,44:p,47:_},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(z,[2,30]),{18:[1,43]},{18:[1,44]},e(k,[2,23]),{18:[1,45]},{30:[1,46]},e(L,[2,28]),e(L,[2,35]),e(L,[2,36]),e(L,[2,37]),e(L,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(L,[2,27]),e(z,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(z,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(o,s){if(!s.recoverable){var i=new Error(o);throw i.hash=s,i}this.trace(o)},parse:function(o){var i=[0],d=[],h=[null],t=[],b=this.table,n="",P=0,V=0,$e=t.slice.call(arguments,1),D=Object.create(this.lexer),Y={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Y.yy[pe]=this.yy[pe]);D.setInput(o,Y.yy),Y.yy.lexer=D,Y.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var fe=D.yylloc;t.push(fe);var M,et=D.options&&D.options.ranges;this.parseError="function"==typeof Y.yy.parseError?Y.yy.parseError:Object.getPrototypeOf(this).parseError;for(var T,U,A,xe,q,K,$,Z={};;){if(this.defaultActions[U=i[i.length-1]]?A=this.defaultActions[U]:((null===T||typeof T>"u")&&(M=void 0,"number"!=typeof(M=d.pop()||D.lex()||1)&&(M instanceof Array&&(M=(d=M).pop()),M=this.symbols_[M]||M),T=M),A=b[U]&&b[U][T]),typeof A>"u"||!A.length||!A[0]){var _e;for(q in $=[],b[U])this.terminals_[q]&&q>2&&$.push("'"+this.terminals_[q]+"'");_e=D.showPosition?"Parse error on line "+(P+1)+":\n"+D.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(P+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(_e,{text:D.match,token:this.terminals_[T]||T,line:D.yylineno,loc:fe,expected:$})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+T);switch(A[0]){case 1:i.push(T),h.push(D.yytext),t.push(D.yylloc),i.push(A[1]),T=null,V=D.yyleng,n=D.yytext,P=D.yylineno,fe=D.yylloc;break;case 2:if(Z.$=h[h.length-(K=this.productions_[A[1]][1])],Z._$={first_line:t[t.length-(K||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(K||1)].first_column,last_column:t[t.length-1].last_column},et&&(Z._$.range=[t[t.length-(K||1)].range[0],t[t.length-1].range[1]]),typeof(xe=this.performAction.apply(Z,[n,V,P,Y.yy,A[1],h,t].concat($e)))<"u")return xe;K&&(i=i.slice(0,-1*K*2),h=h.slice(0,-1*K),t=t.slice(0,-1*K)),i.push(this.productions_[A[1]][0]),h.push(Z.$),t.push(Z._$),i.push(b[i[i.length-2]][i[i.length-1]]);break;case 3:return!0}}return!0}};function N(){this.yy={}}return m.lexer={EOF:1,parseError:function(s,i){if(!this.yy.parser)throw new Error(s);this.yy.parser.parseError(s,i)},setInput:function(o,s){return this.yy=s||this.yy||{},this._input=o,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},input:function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},unput:function(o){var s=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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),i.length-1&&(this.yylineno-=i.length-1);var h=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:i?(i.length===d.length?this.yylloc.first_column:0)+d[d.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+"\n"+s+"^"},test_match:function(o,s){var i,d,h;if(this.options.backtrack_lexer&&(h={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&&(h.yylloc.range=this.yylloc.range.slice(0))),(d=o[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},next:function(){if(this.done)return this.EOF;var o,s,i,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;ts[0].length)){if(s=i,d=t,this.options.backtrack_lexer){if(!1!==(o=this.test_match(i,h[t])))return o;if(this._backtrack){s=!1;continue}return!1}if(!this.options.flex)break}return s?!1!==(o=this.test_match(s,h[d]))&&o:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return(s=this.conditionStack.length-1-Math.abs(s||0))>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,i,d,h){switch(d){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.yytext),28;case 9:case 77:case 78:case 100:this.pushState("md_string");break;case 10:return"MD_STR";case 11:case 35:case 80:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:case 39:case 41:case 42:case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:case 60:case 61:case 62:case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.yytext),8;case 79:return"NODE_DESCR";case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:case 95:case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:case 98:case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}},N.prototype=m,m.Parser=N,new N}());ie.parser=ie;const Te=ie;let I={},ne=[],X={};const ze=(0,f.c)();let G={};const Ae=e=>f.e.sanitizeText(e,ze),Re=function(e,l=""){void 0===G[e]&&(G[e]={id:e,styles:[],textStyles:[]});const a=G[e];l?.split(",").forEach(c=>{const r=c.replace(/([^;]*);/,"$1").trim();if(c.match("color")){const u=r.replace("fill","bgFill").replace("color","fill");a.textStyles.push(u)}a.styles.push(r)})},Be=function(e,l=""){null!=l&&(I[e].styles=l.split(","))},Pe=function(e,l){e.split(",").forEach(function(a){let c=I[a];if(void 0===c){const r=a.trim();I[r]={id:r,type:"na",children:[]},c=I[r]}c.classes||(c.classes=[]),c.classes.push(l)})},ye=(e,l)=>{const a=e.flat(),c=[];for(const r of a)if(r.label&&(r.label=Ae(r.label)),"classDef"!==r.type)if("applyClass"!==r.type)if("applyStyles"!==r.type)if("column-setting"===r.type)l.columns=r.columns||-1;else if("edge"===r.type)X[r.id]?X[r.id]++:X[r.id]=1,r.id=X[r.id]+"-"+r.id,ne.push(r);else{r.label||(r.label="composite"===r.type?"":r.id);const g=!I[r.id];if(g?I[r.id]=r:("na"!==r.type&&(I[r.id].type=r.type),r.label!==r.id&&(I[r.id].label=r.label)),r.children&&ye(r.children,r),"space"===r.type){const u=r.width||1;for(let p=0;p(0,f.F)().block,typeStr2Type:function Me(e){switch(f.l.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return f.l.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}},edgeTypeStr2Type:function Fe(e){return"=="===(f.l.debug("typeStr2Type",e),e)?"thick":"normal"},edgeStrToEdgeData:function We(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}},getLogger:()=>console,getBlocksFlat:()=>[...Object.values(I)],getBlocks:()=>re||[],getEdges:()=>ne,setHierarchy:e=>{H.children=e,ye(e,H),re=H.children},getBlock:e=>I[e],setBlock:e=>{I[e.id]=e},getColumns:e=>{const l=I[e];return l?l.columns?l.columns:l.children?l.children.length:-1:-1},getClasses:function(){return G},clear:()=>{f.l.debug("Clear called"),(0,f.v)(),H={id:"root",type:"composite",children:[],columns:-1},I={root:H},re=[],G={},ne=[],X={}},generateId:()=>(De++,"id-"+Math.random().toString(36).substr(2,12)+"-"+De)},Q=(e,l)=>{const a=te.Z,c=a(e,"r"),r=a(e,"g"),g=a(e,"b");return se.Z(c,r,g,l)};function ve(e,l,a=!1){var c,r,g;const u=e;let p="default";((null==(c=u?.classes)?void 0:c.length)||0)>0&&(p=(u?.classes||[]).join(" ")),p+=" flowchart-label";let L,_=0,x="";switch(u.type){case"round":_=5,x="rect";break;case"composite":_=0,x="composite",L=0;break;case"square":case"group":default:x="rect";break;case"diamond":x="question";break;case"hexagon":x="hexagon";break;case"block_arrow":x="block_arrow";break;case"odd":case"rect_left_inv_arrow":x="rect_left_inv_arrow";break;case"lean_right":x="lean_right";break;case"lean_left":x="lean_left";break;case"trapezoid":x="trapezoid";break;case"inv_trapezoid":x="inv_trapezoid";break;case"circle":x="circle";break;case"ellipse":x="ellipse";break;case"stadium":x="stadium";break;case"subroutine":x="subroutine";break;case"cylinder":x="cylinder";break;case"doublecircle":x="doublecircle"}const E=(0,f.k)(u?.styles||[]),k=u.size||{width:0,height:0,x:0,y:0};return{labelStyle:E.labelStyle,shape:x,labelText:u.label,rx:_,ry:_,class:p,style:E.style,id:u.id,directions:u.directions,width:k.width,height:k.height,x:k.x,y:k.y,positioned:a,intersect:void 0,type:u.type,padding:L??((null==(g=null==(r=(0,f.F)())?void 0:r.block)?void 0:g.padding)||0)}}function je(e,l,a){return le.apply(this,arguments)}function le(){return(le=(0,B.Z)(function*(e,l,a){const c=ve(l,0,!1);if("group"===c.type)return;const r=yield(0,W.e)(e,c),g=r.node().getBBox(),u=a.getBlock(c.id);u.size={width:g.width,height:g.height,x:0,y:0,node:r},a.setBlock(u),r.remove()})).apply(this,arguments)}function Ve(e,l,a){return ae.apply(this,arguments)}function ae(){return(ae=(0,B.Z)(function*(e,l,a){const c=ve(l,0,!0);"space"!==a.getBlock(c.id).type&&(yield(0,W.e)(e,c),l.intersect=c?.intersect,(0,W.p)(c))})).apply(this,arguments)}function oe(e,l,a,c){return ce.apply(this,arguments)}function ce(){return(ce=(0,B.Z)(function*(e,l,a,c){for(const r of l)yield c(e,r,a),r.children&&(yield oe(e,r.children,a,c))})).apply(this,arguments)}function ue(){return(ue=(0,B.Z)(function*(e,l,a){yield oe(e,l,a,je)})).apply(this,arguments)}function de(){return(de=(0,B.Z)(function*(e,l,a){yield oe(e,l,a,Ve)})).apply(this,arguments)}function he(){return(he=(0,B.Z)(function*(e,l,a,c,r){const g=new Ie.k({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const u of a)u.size&&g.setNode(u.id,{width:u.size.width,height:u.size.height,intersect:u.intersect});for(const u of l)if(u.start&&u.end){const p=c.getBlock(u.start),_=c.getBlock(u.end);if(p?.size&&_?.size){const x=p.size,L=_.size,E=[{x:x.x,y:x.y},{x:x.x+(L.x-x.x)/2,y:x.y+(L.y-x.y)/2},{x:L.x,y:L.y}];yield(0,W.h)(e,{v:u.start,w:u.end,name:u.id},{...u,arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",g,r),u.label&&(yield(0,W.f)(e,{...u,label:u.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),yield(0,W.j)({...u,x:E[1].x,y:E[1].y},{originalPath:E}))}}})).apply(this,arguments)}const S=(null==(be=null==(Le=(0,f.c)())?void 0:Le.block)?void 0:be.padding)||8;function He(e,l){if(0===e||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(l<0||!Number.isInteger(l))throw new Error("Position must be a non-negative integer."+l);return e<0?{px:l,py:0}:1===e?{px:0,py:l}:{px:l%e,py:Math.floor(l/e)}}const Je=e=>{let l=0,a=0;for(const c of e.children){const{width:r,height:g,x:u,y:p}=c.size||{width:0,height:0,x:0,y:0};f.l.debug("getMaxChildSize abc95 child:",c.id,"width:",r,"height:",g,"x:",u,"y:",p,c.type),"space"!==c.type&&(r>l&&(l=r/(e.widthInColumns||1)),g>a&&(a=g))}return{width:l,height:a}};function ge(e,l,a=0,c=0){var r,g,u,p,_,x,L,E,C,k,z;f.l.debug("setBlockSizes abc95 (start)",e.id,null==(r=e?.size)?void 0:r.x,"block width =",e?.size,"sieblingWidth",a),null!=(g=e?.size)&&g.width||(e.size={width:a,height:c,x:0,y:0});let y=0,m=0;if((null==(u=e.children)?void 0:u.length)>0){for(const h of e.children)ge(h,l);const v=Je(e);y=v.width,m=v.height,f.l.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",y,m);for(const h of e.children)h.size&&(f.l.debug(`abc95 Setting size of children of ${e.id} id=${h.id} ${y} ${m} ${h.size}`),h.size.width=y*(h.widthInColumns||1)+S*((h.widthInColumns||1)-1),h.size.height=m,h.size.x=0,h.size.y=0,f.l.debug(`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${y} maxHeight:${m}`));for(const h of e.children)ge(h,l,y,m);const N=e.columns||-1;let w=0;for(const h of e.children)w+=h.widthInColumns||1;let o=e.children.length;N>0&&N0?Math.min(e.children.length,N):e.children.length;if(h>0){const t=(i-h*S-S)/h;f.l.debug("abc95 (growing to fit) width",e.id,i,null==(L=e.size)?void 0:L.width,t);for(const b of e.children)b.size&&(b.size.width=t)}}e.size={width:i,height:d,x:0,y:0}}f.l.debug("setBlockSizes abc94 (done)",e.id,null==(E=e?.size)?void 0:E.x,null==(C=e?.size)?void 0:C.width,null==(k=e?.size)?void 0:k.y,null==(z=e?.size)?void 0:z.height)}function we(e,l){var a,c,r,g,u,p,_,x,L,E,C,k,z,y,m,v,N;f.l.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${null==(a=e?.size)?void 0:a.x} y: ${null==(c=e?.size)?void 0:c.y} width: ${null==(r=e?.size)?void 0:r.width}`);const w=e.columns||-1;if(f.l.debug("layoutBlocks columns abc95",e.id,"=>",w,e),e.children&&e.children.length>0){const o=(null==(u=null==(g=e?.children[0])?void 0:g.size)?void 0:u.width)||0;f.l.debug("widthOfChildren 88",e.children.length*o+(e.children.length-1)*S,"posX");let i=0;f.l.debug("abc91 block?.size?.x",e.id,null==(p=e?.size)?void 0:p.x);let d=null!=(_=e?.size)&&_.x?(null==(x=e?.size)?void 0:x.x)+(-(null==(L=e?.size)?void 0:L.width)/2||0):-S,h=0;for(const t of e.children){const b=e;if(!t.size)continue;const{width:n,height:P}=t.size,{px:V,py:F}=He(w,i);if(F!=h&&(h=F,d=null!=(E=e?.size)&&E.x?(null==(C=e?.size)?void 0:C.x)+(-(null==(k=e?.size)?void 0:k.width)/2||0):-S,f.l.debug("New row in layout for block",e.id," and child ",t.id,h)),f.l.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${V},${F} (${null==(z=b?.size)?void 0:z.x},${null==(y=b?.size)?void 0:y.y}) parent: ${b.id} width: ${n}${S}`),b.size){const R=n/2;t.size.x=d+S+R,f.l.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${d} new startingPosX${t.size.x} ${R} padding=${S} width=${n} halfWidth=${R} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${n*(t?.widthInColumns||1)/2}`),d=t.size.x+R,t.size.y=b.size.y-b.size.height/2+F*(P+S)+P/2+S,f.l.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${d}${S}${R}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${n*(t?.widthInColumns||1)/2}`)}t.children&&we(t),i+=t?.widthInColumns||1,f.l.debug("abc88 columnsPos",t,i)}}f.l.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${null==(m=e?.size)?void 0:m.x} y: ${null==(v=e?.size)?void 0:v.y} width: ${null==(N=e?.size)?void 0:N.width}`)}function Oe(e,{minX:l,minY:a,maxX:c,maxY:r}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&"root"!==e.id){const{x:g,y:u,width:p,height:_}=e.size;g-p/2c&&(c=g+p/2),u+_/2>r&&(r=u+_/2)}if(e.children)for(const g of e.children)({minX:l,minY:a,maxX:c,maxY:r}=Oe(g,{minX:l,minY:a,maxX:c,maxY:r}));return{minX:l,minY:a,maxX:c,maxY:r}}function Qe(e){const l=e.getBlock("root");if(!l)return;ge(l,e,0,0),we(l),f.l.debug("getBlocks",JSON.stringify(l,null,2));const{minX:a,minY:c,maxX:r,maxY:g}=Oe(l);return{x:a,y:c,width:r-a,height:g-c}}const qe={parser:Te,db:Ye,renderer:{draw:function(){var e=(0,B.Z)(function*(l,a,c,r){const{securityLevel:g,block:u}=(0,f.F)(),p=r.db;let _;"sandbox"===g&&(_=(0,j.Ys)("#i"+a));const x=(0,j.Ys)("sandbox"===g?_.nodes()[0].contentDocument.body:"body"),L="sandbox"===g?x.select(`[id="${a}"]`):(0,j.Ys)(`[id="${a}"]`);(0,W.a)(L,["point","circle","cross"],r.type,a);const C=p.getBlocks(),k=p.getBlocksFlat(),z=p.getEdges(),y=L.insert("g").attr("class","block");yield function Ze(e,l,a){return ue.apply(this,arguments)}(y,C,p);const m=Qe(p);if(yield function Xe(e,l,a){return de.apply(this,arguments)}(y,C,p),yield function Ge(e,l,a,c,r){return he.apply(this,arguments)}(y,z,k,p,a),m){const v=m,N=Math.max(1,Math.round(v.width/v.height*.125)),w=v.height+N+10,o=v.width+10,{useMaxWidth:s}=u;(0,f.i)(L,w,o,!!s),f.l.debug("Here Bounds",m,v),L.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}(0,j.PKp)(j.K2I)});return function(a,c,r,g){return e.apply(this,arguments)}}(),getClasses:function(e,l){return l.db.getClasses()}},styles:e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span,p {\n color: ${e.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${Q(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${Q(e.mainBkg,.5)};\n fill: ${Q(e.clusterBkg,.5)};\n stroke: ${Q(e.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span,p {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n`}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[667],{1410:(Ne,J,O)=>{O.d(J,{Z:()=>te});var B=O(4258);const te=function ee(se){return(0,B.Z)(se,4)}},4667:(Ne,J,O)=>{O.r(J),O.d(J,{diagram:()=>qe});var Le,be,B=O(5861),f=O(8080),ee=O(1410),te=O(3987),se=O(3396),W=O(1196),Ie=O(8814),j=O(8586),ie=(O(1764),O(6780),O(2735),function(){var e=function(w,o,s,i){for(s=s||{},i=w.length;i--;s[w[i]]=o);return s},l=[1,7],a=[1,13],c=[1,14],r=[1,15],g=[1,19],u=[1,16],p=[1,17],_=[1,18],x=[8,30],L=[8,21,28,29,30,31,32,40,44,47],E=[1,23],C=[1,24],k=[8,15,16,21,28,29,30,31,32,40,44,47],z=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],m={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(o,s,i,d,h,t,b){var n=t.length-1;switch(h){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[n-1]),d.setHierarchy(t[n-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[n]),this.$="number"==typeof t[n].length?t[n]:[t[n]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[n-1]),this.$=[t[n-1]].concat(t[n]);break;case 14:d.getLogger().debug("Rule: link: ",t[n],o),this.$={edgeTypeStr:t[n],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[n-3],t[n-1],t[n]),this.$={edgeTypeStr:t[n],label:t[n-1]};break;case 18:const P=parseInt(t[n]),V=d.generateId();this.$={id:V,type:"space",label:"",width:P,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[n-2],t[n-1],t[n]," typestr: ",t[n-1].edgeTypeStr);const F=d.edgeStrToEdgeData(t[n-1].edgeTypeStr);this.$=[{id:t[n-2].id,label:t[n-2].label,type:t[n-2].type,directions:t[n-2].directions},{id:t[n-2].id+"-"+t[n].id,start:t[n-2].id,end:t[n].id,label:t[n-1].label,type:"edge",directions:t[n].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[n].id,label:t[n].label,type:d.typeStr2Type(t[n].typeStr),directions:t[n].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[n-1],t[n]),this.$={id:t[n-1].id,label:t[n-1].label,type:d.typeStr2Type(t[n-1].typeStr),directions:t[n-1].directions,widthInColumns:parseInt(t[n],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[n]),this.$={id:t[n].id,label:t[n].label,type:d.typeStr2Type(t[n].typeStr),directions:t[n].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[n]),this.$={type:"column-setting",columns:"auto"===t[n]?-1:parseInt(t[n])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[n-2],t[n-1]),d.generateId(),this.$={...t[n-2],type:"composite",children:t[n-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[n-2],t[n-1],t[n]);const R=d.generateId();this.$={id:R,type:"composite",label:"",children:t[n-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[n]),this.$={id:t[n]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[n-1],t[n]),this.$={id:t[n-1],label:t[n].label,typeStr:t[n].typeStr,directions:t[n].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[n]),this.$=[t[n]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[n-1],t[n]),this.$=[t[n-1]].concat(t[n]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[n-2],t[n-1],t[n]),this.$={typeStr:t[n-2]+t[n],label:t[n-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[n-3],t[n-2]," #3:",t[n-1],t[n]),this.$={typeStr:t[n-3]+t[n],label:t[n-2],directions:t[n-1]};break;case 35:case 36:this.$={type:"classDef",id:t[n-1].trim(),css:t[n].trim()};break;case 37:this.$={type:"applyClass",id:t[n-1].trim(),styleClass:t[n].trim()};break;case 38:this.$={type:"applyStyles",id:t[n-1].trim(),stylesStr:t[n].trim()}}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:c,31:r,32:g,40:u,44:p,47:_},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:l,28:a,29:c,31:r,32:g,40:u,44:p,47:_}),e(L,[2,16],{14:22,15:E,16:C}),e(L,[2,17]),e(L,[2,18]),e(L,[2,19]),e(L,[2,20]),e(L,[2,21]),e(L,[2,22]),e(k,[2,25],{27:[1,25]}),e(L,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:c,31:r,32:g,40:u,44:p,47:_},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(z,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(k,[2,24]),{11:37,13:4,14:22,15:E,16:C,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:c,31:r,32:g,40:u,44:p,47:_},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(z,[2,30]),{18:[1,43]},{18:[1,44]},e(k,[2,23]),{18:[1,45]},{30:[1,46]},e(L,[2,28]),e(L,[2,35]),e(L,[2,36]),e(L,[2,37]),e(L,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(L,[2,27]),e(z,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(z,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(o,s){if(!s.recoverable){var i=new Error(o);throw i.hash=s,i}this.trace(o)},parse:function(o){var i=[0],d=[],h=[null],t=[],b=this.table,n="",P=0,V=0,$e=t.slice.call(arguments,1),D=Object.create(this.lexer),Y={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Y.yy[pe]=this.yy[pe]);D.setInput(o,Y.yy),Y.yy.lexer=D,Y.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var fe=D.yylloc;t.push(fe);var M,et=D.options&&D.options.ranges;this.parseError="function"==typeof Y.yy.parseError?Y.yy.parseError:Object.getPrototypeOf(this).parseError;for(var T,U,A,xe,q,K,$,Z={};;){if(this.defaultActions[U=i[i.length-1]]?A=this.defaultActions[U]:((null===T||typeof T>"u")&&(M=void 0,"number"!=typeof(M=d.pop()||D.lex()||1)&&(M instanceof Array&&(M=(d=M).pop()),M=this.symbols_[M]||M),T=M),A=b[U]&&b[U][T]),typeof A>"u"||!A.length||!A[0]){var _e;for(q in $=[],b[U])this.terminals_[q]&&q>2&&$.push("'"+this.terminals_[q]+"'");_e=D.showPosition?"Parse error on line "+(P+1)+":\n"+D.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(P+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(_e,{text:D.match,token:this.terminals_[T]||T,line:D.yylineno,loc:fe,expected:$})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+T);switch(A[0]){case 1:i.push(T),h.push(D.yytext),t.push(D.yylloc),i.push(A[1]),T=null,V=D.yyleng,n=D.yytext,P=D.yylineno,fe=D.yylloc;break;case 2:if(Z.$=h[h.length-(K=this.productions_[A[1]][1])],Z._$={first_line:t[t.length-(K||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(K||1)].first_column,last_column:t[t.length-1].last_column},et&&(Z._$.range=[t[t.length-(K||1)].range[0],t[t.length-1].range[1]]),typeof(xe=this.performAction.apply(Z,[n,V,P,Y.yy,A[1],h,t].concat($e)))<"u")return xe;K&&(i=i.slice(0,-1*K*2),h=h.slice(0,-1*K),t=t.slice(0,-1*K)),i.push(this.productions_[A[1]][0]),h.push(Z.$),t.push(Z._$),i.push(b[i[i.length-2]][i[i.length-1]]);break;case 3:return!0}}return!0}};function N(){this.yy={}}return m.lexer={EOF:1,parseError:function(s,i){if(!this.yy.parser)throw new Error(s);this.yy.parser.parseError(s,i)},setInput:function(o,s){return this.yy=s||this.yy||{},this._input=o,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},input:function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},unput:function(o){var s=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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),i.length-1&&(this.yylineno-=i.length-1);var h=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:i?(i.length===d.length?this.yylloc.first_column:0)+d[d.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+"\n"+s+"^"},test_match:function(o,s){var i,d,h;if(this.options.backtrack_lexer&&(h={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&&(h.yylloc.range=this.yylloc.range.slice(0))),(d=o[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},next:function(){if(this.done)return this.EOF;var o,s,i,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;ts[0].length)){if(s=i,d=t,this.options.backtrack_lexer){if(!1!==(o=this.test_match(i,h[t])))return o;if(this._backtrack){s=!1;continue}return!1}if(!this.options.flex)break}return s?!1!==(o=this.test_match(s,h[d]))&&o:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return(s=this.conditionStack.length-1-Math.abs(s||0))>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,i,d,h){switch(d){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.yytext),28;case 9:case 77:case 78:case 100:this.pushState("md_string");break;case 10:return"MD_STR";case 11:case 35:case 80:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:case 39:case 41:case 42:case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:case 60:case 61:case 62:case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.yytext),8;case 79:return"NODE_DESCR";case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:case 95:case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:case 98:case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}},N.prototype=m,m.Parser=N,new N}());ie.parser=ie;const Te=ie;let I={},ne=[],X={};const ze=(0,f.c)();let G={};const Ae=e=>f.e.sanitizeText(e,ze),Re=function(e,l=""){void 0===G[e]&&(G[e]={id:e,styles:[],textStyles:[]});const a=G[e];l?.split(",").forEach(c=>{const r=c.replace(/([^;]*);/,"$1").trim();if(c.match("color")){const u=r.replace("fill","bgFill").replace("color","fill");a.textStyles.push(u)}a.styles.push(r)})},Be=function(e,l=""){null!=l&&(I[e].styles=l.split(","))},Pe=function(e,l){e.split(",").forEach(function(a){let c=I[a];if(void 0===c){const r=a.trim();I[r]={id:r,type:"na",children:[]},c=I[r]}c.classes||(c.classes=[]),c.classes.push(l)})},ye=(e,l)=>{const a=e.flat(),c=[];for(const r of a)if(r.label&&(r.label=Ae(r.label)),"classDef"!==r.type)if("applyClass"!==r.type)if("applyStyles"!==r.type)if("column-setting"===r.type)l.columns=r.columns||-1;else if("edge"===r.type)X[r.id]?X[r.id]++:X[r.id]=1,r.id=X[r.id]+"-"+r.id,ne.push(r);else{r.label||(r.label="composite"===r.type?"":r.id);const g=!I[r.id];if(g?I[r.id]=r:("na"!==r.type&&(I[r.id].type=r.type),r.label!==r.id&&(I[r.id].label=r.label)),r.children&&ye(r.children,r),"space"===r.type){const u=r.width||1;for(let p=0;p(0,f.F)().block,typeStr2Type:function Me(e){switch(f.l.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return f.l.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}},edgeTypeStr2Type:function Fe(e){return"=="===(f.l.debug("typeStr2Type",e),e)?"thick":"normal"},edgeStrToEdgeData:function We(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}},getLogger:()=>console,getBlocksFlat:()=>[...Object.values(I)],getBlocks:()=>re||[],getEdges:()=>ne,setHierarchy:e=>{H.children=e,ye(e,H),re=H.children},getBlock:e=>I[e],setBlock:e=>{I[e.id]=e},getColumns:e=>{const l=I[e];return l?l.columns?l.columns:l.children?l.children.length:-1:-1},getClasses:function(){return G},clear:()=>{f.l.debug("Clear called"),(0,f.v)(),H={id:"root",type:"composite",children:[],columns:-1},I={root:H},re=[],G={},ne=[],X={}},generateId:()=>(De++,"id-"+Math.random().toString(36).substr(2,12)+"-"+De)},Q=(e,l)=>{const a=te.Z,c=a(e,"r"),r=a(e,"g"),g=a(e,"b");return se.Z(c,r,g,l)};function ve(e,l,a=!1){var c,r,g;const u=e;let p="default";((null==(c=u?.classes)?void 0:c.length)||0)>0&&(p=(u?.classes||[]).join(" ")),p+=" flowchart-label";let L,_=0,x="";switch(u.type){case"round":_=5,x="rect";break;case"composite":_=0,x="composite",L=0;break;case"square":case"group":default:x="rect";break;case"diamond":x="question";break;case"hexagon":x="hexagon";break;case"block_arrow":x="block_arrow";break;case"odd":case"rect_left_inv_arrow":x="rect_left_inv_arrow";break;case"lean_right":x="lean_right";break;case"lean_left":x="lean_left";break;case"trapezoid":x="trapezoid";break;case"inv_trapezoid":x="inv_trapezoid";break;case"circle":x="circle";break;case"ellipse":x="ellipse";break;case"stadium":x="stadium";break;case"subroutine":x="subroutine";break;case"cylinder":x="cylinder";break;case"doublecircle":x="doublecircle"}const E=(0,f.k)(u?.styles||[]),k=u.size||{width:0,height:0,x:0,y:0};return{labelStyle:E.labelStyle,shape:x,labelText:u.label,rx:_,ry:_,class:p,style:E.style,id:u.id,directions:u.directions,width:k.width,height:k.height,x:k.x,y:k.y,positioned:a,intersect:void 0,type:u.type,padding:L??((null==(g=null==(r=(0,f.F)())?void 0:r.block)?void 0:g.padding)||0)}}function je(e,l,a){return le.apply(this,arguments)}function le(){return(le=(0,B.Z)(function*(e,l,a){const c=ve(l,0,!1);if("group"===c.type)return;const r=yield(0,W.e)(e,c),g=r.node().getBBox(),u=a.getBlock(c.id);u.size={width:g.width,height:g.height,x:0,y:0,node:r},a.setBlock(u),r.remove()})).apply(this,arguments)}function Ve(e,l,a){return ae.apply(this,arguments)}function ae(){return(ae=(0,B.Z)(function*(e,l,a){const c=ve(l,0,!0);"space"!==a.getBlock(c.id).type&&(yield(0,W.e)(e,c),l.intersect=c?.intersect,(0,W.p)(c))})).apply(this,arguments)}function oe(e,l,a,c){return ce.apply(this,arguments)}function ce(){return(ce=(0,B.Z)(function*(e,l,a,c){for(const r of l)yield c(e,r,a),r.children&&(yield oe(e,r.children,a,c))})).apply(this,arguments)}function ue(){return(ue=(0,B.Z)(function*(e,l,a){yield oe(e,l,a,je)})).apply(this,arguments)}function de(){return(de=(0,B.Z)(function*(e,l,a){yield oe(e,l,a,Ve)})).apply(this,arguments)}function he(){return(he=(0,B.Z)(function*(e,l,a,c,r){const g=new Ie.k({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const u of a)u.size&&g.setNode(u.id,{width:u.size.width,height:u.size.height,intersect:u.intersect});for(const u of l)if(u.start&&u.end){const p=c.getBlock(u.start),_=c.getBlock(u.end);if(p?.size&&_?.size){const x=p.size,L=_.size,E=[{x:x.x,y:x.y},{x:x.x+(L.x-x.x)/2,y:x.y+(L.y-x.y)/2},{x:L.x,y:L.y}];yield(0,W.h)(e,{v:u.start,w:u.end,name:u.id},{...u,arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",g,r),u.label&&(yield(0,W.f)(e,{...u,label:u.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),yield(0,W.j)({...u,x:E[1].x,y:E[1].y},{originalPath:E}))}}})).apply(this,arguments)}const S=(null==(be=null==(Le=(0,f.c)())?void 0:Le.block)?void 0:be.padding)||8;function He(e,l){if(0===e||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(l<0||!Number.isInteger(l))throw new Error("Position must be a non-negative integer."+l);return e<0?{px:l,py:0}:1===e?{px:0,py:l}:{px:l%e,py:Math.floor(l/e)}}const Je=e=>{let l=0,a=0;for(const c of e.children){const{width:r,height:g,x:u,y:p}=c.size||{width:0,height:0,x:0,y:0};f.l.debug("getMaxChildSize abc95 child:",c.id,"width:",r,"height:",g,"x:",u,"y:",p,c.type),"space"!==c.type&&(r>l&&(l=r/(e.widthInColumns||1)),g>a&&(a=g))}return{width:l,height:a}};function ge(e,l,a=0,c=0){var r,g,u,p,_,x,L,E,C,k,z;f.l.debug("setBlockSizes abc95 (start)",e.id,null==(r=e?.size)?void 0:r.x,"block width =",e?.size,"sieblingWidth",a),null!=(g=e?.size)&&g.width||(e.size={width:a,height:c,x:0,y:0});let y=0,m=0;if((null==(u=e.children)?void 0:u.length)>0){for(const h of e.children)ge(h,l);const v=Je(e);y=v.width,m=v.height,f.l.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",y,m);for(const h of e.children)h.size&&(f.l.debug(`abc95 Setting size of children of ${e.id} id=${h.id} ${y} ${m} ${h.size}`),h.size.width=y*(h.widthInColumns||1)+S*((h.widthInColumns||1)-1),h.size.height=m,h.size.x=0,h.size.y=0,f.l.debug(`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${y} maxHeight:${m}`));for(const h of e.children)ge(h,l,y,m);const N=e.columns||-1;let w=0;for(const h of e.children)w+=h.widthInColumns||1;let o=e.children.length;N>0&&N0?Math.min(e.children.length,N):e.children.length;if(h>0){const t=(i-h*S-S)/h;f.l.debug("abc95 (growing to fit) width",e.id,i,null==(L=e.size)?void 0:L.width,t);for(const b of e.children)b.size&&(b.size.width=t)}}e.size={width:i,height:d,x:0,y:0}}f.l.debug("setBlockSizes abc94 (done)",e.id,null==(E=e?.size)?void 0:E.x,null==(C=e?.size)?void 0:C.width,null==(k=e?.size)?void 0:k.y,null==(z=e?.size)?void 0:z.height)}function we(e,l){var a,c,r,g,u,p,_,x,L,E,C,k,z,y,m,v,N;f.l.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${null==(a=e?.size)?void 0:a.x} y: ${null==(c=e?.size)?void 0:c.y} width: ${null==(r=e?.size)?void 0:r.width}`);const w=e.columns||-1;if(f.l.debug("layoutBlocks columns abc95",e.id,"=>",w,e),e.children&&e.children.length>0){const o=(null==(u=null==(g=e?.children[0])?void 0:g.size)?void 0:u.width)||0;f.l.debug("widthOfChildren 88",e.children.length*o+(e.children.length-1)*S,"posX");let i=0;f.l.debug("abc91 block?.size?.x",e.id,null==(p=e?.size)?void 0:p.x);let d=null!=(_=e?.size)&&_.x?(null==(x=e?.size)?void 0:x.x)+(-(null==(L=e?.size)?void 0:L.width)/2||0):-S,h=0;for(const t of e.children){const b=e;if(!t.size)continue;const{width:n,height:P}=t.size,{px:V,py:F}=He(w,i);if(F!=h&&(h=F,d=null!=(E=e?.size)&&E.x?(null==(C=e?.size)?void 0:C.x)+(-(null==(k=e?.size)?void 0:k.width)/2||0):-S,f.l.debug("New row in layout for block",e.id," and child ",t.id,h)),f.l.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${V},${F} (${null==(z=b?.size)?void 0:z.x},${null==(y=b?.size)?void 0:y.y}) parent: ${b.id} width: ${n}${S}`),b.size){const R=n/2;t.size.x=d+S+R,f.l.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${d} new startingPosX${t.size.x} ${R} padding=${S} width=${n} halfWidth=${R} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${n*(t?.widthInColumns||1)/2}`),d=t.size.x+R,t.size.y=b.size.y-b.size.height/2+F*(P+S)+P/2+S,f.l.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${d}${S}${R}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${n*(t?.widthInColumns||1)/2}`)}t.children&&we(t),i+=t?.widthInColumns||1,f.l.debug("abc88 columnsPos",t,i)}}f.l.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${null==(m=e?.size)?void 0:m.x} y: ${null==(v=e?.size)?void 0:v.y} width: ${null==(N=e?.size)?void 0:N.width}`)}function Oe(e,{minX:l,minY:a,maxX:c,maxY:r}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&"root"!==e.id){const{x:g,y:u,width:p,height:_}=e.size;g-p/2c&&(c=g+p/2),u+_/2>r&&(r=u+_/2)}if(e.children)for(const g of e.children)({minX:l,minY:a,maxX:c,maxY:r}=Oe(g,{minX:l,minY:a,maxX:c,maxY:r}));return{minX:l,minY:a,maxX:c,maxY:r}}function Qe(e){const l=e.getBlock("root");if(!l)return;ge(l,e,0,0),we(l),f.l.debug("getBlocks",JSON.stringify(l,null,2));const{minX:a,minY:c,maxX:r,maxY:g}=Oe(l);return{x:a,y:c,width:r-a,height:g-c}}const qe={parser:Te,db:Ye,renderer:{draw:function(){var e=(0,B.Z)(function*(l,a,c,r){const{securityLevel:g,block:u}=(0,f.F)(),p=r.db;let _;"sandbox"===g&&(_=(0,j.Ys)("#i"+a));const x=(0,j.Ys)("sandbox"===g?_.nodes()[0].contentDocument.body:"body"),L="sandbox"===g?x.select(`[id="${a}"]`):(0,j.Ys)(`[id="${a}"]`);(0,W.a)(L,["point","circle","cross"],r.type,a);const C=p.getBlocks(),k=p.getBlocksFlat(),z=p.getEdges(),y=L.insert("g").attr("class","block");yield function Ze(e,l,a){return ue.apply(this,arguments)}(y,C,p);const m=Qe(p);if(yield function Xe(e,l,a){return de.apply(this,arguments)}(y,C,p),yield function Ge(e,l,a,c,r){return he.apply(this,arguments)}(y,z,k,p,a),m){const v=m,N=Math.max(1,Math.round(v.width/v.height*.125)),w=v.height+N+10,o=v.width+10,{useMaxWidth:s}=u;(0,f.i)(L,w,o,!!s),f.l.debug("Here Bounds",m,v),L.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}(0,j.PKp)(j.K2I)});return function(a,c,r,g){return e.apply(this,arguments)}}(),getClasses:function(e,l){return l.db.getClasses()}},styles:e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span,p {\n color: ${e.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${Q(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${Q(e.mainBkg,.5)};\n fill: ${Q(e.clusterBkg,.5)};\n stroke: ${Q(e.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span,p {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/690.4ed844d0622bcdf0.js b/pkg/apiserver-impl/ui/687.b07e6d76bf58d46f.js similarity index 99% rename from pkg/apiserver-impl/ui/690.4ed844d0622bcdf0.js rename to pkg/apiserver-impl/ui/687.b07e6d76bf58d46f.js index 20eb91b2d8..10dedfa464 100644 --- a/pkg/apiserver-impl/ui/690.4ed844d0622bcdf0.js +++ b/pkg/apiserver-impl/ui/687.b07e6d76bf58d46f.js @@ -1 +1 @@ -(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[690],{7942:q0n=>{q0n.exports=function Za(ho,uh,Xr){function y(du,xr){if(!uh[du]){if(!ho[du]){if(av)return av(du,!0);var xi=new Error("Cannot find module '"+du+"'");throw xi.code="MODULE_NOT_FOUND",xi}var lc=uh[du]={exports:{}};ho[du][0].call(lc.exports,function(bu){return y(ho[du][1][bu]||bu)},lc,lc.exports,Za,ho,uh,Xr)}return uh[du].exports}for(var av=void 0,jg=0;jg0&&void 0!==arguments[0]?arguments[0]:{},xi=Lt.defaultLayoutOptions,lc=void 0===xi?{}:xi,bu=Lt.algorithms,Jl=void 0===bu?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:bu,Bh=Lt.workerFactory,bl=Lt.workerUrl;if(y(this,du),this.defaultLayoutOptions=lc,this.initialized=!1,typeof bl>"u"&&typeof Bh>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Vn=Bh;typeof bl<"u"&&typeof Bh>"u"&&(Vn=function(o7){return new Worker(o7)});var c6=Vn(bl);if("function"!=typeof c6.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new jg(c6),this.worker.postMessage({cmd:"register",algorithms:Jl}).then(function(u7){return xr.initialized=!0}).catch(console.err)}return Xr(du,[{key:"layout",value:function(Lt){var xi=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},lc=xi.layoutOptions,Jl=xi.logging,bl=xi.measureExecutionTime;return Lt?this.worker.postMessage({cmd:"layout",graph:Lt,layoutOptions:void 0===lc?this.defaultLayoutOptions:lc,options:{logging:void 0!==Jl&&Jl,measureExecutionTime:void 0!==bl&&bl}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),du}();uh.default=av;var jg=function(){function du(xr){var Lt=this;if(y(this,du),void 0===xr)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=xr,this.worker.onmessage=function(xi){setTimeout(function(){Lt.receive(Lt,xi)},0)}}return Xr(du,[{key:"postMessage",value:function(Lt){var xi=this.id||0;this.id=xi+1,Lt.id=xi;var lc=this;return new Promise(function(bu,Jl){lc.resolvers[xi]=function(Bh,bl){Bh?(lc.convertGwtStyleError(Bh),Jl(Bh)):bu(bl)},lc.worker.postMessage(Lt)})}},{key:"receive",value:function(Lt,xi){var lc=xi.data,bu=Lt.resolvers[lc.id];bu&&(delete Lt.resolvers[lc.id],lc.error?bu(lc.error):bu(null,lc.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Lt){if(Lt){var xi=Lt.__java$exception;xi&&(xi.cause&&xi.cause.backingJsObject&&(Lt.cause=xi.cause.backingJsObject,this.convertGwtStyleError(Lt.cause)),delete Lt.__java$exception)}}}]),du}()},{}],2:[function(Za,ho,uh){(function(Xr){(function(){"use strict";var y;function xi(){}function lc(){}function bu(){}function Jl(){}function Bh(){}function bl(){}function Vn(){}function c6(){}function u7(){}function o7(){}function JO(){}function QO(){}function YO(){}function $E(){}function ZO(){}function FE(){}function nL(){}function eL(){}function uG(){}function tL(){}function Hb(){}function N(){}function xt(){}function Gt(){}function Si(){}function lr(){}function er(){}function lo(){}function Wt(){}function wl(){}function nc(){}function _o(){}function nd(){}function z1(){}function ec(){}function zt(){}function X1(){}function gl(){}function bs(){}function W1(){}function Ql(){}function wu(){}function dv(){}function Br(){}function yc(){}function Rh(){}function Fs(){}function Yl(){}function xE(){}function U0n(){}function G0n(){}function oG(){}function Tu(){}function bv(){}function wv(){}function z0n(){}function X0n(){}function iL(){}function W0n(){}function V0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function vbn(){}function pbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function sG(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function rL(){}function cL(){}function BE(){}function Obn(){}function Lbn(){}function uL(){}function Dbn(){}function Nbn(){}function $bn(){}function RE(){}function Fbn(){}function xbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function fG(){}function Gbn(){}function zbn(){}function hG(){}function Xbn(){}function Wbn(){}function Vbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function oL(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function lG(){}function aG(){}function wwn(){}function gwn(){}function vwn(){}function pwn(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Lwn(){}function Dwn(){}function Nwn(){}function $wn(){}function Fwn(){}function xwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Wwn(){}function Vwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function vgn(){}function pgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Lgn(){}function Dgn(){}function Ngn(){}function $gn(){}function Fgn(){}function xgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Wgn(){}function Vgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function dG(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function v2n(){}function p2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function L2n(){}function D2n(){}function N2n(){}function $2n(){}function F2n(){}function x2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function W2n(){}function V2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function cvn(){}function uvn(){}function ovn(){}function svn(){}function fvn(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function gvn(){}function vvn(){}function pvn(){}function mvn(){}function kvn(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function Mvn(){}function bG(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Lvn(){}function Dvn(){}function Nvn(){}function $vn(){}function wG(){}function Fvn(){}function xvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function gG(){}function vG(){}function Hvn(){}function pG(){}function mG(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Wvn(){}function Vvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function kG(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function vpn(){}function ppn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Lpn(){}function Dpn(){}function Npn(){}function $pn(){}function Fpn(){}function xpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function Hpn(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Wpn(){}function Vpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function v3n(){}function p3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function L3n(){}function D3n(){}function N3n(){}function $3n(){}function F3n(){}function x3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function W3n(){}function V3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function sL(){}function fL(){}function u4n(){}function hL(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function yG(){}function v4n(){}function p4n(){}function m4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function ed(){}function S4n(){}function gv(){}function jG(){}function P4n(){}function I4n(){}function O4n(){}function L4n(){}function D4n(){}function N4n(){}function $4n(){}function F4n(){}function x4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function hn(){}function W4n(){}function V4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function cmn(){}function umn(){}function lL(){}function omn(){}function smn(){}function fmn(){}function KE(){}function hmn(){}function aL(){}function _E(){}function lmn(){}function EG(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function gmn(){}function vmn(){}function HE(){}function pmn(){}function mmn(){}function qE(){}function kmn(){}function UE(){}function ymn(){}function CG(){}function jmn(){}function dL(){}function MG(){}function Emn(){}function Cmn(){}function Mmn(){}function Tmn(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Lmn(){}function Dmn(){}function Nmn(){}function $mn(){}function Fmn(){}function xmn(){}function o3(){}function bL(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function zmn(){}function Xmn(){}function Wmn(){}function Vmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function v6n(){}function p6n(){}function m6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function L6n(){}function D6n(){}function N6n(){}function $6n(){}function F6n(){}function x6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function W6n(){}function V6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function v5n(){}function p5n(){}function m5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function S5n(){}function P5n(){}function I5n(){}function TG(){}function O5n(){}function L5n(){}function wL(){b6()}function D5n(){j7()}function N5n(){OA()}function $5n(){yF()}function F5n(){R5()}function x5n(){Nnn()}function B5n(){Js()}function R5n(){UZ()}function K5n(){sy()}function _5n(){E7()}function H5n(){Q7()}function q5n(){wCn()}function U5n(){tp()}function G5n(){qDn()}function z5n(){qQ()}function X5n(){OOn()}function W5n(){UQ()}function V5n(){kNn()}function J5n(){IOn()}function Q5n(){v4()}function Y5n(){iFn()}function Z5n(){tFn()}function n8n(){TLn()}function e8n(){rFn()}function t8n(){ma()}function i8n(){pC()}function r8n(){Dtn()}function c8n(){cn()}function u8n(){cFn()}function o8n(){LFn()}function s8n(){LOn()}function f8n(){iKn()}function h8n(){DOn()}function l8n(){vUn()}function a8n(){len()}function d8n(){Il()}function b8n(){pBn()}function w8n(){bc()}function g8n(){HOn()}function v8n(){ep()}function p8n(){Xen()}function m8n(){ka()}function k8n(){Wen()}function y8n(){Uf()}function j8n(){dy()}function E8n(){Xx()}function C8n(){tx()}function af(){pSn()}function M8n(){vT()}function T8n(){xA()}function AG(){Ue()}function A8n(){ZT()}function S8n(){kZ()}function SG(){tF()}function PG(){cS()}function P8n(){ctn()}function IG(n){Jn(n)}function I8n(n){this.a=n}function GE(n){this.a=n}function O8n(n){this.a=n}function L8n(n){this.a=n}function D8n(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function F8n(n){this.a=n}function OG(n){this.a=n}function LG(n){this.a=n}function x8n(n){this.a=n}function B8n(n){this.a=n}function gL(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function vL(n){this.a=n}function pL(n){this.a=n}function _8n(n){this.a=n}function mL(n){this.a=n}function H8n(n){this.a=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function DG(n){this.b=n}function G8n(n){this.c=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function W8n(n){this.a=n}function V8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function t9n(n){this.a=n}function i9n(n){this.a=n}function r9n(n){this.a=n}function NG(n){this.a=n}function $G(n){this.a=n}function zE(n){this.a=n}function s7(n){this.a=n}function td(){this.a=[]}function c9n(n,e){n.a=e}function FG(n,e){n.j=e}function zse(n,e){n.c=e}function Vse(n,e){n.d=e}function id(n,e){n.k=e}function xG(n,e){n.c=e}function BG(n,e){n.a=e}function Qse(n,e){n.a=e}function Yse(n,e){n.f=e}function Zse(n,e){n.a=e}function nfe(n,e){n.b=e}function kL(n,e){n.d=e}function XE(n,e){n.i=e}function RG(n,e){n.o=e}function u9n(n,e){n.e=e}function KG(n,e){n.g=e}function cfe(n,e){n.e=e}function ufe(n,e){n.f=e}function ofe(n,e){n.f=e}function yL(n,e){n.a=e}function jL(n,e){n.b=e}function sfe(n,e){n.n=e}function o9n(n){n.b=n.a}function s9n(n){n.c=n.d.d}function _G(n){this.a=n}function HG(n){this.a=n}function qG(n){this.a=n}function rd(n){this.a=n}function cd(n){this.a=n}function f7(n){this.a=n}function f9n(n){this.a=n}function UG(n){this.a=n}function h7(n){this.a=n}function WE(n){this.a=n}function vl(n){this.a=n}function qb(n){this.a=n}function h9n(n){this.a=n}function l9n(n){this.a=n}function EL(n){this.b=n}function s3(n){this.b=n}function f3(n){this.b=n}function CL(n){this.a=n}function a9n(n){this.a=n}function ML(n){this.c=n}function C(n){this.c=n}function d9n(n){this.c=n}function u6(n){this.d=n}function GG(n){this.a=n}function Te(n){this.a=n}function b9n(n){this.a=n}function zG(n){this.a=n}function XG(n){this.a=n}function WG(n){this.a=n}function VG(n){this.a=n}function JG(n){this.a=n}function QG(n){this.a=n}function h3(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function l3(n){this.a=n}function v9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function o6(n){this.a=n}function L9n(n){this.a=n}function D9n(n){this.a=n}function N9n(n){this.a=n}function $9n(n){this.a=n}function VE(n){this.a=n}function F9n(n){this.a=n}function x9n(n){this.a=n}function a3(n){this.a=n}function YG(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function _9n(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function ZG(n){this.a=n}function nz(n){this.a=n}function ez(n){this.a=n}function s6(n){this.a=n}function JE(n){this.e=n}function d3(n){this.a=n}function U9n(n){this.a=n}function vv(n){this.a=n}function tz(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function W9n(n){this.a=n}function V9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function iz(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function v7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function L7n(n){this.a=n}function D7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function F7n(n){this.a=n}function x7n(n){this.a=n}function B7n(n){this.a=n}function R7n(n){this.a=n}function K7n(n){this.c=n}function _7n(n){this.b=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function W7n(n){this.a=n}function V7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function pl(n){this.a=n}function Eg(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function vkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Lkn(n){this.a=n}function Dkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function Fkn(n){this.a=n}function xkn(n){this.a=n}function Bkn(n){this.a=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function QE(n){this.a=n}function _kn(n){this.f=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Wkn(n){this.a=n}function Vkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function TL(n){this.a=n}function rz(n){this.a=n}function ct(n){this.b=n}function gyn(n){this.a=n}function vyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function kyn(n){this.a=n}function yyn(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.b=n}function Cyn(n){this.a=n}function l7(n){this.a=n}function Myn(n){this.a=n}function Tyn(n){this.a=n}function cz(n){this.c=n}function YE(n){this.e=n}function ZE(n){this.a=n}function nC(n){this.a=n}function AL(n){this.a=n}function Ayn(n){this.d=n}function Syn(n){this.a=n}function uz(n){this.a=n}function oz(n){this.a=n}function h0(n){this.e=n}function f6(){this.a=0}function de(){qu(this)}function Z(){_D(this)}function SL(){lIn(this)}function Pyn(){}function l0(){this.c=a0n}function Iyn(n,e){n.b+=e}function Tfe(n){return n.a}function Afe(n){return n.a}function Sfe(n){return n.a}function Pfe(n){return n.a}function Ife(n){return n.a}function M(n){return n.e}function Ofe(){return null}function Lfe(){return null}function Oyn(n){n.b=new WL}function h6(n,e){n.b=e-n.b}function l6(n,e){n.a=e-n.a}function Rn(n,e){n.push(e)}function Lyn(n,e){n.sort(e)}function Dyn(n,e){e.jd(n.a)}function a7(n,e){n.e=e,e.b=n}function sz(n){dh(),this.a=n}function Nyn(n){dh(),this.a=n}function $yn(n){dh(),this.a=n}function PL(n){D0(),this.a=n}function Fyn(n){q3(),p_.le(n)}function fz(){fz=N,new de}function ud(){eAn.call(this)}function hz(){eAn.call(this)}function lz(){ud.call(this)}function IL(){ud.call(this)}function xyn(){ud.call(this)}function d7(){ud.call(this)}function Au(){ud.call(this)}function pv(){ud.call(this)}function Pe(){ud.call(this)}function Ho(){ud.call(this)}function Byn(){ud.call(this)}function tc(){ud.call(this)}function Ryn(){ud.call(this)}function Kyn(){this.a=this}function eC(){this.Bb|=256}function _yn(){this.b=new WMn}function Ub(n,e){n.length=e}function tC(n,e){nn(n.a,e)}function b3(n,e){tt(n.e,e)}function mv(n){_A(n.c,n.b)}function az(n){this.a=function D5e(n){var e;return(e=Ew(n))>34028234663852886e22?Mt:e<-34028234663852886e22?fi:e}(n)}function Yt(){this.a=new de}function Hyn(){this.a=new de}function dz(){this.a=new oCn}function iC(){this.a=new Z}function OL(){this.a=new Z}function bz(){this.a=new Z}function ws(){this.a=new cbn}function od(){this.a=new xDn}function wz(){this.a=new fG}function gz(){this.a=new POn}function vz(){this.a=new _An}function qyn(){this.a=new Z}function Uyn(){this.a=new Z}function Gyn(){this.a=new Z}function pz(){this.a=new Z}function zyn(){this.d=new Z}function Xyn(){this.a=new VOn}function Wyn(){this.a=new Yt}function Vyn(){this.a=new de}function Jyn(){this.b=new de}function Qyn(){this.b=new Z}function mz(){this.e=new Z}function Yyn(){this.a=new t8n}function Zyn(){this.d=new Z}function njn(){nOn.call(this)}function ejn(){nOn.call(this)}function tjn(){Z.call(this)}function kz(){lz.call(this)}function yz(){iC.call(this)}function ijn(){sM.call(this)}function rjn(){pz.call(this)}function a6(){Pyn.call(this)}function LL(){a6.call(this)}function kv(){Pyn.call(this)}function jz(){kv.call(this)}function cjn(){Tz.call(this)}function ujn(){Tz.call(this)}function ojn(){Tz.call(this)}function sjn(){Az.call(this)}function d6(){hmn.call(this)}function Ez(){hmn.call(this)}function Su(){yt.call(this)}function fjn(){Cjn.call(this)}function hjn(){Cjn.call(this)}function ljn(){de.call(this)}function ajn(){de.call(this)}function djn(){de.call(this)}function DL(){sFn.call(this)}function bjn(){Yt.call(this)}function wjn(){eC.call(this)}function NL(){uW.call(this)}function Cz(){de.call(this)}function $L(){uW.call(this)}function FL(){de.call(this)}function gjn(){de.call(this)}function Mz(){UE.call(this)}function vjn(){Mz.call(this)}function pjn(){UE.call(this)}function mjn(){TG.call(this)}function Tz(){this.a=new Yt}function kjn(){this.a=new de}function yjn(){this.a=new Z}function Az(){this.a=new de}function yv(){this.a=new yt}function jjn(){this.j=new Z}function Ejn(){this.a=new yEn}function Cjn(){this.a=new kmn}function Sz(){this.a=new n4n}function b6(){b6=N,h_=new lc}function xL(){xL=N,l_=new Tjn}function BL(){BL=N,a_=new Mjn}function Mjn(){vL.call(this,"")}function Tjn(){vL.call(this,"")}function Ajn(n){O$n.call(this,n)}function Sjn(n){O$n.call(this,n)}function Pz(n){OG.call(this,n)}function Iz(n){JEn.call(this,n)}function Hfe(n){JEn.call(this,n)}function qfe(n){Iz.call(this,n)}function Ufe(n){Iz.call(this,n)}function Gfe(n){Iz.call(this,n)}function Pjn(n){g$.call(this,n)}function Ijn(n){g$.call(this,n)}function Ojn(n){fSn.call(this,n)}function Ljn(n){Zz.call(this,n)}function w6(n){bC.call(this,n)}function Oz(n){bC.call(this,n)}function Djn(n){bC.call(this,n)}function Lz(n){dje.call(this,n)}function Dz(n){Lz.call(this,n)}function ic(n){IPn.call(this,n)}function Njn(n){ic.call(this,n)}function jv(){s7.call(this,{})}function $jn(){$jn=N,vQn=new tL}function rC(){rC=N,w_=new OTn}function Fjn(){Fjn=N,Iun=new xi}function Nz(){Nz=N,Oun=new $E}function cC(){cC=N,q8=new nL}function RL(n){T3(),this.a=n}function KL(n){oY(),this.a=n}function a0(n){CN(),this.f=n}function _L(n){CN(),this.f=n}function xjn(n){vSn(),this.a=n}function Bjn(n){n.b=null,n.c=0}function Xfe(n,e){n.a=e,function nEe(n){var e,t,i;for(function aMe(n){var e,t,i;for(t=new C(n.a.a.b);t.a0&&(!(kl(n.a.c)&&e.n.d)&&!(Ng(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),(!kl(n.a.c)||!e.n.a)&&(!Ng(n.a.c)||!e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}(n),i=new Z,t=new C(n.a.a.b);t.a0&&(!(kl(n.a.c)&&e.n.d)&&!(Ng(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),(!kl(n.a.c)||!e.n.a)&&(!Ng(n.a.c)||!e.n.c)&&(e.g.a-=i-1))}(n)}(n)}function HL(n,e,t){n.a[e.g]=t}function Wfe(n,e,t){!function wke(n,e,t){var i,r;for(K7(n,n.j+e,n.k+t),r=new ne((!n.a&&(n.a=new ni(Ro,n,5)),n.a));r.e!=r.i.gc();)KD(i=u(ue(r),377),i.a+e,i.b+t);R7(n,n.b+e,n.c+t)}(t,n,e)}function Vfe(n,e){!function Uae(n,e){kl(n.f)?function zCe(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new C(n.d);i.a=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},function jAe(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);return void 0===e[n]&&!(0!=Object.getOwnPropertyNames(e).length||(e[n]=42,42!==e[n])||0==Object.getOwnPropertyNames(e).length)}()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[tR]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)58==t.charCodeAt(0)&&e.push(t.substring(1));return e}),n}()}()}function Q1(){Q1=N,Coe=function Z7e(){var n,e;cS();try{if(e=u(hnn((Y1(),Ns),bm),2113))return e}catch(t){if(!L(t=At(t),103))throw M(t);n=t,ZV((Ie(),n))}return new lmn}()}function uEn(){uEn=N,Ci=function lye(){var n;return Doe?u(x4((Y1(),Ns),bm),2115):(n=u(L(Bc((Y1(),Ns),bm),569)?Bc(Ns,bm):new MHn,569),Doe=!0,function DOe(n){n.q||(n.q=!0,n.p=dc(n,0),n.a=dc(n,1),mt(n.a,0),n.f=dc(n,2),mt(n.f,1),$t(n.f,2),n.n=dc(n,3),$t(n.n,3),$t(n.n,4),$t(n.n,5),$t(n.n,6),n.g=dc(n,4),mt(n.g,7),$t(n.g,8),n.c=dc(n,5),mt(n.c,7),mt(n.c,8),n.i=dc(n,6),mt(n.i,9),mt(n.i,10),mt(n.i,11),mt(n.i,12),$t(n.i,13),n.j=dc(n,7),mt(n.j,9),n.d=dc(n,8),mt(n.d,3),mt(n.d,4),mt(n.d,5),mt(n.d,6),$t(n.d,7),$t(n.d,8),$t(n.d,9),$t(n.d,10),n.b=dc(n,9),$t(n.b,0),$t(n.b,1),n.e=dc(n,10),$t(n.e,1),$t(n.e,2),$t(n.e,3),$t(n.e,4),mt(n.e,5),mt(n.e,6),mt(n.e,7),mt(n.e,8),mt(n.e,9),mt(n.e,10),$t(n.e,11),n.k=dc(n,11),$t(n.k,0),$t(n.k,1),n.o=Ve(n,12),n.s=Ve(n,13))}(n),function JDe(n){var l,a,d,g,v,p,k;n.r||(n.r=!0,Jc(n,"graph"),qT(n,"graph"),UT(n,bm),Kk(n.o,"T"),me(_r(n.a),n.p),me(_r(n.f),n.a),me(_r(n.n),n.f),me(_r(n.g),n.n),me(_r(n.c),n.n),me(_r(n.i),n.c),me(_r(n.j),n.c),me(_r(n.d),n.f),me(_r(n.e),n.a),ac(n.p,aNe,kXn,!0,!0,!1),k=oxn(p=Jg(n.p,n.p,"setProperty")),l=jl(n.o),a=new l0,me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),ann(a,d=XN(k)),LA(p,l,Vcn),LA(p,l=XN(k),D8),k=oxn(p=Jg(n.p,null,"getProperty")),l=jl(n.o),a=XN(k),me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),LA(p,l,Vcn),(v=qf(p,l=XN(k),null))&&v.oj(),p=Jg(n.p,n.wb.e,"hasProperty"),l=jl(n.o),a=new l0,me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),LA(p,l,Vcn),Lr(p=Jg(n.p,n.p,"copyProperties"),n.p,$K),p=Jg(n.p,null,"getAllProperties"),l=jl(n.wb.P),a=jl(n.o),me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),d=new l0,me((!a.d&&(a.d=new ni(yr,a,1)),a.d),d),a=jl(n.wb.M),me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),(g=qf(p,l,null))&&g.oj(),ac(n.a,e6,oVn,!0,!1,!0),kt(u(D(H(n.a),0),19),n.k,null,mVn,0,-1,e6,!1,!1,!0,!0,!1,!1,!1),ac(n.f,EE,fVn,!0,!1,!0),kt(u(D(H(n.f),0),19),n.g,u(D(H(n.g),0),19),"labels",0,-1,EE,!1,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.f),1),35),n.wb._,kVn,null,0,1,EE,!1,!1,!0,!1,!0,!1),ac(n.n,CE,"ElkShape",!0,!1,!0),Ht(u(D(H(n.n),0),35),n.wb.t,FK,Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.n),1),35),n.wb.t,xK,Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.n),2),35),n.wb.t,"x",Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.n),3),35),n.wb.t,"y",Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Lr(p=Jg(n.n,null,"setDimensions"),n.wb.t,xK),Lr(p,n.wb.t,FK),Lr(p=Jg(n.n,null,"setLocation"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),ac(n.g,Tr,zcn,!1,!1,!0),kt(u(D(H(n.g),0),19),n.f,u(D(H(n.f),0),19),BK,0,1,Tr,!1,!1,!0,!1,!1,!1,!1),Ht(u(D(H(n.g),1),35),n.wb._,RK,"",0,1,Tr,!1,!1,!0,!1,!0,!1),ac(n.c,he,hVn,!0,!1,!0),kt(u(D(H(n.c),0),19),n.d,u(D(H(n.d),1),19),"outgoingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.c),1),19),n.d,u(D(H(n.d),2),19),"incomingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),ac(n.i,Qe,Xcn,!1,!1,!0),kt(u(D(H(n.i),0),19),n.j,u(D(H(n.j),0),19),"ports",0,-1,Qe,!1,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.i),1),19),n.i,u(D(H(n.i),2),19),KK,0,-1,Qe,!1,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.i),2),19),n.i,u(D(H(n.i),1),19),BK,0,1,Qe,!1,!1,!0,!1,!1,!1,!1),kt(u(D(H(n.i),3),19),n.d,u(D(H(n.d),0),19),"containedEdges",0,-1,Qe,!1,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.i),4),35),n.wb.e,yVn,null,0,1,Qe,!0,!0,!1,!1,!0,!0),ac(n.j,Yu,Wcn,!1,!1,!0),kt(u(D(H(n.j),0),19),n.i,u(D(H(n.i),0),19),BK,0,1,Yu,!1,!1,!0,!1,!1,!1,!1),ac(n.d,Xt,Gcn,!1,!1,!0),kt(u(D(H(n.d),0),19),n.i,u(D(H(n.i),3),19),"containingNode",0,1,Xt,!1,!1,!0,!1,!1,!1,!1),kt(u(D(H(n.d),1),19),n.c,u(D(H(n.c),0),19),Jcn,0,-1,Xt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.d),2),19),n.c,u(D(H(n.c),1),19),_K,0,-1,Xt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.d),3),19),n.e,u(D(H(n.e),5),19),Qcn,0,-1,Xt,!1,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.d),4),35),n.wb.e,"hyperedge",null,0,1,Xt,!0,!0,!1,!1,!0,!0),Ht(u(D(H(n.d),5),35),n.wb.e,yVn,null,0,1,Xt,!0,!0,!1,!1,!0,!0),Ht(u(D(H(n.d),6),35),n.wb.e,"selfloop",null,0,1,Xt,!0,!0,!1,!1,!0,!0),Ht(u(D(H(n.d),7),35),n.wb.e,"connected",null,0,1,Xt,!0,!0,!1,!1,!0,!0),ac(n.b,Ro,sVn,!1,!1,!0),Ht(u(D(H(n.b),0),35),n.wb.t,"x",Y4,1,1,Ro,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.b),1),35),n.wb.t,"y",Y4,1,1,Ro,!1,!1,!0,!1,!0,!1),Lr(p=Jg(n.b,null,"set"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),ac(n.e,jt,lVn,!1,!1,!0),Ht(u(D(H(n.e),0),35),n.wb.t,"startX",null,0,1,jt,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.e),1),35),n.wb.t,"startY",null,0,1,jt,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.e),2),35),n.wb.t,"endX",null,0,1,jt,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.e),3),35),n.wb.t,"endY",null,0,1,jt,!1,!1,!0,!1,!0,!1),kt(u(D(H(n.e),4),19),n.b,null,rP,0,-1,jt,!1,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.e),5),19),n.d,u(D(H(n.d),3),19),BK,0,1,jt,!1,!1,!0,!1,!1,!1,!1),kt(u(D(H(n.e),6),19),n.c,null,Ycn,0,1,jt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.e),7),19),n.c,null,Zcn,0,1,jt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.e),8),19),n.e,u(D(H(n.e),9),19),nun,0,-1,jt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.e),9),19),n.e,u(D(H(n.e),8),19),eun,0,-1,jt,!1,!1,!0,!1,!0,!1,!1),Ht(u(D(H(n.e),10),35),n.wb._,kVn,null,0,1,jt,!1,!1,!0,!1,!0,!1),Lr(p=Jg(n.e,null,"setStartLocation"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),Lr(p=Jg(n.e,null,"setEndLocation"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),ac(n.k,Ud,"ElkPropertyToValueMapEntry",!1,!1,!1),l=jl(n.o),a=new l0,me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),vHn(u(D(H(n.k),0),35),l,"key",Ud,!1,!1,!0,!1),Ht(u(D(H(n.k),1),35),n.s,D8,null,0,1,Ud,!1,!1,!0,!1,!0,!1),We(n.o,mU,"IProperty",!0),We(n.s,pi,"PropertyValue",!0),RY(n,bm))}(n),ax(n),Pr(Ns,bm,n),n)}()}function zz(){zz=N,Ga=r4()}function m3(){m3=N,l0n=function nke(){var n,e;cS();try{if(e=u(hnn((Y1(),Ns),Ms),2040))return e}catch(t){if(!L(t=At(t),103))throw M(t);n=t,ZV((Ie(),n))}return new Bmn}()}function oEn(){oEn=N,fse=function eke(){var n,e;MNn();try{if(e=u(hnn((Y1(),Ns),qd),2122))return e}catch(t){if(!L(t=At(t),103))throw M(t);n=t,ZV((Ie(),n))}return new O6n}()}function Xz(){Xz=N,Mc=function Qje(){var n;return Tse?u(x4((Y1(),Ns),qd),2044):(function ALe(){Ge(IE,new U6n),Ge(zO,new e5n),Ge(OE,new a5n),Ge(A0n,new E5n),Ge(fn,new A5n),Ge(T(Ku,1),new S5n),Ge(qt,new P5n),Ge(Op,new I5n),Ge(fn,new D6n),Ge(fn,new N6n),Ge(fn,new $6n),Ge(ui,new F6n),Ge(fn,new x6n),Ge(ss,new B6n),Ge(ss,new R6n),Ge(fn,new K6n),Ge(km,new H6n),Ge(fn,new q6n),Ge(fn,new G6n),Ge(fn,new z6n),Ge(fn,new X6n),Ge(fn,new W6n),Ge(T(Ku,1),new V6n),Ge(fn,new J6n),Ge(fn,new Q6n),Ge(ss,new Y6n),Ge(ss,new Z6n),Ge(fn,new n5n),Ge(qi,new t5n),Ge(fn,new i5n),Ge(vb,new r5n),Ge(fn,new c5n),Ge(fn,new u5n),Ge(fn,new o5n),Ge(fn,new s5n),Ge(ss,new f5n),Ge(ss,new h5n),Ge(fn,new l5n),Ge(fn,new d5n),Ge(fn,new b5n),Ge(fn,new w5n),Ge(fn,new g5n),Ge(fn,new v5n),Ge(pb,new p5n),Ge(fn,new m5n),Ge(fn,new k5n),Ge(fn,new y5n),Ge(pb,new j5n),Ge(vb,new C5n),Ge(fn,new M5n),Ge(qi,new T5n)}(),n=u(L(Bc((Y1(),Ns),qd),594)?Bc(Ns,qd):new gIn,594),Tse=!0,function dDe(n){n.N||(n.N=!0,n.b=dc(n,0),$t(n.b,0),$t(n.b,1),$t(n.b,2),n.bb=dc(n,1),$t(n.bb,0),$t(n.bb,1),n.fb=dc(n,2),$t(n.fb,3),$t(n.fb,4),mt(n.fb,5),n.qb=dc(n,3),$t(n.qb,0),mt(n.qb,1),mt(n.qb,2),$t(n.qb,3),$t(n.qb,4),mt(n.qb,5),$t(n.qb,6),n.a=Ve(n,4),n.c=Ve(n,5),n.d=Ve(n,6),n.e=Ve(n,7),n.f=Ve(n,8),n.g=Ve(n,9),n.i=Ve(n,10),n.j=Ve(n,11),n.k=Ve(n,12),n.n=Ve(n,13),n.o=Ve(n,14),n.p=Ve(n,15),n.q=Ve(n,16),n.s=Ve(n,17),n.r=Ve(n,18),n.t=Ve(n,19),n.u=Ve(n,20),n.v=Ve(n,21),n.w=Ve(n,22),n.B=Ve(n,23),n.A=Ve(n,24),n.C=Ve(n,25),n.D=Ve(n,26),n.F=Ve(n,27),n.G=Ve(n,28),n.H=Ve(n,29),n.J=Ve(n,30),n.I=Ve(n,31),n.K=Ve(n,32),n.M=Ve(n,33),n.L=Ve(n,34),n.P=Ve(n,35),n.Q=Ve(n,36),n.R=Ve(n,37),n.S=Ve(n,38),n.T=Ve(n,39),n.U=Ve(n,40),n.V=Ve(n,41),n.X=Ve(n,42),n.W=Ve(n,43),n.Y=Ve(n,44),n.Z=Ve(n,45),n.$=Ve(n,46),n._=Ve(n,47),n.ab=Ve(n,48),n.cb=Ve(n,49),n.db=Ve(n,50),n.eb=Ve(n,51),n.gb=Ve(n,52),n.hb=Ve(n,53),n.ib=Ve(n,54),n.jb=Ve(n,55),n.kb=Ve(n,56),n.lb=Ve(n,57),n.mb=Ve(n,58),n.nb=Ve(n,59),n.ob=Ve(n,60),n.pb=Ve(n,61))}(n),function WDe(n){var e;n.O||(n.O=!0,Jc(n,"type"),qT(n,"ecore.xml.type"),UT(n,qd),e=u(x4((Y1(),Ns),qd),2044),me(_r(n.fb),n.b),ac(n.b,IE,"AnyType",!1,!1,!0),Ht(u(D(H(n.b),0),35),n.wb.D,aj,null,0,-1,IE,!1,!1,!0,!1,!1,!1),Ht(u(D(H(n.b),1),35),n.wb.D,"any",null,0,-1,IE,!0,!0,!0,!1,!1,!0),Ht(u(D(H(n.b),2),35),n.wb.D,"anyAttribute",null,0,-1,IE,!1,!1,!0,!1,!1,!1),ac(n.bb,zO,NJn,!1,!1,!0),Ht(u(D(H(n.bb),0),35),n.gb,"data",null,0,1,zO,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.bb),1),35),n.gb,run,null,1,1,zO,!1,!1,!0,!1,!0,!1),ac(n.fb,OE,$Jn,!1,!1,!0),Ht(u(D(H(n.fb),0),35),e.gb,"rawValue",null,0,1,OE,!0,!0,!0,!1,!0,!0),Ht(u(D(H(n.fb),1),35),e.a,D8,null,0,1,OE,!0,!0,!0,!1,!0,!0),kt(u(D(H(n.fb),2),19),n.wb.q,null,"instanceType",1,1,OE,!1,!1,!0,!1,!1,!1,!1),ac(n.qb,A0n,FJn,!1,!1,!0),Ht(u(D(H(n.qb),0),35),n.wb.D,aj,null,0,-1,null,!1,!1,!0,!1,!1,!1),kt(u(D(H(n.qb),1),19),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.qb),2),19),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.qb),3),35),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),Ht(u(D(H(n.qb),4),35),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),kt(u(D(H(n.qb),5),19),n.bb,null,VJn,0,-2,null,!0,!0,!0,!0,!1,!1,!0),Ht(u(D(H(n.qb),6),35),n.gb,RK,null,0,-2,null,!0,!0,!0,!1,!1,!0),We(n.a,pi,"AnySimpleType",!0),We(n.c,fn,"AnyURI",!0),We(n.d,T(Ku,1),"Base64Binary",!0),We(n.e,fo,"Boolean",!0),We(n.f,qt,"BooleanObject",!0),We(n.g,Ku,"Byte",!0),We(n.i,Op,"ByteObject",!0),We(n.j,fn,"Date",!0),We(n.k,fn,"DateTime",!0),We(n.n,y_,"Decimal",!0),We(n.o,Ai,"Double",!0),We(n.p,ui,"DoubleObject",!0),We(n.q,fn,"Duration",!0),We(n.s,ss,"ENTITIES",!0),We(n.r,ss,"ENTITIESBase",!0),We(n.t,fn,kun,!0),We(n.u,kg,"Float",!0),We(n.v,km,"FloatObject",!0),We(n.w,fn,"GDay",!0),We(n.B,fn,"GMonth",!0),We(n.A,fn,"GMonthDay",!0),We(n.C,fn,"GYear",!0),We(n.D,fn,"GYearMonth",!0),We(n.F,T(Ku,1),"HexBinary",!0),We(n.G,fn,"ID",!0),We(n.H,fn,"IDREF",!0),We(n.J,ss,"IDREFS",!0),We(n.I,ss,"IDREFSBase",!0),We(n.K,ye,"Int",!0),We(n.M,T2,"Integer",!0),We(n.L,qi,"IntObject",!0),We(n.P,fn,"Language",!0),We(n.Q,Ja,"Long",!0),We(n.R,vb,"LongObject",!0),We(n.S,fn,"Name",!0),We(n.T,fn,yP,!0),We(n.U,T2,"NegativeInteger",!0),We(n.V,fn,Eun,!0),We(n.X,ss,"NMTOKENS",!0),We(n.W,ss,"NMTOKENSBase",!0),We(n.Y,T2,"NonNegativeInteger",!0),We(n.Z,T2,"NonPositiveInteger",!0),We(n.$,fn,"NormalizedString",!0),We(n._,fn,"NOTATION",!0),We(n.ab,fn,"PositiveInteger",!0),We(n.cb,fn,"QName",!0),We(n.db,fv,"Short",!0),We(n.eb,pb,"ShortObject",!0),We(n.gb,fn,Ktn,!0),We(n.hb,fn,"Time",!0),We(n.ib,fn,"Token",!0),We(n.jb,fv,"UnsignedByte",!0),We(n.kb,pb,"UnsignedByteObject",!0),We(n.lb,Ja,"UnsignedInt",!0),We(n.mb,vb,"UnsignedIntObject",!0),We(n.nb,T2,"UnsignedLong",!0),We(n.ob,ye,"UnsignedShort",!0),We(n.pb,qi,"UnsignedShortObject",!0),RY(n,qd),function VDe(n){Me(n.a,Be,S(T(fn,1),J,2,6,[Je,"anySimpleType"])),Me(n.b,Be,S(T(fn,1),J,2,6,[Je,"anyType",Cs,aj])),Me(u(D(H(n.b),0),35),Be,S(T(fn,1),J,2,6,[Cs,YK,Je,":mixed"])),Me(u(D(H(n.b),1),35),Be,S(T(fn,1),J,2,6,[Cs,YK,pun,n_,Je,":1",xJn,"lax"])),Me(u(D(H(n.b),2),35),Be,S(T(fn,1),J,2,6,[Cs,DJn,pun,n_,Je,":2",xJn,"lax"])),Me(n.c,Be,S(T(fn,1),J,2,6,[Je,"anyURI",Ts,Mf])),Me(n.d,Be,S(T(fn,1),J,2,6,[Je,"base64Binary",Ts,Mf])),Me(n.e,Be,S(T(fn,1),J,2,6,[Je,vp,Ts,Mf])),Me(n.f,Be,S(T(fn,1),J,2,6,[Je,"boolean:Object",Wi,vp])),Me(n.g,Be,S(T(fn,1),J,2,6,[Je,$8])),Me(n.i,Be,S(T(fn,1),J,2,6,[Je,"byte:Object",Wi,$8])),Me(n.j,Be,S(T(fn,1),J,2,6,[Je,"date",Ts,Mf])),Me(n.k,Be,S(T(fn,1),J,2,6,[Je,"dateTime",Ts,Mf])),Me(n.n,Be,S(T(fn,1),J,2,6,[Je,"decimal",Ts,Mf])),Me(n.o,Be,S(T(fn,1),J,2,6,[Je,F8,Ts,Mf])),Me(n.p,Be,S(T(fn,1),J,2,6,[Je,"double:Object",Wi,F8])),Me(n.q,Be,S(T(fn,1),J,2,6,[Je,"duration",Ts,Mf])),Me(n.s,Be,S(T(fn,1),J,2,6,[Je,"ENTITIES",Wi,BJn,mun,"1"])),Me(n.r,Be,S(T(fn,1),J,2,6,[Je,BJn,ZK,kun])),Me(n.t,Be,S(T(fn,1),J,2,6,[Je,kun,Wi,yP])),Me(n.u,Be,S(T(fn,1),J,2,6,[Je,x8,Ts,Mf])),Me(n.v,Be,S(T(fn,1),J,2,6,[Je,"float:Object",Wi,x8])),Me(n.w,Be,S(T(fn,1),J,2,6,[Je,"gDay",Ts,Mf])),Me(n.B,Be,S(T(fn,1),J,2,6,[Je,"gMonth",Ts,Mf])),Me(n.A,Be,S(T(fn,1),J,2,6,[Je,"gMonthDay",Ts,Mf])),Me(n.C,Be,S(T(fn,1),J,2,6,[Je,"gYear",Ts,Mf])),Me(n.D,Be,S(T(fn,1),J,2,6,[Je,"gYearMonth",Ts,Mf])),Me(n.F,Be,S(T(fn,1),J,2,6,[Je,"hexBinary",Ts,Mf])),Me(n.G,Be,S(T(fn,1),J,2,6,[Je,"ID",Wi,yP])),Me(n.H,Be,S(T(fn,1),J,2,6,[Je,"IDREF",Wi,yP])),Me(n.J,Be,S(T(fn,1),J,2,6,[Je,"IDREFS",Wi,RJn,mun,"1"])),Me(n.I,Be,S(T(fn,1),J,2,6,[Je,RJn,ZK,"IDREF"])),Me(n.K,Be,S(T(fn,1),J,2,6,[Je,B8])),Me(n.M,Be,S(T(fn,1),J,2,6,[Je,yun])),Me(n.L,Be,S(T(fn,1),J,2,6,[Je,"int:Object",Wi,B8])),Me(n.P,Be,S(T(fn,1),J,2,6,[Je,"language",Wi,e_,t_,KJn])),Me(n.Q,Be,S(T(fn,1),J,2,6,[Je,R8])),Me(n.R,Be,S(T(fn,1),J,2,6,[Je,"long:Object",Wi,R8])),Me(n.S,Be,S(T(fn,1),J,2,6,[Je,"Name",Wi,e_,t_,jun])),Me(n.T,Be,S(T(fn,1),J,2,6,[Je,yP,Wi,"Name",t_,_Jn])),Me(n.U,Be,S(T(fn,1),J,2,6,[Je,"negativeInteger",Wi,HJn,vj,"-1"])),Me(n.V,Be,S(T(fn,1),J,2,6,[Je,Eun,Wi,e_,t_,"\\c+"])),Me(n.X,Be,S(T(fn,1),J,2,6,[Je,"NMTOKENS",Wi,qJn,mun,"1"])),Me(n.W,Be,S(T(fn,1),J,2,6,[Je,qJn,ZK,Eun])),Me(n.Y,Be,S(T(fn,1),J,2,6,[Je,Cun,Wi,yun,pj,"0"])),Me(n.Z,Be,S(T(fn,1),J,2,6,[Je,HJn,Wi,yun,vj,"0"])),Me(n.$,Be,S(T(fn,1),J,2,6,[Je,UJn,Wi,CB,Ts,"replace"])),Me(n._,Be,S(T(fn,1),J,2,6,[Je,"NOTATION",Ts,Mf])),Me(n.ab,Be,S(T(fn,1),J,2,6,[Je,"positiveInteger",Wi,Cun,pj,"1"])),Me(n.bb,Be,S(T(fn,1),J,2,6,[Je,"processingInstruction_._type",Cs,"empty"])),Me(u(D(H(n.bb),0),35),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,"data"])),Me(u(D(H(n.bb),1),35),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,run])),Me(n.cb,Be,S(T(fn,1),J,2,6,[Je,"QName",Ts,Mf])),Me(n.db,Be,S(T(fn,1),J,2,6,[Je,K8])),Me(n.eb,Be,S(T(fn,1),J,2,6,[Je,"short:Object",Wi,K8])),Me(n.fb,Be,S(T(fn,1),J,2,6,[Je,"simpleAnyType",Cs,dj])),Me(u(D(H(n.fb),0),35),Be,S(T(fn,1),J,2,6,[Je,":3",Cs,dj])),Me(u(D(H(n.fb),1),35),Be,S(T(fn,1),J,2,6,[Je,":4",Cs,dj])),Me(u(D(H(n.fb),2),19),Be,S(T(fn,1),J,2,6,[Je,":5",Cs,dj])),Me(n.gb,Be,S(T(fn,1),J,2,6,[Je,CB,Ts,"preserve"])),Me(n.hb,Be,S(T(fn,1),J,2,6,[Je,"time",Ts,Mf])),Me(n.ib,Be,S(T(fn,1),J,2,6,[Je,e_,Wi,UJn,Ts,Mf])),Me(n.jb,Be,S(T(fn,1),J,2,6,[Je,GJn,vj,"255",pj,"0"])),Me(n.kb,Be,S(T(fn,1),J,2,6,[Je,"unsignedByte:Object",Wi,GJn])),Me(n.lb,Be,S(T(fn,1),J,2,6,[Je,zJn,vj,"4294967295",pj,"0"])),Me(n.mb,Be,S(T(fn,1),J,2,6,[Je,"unsignedInt:Object",Wi,zJn])),Me(n.nb,Be,S(T(fn,1),J,2,6,[Je,"unsignedLong",Wi,Cun,vj,XJn,pj,"0"])),Me(n.ob,Be,S(T(fn,1),J,2,6,[Je,WJn,vj,"65535",pj,"0"])),Me(n.pb,Be,S(T(fn,1),J,2,6,[Je,"unsignedShort:Object",Wi,WJn])),Me(n.qb,Be,S(T(fn,1),J,2,6,[Je,"",Cs,aj])),Me(u(D(H(n.qb),0),35),Be,S(T(fn,1),J,2,6,[Cs,YK,Je,":mixed"])),Me(u(D(H(n.qb),1),19),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,"xmlns:prefix"])),Me(u(D(H(n.qb),2),19),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,"xsi:schemaLocation"])),Me(u(D(H(n.qb),3),35),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,"cDATA",mP,bj])),Me(u(D(H(n.qb),4),35),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,"comment",mP,bj])),Me(u(D(H(n.qb),5),19),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,VJn,mP,bj])),Me(u(D(H(n.qb),6),35),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,RK,mP,bj]))}(n))}(n),Xe((rX(),h0n),n,new L6n),ax(n),Pr(Ns,qd,n),n)}()}function df(n){return n.e&&n.e()}function sEn(n){return n.l|n.m<<22}function fEn(n,e){return n.c._b(e)}function hEn(n,e){return oBn(n.b,e)}function VL(n){return n?n.d:null}function sd(n){return yl(n),n.o}function Mg(n,e){return n.a+=e,n}function JL(n,e){return n.a+=e,n}function t1(n,e){return n.a+=e,n}function v0(n,e){return n.a+=e,n}function Wz(n,e){for(;n.Bd(e););}function lC(n){this.a=new Tv(n)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function bEn(){throw M(new Pe)}function wEn(){throw M(new Pe)}function gEn(){throw M(new Pe)}function i1(n){this.a=new AN(n)}function vEn(){this.a=new n8(u1n)}function pEn(){this.b=new n8(Mln)}function mEn(){this.a=new n8(I1n)}function kEn(){this.b=new n8(fU)}function yEn(){this.b=new n8(fU)}function aC(n){this.a=0,this.b=n}function Vz(n){VGn(),function MDe(n,e){var t,i,r,c,s,f,h,l;if(t=0,s=0,c=e.length,f=null,l=new Cg,s1?e.a[1]:0),pd(e.e>0?t:d1(t))))}(n,new ea(h));for(n.d=l.a.length,r=0;r0}(u(n,27))?Iu(i,(Ef(),wi))||Iu(i,Fn):Iu(i,(Ef(),wi));if(L(n,326))return Iu(i,(Ef(),$h));if(L(n,193))return Iu(i,(Ef(),e0));if(L(n,366))return Iu(i,(Ef(),F1))}return!0}(n,e)}function Qz(n,e,t){n.splice(e,t)}function Tg(n,e){for(;n.Re(e););}function EEn(n){n.c?$qn(n):Fqn(n)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function OEn(){throw M(new Pe)}function LEn(){throw M(new Pe)}function DEn(){throw M(new Pe)}function g7(n){this.a=new NEn(n)}function NEn(n){!function R4e(n,e,t){var i;n.b=e,n.a=t,i=512==(512&n.a)?new mjn:new TG,n.c=function ZTe(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,16==(16&n.e)&&(n.i=function fSe(n){var e,t,i,r,c;for(i=n.length,e=new p6,c=0;ce&&e0)){if(r=-1,32==Gi(a.c,0)){if(d=l[0],i$n(e,l),l[0]>d)continue}else if(Sge(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&0==(f-=i++))return 0;if(!tzn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!tzn(e,l,a,0,s))return 0}return function ILe(n,e){var t,i,r,c,s,f;if(0==n.e&&n.p>0&&(n.p=-(n.p-1)),n.p>Xi&&zJ(e,n.p-Ea),s=e.q.getDate(),dk(e,1),n.k>=0&&function p2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),c8(n,t)}(e,n.k),n.c>=0?dk(e,n.c):n.k>=0?(i=35-new jY(e.q.getFullYear()-Ea,e.q.getMonth(),35).q.getDate(),dk(e,y.Math.min(i,s))):dk(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),function f1e(n,e){n.q.setHours(e),c8(n,e)}(e,24==n.f&&n.g?0:n.f),n.j>=0&&function n3e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),c8(n,t)}(e,n.j),n.n>=0&&function a3e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),c8(n,t)}(e,n.n),n.i>=0&&nTn(e,Yi(Zi(ly(Ec(e.q.getTime()),T1),T1),n.i)),n.a&&(zJ(r=new wC,r.q.getFullYear()-Ea-80),rD(Ec(e.q.getTime()),Ec(r.q.getTime()))&&zJ(e,r.q.getFullYear()-Ea+100)),n.d>=0)if(-1==n.c)(t=(7+n.d-e.q.getDay())%7)>3&&(t-=7),f=e.q.getMonth(),dk(e,e.q.getDate()+t),e.q.getMonth()!=f&&dk(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1;return n.o>Xi&&(c=e.q.getTimezoneOffset(),nTn(e,Yi(Ec(e.q.getTime()),60*(n.o-c)*T1))),!0}(s,t)?l[0]:0}(n,e,r=new jY((i=new wC).q.getFullYear()-Ea,i.q.getMonth(),i.q.getDate())))||t0}function rD(n,e){return Ac(n,e)<0}function jCn(n,e){return kN(n.a,e)}function tle(n,e){COn.call(this,n,e)}function uX(n){RN(),fSn.call(this,n)}function oX(n,e){vPn(n,n.length,e)}function C7(n,e){GPn(n,n.length,e)}function A6(n,e){return n.a.get(e)}function ECn(n,e){return tu(n.e,e)}function sX(n){return Jn(n),!1}function fX(n){this.a=u(Se(n),229)}function CC(n){Pn.call(this,n,21)}function MC(n,e){je.call(this,n,e)}function cD(n,e){je.call(this,n,e)}function CCn(n,e){this.b=n,this.a=e}function TC(n,e){this.d=n,this.e=e}function MCn(n,e){this.a=n,this.b=e}function TCn(n,e){this.a=n,this.b=e}function ACn(n,e){this.a=n,this.b=e}function SCn(n,e){this.a=n,this.b=e}function Sv(n,e){this.a=n,this.b=e}function PCn(n,e){this.b=n,this.a=e}function hX(n,e){this.b=n,this.a=e}function lX(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function Ag(n,e){je.call(this,n,e)}function uD(n,e){je.call(this,n,e)}function oD(n,e){je.call(this,n,e)}function sD(n,e){je.call(this,n,e)}function AC(n,e){je.call(this,n,e)}function dX(n,e){this.b=n,this.a=e}function SC(n,e){je.call(this,n,e)}function bX(n,e){this.b=n,this.a=e}function PC(n,e){je.call(this,n,e)}function ICn(n,e){this.b=n,this.a=e}function wX(n,e){je.call(this,n,e)}function fD(n,e){je.call(this,n,e)}function M7(n,e){je.call(this,n,e)}function S6(n,e,t){n.splice(e,0,t)}function IC(n,e){je.call(this,n,e)}function OC(n,e){je.call(this,n,e)}function P6(n,e){je.call(this,n,e)}function gX(n,e){je.call(this,n,e)}function Zt(n,e){je.call(this,n,e)}function LC(n,e){je.call(this,n,e)}function OCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.a=n,this.b=e}function $Cn(n,e){this.a=n,this.b=e}function FCn(n,e){this.a=n,this.b=e}function xCn(n,e){this.b=n,this.a=e}function BCn(n,e){this.b=n,this.a=e}function vX(n,e){this.b=n,this.a=e}function M3(n,e){this.c=n,this.d=e}function RCn(n,e){this.e=n,this.d=e}function KCn(n,e){this.a=n,this.b=e}function _Cn(n,e){this.a=n,this.b=e}function HCn(n,e){this.a=n,this.b=e}function qCn(n,e){this.b=n,this.a=e}function UCn(n,e){this.b=e,this.c=n}function DC(n,e){je.call(this,n,e)}function T7(n,e){je.call(this,n,e)}function hD(n,e){je.call(this,n,e)}function pX(n,e){je.call(this,n,e)}function I6(n,e){je.call(this,n,e)}function lD(n,e){je.call(this,n,e)}function aD(n,e){je.call(this,n,e)}function A7(n,e){je.call(this,n,e)}function mX(n,e){je.call(this,n,e)}function dD(n,e){je.call(this,n,e)}function O6(n,e){je.call(this,n,e)}function kX(n,e){je.call(this,n,e)}function L6(n,e){je.call(this,n,e)}function D6(n,e){je.call(this,n,e)}function Xb(n,e){je.call(this,n,e)}function bD(n,e){je.call(this,n,e)}function wD(n,e){je.call(this,n,e)}function yX(n,e){je.call(this,n,e)}function S7(n,e){je.call(this,n,e)}function Sg(n,e){je.call(this,n,e)}function gD(n,e){je.call(this,n,e)}function NC(n,e){je.call(this,n,e)}function P7(n,e){je.call(this,n,e)}function Wb(n,e){je.call(this,n,e)}function $C(n,e){je.call(this,n,e)}function jX(n,e){je.call(this,n,e)}function vD(n,e){je.call(this,n,e)}function pD(n,e){je.call(this,n,e)}function mD(n,e){je.call(this,n,e)}function kD(n,e){je.call(this,n,e)}function yD(n,e){je.call(this,n,e)}function jD(n,e){je.call(this,n,e)}function ED(n,e){je.call(this,n,e)}function GCn(n,e){this.b=n,this.a=e}function EX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function XCn(n,e){this.a=n,this.b=e}function WCn(n,e){this.a=n,this.b=e}function CX(n,e){je.call(this,n,e)}function MX(n,e){je.call(this,n,e)}function VCn(n,e){this.a=n,this.b=e}function I7(n){return oe(n.a),n.b}function CD(n){return function gCe(n,e){var i,r,c;for(i=new C(n.a.a);i.a=0}function R6(n,e){return 0!=Ac(n,e)}function XC(n,e){return function vme(n,e){for(Se(e);n.Ob();)if(!aY(u(n.Pb(),10)))return!1;return!0}(n.Kc(),e)}function na(n,e){return n.Rd().Xb(e)}function _Mn(n){return to(n),n.d.gc()}function WC(n){return Q6(null==n),n}function K6(n,e){return n.a+=""+e,n}function jr(n,e){return n.a+=""+e,n}function _6(n,e){return n.a+=""+e,n}function Fc(n,e){return n.a+=""+e,n}function Re(n,e){return n.a+=""+e,n}function KX(n,e){return n.a+=""+e,n}function HMn(n){qu(this),E5(this,n)}function qMn(){PJ(),$V.call(this)}function UMn(n,e){KV.call(this,n,e)}function GMn(n,e){KV.call(this,n,e)}function VC(n,e){KV.call(this,n,e)}function tr(n,e){Nt(n,e,n.c.b,n.c)}function Og(n,e){Nt(n,e,n.a,n.a.a)}function _X(n){return Ln(n,0),null}function zMn(){this.b=0,this.a=!1}function XMn(){this.b=0,this.a=!1}function WMn(){this.b=new Tv(aw(12))}function VMn(){VMn=N,CYn=Ce(zF())}function JMn(){JMn=N,zZn=Ce(uqn())}function QMn(){QMn=N,wre=Ce(RFn())}function HX(){HX=N,fz(),Lun=new de}function wf(n){return n.a=0,n.b=0,n}function YMn(n,e){return n.a=e.g+1,n}function FD(n,e){ew.call(this,n,e)}function Cn(n,e){Pt.call(this,n,e)}function Lg(n,e){BX.call(this,n,e)}function ZMn(n,e){H7.call(this,n,e)}function xD(n,e){h4.call(this,n,e)}function Ge(n,e){jC(),Xe(KO,n,e)}function nTn(n,e){n.q.setTime(pd(e))}function eTn(n,e){return x(n)===x(e)}function tTn(n,e){return n.a.a.a.cc(e)}function BD(n,e){return Xo(n.a,0,e)}function qX(n){return function jwe(n){return Xv(),Ct(Wh(n))==Ct(va(n))}(u(n,74))}function Ov(n){return di((Jn(n),n))}function iTn(n){return eu(n.l,n.m,n.h)}function UX(n,e){return Tc(n.a,e.a)}function fh(n,e){return n.indexOf(e)}function E0(n,e){return n==e?0:n?1:-1}function JC(n){return n<10?"0"+n:""+n}function Wr(n){return typeof n===$tn}function rTn(n,e){return Tc(n.g,e.g)}function GX(n){return Hr(n.b.b,n,0)}function cTn(){EM.call(this,0,0,0,0)}function hh(){zG.call(this,new h1)}function zX(n,e){V3(n,0,n.length,e)}function Tle(n,e){return nn(n.a,e),e}function XX(n,e){return So(n.a,e),n}function uTn(n){this.a=JCn(),this.b=n}function oTn(n){this.a=JCn(),this.b=n}function ir(n){this.a=n.a,this.b=n.b}function H6(n){this.a=n,wL.call(this)}function sTn(n){this.a=n,wL.call(this)}function Lv(){zo.call(this,0,0,0,0)}function QC(n){return So(new ei,n)}function fTn(n){return _M(u(n,123))}function ao(n){return n.vh()&&n.wh()}function Dg(n){return n!=th&&n!=Ha}function kl(n){return n==$r||n==zr}function Ng(n){return n==hs||n==nh}function hTn(n){return n==U2||n==q2}function lTn(n,e){return new h4(e,n)}function WX(n){return function Z0e(n,e){return Se(n),Se(e),new zEn(n,e)}(n.b.Kc(),n.a)}function RD(n,e){p4(n,e),i4(n,n.D)}function KD(n,e,t){OT(n,e),IT(n,t)}function $g(n,e,t){G0(n,e),U0(n,t)}function qo(n,e,t){ru(n,e),cu(n,t)}function R7(n,e,t){Z3(n,e),e4(n,t)}function K7(n,e,t){n4(n,e),t4(n,t)}function aTn(n,e,t){IW.call(this,n,e,t)}function VX(n){LMn.call(this,n,!0)}function dTn(){MC.call(this,"Tail",3)}function bTn(){MC.call(this,"Head",1)}function ea(n){mh(),dme.call(this,n)}function C0(n){EM.call(this,n,n,n,n)}function _D(n){n.c=K(pi,xn,1,0,5,1)}function JX(n){return n.b&&uB(n),n.a}function QX(n){return n.b&&uB(n),n.c}function Li(n,e){Pt.call(this,n.b,e)}function wTn(n,e,t){Dt(n.c[e.g],e.g,t)}function HD(n,e,t){return Dt(n,e,t),t}function gTn(n){iu(n.Sf(),new $9n(n))}function Fg(n){return null!=n?wt(n):0}function q6(n){Ze(),h0.call(this,n)}function vTn(n){this.a=n,lV.call(this,n)}function Of(){Of=N,y.Math.log(2)}function Uo(){Uo=N,kCn(),al=Ioe}function pTn(){pTn=N,Cq=new F5(BU)}function Ie(){Ie=N,new mTn,new Z}function mTn(){new de,new de,new de}function qD(n){this.a=n,dC.call(this,n)}function UD(n){this.a=n,dC.call(this,n)}function kTn(n,e){D0(),this.a=n,this.b=e}function Jt(n,e){yN(n.c,n.c.length,e)}function rc(n){return n.ae?1:0}function ZX(n,e){return Ac(n,e)>0?n:e}function eu(n,e,t){return{l:n,m:e,h:t}}function Qle(n,e){null!=n.a&&NMn(e,n.a)}function xg(n,e,t){return jZ(e,t,n.c)}function e1e(n,e,t){return function KOe(n,e,t){var i,r,c,f,h,l,a,g;for(l=new Z,h=new C(e.a);h.a0),c=u(a.a.Xb(a.c=--a.b),18);c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,oe(a.b>0),c=u(a.a.Xb(a.c=--a.b),18);a.b>0&&vo(a)}}(n,e,t),t}function jTn(n){jJ.call(this),this.b=n}function nW(n){_W.call(this),this.a=n}function ETn(){MC.call(this,"Range",2)}function YC(n){this.b=n,this.a=new Z}function CTn(n){this.b=new $bn,this.a=n}function MTn(n){n.a=new z1,n.c=new z1}function TTn(n){n.a=new de,n.d=new de}function ATn(n){c$(n,null),u$(n,null)}function STn(n,e){return function HOe(n,e,t){var i,r,c,s,f,h,l,a,d;for(!t&&(t=function Qme(n){var e;return(e=new eL).a=n,e.b=function o6e(n){var e;return 0==n?"Etc/GMT":(n<0?(n=-n,e="Etc/GMT-"):e="Etc/GMT+",e+e$n(n))}(n),e.c=K(fn,J,2,2,6,1),e.c[0]=EFn(n),e.c[1]=EFn(n),e}(e.q.getTimezoneOffset())),r=6e4*(e.q.getTimezoneOffset()-t.a),h=f=new OW(Yi(Ec(e.q.getTime()),r)),f.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,h=new OW(Yi(Ec(e.q.getTime()),r))),a=new Cg,l=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(s=c+1;s=l)throw M(new Un("Missing trailing '"));s+11)throw M(new Un(wj));for(a=ou(n.e.Dh(),e),i=u(n.g,124),s=0;s1||t>1)return 2;return e+t==1?2:0}(e)}function XD(n,e){return null!=n.a.Bc(e)}function Dv(n,e){return n.a*e.a+n.b*e.b}function FTn(n,e,t){n.a=1502^e,n.b=t^iR}function lh(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Rn(n.c,e),!0}function G6(n,e,t){return Dt(n.g,e,t),t}function ni(n,e,t){ek.call(this,n,e,t)}function nM(n,e,t){ni.call(this,n,e,t)}function rW(n,e,t){gM.call(this,n,e,t)}function xTn(n,e,t){gM.call(this,n,e,t)}function BTn(n,e,t){rW.call(this,n,e,t)}function Pu(n,e,t){ni.call(this,n,e,t)}function RTn(n,e,t){nM.call(this,n,e,t)}function cW(n,e,t){ek.call(this,n,e,t)}function Bg(n,e,t){ek.call(this,n,e,t)}function KTn(n,e,t){cW.call(this,n,e,t)}function eM(n){n.j=K(Gun,J,319,0,0,1)}function Rg(){this.a=K(pi,xn,1,8,5,1)}function uW(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function ta(n){this.c=n,this.a=this.c.a}function Kg(n,e){this.a=n,dC.call(this,e)}function oW(n,e){return function x5e(n,e,t){try{!function u6e(n,e,t){if(Se(e),t.Ob())for(KX(e,fIn(t.Pb()));t.Ob();)KX(e,n.a),KX(e,fIn(t.Pb()));return e}(n,e,t)}catch(r){throw L(r=At(r),606)?M(new iQ(r)):M(r)}return e}(n,new V1,e).a}function sW(n){if(!n)throw M(new d7)}function fW(n){if(!n)throw M(new Au)}function hW(){(hW=N)(),DQn=new X1}function _Tn(){_Tn=N,eD(),use=new P8n}function T3(){T3=N,eon=new RL(null)}function j1e(n){fk(n,PVn),zA(n,function KLe(n){var e,t,i,r,c;switch(fk(n,PVn),(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i+(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){case 0:throw M(new Un("The edge must have at least one source or target."));case 1:return 0==(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i?Ct(Ur(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))):Ct(Ur(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)))}if(1==(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i&&1==(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){if(r=Ur(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),c=Ur(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),Ct(r)==Ct(c))return Ct(r);if(r==Ct(c))return r;if(c==Ct(r))return c}for(e=Ur(u(fe(i=qh(To(S(T(No,1),xn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])))),84));ve(i);)if((t=Ur(u(fe(i),84)))!=e&&!dw(t,e))if(Ct(t)==Ct(e))e=Ct(t);else if(!(e=dMe(e,t)))return null;return e}(n))}function HTn(n){n.a=u(qn(n.b.a,4),129)}function qTn(n){n.a=u(qn(n.b.a,4),129)}function UTn(n){n.b.Qb(),--n.d.f.d,SM(n.d)}function lW(n){this.a=n,G8n.call(this,n.d)}function GTn(n,e){this.a=n,XL.call(this,e)}function zTn(n,e){this.a=n,XL.call(this,e)}function XTn(n,e){this.a=n,XL.call(this,e)}function aW(n,e){this.a=e,XL.call(this,n)}function WTn(n,e){this.a=e,g$.call(this,n)}function VTn(n,e){this.a=n,g$.call(this,e)}function JTn(n,e){this.a=e,bC.call(this,n)}function QTn(n,e){this.a=e,bC.call(this,n)}function ce(n,e){return Se(e),new JTn(n,e)}function YTn(n,e){return new E_n(n.a,n.b,e)}function dW(n,e,t){return n.indexOf(e,t)}function tM(n,e){return n.lastIndexOf(e)}function z6(n){return null==n?yu:Jr(n)}function gs(n){f7.call(this,(Jn(n),n))}function yo(n){f7.call(this,(Jn(n),n))}function ZTn(n){vL.call(this,u(Se(n),34))}function nAn(n){vL.call(this,u(Se(n),34))}function WD(n){zG.call(this,new gQ(n))}function iM(n){f3.call(this,n),this.a=n}function bW(n){s3.call(this,n),this.a=n}function wW(n){g3.call(this,n),this.a=n}function eAn(){eM(this),UM(this),this.je()}function tAn(n){this.a=n,EL.call(this,n)}function bo(n){return oe(null!=n.a),n.a}function iAn(n,e){return nn(e.a,n.a),n.a}function rAn(n,e){return nn(e.b,n.a),n.a}function M0(n,e){return nn(e.a,n.a),n.a}function _7(n,e,t){return iF(n,e,e,t),n}function rM(n,e){return++n.b,nn(n.a,e)}function gW(n,e){return++n.b,pu(n.a,e)}function gu(n,e){return u(ut(n.b,e),15)}function Iu(n,e){return!!e&&n.b[e.g]==e}function X6(n){return rc(n.a)||rc(n.b)}function T0(n){return n.$H||(n.$H=++fNe)}function vW(n,e,t){return KLn(n,e,t,n.c)}function cAn(){j6(),this.b=new p7n(this)}function cM(){cM=N,DP=new Pt(mXn,0)}function Kn(){Kn=N,Pa=!1,mm=!0}function c1(n){var e;e=n.a,n.a=n.b,n.b=e}function H7(n,e){T6(),this.a=n,this.b=e}function uM(n,e){r1(),this.b=n,this.c=e}function VD(n,e){CN(),this.f=e,this.d=n}function pW(n,e){uQ(e,n),this.d=n,this.c=e}function mW(n,e){PZ.call(this,n,e,null)}function uAn(n,e,t,i){_V.call(this,n,e,t,i)}function Nv(n){this.d=n,ne.call(this,n)}function $v(n){this.c=n,ne.call(this,n)}function q7(n){this.c=n,Nv.call(this,n)}function Kh(n){return Ao(n,Dw),new Vc(n)}function oAn(n){return q3(),parseInt(n)||-1}function A3(n,e,t){return dW(n,ku(e),t)}function JD(n,e){return new uSn(n,n.gc(),e)}function S3(n,e,t){n.fd(e).Rb(t)}function kW(n,e,t){u(Pk(n,e),21).Fc(t)}function U7(n){L(n,158)&&u(n,158).pi()}function sAn(n){aV.call(this,n,null,null)}function QD(n){zb(),this.b=n,this.a=!0}function fAn(n){gC(),this.b=n,this.a=!0}function P3(n){return oe(0!=n.b),n.a.a.c}function _s(n){return oe(0!=n.b),n.c.b.c}function K1e(n,e){return iF(n,e,e+1,""),n}function vt(n,e){return!!n.q&&tu(n.q,e)}function hAn(n){return n.b=u(gJ(n.a),44)}function YD(n){return null!=n.f?n.f:""+n.g}function Qb(n,e){return u(Rf(n.a,e),34)}function lAn(n){n.d=new sAn(n),n.e=new de}function aAn(){this.a=new R0,this.b=new R0}function dAn(n){this.c=n,this.a=1,this.b=1}function bAn(n){jB(),Oyn(this),this.Ff(n)}function A0(n,e,t){return n.a+=e,n.b+=t,n}function Y1e(n,e,t){return n.a*=e,n.b*=t,n}function yW(n,e){return n.a=e.a,n.b=e.b,n}function oM(n){return n.a=-n.a,n.b=-n.b,n}function W6(n,e,t){return n.a-=e,n.b-=t,n}function wAn(n){yt.call(this),m5(this,n)}function gAn(){je.call(this,"GROW_TREE",0)}function vAn(){je.call(this,"POLYOMINO",0)}function wo(n,e,t){Du.call(this,n,e,t,2)}function pAn(n,e){T6(),H7.call(this,n,e)}function jW(n,e){r1(),uM.call(this,n,e)}function mAn(n,e){r1(),jW.call(this,n,e)}function kAn(n,e){r1(),uM.call(this,n,e)}function yAn(n){this.c=n,ru(n,0),cu(n,0)}function ZD(n,e){Uo(),TM.call(this,n,e)}function jAn(n,e){Uo(),ZD.call(this,n,e)}function EW(n,e){Uo(),ZD.call(this,n,e)}function CW(n,e){Uo(),TM.call(this,n,e)}function EAn(n,e){Uo(),EW.call(this,n,e)}function CAn(n,e){Uo(),CW.call(this,n,e)}function MAn(n,e){Uo(),TM.call(this,n,e)}function MW(n,e,t){return sS(Sk(n,e),t)}function nN(n,e){return ba(n.e,u(e,54))}function rae(n){return null==n?null:function PLe(n){var e,t,i,r,c,s,f,h,l,a,d,v,k,j;if(utn(),null==n)return null;if(0==(d=8*n.length))return"";for(v=d/24|0,c=null,c=K(ds,jh,28,4*(0!=(f=d%24)?v+1:v),15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h>24,l=(3&e)<<24>>24,k=-128&t?(t>>4^240)<<24>>24:t>>4<<24>>24,j=-128&(i=n[r++])?(i>>6^252)<<24>>24:i>>6<<24>>24,c[s++]=U1[-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24],c[s++]=U1[k|l<<4],c[s++]=U1[a<<2|j],c[s++]=U1[63&i];return 8==f?(l=(3&(e=n[r]))<<24>>24,c[s++]=U1[-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24],c[s++]=U1[l<<4],c[s++]=61,c[s++]=61):16==f&&(a=(15&(t=n[r+1]))<<24>>24,l=(3&(e=n[r]))<<24>>24,k=-128&t?(t>>4^240)<<24>>24:t>>4<<24>>24,c[s++]=U1[-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24],c[s++]=U1[k|l<<4],c[s++]=U1[a<<2],c[s++]=61),ks(c,0,c.length)}(n)}function cae(n){return null==n?null:function jje(n){var e,t,i,c;if(xen(),null==n)return null;for(e=K(ds,jh,28,2*(i=n.length),15,1),t=0;t>4],e[2*t+1]=XO[15&c];return ks(e,0,e.length)}(n)}function un(n){return Q6(null==n||Vb(n)),n}function R(n){return Q6(null==n||Jb(n)),n}function Oe(n){return Q6(null==n||Mi(n)),n}function yl(n){null==n.o&&function nMe(n){if(n.ze()){var e=n.c;return n.o=e.Ae()?"["+e.n:e.ze()?"["+e.xe():"[L"+e.xe()+";",n.b=e.we()+"[]",void(n.k=e.ye()+"[]")}var t=n.j,i=n.d;i=i.split("/"),n.o=HF(".",[t,HF("$",i)]),n.b=HF(".",[t,HF(".",i)]),n.k=i[i.length-1]}(n)}function TW(n){if(!n)throw M(new d7)}function oe(n){if(!n)throw M(new tc)}function Yb(n){if(!n)throw M(new Au)}function TAn(n){if(!n)throw M(new Ho)}function I3(){I3=N,SE=new fjn,new hjn}function _g(){_g=N,X2=new ct("root")}function AW(){sFn.call(this),this.Bb|=sr}function fae(n,e){this.d=n,s9n(this),this.b=e}function SW(n,e){A$.call(this,n),this.a=e}function PW(n,e){A$.call(this,n),this.a=e}function IW(n,e,t){dT.call(this,n,e,t,null)}function AAn(n,e,t){dT.call(this,n,e,t,null)}function G7(n,e){this.c=n,j3.call(this,n,e)}function V6(n,e){this.a=n,G7.call(this,n,e)}function OW(n){this.q=new y.Date(pd(n))}function SAn(n){return n>8?0:n+1}function PAn(n,e){Vf||nn(n.a,e)}function bae(n,e){return u(Rf(n.b,e),143)}function wae(n,e){return u(Rf(n.c,e),233)}function eN(n){return u(sn(n.a,n.b),294)}function IAn(n){return new W(n.c,n.d+n.a)}function OAn(n){return Jn(n),n?1231:1237}function LAn(n){return Eo(),hTn(u(n,203))}function Zb(){Zb=N,Aon=yn((mo(),u0))}function gae(n,e){e.a?function kCe(n,e){var t,i,r;if(!ik(n.a,e.b))throw M(new Sr("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=n.a.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),68),Yme(e.b,t))Phe(n.b.a,e.b,t),r=!0;else if(r)break}(n,e):XD(n.a,e.b)}function z7(n,e,t){++n.j,n.tj(),T$(n,e,t)}function DAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function NAn(n,e,t){n.fd(e).Rb(t)}function LW(n,e,t){return Oo(n,e,6,t)}function DW(n,e,t){return Oo(n,e,3,t)}function NW(n,e,t){return Oo(n,e,9,t)}function ah(n,e){return fk(e,rin),n.f=e,n}function $W(n,e){return(e&nt)%n.d.length}function $An(n,e,t){return btn(n.c,n.b,e,t)}function FAn(n,e){this.c=n,q0.call(this,e)}function xAn(n,e){this.a=n,Eyn.call(this,e)}function X7(n,e){this.a=n,Eyn.call(this,e)}function Pt(n,e){ct.call(this,n),this.a=e}function FW(n,e){cz.call(this,n),this.a=e}function tN(n,e){cz.call(this,n),this.a=e}function vae(n){gZ.call(this,0,0),this.f=n}function BAn(n,e,t){return n.a+=ks(e,0,t),n}function W7(n){return!n.a&&(n.a=new uG),n.a}function xW(n,e){var t;return t=n.e,n.e=e,t}function BW(n,e){return!!n.Fe(e)}function nw(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function V7(n){n.b?V7(n.b):n.f.c.zc(n.e,n.d)}function RAn(n){qu(n.e),n.d.b=n.d,n.d.a=n.d}function RW(n,e,t){return qv(n,u(e,22),t)}function Hs(n,e){return sC(new Array(e),n)}function iN(n){return String.fromCharCode(n)}function Eae(n,e){n[tR].call(n,e)}function KW(n,e,t,i){EM.call(this,n,e,t,i)}function KAn(){sM.call(this),this.a=new Oi}function _W(){this.n=new Oi,this.o=new Oi}function _An(){this.b=new Oi,this.c=new Z}function HAn(){this.a=new Z,this.b=new Z}function qAn(){this.a=new fG,this.b=new _yn}function HW(){this.b=new h1,this.a=new h1}function UAn(){this.b=new Yt,this.a=new Yt}function GAn(){this.b=new de,this.a=new de}function zAn(){this.b=new pEn,this.a=new Hpn}function XAn(){this.a=new i8n,this.b=new Dvn}function WAn(){this.a=new Z,this.d=new Z}function sM(){this.n=new kv,this.i=new Lv}function VAn(n){this.a=(Ao(n,Dw),new Vc(n))}function JAn(n){this.a=(Ao(n,Dw),new Vc(n))}function QAn(n,e){return null==Xe(n.a,e,"")}function et(n,e){return n.a+=e.a,n.b+=e.b,n}function gi(n,e){return n.a-=e.a,n.b-=e.b,n}function qW(n,e,t){return Oo(n,e,11,t)}function Fv(n,e,t,i){q.call(this,n,e,t,i)}function UW(n,e,t,i){q.call(this,n,e,t,i)}function YAn(n,e,t,i){UW.call(this,n,e,t,i)}function ZAn(n,e,t,i){DM.call(this,n,e,t,i)}function rN(n,e,t,i){DM.call(this,n,e,t,i)}function GW(n,e,t,i){DM.call(this,n,e,t,i)}function nSn(n,e,t,i){rN.call(this,n,e,t,i)}function zW(n,e,t,i){rN.call(this,n,e,t,i)}function Dn(n,e,t,i){GW.call(this,n,e,t,i)}function eSn(n,e,t,i){zW.call(this,n,e,t,i)}function tSn(n,e,t,i){UV.call(this,n,e,t,i)}function ew(n,e){Ar.call(this,N8+n+_d+e)}function XW(n,e){return n.jk().wi().ri(n,e)}function WW(n,e){return n.jk().wi().ti(n,e)}function iSn(n,e){return Jn(n),x(n)===x(e)}function Tn(n,e){return Jn(n),x(n)===x(e)}function rSn(n,e){return n.b.Bd(new SCn(n,e))}function VW(n,e,t){return n.lastIndexOf(e,t)}function cSn(n){return n.c?Hr(n.c.a,n,0):-1}function xv(n){return n==c0||n==hl||n==Xc}function JW(n,e){this.c=n,ON.call(this,n,e)}function uSn(n,e,t){this.a=n,pW.call(this,e,t)}function oSn(n){this.c=n,VC.call(this,Ry,0)}function sSn(n,e,t){this.c=e,this.b=t,this.a=n}function J7(n){L3(),this.d=n,this.a=new Rg}function fSn(n){dh(),this.a=(On(),new g3(n))}function hSn(n,e){ibe.call(this,n,n.length,e)}function lSn(n,e){return L(e,15)&&Rqn(n.c,e)}function fM(n,e,t){return u(n.c,71).Xk(e,t)}function QW(n,e,t){return function iae(n,e,t){return e.Al(n.e,n.c,t)}(n,u(e,343),t)}function aSn(n,e,t){return function Fye(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?oa(n,4,i,c,null,q4(n,i,c,L(i,102)&&0!=(u(i,19).Bb&sr)),!0):oa(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}(n,u(e,343),t)}function J6(n,e){return null==e?null:vw(n.b,e)}function YW(n){return Jb(n)?(Jn(n),n):n.ue()}function hM(n){return!isNaN(n)&&!isFinite(n)}function cN(n){MTn(this),jo(this),Fi(this,n)}function Hu(n){_D(this),bV(this.c,0,n.Pc())}function Go(n,e,t){this.a=n,this.b=e,this.c=t}function dSn(n,e,t){this.a=n,this.b=e,this.c=t}function bSn(n,e,t){this.d=n,this.b=t,this.a=e}function wSn(n){this.a=n,ml(),Ec(Date.now())}function gSn(n){vo(n.a),dQ(n.c,n.b),n.b=null}function uN(){uN=N,non=new ec,OQn=new zt}function vSn(){vSn=N,Foe=K(pi,xn,1,0,5,1)}function pSn(){pSn=N,nse=K(pi,xn,1,0,5,1)}function ZW(){ZW=N,ese=K(pi,xn,1,0,5,1)}function dh(){dh=N,new sz((On(),On(),Vi))}function nV(n,e){if(!n)throw M(new Un(e))}function O3(n){if(!n)throw M(new Sr(Ftn))}function oN(n,e){if(n!=e)throw M(new Ho)}function mSn(n,e,t){this.a=n,this.b=e,this.c=t}function eV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function lM(n,e,t){this.b=n,this.a=e,this.c=t}function tV(n,e,t){this.b=n,this.c=e,this.a=t}function iV(n,e,t){this.a=n,this.b=e,this.c=t}function aM(n,e,t){this.e=e,this.b=n,this.d=t}function ySn(n,e,t){this.b=n,this.a=e,this.c=t}function sN(n){var e;return(e=new ubn).e=n,e}function rV(n){var e;return(e=new zyn).b=n,e}function Q7(){Q7=N,qP=new sgn,UP=new fgn}function dM(){dM=N,QZn=new Fgn,JZn=new xgn}function qs(){qs=N,tne=new G2n,ine=new z2n}function L3(){L3=N,en(),Eln=Wn,VI=Zn}function fN(){fN=N,Kdn=new QSn,_dn=new FPn}function J0e(n){return!n.e&&(n.e=new Z),n.e}function hN(n,e){this.c=n,this.a=e,this.b=e-n}function jSn(n,e,t){this.a=n,this.b=e,this.c=t}function lN(n,e,t){this.a=n,this.b=e,this.c=t}function cV(n,e,t){this.a=n,this.b=e,this.c=t}function uV(n,e,t){this.a=n,this.b=e,this.c=t}function ESn(n,e,t){this.a=n,this.b=e,this.c=t}function CSn(n,e,t){this.a=n,this.b=e,this.c=t}function u1(n,e,t){this.e=n,this.a=e,this.c=t}function MSn(n,e,t){Uo(),CJ.call(this,n,e,t)}function aN(n,e,t){Uo(),oJ.call(this,n,e,t)}function oV(n,e,t){Uo(),oJ.call(this,n,e,t)}function sV(n,e,t){Uo(),oJ.call(this,n,e,t)}function TSn(n,e,t){Uo(),aN.call(this,n,e,t)}function fV(n,e,t){Uo(),aN.call(this,n,e,t)}function ASn(n,e,t){Uo(),fV.call(this,n,e,t)}function SSn(n,e,t){Uo(),oV.call(this,n,e,t)}function PSn(n,e,t){Uo(),sV.call(this,n,e,t)}function dN(n){EM.call(this,n.d,n.c,n.a,n.b)}function hV(n){EM.call(this,n.d,n.c,n.a,n.b)}function lV(n){this.d=n,s9n(this),this.b=function Vbe(n){return L(n,15)?u(n,15).ed():n.Kc()}(n.d)}function Y7(n,e){return Se(n),Se(e),new xEn(n,e)}function Bv(n,e){return Se(n),Se(e),new HSn(n,e)}function bN(n){return oe(0!=n.b),Qo(n,n.a.a)}function nbe(n){return oe(0!=n.b),Qo(n,n.c.b)}function D3(n){var e;return B$(e=new Z,n),e}function ISn(n){var e;return Q$(e=new dz,n),e}function Z7(n){var e;return Q$(e=new yt,n),e}function u(n,e){return Q6(null==n||JF(n,e)),n}function ibe(n,e,t){PPn.call(this,e,t),this.a=n}function OSn(n,e){this.c=n,this.b=e,this.a=!1}function LSn(){this.a=";,;",this.b="",this.c=""}function DSn(n,e,t){this.b=n,UMn.call(this,e,t)}function aV(n,e,t){this.c=n,TC.call(this,e,t)}function dV(n,e,t){M3.call(this,n,e),this.b=t}function bV(n,e,t){uen(t,0,n,e,t.length,!1)}function _h(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function wV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function nk(n,e){if(!n)throw M(new Un(e))}function Rv(n,e){if(!n)throw M(new Sr(e))}function gV(n,e){if(!n)throw M(new _jn(e))}function bM(n,e){return e&&BM(n,e.d)?e:null}function vV(n){return la(function swe(n){return eu(~n.l&co,~n.m&co,~n.h&Kl)}(Wr(n)?ps(n):n))}function hbe(n){return new W(n.c+n.b,n.d+n.a)}function NSn(n){return null!=n&&!$F(n,W9,V9)}function lbe(n,e){return(aBn(n)<<4|aBn(e))&ri}function $Sn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function pV(n){var e;e=n.b,n.b=n.c,n.c=e}function mV(n){var t;t=n.d,n.d=n.a,n.a=t}function kV(n,e){return n.g=e<0?-1:e,n}function wM(n,e){return function k4e(n){var e;return(e=y.Math.sqrt(n.a*n.a+n.b*n.b))>0&&(n.a/=e,n.b/=e),n}(n),n.a*=e,n.b*=e,n}function FSn(n,e,t){I$n.call(this,e,t),this.d=n}function ek(n,e,t){RX.call(this,n,e),this.c=t}function gM(n,e,t){RX.call(this,n,e),this.c=t}function yV(n){ZW(),UE.call(this),this.ci(n)}function xSn(){X3(),Dwe.call(this,(Y1(),Ns))}function BSn(n){return Ze(),new Hh(0,n)}function RSn(){RSn=N,On(),ZU=new CL(n_)}function vM(){vM=N,new LZ((BL(),a_),(xL(),l_))}function KSn(){KSn=N,Kun=K(qi,J,17,256,0,1)}function _Sn(){this.b=F(R(rn((Js(),G_))))}function wN(n){this.b=n,this.a=ld(this.b.a).Od()}function HSn(n,e){this.b=n,this.a=e,wL.call(this)}function qSn(n,e){this.a=n,this.b=e,wL.call(this)}function USn(n,e,t){this.a=n,Lg.call(this,e,t)}function GSn(n,e,t){this.a=n,Lg.call(this,e,t)}function N3(n,e,t){kf(n,e,new rw(t))}function jV(n,e,t){var i;return i=n[e],n[e]=t,i}function pM(n){return O$(n.slice(),n)}function mM(n){var e;return n.a.b+(e=n.n).d+e.a}function zSn(n){var e;return n.e.b+(e=n.n).d+e.a}function EV(n){var e;return n.e.a+(e=n.n).b+e.c}function CV(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return Nt(n,e,n.c.b,n.c),!0}function S0(n,e){return G5(n,new M3(e.a,e.b))}function XSn(n){return n.b.c.length-n.e.c.length}function WSn(n){return n.e.c.length-n.g.c.length}function gN(n){return n.e.c.length+n.g.c.length}function tk(n){return 0==n||isNaN(n)?n:n<0?-1:1}function Cbe(n,e,t){!function hLe(n,e,t,i,r){var c,s,f,g,v,X,tn,jn,kn,Bn,$n,te;null==(Bn=ee(n.e,i))&&(v=u(Bn=new jv,190),g=new rw(e+"_s"+r),kf(v,Ph,g)),Uv(t,kn=u(Bn,190)),wd(te=new jv,"x",i.j),wd(te,"y",i.k),kf(kn,jVn,te),wd(tn=new jv,"x",i.b),wd(tn,"y",i.c),kf(kn,"endPoint",tn),!v7((!i.a&&(i.a=new ni(Ro,i,5)),i.a))&&(c=new ryn(X=new td),_i((!i.a&&(i.a=new ni(Ro,i,5)),i.a),c),kf(kn,rP,X)),!!YF(i)&&Tnn(n.a,kn,Zcn,Ox(n,YF(i))),!!ZF(i)&&Tnn(n.a,kn,Ycn,Ox(n,ZF(i))),!(0==(!i.e&&(i.e=new Dn(jt,i,10,9)),i.e).i)&&(s=new IMn(n,jn=new td),_i((!i.e&&(i.e=new Dn(jt,i,10,9)),i.e),s),kf(kn,eun,jn)),0!=(!i.g&&(i.g=new Dn(jt,i,9,10)),i.g).i&&(f=new OMn(n,$n=new td),_i((!i.g&&(i.g=new Dn(jt,i,9,10)),i.g),f),kf(kn,nun,$n))}(n.a,n.b,n.c,u(e,166),t)}function MV(n,e,t,i){MZ.call(this,n,e,t,i,0,0)}function VSn(n){ZW(),yV.call(this,n),this.a=-1}function JSn(n,e){PPn.call(this,e,1040),this.a=n}function QSn(){lMn.call(this,"COUNT_CHILDREN",0)}function kM(n,e){B7.call(this,n,e),this.a=this}function Ot(n,e){var t;return(t=BN(n,e)).i=2,t}function yM(n,e){return++n.j,n.Cj(e)}function Ke(n,e,t){return n.a=-1,kW(n,e.g,t),n}function YSn(n){return ep(),K(ZI,JS,40,n,0,1)}function ZSn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function vN(n,e,t){return new sSn(function $we(n){return 0>=n?new nX:function K4e(n){return 0>n?new nX:new PW(null,new jDn(n+1,n))}(n-1)}(n)._e(),t,e)}function Q6(n){if(!n)throw M(new w3(null))}function TV(n){if(n.c.e!=n.a)throw M(new Ho)}function AV(n){if(n.e.c!=n.b)throw M(new Ho)}function jM(n){for(Se(n);n.Ob();)n.Pb(),n.Qb()}function pN(n){D0(),this.a=(On(),new CL(Se(n)))}function SV(n){this.c=n,this.b=this.c.d.vc().Kc()}function nPn(n,e){return n.a+=ks(e,0,e.length),n}function sn(n,e){return Ln(e,n.c.length),n.c[e]}function ePn(n,e){return Ln(e,n.a.length),n.a[e]}function hd(n,e,t,i,r,c){return MKn(n,e,t,i,r,0,c)}function PV(n,e){return function Dbe(n,e){return $l(Yi($l(n.a).a,e.a))}(u(n,168),u(e,168))}function tPn(){tPn=N,_un=K(vb,J,168,256,0,1)}function iPn(){iPn=N,Uun=K(pb,J,191,256,0,1)}function rPn(){rPn=N,xun=K(Op,J,222,256,0,1)}function cPn(){cPn=N,Run=K(U8,J,180,128,0,1)}function IV(){_h(this,!1,!1,!1,!1)}function OV(n){zG.call(this,new h1),Fi(this,n)}function Y6(n){this.a=new Tv(n.gc()),Fi(this,n)}function uPn(n){this.c=n,this.a=new Av(this.c.a)}function oPn(n){this.a=n,this.c=new de,function t6e(n){var e,t,i,r;for(i=0,r=(t=n.a).length;i>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),eu(i&co,r&co,c&Kl)}(Wr(n)?ps(n):n,e))}function Zbe(n,e){return function pae(n,e){return Kn(),n==e?0:n?1:-1}((Jn(n),n),(Jn(e),e))}function TN(n,e){return at((Jn(n),n),(Jn(e),e))}function LM(n){this.b=new Vc(11),this.a=(x0(),n)}function ie(n){this.a=(kPn(),fQn),this.d=u(Se(n),51)}function PPn(n,e){this.c=0,this.d=n,this.b=64|e|yh}function KV(n,e){this.e=n,this.d=64&e?e|yh:e}function AN(n){this.b=null,this.a=(x0(),n||Yun)}function IPn(n){eM(this),this.g=n,UM(this),this.je()}function ad(n){Z1(),this.a=0,this.b=n-1,this.c=1}function _V(n,e,t,i){this.a=n,dT.call(this,n,e,t,i)}function HV(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function $3(n,e){if(n<0||n>=e)throw M(new kz)}function tw(n,e){return Qk(n,(Jn(e),new w9n(e)))}function _v(n,e){return Qk(n,(Jn(e),new g9n(e)))}function OPn(n,e,t){return function qDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I;if(i=e,h=t,n.b&&i.j==(en(),Wn)&&h.j==(en(),Wn)&&(I=i,i=h,h=I),tu(n.a,i)){if(bf(u(ee(n.a,i),49),h))return 1}else Xe(n.a,i,new Yt);if(tu(n.a,h)){if(bf(u(ee(n.a,h),49),i))return-1}else Xe(n.a,h,new Yt);if(tu(n.d,i)){if(bf(u(ee(n.d,i),49),h))return-1}else Xe(n.d,i,new Yt);if(tu(n.d,h)){if(bf(u(ee(n.a,h),49),i))return 1}else Xe(n.d,h,new Yt);if(i.j!=h.j)return-1==(A=function Ole(n,e){return Tc(n.g,e.g)}(i.j,h.j))?rs(n,h,i):rs(n,i,h),A;if(0!=i.e.c.length&&0!=h.e.c.length){if(n.b&&0!=(A=Hxn(i,h)))return-1==A?rs(n,h,i):1==A&&rs(n,i,h),A;if((c=u(sn(i.e,0),18).c.i)==(a=u(sn(h.e,0),18).c.i))return(r=u(m(u(sn(i.e,0),18),(V(),lt)),17).a)>(l=u(m(u(sn(h.e,0),18),lt),17).a)?rs(n,i,h):rs(n,h,i),rl?1:0;for(k=0,j=(p=n.c).length;k(l=u(m(g,lt),17).a)?rs(n,i,h):rs(n,h,i),rl?1:0):n.b&&0!=(A=Hxn(i,h))?(-1==A?rs(n,h,i):1==A&&rs(n,i,h),A):(s=0,d=0,vt(u(sn(i.g,0),18),lt)&&(s=u(m(u(sn(i.g,0),18),lt),17).a),vt(u(sn(h.g,0),18),lt)&&(d=u(m(u(sn(i.g,0),18),lt),17).a),f&&f==g?on(un(m(u(sn(i.g,0),18),Qf)))&&!on(un(m(u(sn(h.g,0),18),Qf)))?(rs(n,i,h),1):!on(un(m(u(sn(i.g,0),18),Qf)))&&on(un(m(u(sn(h.g,0),18),Qf)))?(rs(n,h,i),-1):(s>d?rs(n,i,h):rs(n,h,i),sd?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?rs(n,i,h):rs(n,h,i),sd?1:0))):0!=i.e.c.length&&0!=h.g.c.length?(rs(n,i,h),1):0!=i.g.c.length&&0!=h.e.c.length?(rs(n,h,i),-1):vt(i,(V(),lt))&&vt(h,lt)?((r=u(m(i,lt),17).a)>(l=u(m(h,lt),17).a)?rs(n,i,h):rs(n,h,i),rl?1:0):(rs(n,h,i),-1)}(n,u(e,12),u(t,12))}function LPn(n){return Nu(),0!=u(n,12).g.c.length}function DPn(n){return Nu(),0!=u(n,12).e.c.length}function iwe(n,e){e.Ug("General 'Rotator",1),function vLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,v;for(d=F(R(z(n,(ka(),Wq)))),on(un(z(n,k1n)))&&(a=u(z(n,(_g(),X2)),27),c=u(D(aJ(u(D((!a.e&&(a.e=new Dn(Xt,a,7,4)),a.e),(!a.e&&(a.e=new Dn(Xt,a,7,4)),a.e).i-1),74)),0),27),i=u(D(aJ(u(D((!a.e&&(a.e=new Dn(Xt,a,7,4)),a.e),0),74)),0),27),s=new W(c.i+c.g/2,c.j+c.f/2),r=new W(i.i+i.g/2,i.j+i.f/2),(t=d)<=0&&(t+=Rd),(g=y.Math.acos((s.a*r.a+s.b*r.b)/(y.Math.sqrt(s.a*s.a+s.b*s.b)*y.Math.sqrt(r.a*r.a+r.b*r.b))))<=0&&(g+=Rd),(e=y.Math.atan2(s.b,s.a))<=0&&(e+=Rd),d=Vrn-(e-t+g/2)),h=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));h.e!=h.i.gc();)v=(l=new W((f=u(ue(h),27)).i+f.g/2,f.j+f.f/2)).a*y.Math.cos(d)-l.b*y.Math.sin(d),l.b=l.a*y.Math.sin(d)+l.b*y.Math.cos(d),l.a=v,qo(f,l.a-f.g/2,l.b-f.f/2)}(n)}function NPn(n,e,t){return f2(),o4(n,e)&&o4(n,t)}function e5(n){return Xu(),!n.Hc(Xl)&&!n.Hc(qa)}function cwe(n){return n.e?lQ(n.e):null}function t5(n){return Wr(n)?""+n:Bqn(n)}function qV(n){var e;for(e=n;e.f;)e=e.f;return e}function o1(n,e,t,i){var r;(r=n.i).i=e,r.a=t,r.b=i}function q(n,e,t,i){ni.call(this,n,e,t),this.b=i}function ji(n,e,t,i,r){P$.call(this,n,e,t,i,r,-1)}function i5(n,e,t,i,r){Ek.call(this,n,e,t,i,r,-1)}function DM(n,e,t,i){ek.call(this,n,e,t),this.b=i}function $Pn(n){LMn.call(this,n,!1),this.a=!1}function FPn(){lMn.call(this,"LOOKAHEAD_LAYOUT",1)}function xPn(n){this.b=n,Nv.call(this,n),HTn(this)}function BPn(n){this.b=n,q7.call(this,n),qTn(this)}function iw(n,e,t){this.a=n,Fv.call(this,e,t,5,6)}function UV(n,e,t,i){this.b=n,ni.call(this,e,t,i)}function RPn(n,e){this.b=n,G8n.call(this,n.b),this.a=e}function KPn(n){this.a=ERn(n.a),this.b=new Hu(n.b)}function GV(n,e){D0(),xhe.call(this,n,tA(new _u(e)))}function NM(n,e){return Ze(),new uJ(n,e,0)}function SN(n,e){return Ze(),new uJ(6,n,e)}function Ri(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function tu(n,e){return Mi(e)?QN(n,e):!!br(n.f,e)}function PN(n,e){return e.Vh()?ba(n.b,u(e,54)):e}function owe(n,e){return Tn(n.substr(0,e.length),e)}function qh(n){return new ie(new aW(n.a.length,n.a))}function $M(n){return new W(n.c+n.b/2,n.d+n.a/2)}function IN(n){return typeof n===$y||typeof n===MB}function qu(n){n.f=new uTn(n),n.i=new oTn(n),++n.g}function _Pn(n){if(!n)throw M(new tc);return n.d}function Hv(n){var e;return oe(null!=(e=T5(n))),e}function fwe(n){var e;return oe(null!=(e=function M5e(n){var e;return null==(e=n.a[n.c-1&n.a.length-1])?null:(n.c=n.c-1&n.a.length-1,Dt(n.a,n.c,null),e)}(n))),e}function F3(n,e){var t;return uQ(e,t=n.a.gc()),t-e}function oi(n,e){return null==n.a.zc(e,n)}function ik(n,e){return null==n.a.zc(e,(Kn(),Pa))}function zV(n){return new Mn(null,function bwe(n,e){return function g4e(n,e){if(0>n||n>e)throw M(new Rz("fromIndex: 0, toIndex: "+n+Xtn+e))}(e,n.length),new JSn(n,e)}(n,n.length))}function XV(n,e,t){return sGn(n,u(e,42),u(t,176))}function qv(n,e,t){return Xs(n.a,e),jV(n.b,e.g,t)}function B(n,e,t,i){Rxn(e,t,n.length),function lwe(n,e,t,i){var r;for(r=e;r0?1:0}function rk(n,e){NTn(n,L(e,160)?e:u(e,2036).Rl())}function QV(n,e){if(null==n)throw M(new Ev(e))}function YV(n,e){return!!e&&Fi(n,e)}function c5(n){return 0==n.e?n:new dd(-n.e,n.d,n.a)}function ck(n,e){Nt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function UPn(n,e){return n.c?UPn(n.c,e):nn(n.b,e),n}function vwe(n,e,t){var i;return i=lw(n,e),d$(n,e,t),i}function GPn(n,e,t){var i;for(i=0;i0?(gA(n,t,0),t.a+=String.fromCharCode(i),gA(n,t,r=R8e(e,c)),c+=r-1):39==i?c+1=n.g}function Dt(n,e,t){return function sae(n){if(!n)throw M(new IL)}(null==t||function tPe(n,e){var t;switch(Lk(n)){case 6:return Mi(e);case 7:return Jb(e);case 8:return Vb(e);case 3:return Array.isArray(e)&&!((t=Lk(e))>=14&&t<=16);case 11:return null!=e&&typeof e===MB;case 12:return null!=e&&(typeof e===$y||typeof e==MB);case 0:return JF(e,n.__elementTypeId$);case 2:return IN(e)&&e.Tm!==Hb;case 1:return IN(e)&&e.Tm!==Hb||JF(e,n.__elementTypeId$);default:return!0}}(n,t)),n[e]=t}function iJ(n,e){return Gn(e,n.length+1),n.substr(e)}function KN(n,e){for(Jn(e);n.c0;)n=n<<1|(n<0?1:0);return n}function yIn(n,e){var t;return t=new xc(n),Rn(e.c,t),t}function jIn(n,e){n.u.Hc((Xu(),Xl))&&function _Ee(n,e){var t,i,r,c;for(t=(c=u(Er(n.b,e),127)).a,r=u(u(ut(n.r,e),21),87).Kc();r.Ob();)(i=u(r.Pb(),117)).c&&(t.a=y.Math.max(t.a,EV(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}(n,e),function c3e(n,e){var t;n.C&&((t=u(Er(n.b,e),127).n).d=n.C.d,t.a=n.C.a)}(n,e)}function jc(n,e){return x(n)===x(e)||null!=n&&it(n,e)}function Er(n,e){return kN(n.a,e)?n.b[u(e,22).g]:null}function _M(n){return!n.n&&(n.n=new q(Tr,n,1,7)),n.n}function HN(n){return!n.c&&(n.c=new q(Yu,n,9,9)),n.c}function aJ(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function uk(n){return n.j.c.length=0,bJ(n.c),function Oae(n){return Ub(n.j.c,0),n.a=-1,n}(n.a),n}function _3(n){return n.e==gm&&function pfe(n,e){n.e=e}(n,function X8e(n,e){var t,i;return(t=e.qi(n.a))&&null!=(i=Oe(jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),Je)))?i:e.xe()}(n.g,n.b)),n.e}function ok(n){return n.f==gm&&function kfe(n,e){n.f=e}(n,function B7e(n,e){var t,i;return(t=e.qi(n.a))?(i=Oe(jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),mP)),Tn(bj,i)?n5(n,Mo(e.qk())):i):null}(n.g,n.b)),n.f}function We(n,e,t,i){return GFn(n,e,t,!1),iA(n,i),n}function EIn(n,e){this.b=n,ON.call(this,n,e),HTn(this)}function CIn(n,e){this.b=n,JW.call(this,n,e),qTn(this)}function f5(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function dJ(n,e){this.b=n,this.c=e,this.a=new Av(this.b)}function Gi(n,e){return Gn(e,n.length),n.charCodeAt(e)}function nge(n,e){nZ(n,F(Ol(e,"x")),F(Ol(e,"y")))}function ege(n,e){nZ(n,F(Ol(e,"x")),F(Ol(e,"y")))}function rt(n,e){return wa(n),new Mn(n,new CQ(e,n.a))}function Kr(n,e){return wa(n),new Mn(n,new fQ(e,n.a))}function cw(n,e){return wa(n),new SW(n,new DDn(e,n.a))}function HM(n,e){return wa(n),new PW(n,new NDn(e,n.a))}function MIn(n,e,t){t.a?cu(n,e.b-n.f/2):ru(n,e.a-n.g/2)}function bJ(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Hg(n){var e;return!(e=n.b)&&(n.b=e=new x8n(n)),e}function qN(n){return function U4e(n){var e;return L(e=m(n,(V(),ot)),167)?SBn(u(e,167)):null}(n)||null}function TIn(n,e){var t,i;return(t=n/e)>(i=di(t))&&++i,i}function sge(n,e,t){(function hIe(n,e){var t,i,r,c;for(function p4e(n){var e;for(e=0;e0&&vKn(this)}function KIn(n,e){this.a=n,fae.call(this,n,u(n.d,15).fd(e))}function vJ(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function _In(n,e,t,i){this.b=n,this.c=i,VC.call(this,e,t)}function zv(n){return n.f||(n.f=new j3(n,n.c))}function HIn(n,e){return Yg(n.j,e.s,e.c)+Yg(e.e,n.s,n.c)}function qIn(n,e){n.e&&!n.e.a&&(Iyn(n.e,e),qIn(n.e,e))}function UIn(n,e){n.d&&!n.d.a&&(Iyn(n.d,e),UIn(n.d,e))}function GIn(){Tx(this,new PG),this.wb=(ra(),_n),m3()}function zIn(n){this.b=new Z,si(this.b,this.b),this.a=n}function pJ(n,e){new yt,this.a=new Su,this.b=n,this.c=e}function x0(){x0=N,Yun=new wl,E_=new wl,Zun=new nc}function On(){On=N,Vi=new Si,il=new er,PP=new lo}function mJ(){mJ=N,qQn=new nbn,GQn=new NV,UQn=new ebn}function Xv(){Xv=N,xP=new Z,H_=new de,__=new Z}function GM(n,e){if(null==n)throw M(new Ev(e));return n}function zM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function st(n){return!n.q&&(n.q=new q(Ds,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(Mu,n,21,17)),n.s}function yge(n){return Se(n),DRn(new ie(ce(n.a.Kc(),new Vn)))}function wd(n,e,t){kf(n,e,new zE(YW(t)))}function VN(n,e,t,i,r,c){Ek.call(this,n,e,t,i,r,c?-2:-1)}function XIn(n,e,t,i){RX.call(this,e,t),this.b=n,this.a=i}function WIn(n,e){qfe.call(this,new AN(n)),this.a=n,this.b=e}function kJ(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function q3(){var n,e;q3=N,e=!function I8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}(),n=new FE,p_=e?new ZO:n}function JN(n){return On(),L(n,59)?new zL(n):new iM(n)}function XM(n){return L(n,16)?new Y6(u(n,16)):function tbe(n){var e;return B$(e=new Yt,n),e}(n.Kc())}function yJ(n){return n&&n.hashCode?n.hashCode():T0(n)}function QN(n,e){return null==e?!!br(n.f,null):function _be(n,e){return void 0!==n.a.get(e)}(n.i,e)}function Tge(n,e){var t;return(t=iW(n.a,e))&&(e.d=null),t}function VIn(n,e,t){return!!n.f&&n.f.ef(e,t)}function sk(n,e,t,i){Dt(n.c[e.g],t.g,i),Dt(n.c[t.g],e.g,i)}function YN(n,e,t,i){Dt(n.c[e.g],e.g,t),Dt(n.b[e.g],e.g,i)}function JIn(n,e){this.g=n,this.d=S(T(cl,1),A1,10,0,[e])}function QIn(n){this.c=n,this.b=new i1(u(Se(new tbn),50))}function YIn(n){this.c=n,this.b=new i1(u(Se(new ewn),50))}function ZIn(n){this.b=n,this.a=new i1(u(Se(new Nbn),50))}function nOn(){this.b=new Yt,this.d=new yt,this.e=new yz}function jJ(){this.c=new Oi,this.d=new Oi,this.e=new Oi}function B0(){this.a=new Su,this.b=(Ao(3,Dw),new Vc(3))}function s1(n,e){this.e=n,this.a=pi,this.b=nUn(e),this.c=e}function WM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function eOn(n,e,t,i,r,c){this.a=n,U$.call(this,e,t,i,r,c)}function tOn(n,e,t,i,r,c){this.a=n,U$.call(this,e,t,i,r,c)}function oa(n,e,t,i,r,c,s){return new w$(n.e,e,t,i,r,c,s)}function Sge(n,e,t){return t>=0&&Tn(n.substr(t,e.length),e)}function iOn(n,e){return L(e,149)&&Tn(n.b,u(e,149).Pg())}function rOn(n,e){var t;return YLn(t=n.b.Qc(e),n.b.gc()),t}function fk(n,e){if(null==n)throw M(new Ev(e));return n}function _r(n){return n.u||(no(n),n.u=new xAn(n,n)),n.u}function ZN(n){this.a=(On(),L(n,59)?new zL(n):new iM(n))}function vu(n){return u(qn(n,16),29)||n.ii()}function VM(n,e){var t;return t=sd(n.Rm),null==e?t:t+": "+e}function Xo(n,e,t){return $i(e,t,n.length),n.substr(e,t-e)}function cOn(n,e){sM.call(this),DQ(this),this.a=n,this.c=e}function Oge(n){oC(),y.setTimeout(function(){throw n},0)}function JM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function hk(n){return 0==n.b.b?n.a.sf():bN(n.b)}function EJ(n){return x(n.a)===x((tF(),JU))&&function ZIe(n){var e,t,i,r,c,s,f,h,l,a;for(e=new dL,t=new dL,l=Tn(aj,(r=r8(n.b,Be))?Oe(jf((!r.b&&(r.b=new wo((In(),hr),kc,r)),r.b),Cs)):null),h=0;h0&&n.b>0&&(n.g=CM(n.c,n.b,n.a))}function i2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=CM(n.c,n.b,n.a))}function uOn(n,e){(function tfe(n,e){n.a=e})(this,new W(n.a,n.b)),function ife(n,e){n.b=e}(this,Z7(e))}function R0(){Ufe.call(this,new Tv(aw(12))),sW(!0),this.a=2}function n$(n,e,t){Ze(),h0.call(this,n),this.b=e,this.a=t}function CJ(n,e,t){Uo(),YE.call(this,e),this.a=n,this.b=t}function oOn(n){var e;n.b=e=n.c.d.b,n.a=n.c.d,e.a=n.c.d.b=n}function Bc(n,e){return null==e?Rr(br(n.f,null)):A6(n.i,e)}function sOn(n,e,t,i,r){return new Sx(n,(J3(),A_),e,t,i,r)}function QM(n,e){return VLn(e),function S4e(n,e,t){return uen(n,0,e,0,y.Math.min(t,n.length),!0),e}(n,K(ye,_e,28,e,15,1),e)}function YM(n,e){return GM(n,"set1"),GM(e,"set2"),new QEn(n,e)}function fOn(n,e){var i;return FGn(n,e,i=new gl),i.d}function e$(n,e,t,i){var r;r=new KAn,e.a[t.g]=r,qv(n.b,i,r)}function u2e(n,e){return et(oM(function M4e(n,e){return gi(Bi(u(ee(n.g,e),8)),eW(u(ee(n.f,e),470).b))}(n.f,e)),n.f.d)}function lk(n){(function F4e(n){var t;for(t=new C(VRn(n));t.a>16!=3?null:u(n.Cb,27)}function Df(n){return n.Db>>16!=9?null:u(n.Cb,27)}function dOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function K0(){K0=N,xa=new AX(jp,0),G2=new AX(Ep,1)}function wh(){wh=N,Db=new CX(Ep,0),N1=new CX(jp,1)}function Nf(){Nf=N,n0=new MX(lR,0),Yf=new MX("UP",1)}function bOn(){bOn=N,lQn=Ce((rC(),S(T(hQn,1),G,549,0,[w_])))}function wOn(n){var e;return EY(e=new lC(aw(n.length)),n),e}function gOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function El(n,e){if(null==e)throw M(new pv);return function L8e(n,e){var i,t=n.a;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(hF(),m_)[typeof i];return r?r(i):xY(typeof i)}(n,e)}function dk(n,e){var t;t=n.q.getHours(),n.q.setDate(e),c8(n,t)}function TJ(n,e,t){var i;(i=n.Ih(e))>=0?n.bi(i,t):Cen(n,e,t)}function vOn(n,e){var t;return(t=n.Ih(e))>=0?n.Wh(t):Nx(n,e)}function pOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function t$(n,e,t){var i;i=jxn(n,e,t),n.b=new HT(i.c.length)}function qg(n,e,t){nT(),n&&Xe(XU,n,e),n&&Xe(TE,n,t)}function i$(n,e){return y.Math.abs(n)>16!=7?null:u(n.Cb,241)}function U3(n){return n.Db>>16!=6?null:u(n.Cb,241)}function yOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function Ct(n){return n.Db>>16!=11?null:u(n.Cb,27)}function uw(n){return n.Db>>16!=17?null:u(n.Cb,29)}function jOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function SJ(n){return wa(n),rt(n,new S9n(new Yt))}function EOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function COn(n,e){eM(this),this.f=e,this.g=n,UM(this),this.je()}function MOn(n,e){this.a=n,this.c=Bi(this.a),this.b=new WM(e)}function TOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new Hu(t))}function AOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new Hu(t))}function SOn(n){this.a=n,this.b=K(Lie,J,2043,n.e.length,0,2)}function POn(){this.a=new hh,this.e=new Yt,this.g=0,this.i=0}function nT(){nT=N,XU=new de,TE=new de,function ale(n,e){n&&Xe(TE,n,e)}(PQn,new vmn)}function IOn(){IOn=N,gie=Lu(new ei,(zi(),Gr),(nr(),Ij))}function PJ(){PJ=N,vie=Lu(new ei,(zi(),Gr),(nr(),Ij))}function OOn(){OOn=N,mie=Lu(new ei,(zi(),Gr),(nr(),Ij))}function LOn(){LOn=N,xie=Ke(new ei,(zi(),Gr),(nr(),J8))}function Eo(){Eo=N,Kie=Ke(new ei,(zi(),Gr),(nr(),J8))}function DOn(){DOn=N,_ie=Ke(new ei,(zi(),Gr),(nr(),J8))}function r$(){r$=N,zie=Ke(new ei,(zi(),Gr),(nr(),J8))}function h5(n,e,t,i,r,c){return new Sl(n.e,e,n.Lj(),t,i,r,c)}function Pr(n,e,t){return null==e?Yc(n.f,null,t):J0(n.i,e,t)}function Qi(n,e){n.c&&pu(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function Di(n,e){n.c&&pu(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function cc(n,e){n.i&&pu(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Pi(n,e){n.d&&pu(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function c$(n,e){n.a&&pu(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function u$(n,e){n.b&&pu(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function NOn(n,e){(function Iwe(n,e,t){u(e.b,68),iu(e.a,new cV(n,t,e))})(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68)}function eT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),Jc(n,e)}function o$(n,e){L(n.Cb,90)&&Mw(no(u(n.Cb,90)),4),Jc(n,e)}function $On(n){var t;return m3(),Y3(t=new l0,n),t}function FOn(n){var t;return m3(),Y3(t=new l0,n),t}function xOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function C2e(n,e,t){return nn(n.a,(KM(),rx(e,t),new p0(e,t))),n}function Rc(n,e){return ar(),F$(e)?new kM(e,n):new B7(e,n)}function bk(n){return mh(),Ac(n,0)>=0?ga(n):c5(ga(d1(n)))}function BOn(n,e){var t;return(t=u(vw(zv(n.a),e),16))?t.gc():0}function ROn(n,e,t){hBn(e,t,n.c.length),Qz(n.c,e,t-e)}function f1(n,e,t){hBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Wv(n){this.c=new yt,this.b=n.b,this.d=n.c,this.a=n.a}function s$(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function gd(n,e,t,i){this.c=n,this.d=i,c$(this,e),u$(this,t)}function IJ(n,e){Hfe.call(this,new Tv(aw(n))),Ao(e,Nzn),this.a=e}function KOn(n,e,t){return new Sx(n,(J3(),T_),null,!1,e,t)}function _On(n,e,t){return new Sx(n,(J3(),S_),e,t,null,!1)}function $f(n){return oc(S(T(yi,1),J,8,0,[n.i.n,n.n,n.a]))}function HOn(){HOn=N,_re=Lu(new ei,(lp(),k9),(i8(),Aln))}function tT(){tT=N,Rq=new SX("DFS",0),r1n=new SX("BFS",1)}function qOn(n,e,t){var i;(i=new Epn).b=e,i.a=t,++e.b,nn(n.d,i)}function ow(n,e){if(n<0||n>e)throw M(new Ar(Qtn+n+Ytn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ar(Qtn+n+Ytn+e))}function Gn(n,e){if(n<0||n>=e)throw M(new Bz(Qtn+n+Ytn+e))}function Pn(n,e){this.b=(Jn(n),n),this.a=e&Nw?e:64|e|yh}function OJ(n){return wa(n),x0(),x0(),ST(n,E_)}function _0(n){return Se(n),L(n,16)?new Hu(u(n,16)):D3(n.Kc())}function LJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return la(function Jbe(n,e){return eu(n.l&e.l,n.m&e.m,n.h&e.h)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function vf(n,e){return la(function Qbe(n,e){return eu(n.l|e.l,n.m|e.m,n.h|e.h)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function f$(n,e){return la(function Ybe(n,e){return eu(n.l^e.l,n.m^e.m,n.h^e.h)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function UOn(n,e){var t,i;return i=F3(n,e),t=n.a.fd(i),new VEn(n,t)}function E(n){return oe(n.a0&&0==n.a[--n.d];);0==n.a[n.d++]&&(n.e=0)}function pLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function mLn(n,e){var t;n.e=new Sz,Jt(t=Aw(e),n.c),Dqn(n,t,0)}function ti(n,e,t,i){var r;(r=new jG).a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;(r=new jG).a=e,r.b=t,r.c=i,xe(n.b,r)}function kLn(n,e,t){if(n<0||et)throw M(new Ar(function Bje(n,e,t){return n<0||n>t?Xnn(n,t,"start index"):e<0||e>t?Xnn(e,t,"end index"):t8("end index (%s) must not be less than start index (%s)",S(T(pi,1),xn,1,5,[Y(e),Y(n)]))}(n,e,t)))}function vk(n,e){if(n<0||n>=e)throw M(new Ar(function wEe(n,e){if(n<0)return t8(Pzn,S(T(pi,1),xn,1,5,["index",Y(n)]));if(e<0)throw M(new Un(Izn+e));return t8("%s (%s) must be less than size (%s)",S(T(pi,1),xn,1,5,["index",Y(n),Y(e)]))}(n,e)));return n}function Ug(n){return j6(),L(n.g,10)?u(n.g,10):null}function Ave(n){return!Hg(n).dc()&&(function Jle(n,e){Se(e),Hg(n).Jc(new o7)}(n,new JO),!0)}function pd(n){var e;return Wr(n)?-0==(e=n)?0:e:function H3e(n){return nnn(n,(Q3(),$un))<0?-function C1e(n){return n.l+n.m*yp+n.h*Nd}(b4(n)):n.l+n.m*yp+n.h*Nd}(n)}function yLn(n,e){return!!L(e,44)&&ux(n.a,u(e,44))}function jLn(n,e){return!!L(e,44)&&ux(n.a,u(e,44))}function ELn(n,e){return!!L(e,44)&&ux(n.a,u(e,44))}function BJ(n){var e;return ua(n),e=new _o,Tg(n.a,new M9n(e)),e}function RJ(){var n,e;return n=new l0,nn(y0n,e=n),e}function iT(n){var e;return ua(n),e=new nd,Tg(n.a,new T9n(e)),e}function CLn(n){Z$.call(this,n,(J3(),M_),null,!1,null,!1)}function MLn(){MLn=N,LYn=Ce((vC(),S(T(Ion,1),G,489,0,[B_])))}function TLn(){TLn=N,jln=pIn(Y(1),Y(4)),yln=pIn(Y(1),Y(2))}function rT(n){return new Vc((Ao(n,PB),TT(Yi(Yi(5,n),n/10|0))))}function ALn(n){return u(Hf(n,K(_Zn,NXn,12,n.c.length,0,1)),2042)}function a5(n,e){(function bDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$;if(I=0,0==e.f.a)for(j=new C(n);j.a2e3&&(bQn=n,MP=y.setTimeout(Fhe,10)),0==CP++&&(function Y3e(n){var e,t;if(n.a){t=null;do{e=n.a,n.a=null,t=g_n(e,t)}while(n.a);n.a=t}}((Nz(),Oun)),!0)}();try{return function jae(n,e,t){return n.apply(e,t)}(n,e,t)}finally{!function Ape(n){n&&function Z3e(n){var e,t;if(n.b){t=null;do{e=n.b,n.b=null,t=g_n(e,t)}while(n.b);n.b=t}}((Nz(),Oun)),--CP,n&&-1!=MP&&(function ple(n){y.clearTimeout(n)}(MP),MP=-1)}(i)}}function H0(n,e){var t,i;return i=null,(t=El(n,e))&&(i=t.pe()),i}function d5(n,e){var t,i;return i=null,(t=El(n,e))&&(i=t.se()),i}function G3(n,e){var t,i;return i=null,(t=lw(n,e))&&(i=t.se()),i}function Cl(n,e){var t,i;return i=null,(t=El(n,e))&&(i=Bnn(t)),i}function KJ(n,e,t){this.d=new B7n(this),this.e=n,this.i=e,this.f=t}function SLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function PLn(n,e,t,i){TTn(this),this.c=n,this.e=e,this.f=t,this.b=i}function _J(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ILn(n,e,t,i){return L(t,59)?new uAn(n,e,t,i):new _V(n,e,t,i)}function z3(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function OLn(n){if(n.e.g!=n.b)throw M(new Ho);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function HJ(n,e){Jn(e),Dt(n.a,n.c,e),n.c=n.c+1&n.a.length-1,ZRn(n)}function sa(n,e){Jn(e),n.b=n.b-1&n.a.length-1,Dt(n.a,n.b,e),ZRn(n)}function LLn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function xve(n){return new Pn(function j4e(n,e){var t,i;for(On(),i=new Z,t=0;t0&&Nc(n.g,0,e,0,n.i),e}function RLn(n,e){var t;for(t=n.j.c.length;tn.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(h=function nle(n){return(n.c+n.a)/2}((Ln(i=function tSe(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p;if(c=t,t=t&&(i=e,h.c<=(l=(h.c+h.a)/2)-t&&P0(n,i++,new hN(h.c,l-t)),(f=l+t)<=h.a&&(c=new hN(f,h.a),ow(i,n.c.length),S6(n.c,i,c)))}(e,i,t)),h}(r,t,i))),function Zye(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new gd((pf(),Fa),e,c,1),new gd(Fa,c,s,1),r=new C(t);r.a"+NJ(n.d):"e_"+T0(n)}function _i(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function yDn(n,e){var t;for(t=e;t;)A0(n,-t.i,-t.j),t=Ct(t);return n}function JJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Vo(n,e,t){var i;return Ln(e,n.c.length),i=n.c[e],n.c[e]=t,i}function QJ(n,e,t){n.a.c.length=0,function rOe(n,e,t){var i,r,s,f,l,a,d,g,v;n.c=0,n.b=0,i=2*e.c.a.c.length+1;n:for(d=t.Kc();d.Ob();){if(v=0,f=(a=u(d.Pb(),12)).j==(en(),zn)||a.j==ae){if(!(g=u(m(a,(V(),Wu)),10)))continue;v+=AAe(n,i,a,g)}else{for(l=new C(a.g);l.a0?(n.f[a.p]=v/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=v)}}(n,e,t),0==n.a.c.length||function OSe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new C(n.a);f.a0?pqn(n,e):HBn(n,-e)}function Qv(n,e){return 0==e||0==n.e?n:e>0?HBn(n,e):pqn(n,-e)}function iQ(n){tle.call(this,null==n?yu:Jr(n),L(n,82)?u(n,82):null)}function IDn(n){var e;return n.c||L(e=n.r,90)&&(n.c=u(e,29)),n.c}function k$(n){var e;return qr(e=new B0,n),U(e,(cn(),Nr),null),e}function ODn(n){var t;return t=n.d.i,n.c.i.k==(Xn(),Qt)&&t.k==Qt}function y$(n){return eu(n&co,n>>22&co,n<0?Kl:0)}function Xpe(n,e){var t,i;(t=u(function t5e(n,e){Se(n);try{return n.Bc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return null;throw M(t)}}(n.c,e),16))&&(i=t.gc(),t.$b(),n.d-=i)}function j$(n,e,t){var i;return(i=n.Ih(e))>=0?n.Lh(i,t,!0):ib(n,e,t)}function mk(n,e){n._i(n.i+1),G6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function g5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function LDn(n,e,t){var i;E5(i=new tW(n.a),n.a.a),Yc(i.f,e,t),n.a.a=i}function rQ(n,e,t,i){var r;for(r=0;re)throw M(new Ar(Xnn(n,e,"index")));return n}function l1(n,e){var t;return Ln(e,n.c.length),t=n.c[e],Qz(n.c,e,1),t}function oQ(n,e){var t,i;return Jn(n),t=n,Jn(e),t==(i=e)?0:tn.d[s.p]&&(t+=JJ(n.b,c)*u(h.b,17).a,sa(n.a,Y(c)));for(;!v6(n.a);)PQ(n.b,u(Hv(n.a),17).a)}return t}(n,t)}function C$(n){var e;return 0==(e=n.b).b?null:u(is(e,0),65).b}function lQ(n){return n.a?n.e?lQ(n.e):null:n}function KDn(n){var e;return n.a||L(e=n.r,156)&&(n.a=u(e,156)),n.a}function _Dn(n,e){return!!tu(n.a,e)&&(Yv(n.a,e),!0)}function Zv(n,e,t){return vk(e,n.e.Rd().gc()),vk(t,n.c.Rd().gc()),n.a[e][t]}function aT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function dT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function kk(){this.b=new yt,this.a=new yt,this.b=new yt,this.a=new yt}function X3(){var n,e;X3=N,m3(),e=new eC,UO=e,n=new DL,GO=n}function HDn(n){var e;for(ua(n),e=0;n.a.Bd(new V0n);)e=Yi(e,1);return e}function bT(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function wT(){wT=N,O9=new ct("org.eclipse.elk.labels.labelManager")}function qDn(){qDn=N,Hsn=new Pt("separateLayerConnections",(JT(),fH))}function pf(){pf=N,og=new TX("REGULAR",0),Fa=new TX("CRITICAL",1)}function yk(){yk=N,aU=new DX("FIXED",0),wO=new DX("CENTER_NODE",1)}function gT(){gT=N,Xsn=new pX("QUADRATIC",0),kH=new pX("SCANLINE",1)}function UDn(){UDn=N,vne=Ce((k5(),S(T(Jsn,1),G,322,0,[Y8,Dj,Vsn])))}function GDn(){GDn=N,pne=Ce((DT(),S(T(Ysn,1),G,351,0,[Qsn,dI,yH])))}function zDn(){zDn=N,dne=Ce((X0(),S(T(lH,1),G,372,0,[yb,La,kb])))}function XDn(){XDn=N,jne=Ce((Md(),S(T(yne,1),G,460,0,[CH,Im,D2])))}function WDn(){WDn=N,Sne=Ce((l4(),S(T(NH,1),G,299,0,[LH,DH,Nj])))}function VDn(){VDn=N,Ine=Ce((Pl(),S(T(Pne,1),G,311,0,[$j,$2,xp])))}function JDn(){JDn=N,iie=Ce((I5(),S(T(nln,1),G,390,0,[fq,Zhn,UI])))}function QDn(){QDn=N,lie=Ce((XT(),S(T(dln,1),G,387,0,[lln,pq,aln])))}function YDn(){YDn=N,aie=Ce((A5(),S(T(bln,1),G,349,0,[kq,mq,zj])))}function ZDn(){ZDn=N,hie=Ce((wr(),S(T(fie,1),G,463,0,[b9,Vu,nu])))}function nNn(){nNn=N,die=Ce((m4(),S(T(gln,1),G,350,0,[yq,wln,w9])))}function eNn(){eNn=N,bie=Ce((LT(),S(T(mln,1),G,352,0,[pln,jq,vln])))}function tNn(){tNn=N,wie=Ce((QT(),S(T(kln,1),G,388,0,[Eq,qm,ug])))}function iNn(){iNn=N,gre=Ce((S5(),S(T(xln,1),G,392,0,[Fln,Tq,Vj])))}function rNn(){rNn=N,Vre=Ce((Xk(),S(T(l1n,1),G,393,0,[cO,f1n,h1n])))}function cNn(){cNn=N,gce=Ce((zT(),S(T(P1n,1),G,300,0,[Jq,S1n,A1n])))}function uNn(){uNn=N,vce=Ce((aA(),S(T(I1n,1),G,445,0,[nE,sO,Qq])))}function oNn(){oNn=N,mce=Ce((EA(),S(T(pce,1),G,456,0,[Yq,nU,Zq])))}function sNn(){sNn=N,jce=Ce((uA(),S(T(D1n,1),G,394,0,[L1n,iU,O1n])))}function fNn(){fNn=N,Uce=Ce((mT(),S(T(Y1n,1),G,439,0,[sU,Q1n,J1n])))}function hNn(){hNn=N,Oie=Ce((z0(),S(T(Iie,1),G,464,0,[Xj,g9,WI])))}function lNn(){lNn=N,ZQn=Ce((Gu(),S(T(YQn,1),G,471,0,[Oh,Ia,Ys])))}function aNn(){aNn=N,QQn=Ce((yf(),S(T(qw,1),G,237,0,[vc,Zc,pc])))}function dNn(){dNn=N,eYn=Ce((mu(),S(T(nYn,1),G,472,0,[Tf,Oa,Zs])))}function bNn(){bNn=N,KQn=Ce((zu(),S(T(Dr,1),G,108,0,[con,Yr,Hw])))}function wNn(){wNn=N,yZn=Ce((v5(),S(T(Yon,1),G,391,0,[X_,z_,W_])))}function gNn(){gNn=N,toe=Ce((Ll(),S(T(Ldn,1),G,346,0,[MO,B1,R9])))}function vNn(){vNn=N,Wce=Ce((Zk(),S(T(fU,1),G,444,0,[aO,dO,bO])))}function pNn(){pNn=N,Yue=Ce((Kf(),S(T(kdn,1),G,278,0,[Jm,lg,Qm])))}function mNn(){mNn=N,goe=Ce((cp(),S(T(Rdn,1),G,280,0,[Bdn,dg,OO])))}function Bf(n,e){return!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),RF(n.o,e)}function aQ(n){var e,i,r;r=n.d,e=n.a,i=n.c,n.d=n.b,n.a=i,n.b=r,n.c=e}function jk(n){return!n.g&&(n.g=new qE),!n.g.c&&(n.g.c=new kyn(n)),n.g.c}function M$(n,e,t,i){var r;return function bPe(n,e,t,i,r){var c,s;if(c=Yi(vi(e[0],vr),vi(i[0],vr)),n[0]=Ae(c),c=I0(c,32),t>=r){for(s=1;st||e=0?n.Lh(t,!0,!0):ib(n,e,!0)}function O3e(n){for(;!n.a;)if(!rSn(n.c,new A9n(n)))return!1;return!0}function np(n){return Se(n),L(n,204)?u(n,204):new U8n(n)}function vT(){vT=N,kue=new M4n,jue=new T4n,yue=function k6e(n,e,t,i){return KM(),new Dz(S(T(Ud,1),bS,44,0,[(rx(n,e),new p0(n,e)),(rx(t,i),new p0(t,i))]))}((Ue(),NU),kue,Ra,jue)}function pT(){pT=N,o1n=new IX("LEAF_NUMBER",0),Gq=new IX("NODE_SIZE",1)}function I$(n){n.a=K(ye,_e,28,n.b+1,15,1),n.c=K(ye,_e,28,n.b,15,1),n.d=0}function jQ(n,e){if(null==n.g||e>=n.i)throw M(new FD(e,n.i));return n.g[e]}function ENn(n,e,t){if(g4(n,t),null!=t&&!n.fk(t))throw M(new IL);return t}function O$(n,e){return 10!=Lk(e)&&S(po(e),e.Sm,e.__elementTypeId$,Lk(e),n),n}function V3(n,e,t,i){x0(),i=i||Yun,Wnn(n.slice(e,t),n,e,t,-e,i)}function Jo(n,e,t,i,r){return e<0?ib(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function CNn(){CNn=N,NQn=Ce((J3(),S(T(IP,1),G,304,0,[M_,T_,A_,S_])))}function J3(){J3=N,M_=new MC("All",0),T_=new bTn,A_=new ETn,S_=new dTn}function Gu(){Gu=N,Oh=new oD(jp,0),Ia=new oD(em,1),Ys=new oD(Ep,2)}function MNn(){MNn=N,cS(),P0n=Mt,Cse=fi,I0n=new h7(Mt),Mse=new h7(fi)}function TNn(){TNn=N,TYn=Ce((V0(),S(T(MYn,1),G,417,0,[kj,mj,F_,x_])))}function ANn(){ANn=N,OYn=Ce((_5(),S(T(IYn,1),G,406,0,[Mj,NP,$P,Tj])))}function SNn(){SNn=N,SYn=Ce((sp(),S(T(AYn,1),G,332,0,[jj,yj,Ej,Cj])))}function PNn(){PNn=N,FZn=Ce((Sd(),S(T(tsn,1),G,389,0,[zw,esn,Z_,nH])))}function INn(){INn=N,IZn=Ce((a4(),S(T(PZn,1),G,416,0,[mb,Gw,Uw,S2])))}function ONn(){ONn=N,une=Ce((_f(),S(T(cne,1),G,421,0,[Fp,Em,Cm,hH])))}function LNn(){LNn=N,VZn=Ce((JT(),S(T(WZn,1),G,371,0,[fH,oI,sI,Oj])))}function DNn(){DNn=N,rie=Ce((kw(),S(T(lq,1),G,203,0,[GI,hq,U2,q2])))}function NNn(){NNn=N,oie=Ce((vh(),S(T(fln,1),G,284,0,[D1,sln,bq,wq])))}function Tk(){Tk=N,rfn=new kX(Th,0),gI=new kX("IMPROVE_STRAIGHTNESS",1)}function $Nn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Zv(n,i,t)}function FNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)D(n,e);return UJ(n)}function EQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function xNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function BNn(n,e){if(e.a)throw M(new ic(iXn));oi(n.a,e),e.a=n,!n.j&&(n.j=e)}function CQ(n,e){VC.call(this,e.zd(),-16449&e.yd()),Jn(n),this.a=n,this.c=e}function RNn(){RNn=N,wce=Ce((AA(),S(T(T1n,1),G,354,0,[Vq,C1n,M1n,E1n])))}function KNn(){KNn=N,Rre=Ce((P5(),S(T(i1n,1),G,353,0,[Bq,iO,xq,Fq])))}function _Nn(){_Nn=N,bre=Ce((lp(),S(T(Mln,1),G,405,0,[YI,m9,k9,y9])))}function HNn(){HNn=N,Zue=Ce((Dl(),S(T(BU,1),G,223,0,[xU,bE,Ym,Qp])))}function qNn(){qNn=N,roe=Ce((Po(),S(T(ioe,1),G,291,0,[gE,sl,Ka,wE])))}function UNn(){UNn=N,boe=Ce((mo(),S(T(U9,1),G,386,0,[kE,u0,mE,ag])))}function GNn(){GNn=N,poe=Ce((sA(),S(T(Gdn,1),G,320,0,[_U,Hdn,Udn,qdn])))}function zNn(){zNn=N,yoe=Ce((YT(),S(T(koe,1),G,415,0,[HU,Xdn,zdn,Wdn])))}function mT(){mT=N,sU=new OD(kWn,0),Q1n=new OD(Xrn,1),J1n=new OD(Th,2)}function hw(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new VV(n,e,i)}function XNn(n,e){var t;return(t=u(Yv(n.e,e),400))?(CV(t),t.e):null}function pu(n,e){var t;return-1!=(t=Hr(n,e,0))&&(l1(n,t),!0)}function WNn(n,e,t){var i;return ua(n),(i=new iL).a=e,n.a.Nb(new PCn(i,t)),i.a}function MQ(n){var e;if(!X$(n))throw M(new tc);return n.e=1,e=n.d,n.d=null,e}function d1(n){var e;return Wr(n)&&(e=0-n,!isNaN(e))?e:la(b4(n))}function Hr(n,e,t){for(;t=0?yA(n,t,!0,!0):ib(n,e,!0)}function AQ(n){var e;return null==(e=kd(qn(n,32)))&&(uu(n),e=kd(qn(n,32))),e}function SQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function n$n(n,e){Son=new RE,PYn=e,u((X8=n).b,68),wQ(X8,Son,null),wGn(X8)}function v5(){v5=N,X_=new fD("XY",0),z_=new fD("X",1),W_=new fD("Y",2)}function mu(){mu=N,Tf=new sD("TOP",0),Oa=new sD(em,1),Zs=new sD(cin,2)}function Pl(){Pl=N,$j=new wD(Th,0),$2=new wD("TOP",1),xp=new wD(cin,2)}function Ok(){Ok=N,gq=new jX("INPUT_ORDER",0),vq=new jX("PORT_DEGREE",1)}function Q3(){Q3=N,Dun=eu(co,co,524287),pQn=eu(0,0,Hy),Nun=y$(1),y$(2),$un=y$(0)}function F$(n){var e;return n.d!=n.r&&(e=ys(n),n.e=!!e&&e.lk()==pJn,n.d=e),n.e}function x$(n,e,t){var i;return i=n.g[e],G6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function ET(n,e){var t;return(t=n.dd(e))>=0&&(n.gd(t),!0)}function B$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t|=n.Fc(e.Pb());return t}function Rf(n,e){var t;return(t=u(ee(n.e,e),400))?($Tn(n,t),t.e):null}function e$n(n){var e,t;return e=n/60|0,0==(t=n%60)?""+e:e+":"+t}function lw(n,e){var t=n.a[e],i=(hF(),m_)[typeof t];return i?i(t):xY(typeof t)}function uc(n,e){return wa(n),new Mn(n,new oSn(new fQ(e,n.a)))}function R$(n){var e;return null!=(e=0==n.b.c.length?null:sn(n.b,0))&&V$(n,0),e}function PQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t=0;)++e[0]}function Lk(n){return null==n.__elementTypeCategory$?10:n.__elementTypeCategory$}function r$n(n,e){return e==(uN(),uN(),OQn)?n.toLocaleLowerCase():n.toLowerCase()}function c$n(n){if(!n.e)throw M(new tc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function IQ(n){if(!n.c)throw M(new tc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function u$n(n){var e;for(++n.a,e=n.c.a.length;n.an.a[i]&&(i=t);return i}function o$n(n){var e;return!!(e=u(m(n,(V(),jb)),313))&&e.a==n}function s$n(n){var e;return!!(e=u(m(n,(V(),jb)),313))&&e.i==n}function f$n(){f$n=N,MZn=Ce((zi(),S(T(Zon,1),G,367,0,[nf,rl,$c,Uc,Gr])))}function h$n(){h$n=N,sne=Ce((jw(),S(T(one,1),G,375,0,[Lj,lI,aI,hI,fI])))}function l$n(){l$n=N,mne=Ce((k1(),S(T(nfn,1),G,348,0,[jH,Zsn,EH,Pm,Sm])))}function a$n(){a$n=N,cie=Ce((K5(),S(T(tln,1),G,323,0,[eln,aq,dq,a9,d9])))}function d$n(){d$n=N,Lne=Ce((ts(),S(T(Ofn,1),G,171,0,[Rj,r9,Na,c9,Qw])))}function b$n(){b$n=N,Xre=Ce((NA(),S(T(zre,1),G,368,0,[qq,Kq,Uq,_q,Hq])))}function w$n(){w$n=N,Xce=Ce((Z5(),S(T(zce,1),G,373,0,[V2,zp,I9,P9,iE])))}function g$n(){g$n=N,Zce=Ce((by(),S(T(oan,1),G,324,0,[ran,dU,uan,bU,can])))}function v$n(){v$n=N,Que=Ce((ii(),S(T(x9,1),G,88,0,[eh,zr,$r,nh,hs])))}function p$n(){p$n=N,Eue=Ce((Ef(),S(T(ol,1),G,170,0,[Fn,wi,$h,e0,F1])))}function m$n(){m$n=N,uoe=Ce((Zg(),S(T(_9,1),G,256,0,[_a,vE,Ddn,K9,Ndn])))}function k$n(){k$n=N,foe=Ce((en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])))}function CT(){CT=N,son=new aX("BY_SIZE",0),L_=new aX("BY_SIZE_AND_SHAPE",1)}function MT(){MT=N,q_=new wX("EADES",0),BP=new wX("FRUCHTERMAN_REINGOLD",1)}function Dk(){Dk=N,bI=new mX("READING_DIRECTION",0),efn=new mX("ROTATION",1)}function p5(){p5=N,DZn=new rwn,NZn=new own,OZn=new swn,LZn=new uwn,$Zn=new fwn}function y$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function j$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function E$n(n,e,t){sM.call(this),DQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function i4e(n,e,t){var r;for(r=new C(t);r.a=0&&e0?nt:Ac(n,Xi)<0?Xi:Ae(n)}function aw(n){return n<3?(Ao(n,Bzn),n+1):n=-.01&&n.a<=zf&&(n.a=0),n.b>=-.01&&n.b<=zf&&(n.b=0),n}function Xg(n){var e,t;for(f2(),t=Jrn,e=0;et&&(t=n[e]);return t}function A$n(n,e){var t;if(!(t=Ey(n.Dh(),e)))throw M(new Un(Aa+e+LK));return t}function dw(n,e){var t;for(t=n;Ct(t);)if((t=Ct(t))==e)return!0;return!1}function iu(n,e){var i,r,c;for(Jn(e),r=0,c=(i=n.c).length;r>16!=6?null:u(xx(n),241)}(n))&&!e.Vh()&&(n.w=e),e)}function Y3(n,e){var t,i;i=n.a,t=function h5e(n,e,t){var i,r;return r=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,5,r,n.a),t?bnn(t,i):t=i),t}(n,e,null),i!=e&&!n.e&&(t=z4(n,e,t)),t&&t.oj()}function L$n(n,e,t){var i,r;i=e;do{r=F(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p]}while(i!=e)}function D$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function y4e(n){var e;return null==n?null:function Dye(n,e){var i,r,c,s;if(null==n)return null;for(s=K(ds,jh,28,2*e,15,1),i=0,r=0;i>4&15],s[r++]=Zdn[c];return ks(s,0,s.length)}(e=u(n,195),e.length)}function D(n,e){if(null==n.g||e>=n.i)throw M(new FD(e,n.i));return n.Wi(e,n.g[e])}function N$n(n){return wa(n),Rv(!0,"n may not be negative"),new Mn(n,new fFn(n.a))}function DQ(n){n.b=(Gu(),Ia),n.f=(mu(),Oa),n.d=(Ao(2,Dw),new Vc(2)),n.e=new Oi}function PT(n){this.b=(Se(n),new Hu(n)),this.a=new Z,this.d=new Z,this.e=new Oi}function yf(){yf=N,vc=new uD("BEGIN",0),Zc=new uD(em,1),pc=new uD("END",2)}function Kf(){Kf=N,Jm=new DD(em,0),lg=new DD("HEAD",1),Qm=new DD("TAIL",2)}function ep(){ep=N,Hre=ph(ph(ph(M6(new ei,(lp(),m9)),(i8(),Mq)),Pln),Dln)}function Il(){Il=N,Ure=ph(ph(ph(M6(new ei,(lp(),y9)),(i8(),Oln)),Tln),Iln)}function $$n(){$$n=N,wne=Ce((ap(),S(T(Am,1),G,232,0,[Tm,Q8,Mm,Vw,L2,O2])))}function F$n(){F$n=N,Ene=Ce((BA(),S(T(ifn,1),G,283,0,[TH,MH,SH,AH,PH,wI])))}function x$n(){x$n=N,Mne=Ce((ay(),S(T(hfn,1),G,281,0,[vI,ofn,ffn,ufn,sfn,IH])))}function B$n(){B$n=N,Tne=Ce((N4(),S(T(gfn,1),G,282,0,[Z8,afn,wfn,bfn,dfn,lfn])))}function R$n(){R$n=N,KZn=Ce((Xn(),S(T(tH,1),G,273,0,[Ut,Ei,Qt,Gc,Oc,Jf])))}function K$n(){K$n=N,Tue=Ce((Xh(),S(T(Ian,1),G,255,0,[kU,cE,uE,kO,pO,mO])))}function _$n(){_$n=N,Lue=Ce((Id(),S(T(CU,1),G,298,0,[EU,$9,N9,jU,L9,D9])))}function H$n(){H$n=N,noe=Ce((FA(),S(T(Tdn,1),G,321,0,[RU,Edn,Mdn,ydn,Cdn,jdn])))}function q$n(){q$n=N,ooe=Ce((Ii(),S(T($dn,1),G,101,0,[Ha,th,Zm,c0,hl,Xc])))}function U$n(){U$n=N,soe=Ce((Xu(),S(T(TO,1),G,279,0,[qa,Xl,pE,q9,H9,Yp])))}function G$n(){G$n=N,LP=(yf(),S(T(qw,1),G,237,0,[vc,Zc,pc])).length,N_=LP}function Wg(n,e){return function Dhe(n){return n?n.i:null}(y5(n,e,Ae(Zi(Yh,Uh(Ae(Zi(null==e?0:wt(e),Zh)),15)))))}function NQ(n,e){return Of(),zs(ja),y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)}function IT(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,1,t,n.b))}function Z3(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,3,t,n.b))}function U0(n,e){var t;t=n.f,n.f=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,3,t,n.f))}function G0(n,e){var t;t=n.g,n.g=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,4,t,n.g))}function ru(n,e){var t;t=n.i,n.i=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,5,t,n.i))}function cu(n,e){var t;t=n.j,n.j=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,6,t,n.j))}function n4(n,e){var t;t=n.j,n.j=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,1,t,n.j))}function e4(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,4,t,n.c))}function t4(n,e){var t;t=n.k,n.k=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,2,t,n.k))}function OT(n,e){var t;t=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,0,t,n.a))}function b1(n,e){var t;t=n.s,n.s=e,4&n.Db&&!(1&n.Db)&&tt(n,new b$(n,4,t,n.s))}function bw(n,e){var t;t=n.t,n.t=e,4&n.Db&&!(1&n.Db)&&tt(n,new b$(n,5,t,n.t))}function q$(n,e){var t;t=n.d,n.d=e,4&n.Db&&!(1&n.Db)&&tt(n,new b$(n,2,t,n.d))}function i4(n,e){var t;t=n.F,n.F=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,5,t,e))}function Nk(n,e){var t;return(t=u(ee((jC(),KO),n),57))?t.gk(e):K(pi,xn,1,e,5,1)}function T4e(n,e){var t,i;return Q1(),i=new EG,e&&Pen(i,e),WQ(t=i,n),t}function Ol(n,e){var i;return e in n.a&&(i=El(n,e).re())?i.a:null}function z$n(n,e,t){if(g4(n,t),!n.kl()&&null!=t&&!n.fk(t))throw M(new IL);return t}function X$n(n,e){return n.n=e,n.n?(n.f=new Z,n.e=new Z):(n.f=null,n.e=null),n}function W$n(n,e){if(n){e.n=n;var i=function l2e(n){return n.Ae()?null:EP[n.n]}(e);if(!i)return void(EP[n]=[e]);i.Rm=e}}function kd(n){var e;return Q6(null==n||Array.isArray(n)&&!((e=Lk(n))>=14&&e<=16)),n}function Ee(n,e){var t;return Jn(e),nk(!!(t=n[":"+e]),"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return W$n(t,s=BN(n,e)),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function $Q(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function FQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function xQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function BQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function RQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function V$n(n,e){var i,r,c;for(r=0,c=(i=e).length;r=0))throw M(new Un("tolerance ("+n+") must be >= 0"));return n}function Q$n(n,e){var t;return L(e,44)?n.c.Mc(e):(t=RF(n,e),dA(n,e),t)}function Cr(n,e,t){return Ad(n,e),Jc(n,t),b1(n,0),bw(n,1),m1(n,!0),p1(n,!0),n}function $k(n,e){var t;if(t=n.gc(),e<0||e>t)throw M(new ew(e,t));return new JW(n,e)}function NT(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(0==n.a.c.length?0:n.c),nn(n.a,e)}function Y$n(n){Yb(n.c>=0),function F8e(n,e){var t,i,c;return c=n.c-e&(i=n.a.length-1),TAn((t=e-n.b&i)<(n.c-n.b&i)),t>=c?(function N6e(n,e){var t,i;for(n.c=n.c-1&(t=n.a.length-1);e!=n.c;)Dt(n.a,e,n.a[i=e+1&t]),e=i;Dt(n.a,n.c,null)}(n,e),-1):(function D6e(n,e){var t,i;for(t=n.a.length-1;e!=n.b;)Dt(n.a,e,n.a[i=e-1&t]),e=i;Dt(n.a,n.b,null),n.b=n.b+1&t}(n,e),1)}(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function $T(n){var t;for(t=n.c.Cc().Kc();t.Ob();)u(t.Pb(),16).$b();n.c.$b(),n.d=0}function m5(n,e){var i,r,c;for(r=0,c=(i=e).length;r0&&n.c0&&0!=n.g&&zQ(n.i,e/n.r*n.i.d))}function XQ(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,1,t,n.c))}function G$(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,4,t,n.c))}function c4(n,e){var t;t=n.k,n.k=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,2,t,n.k))}function z$(n,e){var t;t=n.D,n.D=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,2,t,n.D))}function xT(n,e){var t;t=n.f,n.f=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,8,t,n.f))}function BT(n,e){var t;t=n.i,n.i=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,7,t,n.i))}function WQ(n,e){var t;t=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,8,t,n.a))}function VQ(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,0,t,n.b))}function JQ(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,0,t,n.b))}function QQ(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,1,t,n.c))}function YQ(n,e){var t;t=n.d,n.d=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,1,t,n.d))}function hFn(n,e){return Bl(n.e,e)?(ar(),F$(e)?new kM(e,n):new B7(e,n)):new BMn(e,n)}function H4e(n,e){var i;return(i=e.e[n.p])>0?u(sn(n.c.a,i-1),10):null}function lFn(n){var e;return(n=y.Math.max(n,2))>(e=mY(n))?(e<<=1)>0?e:a8:e}function X$(n){switch(fW(3!=n.e),n.e){case 2:return!1;case 0:return!0}return function Ype(n){return n.e=3,n.d=n.Yb(),2!=n.e&&(n.e=0,!0)}(n)}function aFn(n,e){var t;return!!L(e,8)&&(t=u(e,8),n.a==t.a&&n.b==t.b)}function dFn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)hy(n,(t=u(i.Pb(),44)).ld(),t.md())}function ZQ(n,e){var t;t=n.d,n.d=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,11,t,n.d))}function RT(n,e){var t;t=n.j,n.j=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,13,t,n.j))}function nY(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,21,t,n.b))}function X4e(n,e){e.Ug("Hierarchical port constraint processing",1),function l9e(n){var e;xv(u(m(n,(cn(),Kt)),101))&&(iHn((Ln(0,(e=n.b).c.length),u(e.c[0],30))),iHn(u(sn(e,e.c.length-1),30)))}(n),function ODe(n){var e,t,i,r,s,f,h,l,a,d,g,v,p,k,j,A,I,O,_,X,tn,jn,kn,Bn,$n,te;if((tn=u(m(n,(cn(),Kt)),101))!=(Ii(),th)&&tn!=Ha){for(a=new Vc((Ao((v=(p=n.b).c.length)+2,PB),TT(Yi(Yi(5,v+2),(v+2)/10|0)))),k=new Vc((Ao(v+2,PB),TT(Yi(Yi(5,v+2),(v+2)/10|0)))),nn(a,new de),nn(a,new de),nn(k,new Z),nn(k,new Z),X=new Z,e=0;e>5],Ae(Us(31&e,1))),3)}function wFn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?1:0:(!n.c&&(n.c=bk(Ec(n.f))),n.c).e}function CFn(n,e){e?null==n.B&&(n.B=n.D,n.D=null):null!=n.B&&(n.D=n.B,n.B=null)}function MFn(n,e){return Of(),zs(zf),y.Math.abs(0-e)<=zf||0==e||isNaN(0)&&isNaN(e)?0:n/e}function TFn(n,e){return F(R(bo(Qk(Kr(new Mn(null,new Pn(n.c.b,16)),new D7n(n)),e))))}function cY(n,e){return F(R(bo(Qk(Kr(new Mn(null,new Pn(n.c.b,16)),new L7n(n)),e))))}function ime(n,e){e.Ug("General Compactor",1),function s8e(n){switch(n.g){case 1:return new q3n;case 2:return new aAn;default:throw M(new Un(wK+(null!=n.f?n.f:""+n.g)))}}(u(z(n,(ka(),Xq)),393)).Cg(n)}function uY(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)(i=u(be(r),8)).a+=e,i.b+=t;return n}function y5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&bh(e,i.g))return i;return null}function j5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&bh(e,i.i))return i;return null}function Z$(n,e,t,i,r,c){var s;this.c=n,RZ(n,s=new Z,e,n.b,t,i,r,c),this.a=new Ni(s,0)}function AFn(){this.c=new aC(0),this.b=new aC(Vrn),this.d=new aC(dWn),this.a=new aC(yR)}function Yo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=Ff(s)}function Ht(n,e,t,i,r,c,s,f,h,l,a,d,g){return L_n(n,e,t,i,r,c,s,f,h,l,a,d,g),LF(n,!1),n}function ume(n){return n.b.c.i.k==(Xn(),Qt)?u(m(n.b.c.i,(V(),ot)),12):n.b.c}function SFn(n){return n.b.d.i.k==(Xn(),Qt)?u(m(n.b.d.i,(V(),ot)),12):n.b.d}function ome(n){var e;return j0((e=iT(n)).a,0)?(gC(),gC(),LQn):(gC(),new fAn(e.b))}function nF(n){var e;return j0((e=BJ(n)).a,0)?(zb(),zb(),C_):(zb(),new QD(e.b))}function eF(n){var e;return j0((e=BJ(n)).a,0)?(zb(),zb(),C_):(zb(),new QD(e.c))}function PFn(n){switch(n.g){case 2:return en(),Wn;case 4:return en(),Zn;default:return n}}function IFn(n){switch(n.g){case 1:return en(),ae;case 3:return en(),zn;default:return n}}function OFn(n){switch(n.g){case 0:return new l4n;case 1:return new a4n;default:return null}}function tp(){tp=N,sH=new Pt("edgelabelcenterednessanalysis.includelabel",(Kn(),Pa))}function oY(){oY=N,Pie=ph(YMn(Ke(Ke(new ei,(zi(),$c),(nr(),ZP)),Uc,WP),Gr),YP)}function LFn(){LFn=N,Die=ph(YMn(Ke(Ke(new ei,(zi(),$c),(nr(),ZP)),Uc,WP),Gr),YP)}function tF(){tF=N,J9=new bjn,JU=S(T(Mu,1),C2,179,0,[]),tse=S(T(Ds,1),bun,62,0,[])}function u4(){u4=N,Pj=new gX("TO_INTERNAL_LTR",0),cH=new gX("TO_INPUT_DIRECTION",1)}function Nu(){Nu=N,rH=new wwn,iH=new gwn,usn=new vwn,csn=new pwn,osn=new mwn,ssn=new kwn}function fme(n,e,t){t.Ug("DFS Treeifying phase",1),function T8e(n,e){var t,r,c;for(c=e.b.b,n.a=new yt,n.b=K(ye,_e,28,c,15,1),t=0,r=ge(e.b,0);r.b!=r.d.c;)u(be(r),40).g=t++}(n,e),function CTe(n,e){var t,i,r,c,s;for(s=u(m(e,(bc(),Zln)),433),c=ge(e.b,0);c.b!=c.d.c;)if(r=u(be(c),40),0==n.b[r.g]){switch(s.g){case 0:SRn(n,r);break;case 1:DCe(n,r)}n.b[r.g]=2}for(i=ge(n.a,0);i.b!=i.d.c;)pw((t=u(be(i),65)).b.d,t,!0),pw(t.c.b,t,!0);U(e,(bt(),Hln),n.a)}(n,e),n.a=null,n.b=null,t.Vg()}function Fk(n,e){return Kn(),Mi(n)?oQ(n,Oe(e)):Jb(n)?TN(n,R(e)):Vb(n)?Zbe(n,un(e)):n.Fd(e)}function E5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function DFn(n){var e;if(-2==n.b){if(0==n.e)e=-1;else for(e=0;0==n.a[e];e++);n.b=e}return n.b}function dme(n){if(Jn(n),0==n.length)throw M(new sh("Zero length BigInteger"));!function pSe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j;for(h=v=e.length,Gn(0,e.length),45==e.charCodeAt(0)?(d=-1,g=1,--v):(d=1,g=0),r=v/(c=(sB(),TQn)[10])|0,0!=(j=v%c)&&++r,f=K(ye,_e,28,r,15,1),t=MQn[8],s=0,p=g+(0==j?c:j),k=g;k0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function NFn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,function MEe(n){var e,t,r,c;for(c=O5(n.d,n.e).Kc();c.Ob();)for(r=u(c.Pb(),12),t=new C(n.e==(en(),Wn)?r.e:r.g);t.an.c&&e.an.d&&e.b(r=n.a.length)?t=r:Gn(e,t+1),n.a=Xo(n.a,0,e)+""+i+iJ(n.a,t)}function qFn(n,e){n.a=Yi(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=Yi(n.d,e)}function tt(n,e){var t,i,r;if(null!=(t=n.th())&&n.wh())for(i=0,r=t.length;i0||a.j==Wn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new C(a.g);r.a1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw M(new tc)}function XFn(n){switch(n.a.g){case 1:return new YCn;case 3:return new YRn;default:return new l8n}}function lY(n,e){switch(e){case 1:return!!n.n&&0!=n.n.i;case 2:return null!=n.k}return xJ(n,e)}function Ec(n){return qy=0x8000000000000000?(Q3(),Dun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=Nd&&(n-=(i=di(n/Nd))*Nd),t=0,n>=yp&&(n-=(t=di(n/yp))*yp),c=eu(di(n),t,i),r&&aF(c),c)}(n))}function xk(n){var e;return n<128?(cPn(),!(e=Run[n])&&(e=Run[n]=new UG(n)),e):new UG(n)}function ps(n){var t,i,r;return i=0,(r=n)<0&&(r+=Nd,i=Kl),t=di(r/yp),eu(di(r-t*yp),t,i)}function Bk(n){var e,t,i;for(i=0,t=new Av(n.a);t.a>22))&co,n.h-e.h+(i>>22)&Kl)}function At(n){var e;return L(n,82)?n:((e=n&&n.__java$exception)||Fyn(e=new Wxn(n)),e)}function Hk(n){if(L(n,193))return u(n,123);if(n)return null;throw M(new Ev(SVn))}function dY(n){return!!n.a.Ob()||n.a==n.e&&(n.a=new vQ(n.f.f),n.a.Ob())}function txn(n,e){if(null==e)return!1;for(;n.a!=n.b;)if(it(e,eA(n)))return!0;return!1}function ixn(n,e){return!(!n||!e||n==e)&&qBn(n.d.c,e.d.c+e.d.b)&&qBn(e.d.c,n.d.c+n.d.b)}function si(n,e){var t;return 0!=(t=e.Pc()).length&&(bV(n.c,n.c.length,t),!0)}function oF(n){var e,i;for(e=new yt,i=ge(n.d,0);i.b!=i.d.c;)xe(e,u(be(i),65).c);return e}function rxn(n,e){var i;for(i=new C(n.b);i.a(i=n.gc()))throw M(new ew(e,i));return n.Si()&&(t=mOn(n,t)),n.Ei(e,t)}function d4(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)e2(n,c,s)||eS(n,c,s,!0,!1)}function b4(n){var e,t;return eu(e=1+~n.l&co,t=~n.m+(0==e?1:0)&co,~n.h+(0==e&&0==t?1:0)&Kl)}function mY(n){var e;if(n<0)return Xi;if(0==n)return 0;for(e=a8;!(e&n);e>>=1);return e}function fF(n,e,t){return!(n>=128)&&R6(n<64?vi(Us(1,n),t):vi(Us(1,n-64),e),0)}function Gk(n,e,t){return null==t?(!n.q&&(n.q=new de),Yv(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function U(n,e,t){return null==t?(!n.q&&(n.q=new de),Yv(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function axn(n){var e,t;return qr(t=new lT,n),U(t,(ha(),$p),n),function IPe(n,e,t){var i,r,c,s,f;for(i=0,c=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));c.e!=c.i.gc();)s="",0==(!(r=u(ue(c),27)).n&&(r.n=new q(Tr,r,1,7)),r.n).i||(s=u(D((!r.n&&(r.n=new q(Tr,r,1,7)),r.n),0),135).a),qr(f=new jTn(s),r),U(f,(ha(),$p),r),f.a=i++,f.d.a=r.i+r.g/2,f.d.b=r.j+r.f/2,f.e.a=y.Math.max(r.g,1),f.e.b=y.Math.max(r.f,1),nn(e.e,f),Yc(t.f,r,f),u(z(r,(Js(),Hon)),101),Ii()}(n,t,e=new de),function rLe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));h.e!=h.i.gc();)for(r=new ie(ce(xl(f=u(ue(h),27)).a.Kc(),new Vn));ve(r);){if(!(i=u(fe(r),74)).b&&(i.b=new Dn(he,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i<=1)))throw M(new Cv("Graph must not contain hyperedges."));if(!Q5(i)&&f!=Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)))for(qr(l=new HAn,i),U(l,(ha(),$p),i),zse(l,u(Rr(br(t.f,f)),153)),Vse(l,u(ee(t,Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),153)),nn(e.c,l),s=new ne((!i.n&&(i.n=new q(Tr,i,1,7)),i.n));s.e!=s.i.gc();)qr(a=new ULn(l,(c=u(ue(s),135)).a),c),U(a,$p,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),atn(a),nn(e.d,a)}}(n,t,e),t}function dxn(n){return n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f||n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d}function bxn(n,e){var t,i,c;for(t=!1,i=n.a[e].length,c=0;c=0,"Negative initial capacity"),nk(e>=0,"Non-positive load factor"),qu(this)}function EY(n,e){var i,r,c,s;for(On(),s=!1,r=0,c=(i=e).length;r1||e>=0&&n.b<3)}function aF(n){var e,t,i;t=~n.m+(0==(e=1+~n.l&co)?1:0)&co,i=~n.h+(0==e&&0==t?1:0)&Kl,n.l=e,n.m=t,n.h=i}function TY(n){var e,t,i;for(On(),i=1,t=n.Kc();t.Ob();)i=31*i+(null!=(e=t.Pb())?wt(e):0),i|=0;return i}function s6e(n,e,t,i,r){var c;return c=wen(n,e),t&&aF(c),r&&(n=function e7e(n,e){var t,i,r;return e<=22?(t=n.l&(1<=n.b.c.length||(OY(n,2*e+1),(t=2*e+2)=0&&n[i]===e[i];i--);return i<0?0:rD(vi(n[i],vr),vi(e[i],vr))?-1:1}function Oxn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=lFn(t),i=K(aQn,Ky,227,r,0,1),this.b=i}function vF(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(e2(n,c,s))return!0;return!1}function Lxn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function pF(n,e){var t,i;return i=u(qn(n.a,4),129),t=K(WU,VK,424,e,0,1),null!=i&&Nc(i,0,t,0,i.length),t}function Dxn(n,e){var t;return t=new zx(0!=(256&n.f),n.i,n.a,n.d,0!=(16&n.f),n.j,n.g,e),null!=n.e||(t.c=n),t}function Nxn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function $xn(n,e,t){return n.d[e.p][t.p]||(function T9e(n,e,t){if(n.e)switch(n.b){case 1:!function gge(n,e,t){n.i=0,n.e=0,e!=t&&Cxn(n,e,t)}(n.c,e,t);break;case 0:!function vge(n,e,t){n.i=0,n.e=0,e!=t&&Mxn(n,e,t)}(n.c,e,t)}else qLn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function C6e(n,e){return!(!n||n==e||!vt(e,(V(),Eb)))&&u(m(e,(V(),Eb)),10)!=n}function mF(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function Fxn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function xxn(n){COn.call(this,"The given string does not match the expected format for individual spacings.",n)}function kF(n,e,t){var i,c;for(i=new yt,c=ge(t,0);c.b!=c.d.c;)xe(i,new ir(u(be(c),8)));Lxn(n,e,i)}function A6e(n,e){var t;return t=Yi(n,e),rD(f$(n,e),0)|zC(f$(n,t),0)?t:Yi(Ry,f$(ia(t,63),1))}function Bxn(n){var e;if((e=n.a.c.length)>0)return $3(e-1,n.a.c.length),l1(n.a,e-1);throw M(new Byn)}function Rxn(n,e,t){if(n>e)throw M(new Un(pS+n+nXn+e));if(n<0||e>t)throw M(new Rz(pS+n+Jtn+e+Xtn+t))}function p4(n,e){null==n.D&&null!=n.B&&(n.D=n.B,n.B=null),z$(n,null==e?null:(Jn(e),e)),n.C&&n.hl(null)}function DY(n,e){var t,i;if(0!=(i=n.c[e]))for(n.c[e]=0,n.d-=i,t=e+1;tWS?n-t>WS:t-n>WS)}function Jxn(n,e){var t;for(t=0;tr&&(TKn(e.q,r),i=t!=e.q.d)),i}function Qxn(n,e){var i,s,f;return y.Math.sqrt((s=e.i-(i=n.f).i)*s+(f=e.j-i.j)*f)}function RY(n,e){var i;return(i=bA(n))||(!Loe&&(Loe=new Amn),bB(),me((i=new Ayn(BHn(e))).El(),n)),i}function Vk(n,e){var t,i;return(t=u(n.c.Bc(e),16))?((i=n.hc()).Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function Yxn(n,e,t,i){var r;n.a=e,n.f=(r=new l_n(n.c,n.a,t,i?0:1),new qqn(t,n.a,r,n.e,n.b,n.c==(z0(),g9)))}function eA(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],TAn(n.b==n.d.c&&null!=e),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function Zxn(n){var e;if(0!=n.c)return n.c;for(e=0;e=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ba(n,e){var t,i,r,c;return(c=N_n((i=e,(r=n?bA(n):null)&&r.Gl(),i)))==e&&(t=bA(n))&&t.Gl(),c}function nBn(n,e,t){var i,r;return r=n.f,n.f=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,0,r,e),t?t.nj(i):t=i),t}function eBn(n,e,t){var i,r;return r=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,3,r,e),t?t.nj(i):t=i),t}function _Y(n,e,t){var i,r;return r=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,1,r,e),t?t.nj(i):t=i),t}function tBn(n){var e,t,i,r;if(null!=n)for(t=0;t-129&&n<128?(KSn(),!(t=Kun[e=n+128])&&(t=Kun[e]=new _G(n)),t):new _G(n)}function k4(n){var e,t;return n>-129&&n<128?(iPn(),!(t=Uun[e=n+128])&&(t=Uun[e]=new qG(n)),t):new qG(n)}function cBn(n,e){n.a.c.length>0&&IY(u(sn(n.a,n.a.c.length-1),579),e)||nn(n.a,new EDn(e))}function uBn(n){var e;return(e=new V1).a+="VerticalSegment ",Fc(e,n.e),e.a+=" ",Re(e,oW(new GL,new C(n.k))),e.a}function AF(n,e){var t,r;for(t=0,r=sc(n,e).Kc();r.Ob();)t+=null!=m(u(r.Pb(),12),(V(),Wu))?1:0;return t}function Yg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&!((r=F(R(be(c))))>t);)r>=e&&++i;return i}function oBn(n,e){Se(n);try{return n._b(e)}catch(t){if(L(t=At(t),212)||L(t,169))return!1;throw M(t)}}function qY(n,e){Se(n);try{return n.Hc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return!1;throw M(t)}}function vw(n,e){Se(n);try{return n.xc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return null;throw M(t)}}function O5(n,e){switch(e.g){case 2:case 1:return sc(n,e);case 3:case 4:return es(sc(n,e))}return On(),On(),Vi}function L5(n){var e;return 64&n.Db?Ws(n):((e=new gs(Ws(n))).a+=" (name: ",jr(e,n.zb),e.a+=")",e.a)}function i5e(n){var e;return(e=u(Rf(n.c.c,""),233))||(e=new Wv(p3(v3(new gv,""),"Other")),y1(n.c.c,"",e)),e}function UY(n,e,t){var i,r;return r=n.sb,n.sb=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,4,r,e),t?t.nj(i):t=i),t}function GY(n,e,t){var i,r;return r=n.r,n.r=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,8,r,n.r),t?t.nj(i):t=i),t}function v1(n,e){var t,i;return!(i=(t=u(e,691)).el())&&t.fl(i=L(e,90)?new RMn(n,u(e,29)):new sLn(n,u(e,156))),i}function Jk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Nc(n.g,e,n.g,e+1,n.i-e),Dt(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function Qk(n,e){var t;return t=new iL,n.a.Bd(t)?(T3(),new RL(Jn(WNn(n,t.a,e)))):(ua(n),T3(),T3(),eon)}function sBn(n,e){var t;0!=n.c.length&&(zX(t=u(Hf(n,K(cl,A1,10,n.c.length,0,1)),199),new rgn),eHn(t,e))}function fBn(n,e){var t;0!=n.c.length&&(zX(t=u(Hf(n,K(cl,A1,10,n.c.length,0,1)),199),new cgn),eHn(t,e))}function it(n,e){return Mi(n)?Tn(n,e):Jb(n)?iSn(n,e):Vb(n)?(Jn(n),x(n)===x(e)):RV(n)?n.Fb(e):LV(n)?eTn(n,e):LJ(n,e)}function Zo(n,e,t){if(e<0)Qnn(n,t);else{if(!t.rk())throw M(new Un(Aa+t.xe()+O8));u(t,69).wk().Ek(n,n.hi(),e)}}function hBn(n,e,t){if(n<0||e>t)throw M(new Ar(pS+n+Jtn+e+", size: "+t));if(n>e)throw M(new Un(pS+n+nXn+e))}function lBn(n){var e;return 64&n.Db?Ws(n):((e=new gs(Ws(n))).a+=" (source: ",jr(e,n.d),e.a+=")",e.a)}function aBn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function p1(n,e){var t;t=0!=(256&n.Bb),e?n.Bb|=256:n.Bb&=-257,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,2,t,e))}function zY(n,e){var t;t=0!=(256&n.Bb),e?n.Bb|=256:n.Bb&=-257,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,8,t,e))}function iA(n,e){var t;t=0!=(256&n.Bb),e?n.Bb|=256:n.Bb&=-257,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,8,t,e))}function m1(n,e){var t;t=0!=(512&n.Bb),e?n.Bb|=512:n.Bb&=-513,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,3,t,e))}function XY(n,e){var t;t=0!=(512&n.Bb),e?n.Bb|=512:n.Bb&=-513,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,9,t,e))}function D5(n,e){var t;return-1==n.b&&n.a&&(t=n.a.pk(),n.b=t?n.c.Hh(n.a.Lj(),t):St(n.c.Dh(),n.a)),n.c.yh(n.b,e)}function dBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),29),x(e)===x(t))return!0;return!1}function WY(n){var t;return n.k==(Xn(),Qt)&&((t=u(m(n,(V(),mc)),64))==(en(),zn)||t==ae)}function bBn(n){var e;return j0((e=BJ(n)).a,0)?(zb(),zb(),C_):(zb(),new QD(iD(e.a,0)?sQ(e)/pd(e.a):0))}function Yk(n,e){this.e=e,this.a=nxn(n),this.a<54?this.f=pd(n):this.c=(mh(),Ac(n,0)>=0?ga(n):c5(ga(d1(n))))}function wBn(n,e,t,i,r,c){this.e=new Z,this.f=(wr(),b9),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function gBn(n){return n=((n=((n-=n>>1&1431655765)>>2&858993459)+(858993459&n))>>4)+n&252645135,63&(n+=n>>8)+(n>>16)}function vBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),142),x(e)===x(t))return!0;return!1}function SF(n,e,t){var i,c;return(c=x4(n.b,e))&&(i=u(sS(Sk(n,c),""),29))?ken(n,i,e,t):null}function b5e(n,e){var t;if(L(t=Ey(n,e),331))return u(t,35);throw M(new Un(Aa+e+"' is not a valid attribute"))}function N5(n,e,t){var i;if(e>(i=n.gc()))throw M(new ew(e,i));if(n.Si()&&n.Hc(t))throw M(new Un(hj));n.Gi(e,t)}function ii(){ii=N,eh=new $7(v8,0),zr=new $7(Ep,1),$r=new $7(jp,2),nh=new $7(lR,3),hs=new $7("UP",4)}function Zk(){Zk=N,aO=new LD("P1_STRUCTURE",0),dO=new LD("P2_PROCESSING_ORDER",1),bO=new LD("P3_EXECUTION",2)}function pBn(){pBn=N,qre=ph(ph(M6(ph(ph(M6(Ke(new ei,(lp(),m9),(i8(),Mq)),k9),Lln),Nln),y9),Sln),$ln)}function g5e(n){switch(u(m(n,(V(),zd)),311).g){case 1:U(n,zd,(Pl(),xp));break;case 2:U(n,zd,(Pl(),$2))}}function mBn(n){switch(n.g){case 2:return zr;case 1:return $r;case 4:return nh;case 3:return hs;default:return eh}}function VY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new zo(e.d,0,e.a,e.b);default:return null}}function JY(n){switch(n.g){case 1:return Wn;case 2:return zn;case 3:return Zn;case 4:return ae;default:return hc}}function ny(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return zn;case 4:return Zn;default:return hc}}function rA(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return zn;default:return hc}}function QY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Tr,n,1,7)),n.n;case 2:return n.k}return qZ(n,e,t,i)}function $5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=$x(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):$x(n,e,t)}function PF(n,e){var t,i,r;null==n.d?(++n.e,--n.f):(r=e.ld(),function t3e(n,e,t){return++n.e,--n.f,u(n.d[e].gd(t),136).md()}(n,i=((t=e.Bi())&nt)%n.d.length,HHn(n,i,t,r)))}function y4(n,e){var t;t=0!=(n.Bb&Qs),e?n.Bb|=Qs:n.Bb&=-1025,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,10,t,e))}function j4(n,e){var t;t=0!=(n.Bb&Nw),e?n.Bb|=Nw:n.Bb&=-4097,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,12,t,e))}function E4(n,e){var t;t=0!=(n.Bb&Bu),e?n.Bb|=Bu:n.Bb&=-8193,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,15,t,e))}function C4(n,e){var t;t=0!=(n.Bb&_w),e?n.Bb|=_w:n.Bb&=-2049,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,11,t,e))}function p5e(n){var e;n.g&&(Den((e=n.c.kg()?n.f:n.a).a,n.o,!0),Den(e.a,n.o,!1),U(n.o,(cn(),Kt),(Ii(),c0)))}function m5e(n){var e;if(!n.a)throw M(new Sr("Cannot offset an unassigned cut."));n.b+=e=n.c-n.b,UIn(n,e),qIn(n,e)}function y5e(n){var e,t;for(t=RHn(Mo(n)).Kc();t.Ob();)if(r8(n,e=Oe(t.Pb())))return jpe((yCn(),Uoe),e);return null}function kBn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if((e=u(t.Pb(),218)).f&&n.b[e.c]<-1e-10)return e;return null}function E5e(n){var e,t,i;for(e=new Z,i=new C(n.b);i.ae?1:n==e?0==n?at(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function yBn(n,e,t){var r;if(n.c)Ann(n.c,e,t);else for(r=new C(n.b);r.a=1?zr:nh:t}function wa(n){if(n.c)wa(n.c);else if(n.d)throw M(new Sr("Stream already terminated, can't be modified or used"))}function J0(n,e,t){var i;return i=n.a.get(e),n.a.set(e,void 0===t?null:t),void 0===i?(++n.c,++n.b.g):++n.d,i}function O5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),_k(t,u(sn(e,i.p),16)))return i;return null}function ZY(n,e,t){var i;return i=0,e&&(Ng(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(Ng(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function L5e(n,e,t){var i;!(i=t)&&(i=kV(new yv,0)),i.Ug(OXn,2),MRn(n.b,e,i.eh(1)),function XIe(n,e,t){var r,c,s,f,h,l,a,d,g,v,k;for(_i(l=function Cje(n){var e,t,i,c,s;for(e=new Rg,t=new Rg,sa(e,n),sa(t,n);t.b!=t.c;)for(s=new C(u(Hv(t),36).a);s.aMh,kn=y.Math.abs(g.b-p.b)>Mh,(!t&&jn&&kn||t&&(jn||kn))&&xe(j.a,$)),Fi(j.a,i),0==i.b?g=$:(oe(0!=i.b),g=u(i.c.b.c,8)),Nme(v,d,k),SFn(r)==tn&&(Ki(tn.i)!=r.a&&Knn(k=new Oi,Ki(tn.i),I),U(j,qH,k)),gje(v,j,I),a.a.zc(v,a);Qi(j,_),Pi(j,tn)}for(l=a.a.ec().Kc();l.Ob();)Qi(h=u(l.Pb(),18),null),Pi(h,null);e.Vg()}(e,i.eh(1)),i.Vg()}function nZ(n,e,t){var i;return Q1(),OT(i=new KE,e),IT(i,t),n&&me((!n.a&&(n.a=new ni(Ro,n,5)),n.a),i),i}function OF(n){var e;return 64&n.Db?Ws(n):((e=new gs(Ws(n))).a+=" (identifier: ",jr(e,n.k),e.a+=")",e.a)}function LF(n,e){var t;t=0!=(n.Bb&Cc),e?n.Bb|=Cc:n.Bb&=-32769,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,18,t,e))}function eZ(n,e){var t;t=0!=(n.Bb&Cc),e?n.Bb|=Cc:n.Bb&=-32769,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,18,t,e))}function M4(n,e){var t;t=0!=(n.Bb&yh),e?n.Bb|=yh:n.Bb&=-16385,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,16,t,e))}function tZ(n,e){var t;t=0!=(n.Bb&sr),e?n.Bb|=sr:n.Bb&=-65537,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,20,t,e))}function iZ(n){var e;return(e=K(ds,jh,28,2,15,1))[0]=((n-=sr)>>10)+Uy&ri,e[1]=56320+(1023&n)&ri,ks(e,0,e.length)}function Yi(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n+e)&&t>22))&co,n.h+e.h+(i>>22)&Kl)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function Zi(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n*e)&&t>13|(15&n.m)<<9)*(f=8191&e.l),Bn=(r=n.m>>4&8191)*f,$n=(c=n.m>>17|(255&n.h)<<5)*f,te=((1048320&n.h)>>8)*f,0!=(h=e.l>>13|(15&e.m)<<9)&&(kn+=t*h,Bn+=i*h,$n+=r*h,te+=c*h),0!=(l=e.m>>4&8191)&&(Bn+=t*l,$n+=i*l,te+=r*l),0!=(a=e.m>>17|(255&e.h)<<5)&&($n+=t*a,te+=i*a),0!=(d=(1048320&e.h)>>8)&&(te+=t*d),k=((jn=t*f)>>22)+(kn>>9)+((262143&Bn)<<4)+((31&$n)<<17),$=(Bn>>18)+($n>>5)+((4095&te)<<8),$+=(k+=(g=(jn&co)+((511&kn)<<13))>>22)>>22,eu(g&=co,k&=co,$&=Kl)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function ms(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n-e)&&te?1:E0(isNaN(n),isNaN(e))}function Dl(){Dl=N,xU=new RC(v8,0),bE=new RC("POLYLINE",1),Ym=new RC("ORTHOGONAL",2),Qp=new RC("SPLINES",3)}function uA(){uA=N,L1n=new ID("ASPECT_RATIO_DRIVEN",0),iU=new ID("MAX_SCALE_DRIVEN",1),O1n=new ID("AREA_DRIVEN",2)}function Nl(n){var e,i;for(e=new Z,i=new C(n.j);i.ae){pLn(t);break}}ck(t,e)}function q5e(n,e,t){t.Ug("Straight Line Edge Routing",1),t.dh(e,ccn),uGn(n,u(z(e,(_g(),X2)),27)),t.dh(e,QS)}function rZ(n,e){0==n.n.c.length&&nn(n.n,new ZM(n.s,n.t,n.i)),nn(n.b,e),BZ(u(sn(n.n,n.n.c.length-1),209),e),HUn(n,e)}function F5(n){var e;this.a=new Go(e=u(n.e&&n.e(),9),u(Hs(e,e.length),9),0),this.b=K(pi,xn,1,this.a.a.length,5,1)}function Jr(n){return Array.isArray(n)&&n.Tm===Hb?sd(po(n))+"@"+(wt(n)>>>0).toString(16):n.toString()}function CBn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function cZ(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return QY(n,e,t,i)}function oA(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw M(new Un("Node "+e+" not part of edge "+n))}function ns(n,e,t,i){if(e<0)Cen(n,t,i);else{if(!t.rk())throw M(new Un(Aa+t.xe()+O8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function to(n){var e;if(n.b){if(to(n.b),n.b.d!=n.c)throw M(new Ho)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16))&&(n.d=e)}function W5e(n){var e,t,i;for(this.a=new hh,i=new C(n);i.a=r)return e.c+t;return e.c+e.b.gc()}function $F(n,e,t){var i,r;for(i=0,r=n.length;i0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function sZ(n){var e,t,i;for((i=new e1).a+="[",e=0,t=n.gc();e=0&&n.a[t]===e[t];t--);return t<0}(n,t.a))}function up(n){switch(en(),n.g){case 4:return zn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return hc}}function hZ(n){var t,i;for(i=F(R(n.a.of((Ue(),jO)))),t=new C(n.a.Sf());t.a=0;i--)if(Tn(n[i].d,e)||Tn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}(p_.me(n)))),t=0,i=n.j.length;tf.d&&(a=f.d+f.a+l);t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}(n),_t(new Mn(null,new Pn(n.d,16)),new x9n(n)),e}function wZ(n){BF(),this.c=Ff(S(T(CNe,1),xn,845,0,[nie])),this.b=new de,this.a=n,Xe(this.b,HI,1),iu(eie,new xkn(this))}function IBn(n,e,t){G$n(),ijn.call(this),this.a=hd(JQn,[J,iin],[603,217],0,[LP,N_],2),this.c=new Lv,this.g=n,this.f=e,this.d=t}function gZ(n,e){this.n=hd(Ja,[J,YB],[376,28],14,[e,di(y.Math.ceil(n/32))],2),this.o=n,this.p=e,this.j=n-1>>1,this.k=e-1>>1}function OBn(n){var e,t;e=n.d==(ap(),Mm),t=dnn(n),U(n.a,(cn(),Lh),e&&!t||!e&&t?(Xh(),uE):(Xh(),cE))}function BF(){BF=N,mC(),cn(),HI=Ob,eie=Ff(S(T(mU,1),zrn,149,0,[Hj,ef,_2,Ib,rg,tq,Rm,Km,iq,h9,K2,Zd,H2]))}function LBn(n,e){var t,i;if((i=new h3(n.a.ad(e,!0))).a.gc()<=1)throw M(new pv);return(t=i.a.ec().Kc()).Pb(),u(t.Pb(),40)}function vZ(n,e){return n.i>0&&(e.lengthn.i&&Dt(e,n.i,null),e}function fA(n){var e;return 64&n.Db?L5(n):((e=new gs(L5(n))).a+=" (instanceClassName: ",jr(e,n.D),e.a+=")",e.a)}function hA(n){var e,t,i,r;for(r=0,t=0,i=n.length;t0&&(n._j(),-1!=HHn(n,((i=null==e?0:wt(e))&nt)%n.d.length,i,e))}function DBn(n,e){var t,i;n.a=Yi(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,n.f=(i=n.e+(t=e-n.f))-n.e-t,n.e=i}function pZ(n,e){switch(e){case 3:return void U0(n,0);case 4:return void G0(n,0);case 5:return void ru(n,0);case 6:return void cu(n,0)}HY(n,e)}function Y0(n,e){switch(e.g){case 1:return Bv(n.j,(Nu(),iH));case 2:return Bv(n.j,(Nu(),rH));default:return On(),On(),Vi}}function mZ(n){var e;switch(D0(),(e=n.Pc()).length){case 0:return d_;case 1:return new pN(Se(e[0]));default:return new ZN(function B5e(n){var t,i;for(t=0,i=n.length;t0&&(n._j(),t=ren(n,((i=null==e?0:wt(e))&nt)%n.d.length,i,e))?t.md():null}function Qc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Jk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Jk(n,n.i,e),t}function xBn(n){var e;return Zb(),e=new ir(u(n.e.of((Ue(),tv)),8)),n.B.Hc((ro(),n6))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ga(n){var e,t;return mh(),t=Ae(n),0!=(e=Ae(ia(n,32)))?new GOn(t,e):t>10||t<0?new Tl(1,t):CQn[t]}function ty(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n%e)&&t=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function ry(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&0==i)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function S8e(n,e,t,i){var r,c,s;return r=!1,function OOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;return v=n.c[t],!((p=u(m(g=n.c[e],(V(),Kp)),15))&&0!=p.gc()&&p.Hc(v)||(k=g.k!=(Xn(),Ei)&&v.k!=Ei,j=u(m(g,Eb),10),A=u(m(v,Eb),10),I=j!=A,O=!!j&&j!=g||!!A&&A!=v,$=cx(g,(en(),zn)),_=cx(v,ae),O|=cx(g,ae)||cx(v,zn),X=O&&I||$||_,k&&X)||g.k==(Xn(),Gc)&&v.k==Ut||v.k==(Xn(),Gc)&&g.k==Ut)&&(r=yKn(n.e,a=n.c[e],c=n.c[t],(en(),Wn)),h=yKn(n.i,a,c,Zn),function oTe(n,e,t){n.d=0,n.b=0,e.k==(Xn(),Gc)&&t.k==Gc&&u(m(e,(V(),ot)),10)==u(m(t,ot),10)&&(L$(e).j==(en(),zn)?XHn(n,e,t):XHn(n,t,e)),e.k==Gc&&t.k==Ei?L$(e).j==(en(),zn)?n.d=1:n.b=1:t.k==Gc&&e.k==Ei&&(L$(t).j==(en(),zn)?n.b=1:n.d=1),function G9e(n,e,t){e.k==(Xn(),Ut)&&t.k==Ei&&(n.d=AF(e,(en(),ae)),n.b=AF(e,zn)),t.k==Ut&&e.k==Ei&&(n.d=AF(t,(en(),zn)),n.b=AF(t,ae))}(n,e,t)}(n.f,a,c),l=$xn(n.b,a,c)+u(r.a,17).a+u(h.a,17).a+n.f.d,f=$xn(n.b,c,a)+u(r.b,17).a+u(h.b,17).a+n.f.b,n.a&&(d=u(m(a,ot),12),s=u(m(c,ot),12),l+=u((i=tKn(n.g,d,s)).a,17).a,f+=u(i.b,17).a),l>f)}(n.f,t,i)&&(function J8e(n,e,t){var i,r;Mx(n.e,e,t,(en(),Wn)),Mx(n.i,e,t,Zn),n.a&&(r=u(m(e,(V(),ot)),12),i=u(m(t,ot),12),h$(n.g,r,i))}(n.f,n.a[e][t],n.a[e][i]),s=(c=n.a[e])[i],c[i]=c[t],c[t]=s,r=!0),r}function _Bn(n,e,t){var i,r,s;for(r=u(ee(n.b,t),183),i=0,s=new C(e.j);s.at;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<>5)+(0==(e&=31)?0:1),15,1),n.a,t,e),l5(c=new dd(n.e,r,i)),c}function P8e(n,e){var i;for(i=new ie(ce(Vt(n).a.Kc(),new Vn));ve(i);)if(u(fe(i),18).d.i.c==e)return!1;return!0}function jZ(n,e,t){var i,r,c;return r=R(mw(n,i=t[n.k.g][e.k.g])),c=R(mw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function O8e(n,e){return Of(),Of(),zs(ja),(y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)?0:ne?1:E0(isNaN(n),isNaN(e)))>0}function EZ(n,e){return Of(),Of(),zs(ja),(y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)?0:ne?1:E0(isNaN(n),isNaN(e)))<0}function qBn(n,e){return Of(),Of(),zs(ja),(y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)?0:ne?1:E0(isNaN(n),isNaN(e)))<=0}function HF(n,e){for(var t=0;!e[t]||""==e[t];)t++;for(var i=e[t++];t0&&this.b>0&&(this.g=CM(this.c,this.b,this.a))}function A4(n){if(!(Ph in n.a))throw M(new oh("Every element must have an id."));return dp(El(n,Ph))}function Z0(n){var e,t;for(t=w_n(n),e=null;2==n.c;)Ye(n),e||(Ze(),Ze(),Ld(e=new q6(2),t),t=e),t.Jm(w_n(n));return t}function dA(n,e){var t,i;return n._j(),(t=ren(n,((i=null==e?0:wt(e))&nt)%n.d.length,i,e))?(Q$n(n,t),t.md()):null}function JBn(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function D8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw M(new Un("Input edge is not connected to the input port."))}function TZ(n){switch(typeof n){case CB:return w1(n);case $tn:return Ov(n);case vp:return OAn(n);default:return null==n?0:T0(n)}}function ph(n,e){if(n.a<0)throw M(new Sr("Did not call before(...) or after(...) before calling add(...)."));return kW(n,n.a,e),n}function AZ(n){return nT(),L(n,162)?u(ee(TE,PQn),295).Rg(n):tu(TE,po(n))?u(ee(TE,po(n)),295).Rg(n):null}function uu(n){var t;return 32&n.Db||0!=(t=se(u(qn(n,16),29)||n.ii())-se(n.ii()))&&op(n,32,K(pi,xn,1,t,5,1)),n}function op(n,e,t){var i;n.Db&e?null==t?function vCe(n,e){var t,i,r,c,s,f,h;if(1==(i=gBn(254&n.Db)))n.Eb=null;else if(c=kd(n.Eb),2==i)r=fx(n,e),n.Eb=c[0==r?1:0];else{for(s=K(pi,xn,1,i-1,5,1),t=2,f=0,h=0;t<=128;t<<=1)t==e?++f:n.Db&t&&(s[h++]=c[f++]);n.Eb=s}n.Db&=~e}(n,e):-1==(i=fx(n,e))?n.Eb=t:Dt(kd(n.Eb),i,t):null!=t&&function KTe(n,e,t){var i,r,s,f,h,l;if(0==(r=gBn(254&n.Db)))n.Eb=t;else{if(1==r)f=K(pi,xn,1,2,5,1),0==fx(n,e)?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=K(pi,xn,1,r+1,5,1),s=kd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}(n,e,t)}function $8e(n,e,t,i){var r;0!=e.c.length&&(r=function IMe(n,e){var t,i,r,c,s;for(t=new Z,r=uc(new Mn(null,new Pn(n,16)),new Npn),c=uc(new Mn(null,new Pn(n,16)),new $pn),s=function K3e(n){var e;return ua(n),e=K(Ai,Mr,28,0,15,1),Tg(n.a,new C9n(e)),e}(function r3e(n){return wa(n),new SW(n,new DSn(n,n.a.e,4|n.a.d))}(cw(function fTe(n){var e,t,r,c,s,f,h,l;for(e=336,t=0,c=new VAn(n.length),h=0,l=(f=n).length;h=2*e&&nn(t,new hN(s[i-1]+e,s[i]-e));return t}(t,i),_t(ST(new Mn(null,new Pn(function OEe(n){var e,t,i,r,c,s,f;for(c=new hh,t=new C(n);t.a2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}(e),1)),new Dpn),new SIn(n,t,r,i)))}function bA(n){var e,t,i;if(!(i=n.Jh()))for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>ZB)return t.Qh();if((i=t.Jh())||t==n)break}return i}function YBn(n,e){var t;return x(e)===x(n)||!(!L(e,21)||(t=u(e,21),t.gc()!=n.gc()))&&n.Ic(t)}function wA(n,e){return Jn(n),null!=e&&(!!Tn(n,e)||n.length==e.length&&Tn(n.toLowerCase(),e.toLowerCase()))}function $l(n){var e,t;return Ac(n,-129)>0&&Ac(n,128)<0?(tPn(),e=Ae(n)+128,!(t=_un[e])&&(t=_un[e]=new HG(n)),t):new HG(n)}function Sd(){Sd=N,zw=new OC(Th,0),esn=new OC("INSIDE_PORT_SIDE_GROUPS",1),Z_=new OC("GROUP_MODEL_ORDER",2),nH=new OC(Min,3)}function R8e(n,e){var t,i;for(Gn(e,n.length),t=n.charCodeAt(e),i=e+1;iX&&(p.c=X-p.b),nn(s.d,new EN(p,VY(s,p))),I=e==zn?y.Math.max(I,k.b+l.b.Mf().b):y.Math.min(I,k.b));for((O=bZ((s.e=I+=e==zn?n.t:-n.t,s)))>0&&(u(Er(n.b,e),127).a.b=O),a=g.Kc();a.Ob();)(l=u(a.Pb(),117)).c&&!(l.c.d.c.length<=0)&&((p=l.c.i).c-=l.e.a,p.d-=l.e.b)}else XGn(n,e)}(n,e):XGn(n,e):n.u.Hc(qa)&&(t?function sLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A;if((a=u(u(ut(n.r,e),21),87)).gc()<=2||e==(en(),Zn)||e==(en(),Wn))szn(n,e);else{for(k=n.u.Hc((Xu(),Yp)),t=e==(en(),zn)?(V0(),kj):(V0(),mj),A=e==zn?(mu(),Zs):(mu(),Tf),i=Hz(rV(t),n.s),j=e==zn?Mt:fi,l=a.Kc();l.Ob();)(f=u(l.Pb(),117)).c&&!(f.c.d.c.length<=0)&&(p=f.b.Mf(),v=f.e,(g=(d=f.c).i).b=d.e.a+(c=d.n).b+c.c,g.a=d.e.b+(s=d.n).d+s.a,k?(g.c=v.a-(d.e.a+(r=d.n).b+r.c)-n.s,k=!1):g.c=v.a+p.a+n.s,fk(A,rin),d.f=A,mf(d,(Gu(),Ys)),nn(i.d,new EN(g,VY(i,g))),j=e==zn?y.Math.min(j,v.b):y.Math.max(j,v.b+f.b.Mf().b));for(bZ((i.e=j+=e==zn?-n.t:n.t,i)),h=a.Kc();h.Ob();)(f=u(h.Pb(),117)).c&&!(f.c.d.c.length<=0)&&((g=f.c.i).c-=f.e.a,g.d-=f.e.b)}}(n,e):szn(n,e))}function rRn(n){var e;x(z(n,(Ue(),nv)))===x((Ll(),MO))&&(Ct(n)?(e=u(z(Ct(n),nv),346),ft(n,nv,e)):ft(n,nv,R9))}function cRn(n,e,t){return new zo(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function uRn(n){var e;this.d=new Z,this.j=new Oi,this.g=new Oi,this.f=u(m(Ki(e=n.g.b),(cn(),$o)),88),this.e=F(R(mA(e,rg)))}function oRn(n){this.d=new Z,this.e=new h1,this.c=K(ye,_e,28,(en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])).length,15,1),this.b=n}function IZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new W(0,i);case 2:case 4:return new W(i,0);default:return null}}function sRn(n,e,t){var r;r=u(hk(e.f),205);try{r.rf(n,t),dIn(e.f,r)}catch(c){throw L(c=At(c),103),M(c)}}function fRn(n,e,t){var c,s,f,h;return c=null,(f=ytn(r4(),e))&&(s=null,null!=(h=mtn(f,t))&&(s=n.qf(f,h)),c=s),c}function GF(n,e,t,i){var r;if(e>=(r=n.length))return r;for(e=e>0?e:0;ei&&Dt(e,i,null),e}function hRn(n,e){var t,i;for(e.length<(i=n.a.length)&&(e=sC(new Array(i),e)),t=0;ti&&Dt(e,i,null),e}function S4(n,e){var t,i;++n.j,null!=e&&function cCe(n,e){var t,i,r;if(x(n)===x(e))return!0;if(null==n||null==e||n.length!=e.length)return!1;for(t=0;t>24}return t}(_c(n,!0))))throw M(new UL("Invalid hexBinary value: '"+n+"'"));return e}function gA(n,e,t){var i;e.a.length>0&&(nn(n.b,new OSn(e.a,t)),0<(i=e.a.length)?e.a=Xo(e.a,0,0):0>i&&(e.a+=DTn(K(ds,jh,28,-i,15,1))))}function lRn(n,e,t){var r;if(!t[e.d])for(t[e.d]=!0,r=new C(Qg(e));r.a=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=0?n.Wh(r):Nx(n,i):t<0?Nx(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function wRn(n){var t,i;for(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),t=(i=n.o).c.Kc();t.e!=t.i.gc();)u(t.Yj(),44).md();return jk(i)}function rn(n){var e;if(L(n.a,4)){if(null==(e=AZ(n.a)))throw M(new Sr(FWn+n.b+"'. "+$Wn+(yl(AE),AE.k)+xcn));return e}return n.a}function ue(n){var e;try{return e=n.i.Xb(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw L(t=At(t),77)?(n.Xj(),M(new tc)):M(t)}}function VF(n){var e;try{return e=n.c.Vi(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw L(t=At(t),77)?(n.Xj(),M(new tc)):M(t)}}function pA(n){var e,t,i,r;for(r=0,t=0,i=n.length;t=64&&e<128&&(r=vf(r,Us(1,e-64)));return r}function mA(n,e){var t,i;return i=null,vt(n,(Ue(),Vp))&&(t=u(m(n,Vp),96)).pf(e)&&(i=t.of(e)),null==i&&Ki(n)&&(i=m(Ki(n),e)),i}function h9e(n,e){var t;return t=u(m(n,(cn(),Nr)),75),GD(e,xZn)?t?jo(t):(t=new Su,U(n,Nr,t)):t&&U(n,Nr,null),t}function R5(){R5=N,Ue(),$on=hdn,K_=Uan,FYn=Q2,Non=x1,OA(),KYn=don,RYn=lon,_Yn=won,BYn=hon,yF(),xYn=Oon,R_=DYn,Don=NYn,FP=$Yn}function kA(n){switch(iX(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=lJ(nsn),this.b=Mt;break;case 3:case 1:this.a=nsn,this.b=fi}}function gRn(n,e,t){var r;if(n.c)ru(n.c,n.c.i+e),cu(n.c,n.c.j+t);else for(r=new C(n.b);r.a>4)<<24>>24,d[g++]=((15&t)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return p7(s=c[a++])&&p7(f=c[a++])?(e=ch[s],t=ch[f],h=c[a++],l=c[a++],-1==ch[h]||-1==ch[l]?61==h&&61==l?15&t?null:(Nc(d,0,j=K(Ku,E2,28,3*v+1,15,1),0,3*v),j[g]=(e<<2|t>>4)<<24>>24,j):61!=h&&61==l?3&(i=ch[h])?null:(Nc(d,0,j=K(Ku,E2,28,3*v+2,15,1),0,3*v),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((15&t)<<4|i>>2&15)<<24>>24,j):null:(i=ch[h],r=ch[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((15&t)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d)):null}(_c(n,!0))))throw M(new UL("Invalid base64Binary value: '"+n+"'"));return e}function is(n,e){var t;t=n.fd(e);try{return t.Pb()}catch(i){throw L(i=At(i),112)?M(new Ar("Can't get element "+e)):M(i)}}function vRn(n,e){var t,i,r;for(t=n.o,r=u(u(ut(n.r,e),21),87).Kc();r.Ob();)(i=u(r.Pb(),117)).e.a=g7e(i,t.a),i.e.b=t.b*F(R(i.b.of(DP)))}function pRn(n){var e;return(e=new V1).a+="n",n.k!=(Xn(),Ut)&&Re(Re((e.a+="(",e),YD(n.k).toLowerCase()),")"),Re((e.a+="_",e),oy(n)),e.a}function mRn(n,e){var t;switch(t=u(Er(n.b,e),127).n,e.g){case 1:n.t>=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function K5(){K5=N,eln=new P7(Xrn,0),aq=new P7(LR,1),dq=new P7("LINEAR_SEGMENTS",2),a9=new P7("BRANDES_KOEPF",3),d9=new P7(hWn,4)}function _5(){_5=N,Mj=new PC(kS,0),NP=new PC(aR,1),$P=new PC(dR,2),Tj=new PC(bR,3),Mj.a=!1,NP.a=!0,$P.a=!1,Tj.a=!0}function sp(){sp=N,jj=new SC(kS,0),yj=new SC(aR,1),Ej=new SC(dR,2),Cj=new SC(bR,3),jj.a=!1,yj.a=!0,Ej.a=!1,Cj.a=!0}function fp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh())>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i)),n.Ch(e,t,i))}function OZ(n,e){switch(e){case 7:return!n.e&&(n.e=new Dn(Xt,n,7,4)),void pe(n.e);case 8:return!n.d&&(n.d=new Dn(Xt,n,8,5)),void pe(n.d)}pZ(n,e)}function ft(n,e,t){return null==t?(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),dA(n.o,e)):(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),hy(n.o,e,t)),n}function kRn(n,e){var t,i,r,c;for(On(),t=n,c=e,L(n,21)&&!L(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function v9e(n,e,t,i){if(e.at.b)return!0}return!1}function JF(n,e){return Mi(n)?!!oQn[e]:n.Sm?!!n.Sm[e]:Jb(n)?!!uQn[e]:!!Vb(n)&&!!cQn[e]}function yRn(n,e){var t,i,r;for(r=n,i=new ie(ce(ki(e).a.Kc(),new Vn));ve(i);)(t=u(fe(i),18)).c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function jRn(n){var t,i,r;if(i=0,0==(r=Aw(n)).c.length)return 1;for(t=new C(r);t.a=0?n.Lh(s,t,!0):ib(n,c,t):u(c,69).wk().yk(n,n.hi(),r,t,i)}function ERn(n){var e,t;if(null==n)return null;for(t=K(cl,J,199,n.length,0,2),e=0;e=0)return r;if(n.ol())for(i=0;i=(r=n.gc()))throw M(new ew(e,r));if(n.Si()&&(i=n.dd(t))>=0&&i!=e)throw M(new Un(hj));return n.Xi(e,t)}function LZ(n,e){if(this.a=u(Se(n),253),this.b=u(Se(e),253),n.Ed(e)>0||n==(xL(),l_)||e==(BL(),a_))throw M(new Un("Invalid range: "+zLn(n,e)))}function CRn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new C(n.a);t.a0)for(i=new Hu(u(ut(n.a,c),21)),On(),Jt(i,new ez(e)),r=new Ni(c.b,0);r.b0),(e&-e)==e)return di(e*io(n,31)*4.656612873077393e-10);do{i=(t=io(n,31))%e}while(t-i+(e-1)<0);return di(i)}function cy(n,e,t,i){var r,c;for(r=e;r1&&(c=function S9e(n,e){var t,i,r;for(t=M0(new od,n),r=new C(e);r.a(h=null==n.d?0:n.d.length)){for(a=n.d,n.d=K(e0n,aun,66,2*h+4,0,1),c=0;c102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function rx(n,e){if(null==n)throw M(new Ev("null key in entry: null="+e));if(null==e)throw M(new Ev("null value in entry: "+n+"=null"))}function IRn(n,e){var t;return t=S(T(Ai,1),Mr,28,15,[EF(n.a[0],e),EF(n.a[1],e),EF(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function ORn(n,e){var t;return t=S(T(Ai,1),Mr,28,15,[nA(n.a[0],e),nA(n.a[1],e),nA(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function xZ(n,e,t){xv(u(m(e,(cn(),Kt)),101))||(QJ(n,e,E1(e,t)),QJ(n,e,E1(e,(en(),ae))),QJ(n,e,E1(e,zn)),On(),Jt(e.j,new x7n(n)))}function LRn(n){var e,t;for(n.c||function iOe(n){var e,t,i,r,c,s;if(r=new Ni(n.e,0),i=new Ni(n.a,0),n.d)for(t=0;tlK;){for(c=e,s=0;y.Math.abs(e-c)0),r.a.Xb(r.c=--r.b),pPe(n,n.b-s,c,i,r),oe(r.b0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t=0){for(h=null,f=new Ni(a.a,l+1);f.b0&&h[i]&&(p=xg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+p);for(c=new C(a.e);c.a_)?(h=2,s=nt):0==h?(h=1,s=tn):(h=0,s=tn):(v=tn>=s||s-tn0?(d=u(sn(g.c.a,s-1),10),jn=xg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+jn)):j=g.n.b-g.d.d,l=y.Math.min(j,l),sc&&Dt(e,c,null),e}function ux(n,e){var t,i,r;return t=e.ld(),r=e.md(),i=n.xc(t),!(!(x(r)===x(i)||null!=r&&it(r,i))||null==i&&!n._b(t))}function KZ(n,e,t,i){var r,c;this.a=e,this.c=i,function Hse(n,e){n.b=e}(this,new W(-(r=n.a).c,-r.d)),et(this.b,t),c=i/2,e.a?W6(this.b,0,c):W6(this.b,c,0),nn(n.c,this)}function KRn(n,e,t,i){var r;this.c=n,this.d=e,Nt(r=new yt,t,r.c.b,r.c),this.a=r,this.b=u(m(i,(bc(),Nb)),88),this.e=F(R(m(i,n1n))),Tzn(this)}function AA(){AA=N,Vq=new BC(Th,0),C1n=new BC(QXn,1),M1n=new BC("EDGE_LENGTH_BY_POSITION",2),E1n=new BC("CROSSING_MINIMIZATION_BY_POSITION",3)}function ox(n,e){var t,i;if(t=u(Wg(n.g,e),27))return t;if(i=u(Wg(n.j,e),123))return i;throw M(new oh("Referenced shape does not exist: "+e))}function _Z(n,e){var i;if(L(e,253)){i=u(e,253);try{return 0==n.Ed(i)}catch(r){if(L(r=At(r),212))return!1;throw M(r)}}return!1}function r7e(n,e){if(n.c==e)return n.d;if(n.d==e)return n.c;throw M(new Un("Node 'one' must be either source or target of edge 'edge'."))}function c7e(n,e){if(n.c.i==e)return n.d.i;if(n.d.i==e)return n.c.i;throw M(new Un("Node "+e+" is neither source nor target of edge "+n))}function o7e(n,e){var t;switch(e.g){case 2:case 4:n.c.d.n.b<(t=n.a).d.n.b&&(t=n.c),o1(n,e,(_f(),hH),t);break;case 1:case 3:o1(n,e,(_f(),Fp),null)}}function sx(n,e,t,i,r,c){var s,f,h,l,a;for(s=function oke(n,e,t){var i,r;switch(i=(r=n.b).d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}(e,t,c),f=t==(en(),zn)||t==Wn?-1:1,l=n[t.g],a=0;a0&&(h+=r),l[a]=s,s+=f*(h+i)}function _Rn(n){var e,t,i;for(n.n=K(Ai,Mr,28,i=n.f,15,1),n.d=K(Ai,Mr,28,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function zRn(n,e){var t;return t=S(T(Ai,1),Mr,28,15,[NZ(n,(yf(),vc),e),NZ(n,Zc,e),NZ(n,pc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function s7e(n,e,t){try{eS(n,e+n.j,t+n.k,!1,!0)}catch(r){throw L(r=At(r),77)?M(new Ar(r.g+jS+e+cr+t+").")):M(r)}}function f7e(n,e,t){try{eS(n,e+n.j,t+n.k,!0,!1)}catch(r){throw L(r=At(r),77)?M(new Ar(r.g+jS+e+cr+t+").")):M(r)}}function XRn(n){var e;vt(n,(cn(),Ab))&&((e=u(m(n,Ab),21)).Hc((Tw(),rf))?(e.Mc(rf),e.Fc(cf)):e.Hc(cf)&&(e.Mc(cf),e.Fc(rf)))}function WRn(n){var e;vt(n,(cn(),Ab))&&((e=u(m(n,Ab),21)).Hc((Tw(),of))?(e.Mc(of),e.Fc(Is)):e.Hc(Is)&&(e.Mc(Is),e.Fc(of)))}function hx(n,e,t,i){var r,c,s;return null==n.a&&function lje(n,e){var t,i,r,c;for(n.a=K(ye,_e,28,(c=e.b.j).c.length,15,1),r=0,i=0;i0&&(r.b+=e),r}function PA(n,e){var t,i,r;for(r=new Oi,i=n.Kc();i.Ob();)K4(t=u(i.Pb(),36),0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function JRn(n){var e,t,i;for(i=nt,t=new C(n.a);t.a>16==6?n.Cb.Th(n,5,Pf,e):(i=dr(u(Nn(u(qn(n,16),29)||n.ii(),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ZRn(n){var e,t,i;n.b==n.c&&(t=mY(y.Math.max(8,i=n.a.length))<<1,0!=n.b?(wFn(n,e=Hs(n.a,t),i),n.a=e,n.b=0):Ub(n.a,t),n.c=i)}function g7e(n,e){var t;return(t=n.b).pf((Ue(),so))?t.ag()==(en(),Wn)?-t.Mf().a-F(R(t.of(so))):e+F(R(t.of(so))):t.ag()==(en(),Wn)?-t.Mf().a:e}function oy(n){return 0!=n.b.c.length&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:qN(n)??""+(n.c?Hr(n.c.a,n,0):-1)}function IA(n){return 0!=n.f.c.length&&u(sn(n.f,0),72).a?u(sn(n.f,0),72).a:qN(n)??""+(n.i?Hr(n.i.j,n,0):-1)}function v7e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function qZ(n,e,t,i){return 0==e?i?(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),n.o):(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),jk(n.o)):yA(n,e,t,i)}function ax(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e>22),r+=i>>22,r<0)||(n.l=t&co,n.m=i&co,n.h=r&Kl,0))}function dx(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&0==h)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&0==f))}function Lr(n,e,t){var i,r;return Ad(r=new $L,e),Jc(r,t),me((!n.c&&(n.c=new q(Fb,n,12,10)),n.c),r),b1(i=r,0),bw(i,1),m1(i,!0),p1(i,!0),i}function hp(n,e){var t,i;if(e>=n.i)throw M(new FD(e,n.i));return++n.j,t=n.g[e],(i=n.i-e-1)>0&&Nc(n.g,e+1,n.g,e,i),Dt(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function nKn(n,e){var i;return n.Db>>16==17?n.Cb.Th(n,21,Ls,e):(i=dr(u(Nn(u(qn(n,16),29)||n.ii(),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function S7e(n){var e,t,i,r,c;for(r=nt,c=null,i=new C(n.d);i.at.a.c.length))throw M(new Un("index must be >= 0 and <= layer node count"));n.c&&pu(n.c.a,n),n.c=t,t&&P0(t.a,e,n)}function cKn(n,e){var t,i,r;for(i=new ie(ce(Nl(n).a.Kc(),new Vn));ve(i);)return t=u(fe(i),18),new GE(Se((r=u(e.Kb(t),10)).n.b+r.o.b/2));return b6(),b6(),h_}function uKn(n,e){this.c=new de,this.a=n,this.b=e,this.d=u(m(n,(V(),B2)),312),this.e=x(m(n,(cn(),Phn)))===x((Tk(),gI))?new ejn:new njn}function q5(n,e){var t,i;return i=null,n.pf((Ue(),Vp))&&(t=u(n.of(Vp),96)).pf(e)&&(i=t.of(e)),null==i&&n.Tf()&&(i=n.Tf().of(e)),null==i&&(i=rn(e)),i}function bx(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw L(r=At(r),112)?M(new Ar("Can't remove element "+e)):M(r)}}function zZ(n,e){var t,i,r;for(Jn(e),TW(e!=n),r=n.b.c.length,i=e.Kc();i.Ob();)t=i.Pb(),nn(n.b,Jn(t));return r!=n.b.c.length&&(OY(n,0),!0)}function sy(){sy=N,Ue(),Von=hE,new Li(MU,(Kn(),!0)),vZn=i0,pZn=tv,mZn=Ra,gZn=ev,Qon=lE,kZn=hg,UZ(),Won=bZn,zon=aZn,Xon=dZn,Jon=wZn,HP=lZn}function XZ(n,e,t,i){var r,c,f;for(Di(e,u(i.Xb(0),30)),f=i.kd(1,i.gc()),c=u(t.Kb(e),20).Kc();c.Ob();)XZ(n,(r=u(c.Pb(),18)).c.i==e?r.d.i:r.c.i,t,f)}function oKn(n){var e;return e=new de,vt(n,(V(),HH))?u(m(n,HH),85):(_t(rt(new Mn(null,new Pn(n.j,16)),new S2n),new b7n(e)),U(n,HH,e),e)}function sKn(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new C(n);s.a0?e:0),++t;return new W(i,r)}function WZ(n,e){var i;return n.Db>>16==6?n.Cb.Th(n,6,Xt,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),DO),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function VZ(n,e){var i;return n.Db>>16==7?n.Cb.Th(n,1,EE,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Jdn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function JZ(n,e){var i;return n.Db>>16==9?n.Cb.Th(n,9,Qe,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Ydn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function fKn(n,e){var i;return n.Db>>16==5?n.Cb.Th(n,9,HO,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),_1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function hKn(n,e){var i;return n.Db>>16==7?n.Cb.Th(n,6,Pf,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),q1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function QZ(n,e){var i;return n.Db>>16==3?n.Cb.Th(n,0,ME,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),K1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function lKn(){this.a=new wmn,this.g=new TA,this.j=new TA,this.b=new de,this.d=new TA,this.i=new TA,this.k=new de,this.c=new de,this.e=new de,this.f=new de}function x7e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;rZB)return I4(n,i);if(i==n)return!0}}return!1}function fy(n,e){var t,i,r;for(pu(n.a,e),n.e-=e.r+(0==n.a.c.length?0:n.c),r=ucn,i=new C(n.a);i.a>16==3?n.Cb.Th(n,12,Qe,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Vdn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ZZ(n,e){var i;return n.Db>>16==11?n.Cb.Th(n,10,Qe,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Qdn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function aKn(n,e){var i;return n.Db>>16==10?n.Cb.Th(n,11,Ls,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),H1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function dKn(n,e){var i;return n.Db>>16==10?n.Cb.Th(n,12,Ds,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),pg),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ys(n){var e;return!(1&n.Bb)&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ba(n,e),142),n.r!=e&&4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,9,8,e,n.r))),n.r}function wx(n,e,t){var i;return i=S(T(Ai,1),Mr,28,15,[Mnn(n,(yf(),vc),e,t),Mnn(n,Zc,e,t),Mnn(n,pc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function U7e(n,e){var t,i,r;if(0!=(r=function b9e(n,e){var t,i,r;for(r=new Vc(e.gc()),i=e.Kc();i.Ob();)(t=u(i.Pb(),293)).c==t.f?$4(n,t,t.c):xje(n,t)||Rn(r.c,t);return r}(n,e)).c.length)for(Jt(r,new Pgn),t=r.c.length,i=0;i>19)!=(l=e.h>>19)?l-h:(r=n.h)!=(f=e.h)?r-f:(i=n.m)!=(s=e.m)?i-s:n.l-e.l}function OA(){OA=N,ZA(),won=new Cn(Ztn,gon=D_),CT(),don=new Cn(nin,bon=L_),vA(),lon=new Cn(ein,aon=O_),hon=new Cn(tin,(Kn(),!0))}function U5(n,e,t){var i,r;i=e*t,L(n.g,154)?(r=Jv(n)).f.d?r.f.a||(n.d.a+=i+zf):(n.d.d-=i+zf,n.d.a+=i+zf):L(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function bKn(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new C(e.d);f.a0?n.b:0),++t;e.b=i,e.e=r}function wKn(n){var e,t,i;if(uCn(n.i,(i=n.b).length)){for(n.b=K(b_,Ky,303,t=2*i.length,0,1),n.c=K(b_,Ky,303,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)py(n,e,e);++n.g}}function G5(n,e){return n.b.a=y.Math.min(n.b.a,e.c),n.b.b=y.Math.min(n.b.b,e.d),n.a.a=y.Math.max(n.a.a,e.c),n.a.b=y.Math.max(n.a.b,e.d),Rn(n.c,e),!0}function Y7e(n,e,t){var i;(i=e.c.i).k==(Xn(),Ei)?(U(n,(V(),Af),u(m(i,Af),12)),U(n,Ss,u(m(i,Ss),12))):(U(n,(V(),Af),e.c),U(n,Ss,t.d))}function O4(n,e,t){var i,r,c,s,f,h;return f2(),s=e/2,c=t/2,f=1,h=1,(i=y.Math.abs(n.a))>s&&(f=s/i),(r=y.Math.abs(n.b))>c&&(h=c/r),lh(n,y.Math.min(f,h)),n}function gKn(){wC.call(this),this.e=-1,this.a=!1,this.p=Xi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Xi}function enn(){enn=N,jZn=Lu(Ke(Ke(Ke(new ei,(zi(),Uc),(nr(),Isn)),Uc,Osn),Gr,Lsn),Gr,msn),CZn=Ke(Ke(new ei,Uc,asn),Uc,ksn),EZn=Lu(new ei,Gr,jsn)}function hke(n,e){var t,i,r,c;for(c=new de,e.e=null,e.f=null,i=new C(e.i);i.a0)try{r=Io(e,Xi,nt)}catch(c){throw L(c=At(c),130)?M(new kT(c)):M(c)}return!n.a&&(n.a=new AL(n)),r<(t=n.a).i&&r>=0?u(D(t,r),58):null}(n,0==(r=e.c.length)?"":(Ln(0,e.c.length),Oe(e.c[0]))),i=1;i0&&(r=ren(n,(c&nt)%n.d.length,c,e))?r.nd(t):(i=n.ck(c,e,t),n.c.Fc(i),null)}function rnn(n,e){var t,i,r,c;switch(v1(n,e).Kl()){case 3:case 2:for(r=0,c=(t=l2(e)).i;r=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}(n,n)/KY(2.718281828459045,n))}function L4(n,e){var t;if(n.Yi()&&null!=e){for(t=0;t0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function EKn(n){var e;e=u(m(u(is(n.b,0),40),(bc(),Qln)),107),U(n,(bt(),Um),new W(0,0)),bUn(new kk,n,e.b+e.c-F(R(m(n,Iq))),e.d+e.a-F(R(m(n,Oq))))}function CKn(n,e){var i;if(i=!1,Mi(e)&&(i=!0,Uv(n,new rw(Oe(e)))),i||L(e,242)&&(i=!0,Uv(n,new zE(YW(u(e,242))))),!i)throw M(new qL(tun))}function onn(n){var e,t;switch(u(m(Ki(n),(cn(),jhn)),429).g){case 0:return new W((e=n.n).a+(t=n.o).a/2,e.b+t.b/2);case 1:return new ir(n.n);default:return null}}function ay(){ay=N,vI=new L6(Th,0),ofn=new L6("LEFTUP",1),ffn=new L6("RIGHTUP",2),ufn=new L6("LEFTDOWN",3),sfn=new L6("RIGHTDOWN",4),IH=new L6("BALANCED",5)}function snn(n,e,t){switch(e){case 1:return!n.n&&(n.n=new q(Tr,n,1,7)),pe(n.n),!n.n&&(n.n=new q(Tr,n,1,7)),void Bt(n.n,u(t,16));case 2:return void c4(n,Oe(t))}SY(n,e,t)}function fnn(n,e,t){switch(e){case 3:return void U0(n,F(R(t)));case 4:return void G0(n,F(R(t)));case 5:return void ru(n,F(R(t)));case 6:return void cu(n,F(R(t)))}snn(n,e,t)}function LA(n,e,t){var r,c;(r=qf(c=new $L,e,null))&&r.oj(),Jc(c,t),me((!n.c&&(n.c=new q(Fb,n,12,10)),n.c),c),b1(c,0),bw(c,1),m1(c,!0),p1(c,!0)}function hnn(n,e){var t,r;return L(t=A6(n.i,e),241)?((r=u(t,241)).zi(),r.wi()):L(t,507)?r=u(t,2037).b:null}function Ske(n,e,t,i){var r,c;return Se(e),Se(t),QNn(!!(c=u(J6(n.d,e),17)),"Row %s not in %s",e,n.e),QNn(!!(r=u(J6(n.b,t),17)),"Column %s not in %s",t,n.c),sxn(n,c.a,r.a,i)}function MKn(n,e,t,i,r,c,s){var f,h,l,a,d;if(d=URn(f=(l=c==s-1)?i:0,a=r[c]),10!=i&&S(T(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h1||-1==f?(c=u(h,15),r.Wb(function l8e(n,e){var i,r,c;for(r=new Vc(e.gc()),i=e.Kc();i.Ob();)(c=nB(n,u(i.Pb(),58)))&&Rn(r.c,c);return r}(n,c))):r.Wb(nB(n,u(h,58))))}function Fke(n,e){var t,i,r;for(r=new WE(new rd(n.b).a.vc().Kc());r.a.Ob();)if(t=u(r.a.Pb(),44),i=u(t.ld(),34),UX(e,u(i,17))<0)return!1;return!0}function xke(n,e){var t,i,r;for(r=new WE(new rd(n.b).a.vc().Kc());r.a.Ob();)if(t=u(r.a.Pb(),44),i=u(t.ld(),34),UX(e,u(i,17))>0)return!1;return!0}function Rke(n){switch(u(m(n.b,(cn(),whn)),387).g){case 1:_t(Kr(uc(new Mn(null,new Pn(n.d,16)),new yvn),new jvn),new Evn);break;case 2:!function NAe(n){var e,t,i,r,c,s,f;for(i=0,f=0,s=new C(n.d);s.a=n.f)break;Rn(c.c,t)}return c}function Qke(n,e){var t,i,c,s;for(c=new C(e.a);c.a0&&eKn(this,this.c-1,(en(),Zn)),this.c0&&n[0].length>0&&(this.c=on(un(m(Ki(n[0][0]),(V(),Cfn))))),this.a=K(Tie,J,2117,n.length,0,2),this.b=K(Aie,J,2118,n.length,0,2),this.d=new Vxn}function tye(n){return 0!=n.c.length&&((Ln(0,n.c.length),u(n.c[0],18)).c.i.k==(Xn(),Ei)||zg(Kr(new Mn(null,new Pn(n,16)),new tpn),new ipn))}function NKn(n,e){var i,r,c,s,f,h;for(f=Aw(e),s=y.Math.sqrt((c=e.f)*c+(h=e.g)*h),r=0,i=new C(f);i.a=0?(t=ly(n,gS),i=ty(n,gS)):(t=ly(e=ia(n,1),5e8),i=Yi(Us(i=ty(e,5e8),1),vi(n,1))),vf(Us(i,32),vi(t,vr))}function xKn(n,e,t){var i;switch(oe(0!=e.b),i=u(Qo(e,e.a.a),8),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return ck(ge(e,0),i),e}function BKn(n,e,t,i){var r,c,s,f;switch(f=IZ(s=(c=e.d).j,n.b.d[s.g],t),r=et(Bi(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}Nt(i,f,i.c.b,i.c)}function bye(n,e,t){var i,r,c,s;for(s=Hr(n.e,e,0),(c=new mz).b=t,i=new Ni(n.e,s);i.b=0;e--)ion[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)ton[n]=t,t*=.5}function kye(n){var e,t;if(on(un(z(n,(cn(),ng)))))for(t=new ie(ce(xl(n).a.Kc(),new Vn));ve(t);)if(tb(e=u(fe(t),74))&&on(un(z(e,Vd))))return!0;return!1}function RKn(n,e){var t,i,r;oi(n.f,e)&&(e.b=n,-1!=Hr(n.j,i=e.c,0)||nn(n.j,i),-1!=Hr(n.j,r=e.d,0)||nn(n.j,r),0!=(t=e.a.b).c.length&&(!n.i&&(n.i=new uRn(n)),function Mme(n,e){var t,i;for(i=new C(e);i.a=0&&Tn(n.substr(e,3),"GMT")||e>=0&&Tn(n.substr(e,3),"UTC"))&&(t[0]=e+3),function etn(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(Gi(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],0==(s=KA(n,e))&&e[0]==c)return!1;if(e[0]0&&Nc(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r=sr?(t=56320+(n-sr&1023)&ri,String.fromCharCode(Uy+(n-sr>>10&1023)&ri)+""+String.fromCharCode(t)):String.fromCharCode(n&ri)}function HKn(n,e,t,i,r){var c,s,f;for(c=Aqn(n,e,t,i,r),f=!1;!c;)HA(n,r,!0),f=!0,c=Aqn(n,e,t,i,r);f&&HA(n,r,!1),0!=(s=sF(r)).c.length&&(n.d&&n.d.Gg(s),HKn(n,r,t,i,s))}function FA(){FA=N,RU=new F6(Th,0),Edn=new F6("DIRECTED",1),Mdn=new F6("UNDIRECTED",2),ydn=new F6("ASSOCIATION",3),Cdn=new F6("GENERALIZATION",4),jdn=new F6("DEPENDENCY",5)}function D4(n,e){var t,i;for(Jn(e),i=n.b.c.length,nn(n.b,e);i>0;){if(t=i,n.a.Ne(sn(n.b,i=(i-1)/2|0),e)<=0)return Vo(n.b,t,e),!0;Vo(n.b,t,sn(n.b,i))}return Vo(n.b,i,e),!0}function Mnn(n,e,t,i){var r,c;if(r=0,t)r=nA(n.a[t.g][e.g],i);else for(c=0;c=f}function qKn(n){switch(n.g){case 0:return new u4n;case 1:return new o4n;default:throw M(new Un("No implementation is available for the width approximator "+(null!=n.f?n.f:""+n.g)))}}function Tnn(n,e,t,i){var r;if(r=!1,Mi(i)&&(r=!0,N3(e,t,Oe(i))),r||Vb(i)&&(r=!0,Tnn(n,e,t,i)),r||L(i,242)&&(r=!0,wd(e,t,u(i,242))),!r)throw M(new qL(tun))}function UKn(n,e){var t,i,r,c;if(Jn(e),(c=n.a.gc())=T1?"error":"warn",n.a),n.b&&Ien(e,t,n.b,"Exception: ",!0))}function m(n,e){var t;return!n.q&&(n.q=new de),ee(n.q,e)??(L(t=e.Sg(),4)&&(null==t?(!n.q&&(n.q=new de),Yv(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t))),t)}function zi(){zi=N,nf=new M7("P1_CYCLE_BREAKING",0),rl=new M7("P2_LAYERING",1),$c=new M7("P3_NODE_ORDERING",2),Uc=new M7("P4_NODE_PLACEMENT",3),Gr=new M7("P5_EDGE_ROUTING",4)}function zye(n,e){var t;if(p5(),n.c==e.c){if(n.b==e.b||function Z4e(n,e){return a4(),n==mb&&e==Gw||n==Gw&&e==mb||n==S2&&e==Uw||n==Uw&&e==S2}(n.b,e.b)){if(t=function Cle(n){return n==mb||n==Gw}(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return Tc(n.b.g,e.b.g)}return at(n.c,e.c)}function VKn(n,e){var t,i;if(Inn(n,e))return!0;for(i=new C(e);i.a=(r=n.Ej())||e<0)throw M(new Ar(qK+e+_d+r));if(t>=r||t<0)throw M(new Ar(UK+t+_d+r));return e!=t?(c=n.Cj(t),n.qj(e,c),i=c):i=n.xj(t),i}function YKn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>ZB)return YKn(t);if(i=t,t==n)throw M(new Sr("There is a cycle in the containment hierarchy of "+n))}return i}function pa(n){var e,t,i;for(i=new Cd(cr,"[","]"),t=n.Kc();t.Ob();)Al(i,x(e=t.Pb())===x(n)?"(this Collection)":null==e?yu:Jr(e));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function Inn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ma(){ma=N,hne=S(T(fr,1),Pc,64,0,[(en(),zn),Zn,ae]),fne=S(T(fr,1),Pc,64,0,[Zn,ae,Wn]),lne=S(T(fr,1),Pc,64,0,[ae,Wn,zn]),ane=S(T(fr,1),Pc,64,0,[Wn,zn,Zn])}function Wye(n,e,t,i){var r,s,f,h,a;if((s=n.c.d).j!=(f=n.d.d).j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=0==e?rA(r):JY(r),xe(i,et(IZ(r,a.d[r.g],t),IZ(h,a.d[h.g],t))),r=h}function Vye(n,e,t,i){var r,c,s,f,h;return f=u((s=tKn(n.a,e,t)).a,17).a,c=u(s.b,17).a,i&&(h=u(m(e,(V(),Wu)),10),r=u(m(t,Wu),10),h&&r&&(qLn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function n_n(n){var e,t,i,r,c,f,h,l;for(this.a=ERn(n),this.b=new Z,i=0,r=(t=n).length;i0&&(n.a[Fh.p]=H0n++)}for(r7=0,Ko=0,hf=(It=t).length;Ko0;){for(oe(lv.b>0),c3=0,f=new C((Fh=u(lv.a.Xb(lv.c=--lv.b),12)).e);f.a0&&(Fh.j==(en(),zn)?(n.a[Fh.p]=r7,++r7):(n.a[Fh.p]=r7+lf+i3,++i3))}r7+=i3}for(Kb=new de,p=new hh,Zu=0,hv=(te=e).length;Zul.b&&(l.b=xh)):Fh.i.c==Bse&&(xhl.c&&(l.c=xh));for(V3(k,0,k.length,null),u3=K(ye,_e,28,k.length,15,1),i=K(ye,_e,28,r7+1,15,1),A=0;A0;)tn%2>0&&(r+=cG[tn+1]),++cG[tn=(tn-1)/2|0];for(kn=K(Nie,xn,374,2*k.length,0,1),$=0;$eN(n.d).c?(n.i+=n.g.c,_F(n.d)):eN(n.d).c>eN(n.g).c?(n.e+=n.d.c,_F(n.g)):(n.i+=lPn(n.g),n.e+=lPn(n.d),_F(n.g),_F(n.d))}function t_n(n,e,t,i){n.a.d=y.Math.min(e,t),n.a.a=y.Math.max(e,i)-n.a.d,ef&&(h=f/i),(r=y.Math.abs(e.b-n.b))>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function ije(n,e,t,i,r){var c,s;for(s=!1,c=u(sn(t.b,0),27);LPe(n,e,c,i,r)&&(s=!0,Dke(t,c),0!=t.b.c.length);)c=u(sn(t.b,0),27);return 0==t.b.c.length&&fy(t.j,t),s&&SA(e.q),s}function rje(n,e){var t,i,r,c;if(f2(),e.b<2)return!1;for(i=t=u(be(c=ge(e,0)),8);c.b!=c.d.c;){if(Hx(n,i,r=u(be(c),8)))return!0;i=r}return!!Hx(n,i,t)}function Lnn(n,e,t,i){return 0==t?(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),fM(n.o,e,i)):u(Nn(u(qn(n,16),29)||n.ii(),t),69).wk().Ak(n,uu(n),t-se(n.ii()),e,i)}function Tx(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,z9,t)),e&&(t=u(e,54).Rh(n,1,z9,t)),(t=UY(n,e,t))&&t.oj()):4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,4,e,e))}function r_n(n,e){var t,i;i=u(m(e,(cn(),Kt)),101),U(e,(V(),Pfn),i),(t=e.e)&&(_t(new Mn(null,new Pn(t.a,16)),new ZG(n)),_t(uc(new Mn(null,new Pn(t.b,16)),new hG),new nz(n)))}function Xn(){Xn=N,Ut=new P6("NORMAL",0),Ei=new P6("LONG_EDGE",1),Qt=new P6("EXTERNAL_PORT",2),Gc=new P6("NORTH_SOUTH_PORT",3),Oc=new P6("LABEL",4),Jf=new P6("BREAKING_POINT",5)}function c_n(n,e){var t,i,r;return(e&=63)<22?(t=n.l<>22-e,r=n.h<>22-e):e<44?(t=0,i=n.l<>44-e):(t=0,i=0,r=n.l<n)throw M(new Un("k must be smaller than n"));return 0==e||e==n?1:0==n?0:cnn(n)/(cnn(e)*cnn(n-e))}function Dnn(n,e){var t,i,r,c;for(t=new VX(n);null!=t.g||t.c?null==t.g||0!=t.i&&u(t.g[t.i-1],51).Ob():AJ(t);)if(L(c=u(qA(t),58),167))for(i=u(c,167),r=0;r0&&Ty(n,t,e),r):function aCe(n,e,t){var i,r,c;return r=n.c[t.c.p][t.p],null!=(i=n.c[e.c.p][e.p]).a&&null!=r.a?((c=TN(i.a,r.a))<0?Ty(n,e,t):c>0&&Ty(n,t,e),c):null!=i.a?(Ty(n,e,t),-1):null!=r.a?(Ty(n,t,e),1):0}(n,e,t)}function ka(){ka=N,Ue(),dce=Wp,bce=r0,fce=i0,hce=tv,lce=Ra,sce=ev,v1n=lE,ace=hg,Xen(),zq=Qre,Xq=Yre,m1n=tce,Wq=cce,k1n=ice,y1n=rce,p1n=Zre,uO=nce,oO=ece,Zj=uce,j1n=oce,g1n=Jre}function s_n(n,e){var t,i,r,c,s;if(n.e<=e||function W2e(n,e,t){var i;return(i=s8(n,e,!1)).b<=e&&i.a<=t}(n,n.g,e))return n.g;for(s=n.r,r=((c=n.r)-(i=n.g))/2+i;i+11&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function Pje(n){var e,t,i,r;switch(e=(r=n.i).b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function h_n(n,e,t,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function Oje(n){if(L(n,143))return function sTe(n){var t,i,l,a,d;return d=Enn(n),null!=n.a&&N3(d,"category",n.a),!v7(new rd(n.d))&&(kf(d,"knownOptions",l=new td),t=new ayn(l),_i(new rd(n.d),t)),!v7(n.g)&&(kf(d,"supportedFeatures",a=new td),i=new dyn(a),_i(n.g,i)),d}(u(n,143));if(L(n,233))return function Y5e(n){var e,r,c;return c=Enn(n),!v7(n.c)&&(kf(c,"knownLayouters",r=new td),e=new byn(r),_i(n.c,e)),c}(u(n,233));if(L(n,23))return function fje(n){var e,h,l;return l=Enn(n),null!=n.e&&N3(l,cP,n.e),!!n.k&&N3(l,"type",YD(n.k)),!v7(n.j)&&(h=new td,kf(l,_K,h),e=new wyn(h),_i(n.j,e)),l}(u(n,23));throw M(new Un(iun+pa(new _u(S(T(pi,1),xn,1,5,[n])))))}function xnn(n,e,t,i){var r,c;if(e.k==(Xn(),Ei))for(c=new ie(ce(ki(e).a.Kc(),new Vn));ve(c);)if((r=u(fe(c),18)).c.i.k==Ei&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0;return!1}function l_n(n,e,t,i){var r;this.b=i,this.e=n==(z0(),g9),this.d=hd(fo,[J,el],[183,28],16,[(r=e[t]).length,r.length],2),this.a=hd(ye,[J,_e],[53,28],15,[r.length,r.length],2),this.c=new pnn(e,t)}function Nje(n){var t,i;for(n.k=new IJ((en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])).length,n.j.c.length),i=new C(n.j);i.a=t)return $4(n,e,i.p),!0;return!1}function c2(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=r$n((Gn(e,n.length+1),n.substr(e)),(uN(),non)),f=0;fc&&owe(l,r$n(t[f],non))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function d_n(n){var e;return 64&n.Db?Ax(n):(e=new yo(zcn),!n.a||Re(Re((e.a+=' "',e),n.a),'"'),Re(v0(Re(v0(Re(v0(Re(v0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function b_n(n,e,t){var i,r,c,s,f;for(f=ou(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;s0&&v_n(n,c,t));e.p=0}function ln(n){var e;this.c=new yt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,this.j=n.i?n.i:new Go(e=u(df(ol),9),u(Hs(e,e.length),9),0),this.g=n.f}function p_n(n,e,t){var i,r,c;if(!(t<=e+2))for(r=(t-e)/2|0,i=0;i=0?n.ki(r):Qnn(n,i)}else Zo(n,t,i)}function Bnn(n){var e,t;if(t=null,e=!1,L(n,211)&&(e=!0,t=u(n,211).a),e||L(n,263)&&(e=!0,t=""+u(n,263).a),e||L(n,493)&&(e=!0,t=""+u(n,493).a),!e)throw M(new qL(tun));return t}function Rnn(n,e,t){var i,r,s,f,h;for(h=ou(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s=n.d.b.c.length&&((e=new xc(n.d)).p=i.p-1,nn(n.d.b,e),(t=new xc(n.d)).p=i.p,nn(n.d.b,t)),Di(i,u(sn(n.d.b,i.p),30))}function Hnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,!(i=t)&&(i=new kk),xe(i.b,e),c=n.a[e.g].Kc();c.Ob();)(r=u(c.Pb(),65)).b!=e&&Hnn(n,r.b,i),r.c!=e&&Hnn(n,r.c,i),xe(i.a,r);return i}return null}function Gje(n,e){var t;return 0!=n.c.length&&(t=$Bn((Ln(0,n.c.length),u(n.c[0],18)).c.i),Eo(),t==(kw(),U2)||t==q2||zg(Kr(new Mn(null,new Pn(n,16)),new rpn),new ekn(e)))}function Ox(n,e){if(L(e,207))return function Rle(n,e){return FT(xN(n.g),e)}(n,u(e,27));if(L(e,193))return function Kle(n,e){return FT(xN(n.j),e)}(n,u(e,123));if(L(e,452))return function Ble(n,e){return FT(xN(n.d),e)}(n,u(e,166));throw M(new Un(iun+pa(new _u(S(T(pi,1),xn,1,5,[e])))))}function E_n(n,e,t){var i,r;if(this.f=n,uQ(t,r=(i=u(ee(n.b,e),260))?i.a:0),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)IQ(this);this.b=e,this.a=null}function zje(n,e){var t,i;e.a?function TTe(n,e){var t;if(!ik(n.b,e.b))throw M(new Sr("Invalid hitboxes for scanline constraint calculation."));(ixn(e.b,u(function Khe(n,e){return n.a.Yc(e)}(n.b,e.b),60))||ixn(e.b,u(function Rhe(n,e){return n.a.Xc(e)}(n.b,e.b),60)))&&(ml(),String.fromCharCode(10)),n.a[e.b.f]=u(nD(n.b,e.b),60),(t=u(ZL(n.b,e.b),60))&&(n.a[t.f]=e.b)}(n,e):((t=u(nD(n.b,e.b),60))&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),(i=u(ZL(n.b,e.b),60))&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),XD(n.b,e.b))}function C_n(n,e){var t,i;if(t=u(Er(n.b,e),127),u(u(ut(n.r,e),21),87).dc())return t.n.b=0,void(t.n.c=0);t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((mo(),u0))&&Jqn(n,e),i=function k9e(n,e){var t,i,r;for(r=0,i=u(u(ut(n.r,e),21),87).Kc();i.Ob();)r+=(t=u(i.Pb(),117)).d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}(n,e),Ux(n,e)==(Zg(),_a)&&(i+=2*n.w),t.a.a=i}function M_n(n,e){var t,i;if(t=u(Er(n.b,e),127),u(u(ut(n.r,e),21),87).dc())return t.n.d=0,void(t.n.a=0);t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((mo(),u0))&&Qqn(n,e),i=function m9e(n,e){var t,i,r;for(r=0,i=u(u(ut(n.r,e),21),87).Kc();i.Ob();)r+=(t=u(i.Pb(),117)).d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}(n,e),Ux(n,e)==(Zg(),_a)&&(i+=2*n.w),t.a.b=i}function Xje(n,e){var t,i,r,c;for(c=new Z,i=new C(e);i.ai&&(Gn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||et.a&&(i.Hc((Id(),L9))?r=(e.a-t.a)/2:i.Hc(D9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((Id(),$9))?c=(e.b-t.b)/2:i.Hc(N9)&&(c=e.b-t.b)),Ann(n,r,c)}function L_n(n,e,t,i,r,c,s,f,h,l,a,d,g){L(n.Cb,90)&&Mw(no(u(n.Cb,90)),4),Jc(n,t),n.f=s,j4(n,f),C4(n,h),y4(n,l),E4(n,a),m1(n,d),M4(n,g),p1(n,!0),b1(n,r),n.Zk(c),Ad(n,e),null!=i&&(n.i=null,RT(n,i))}function Xnn(n,e,t){if(n<0)return t8(Pzn,S(T(pi,1),xn,1,5,[t,Y(n)]));if(e<0)throw M(new Un(Izn+e));return t8("%s (%s) must not be greater than size (%s)",S(T(pi,1),xn,1,5,[t,Y(n),Y(e)]))}function Wnn(n,e,t,i,r,c){var f,h,l;if(i-t<7)!function _5e(n,e,t,i){var r,c,s;for(r=e+1;re&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],Dt(n,c,n[c-1]),Dt(n,c-1,s)}(e,t,i,c);else if(Wnn(e,n,h=t+r,l=h+((f=i+r)-h>>1),-r,c),Wnn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0)for(;t=i||e=0?n.bi(c,t):Cen(n,r,t)}else ns(n,i,r,t)}function D_n(n){var e,t;if(n.f){for(;n.n>0;){if(L(t=(e=u(n.k.Xb(n.n-1),76)).Lk(),102)&&u(t,19).Bb&Cc&&(!n.e||t.pk()!=e6||0!=t.Lj())&&null!=e.md())return!0;--n.n}return!1}return n.n>0}function N_n(n){var e,t,i,r;if(t=u(n,54)._h())try{if(i=null,(e=x4((Y1(),Ns),mUn(function Z5e(n){return null==n.e?n:(!n.c&&(n.c=new zx(0!=(256&n.f),n.i,n.a,n.d,0!=(16&n.f),n.j,n.g,null)),n.c)}(t))))&&(r=e.ai())&&(i=r.Fl(function nhe(n){return Jn(n),n}(t.e))),i&&i!=n)return N_n(i)}catch(c){if(!L(c=At(c),63))throw M(c)}return n}function fEe(n,e,t){var i,r;t.Ug("Remove overlaps",1),t.dh(e,ccn),i=u(z(e,(_g(),X2)),27),n.f=i,n.a=QF(u(z(e,(ka(),Zj)),300)),KG(n,(Jn(r=R(z(e,(Ue(),r0)))),r)),_Gn(n,e,Aw(i),t),t.dh(e,QS)}function $_n(n){if(!n)return $jn(),vQn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=m_[typeof e];return t?t(e):xY(typeof e)}return n instanceof Array||n instanceof y.Array?new NG(n):new s7(n)}function F_n(n,e,t){var i,r,c;switch(c=n.o,(r=(i=u(Er(n.p,t),252)).i).b=V5(i),r.a=W5(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}iB(i),rB(i)}function x_n(n,e,t){var i,r,c;switch(c=n.o,(r=(i=u(Er(n.p,t),252)).i).b=V5(i),r.a=W5(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}iB(i),rB(i)}function dEe(n,e){var t,i,r,c;if(f2(),e.b<2)return!1;for(i=t=u(be(c=ge(e,0)),8);c.b!=c.d.c;){if(r=u(be(c),8),!o4(n,i)||!o4(n,r))return!1;i=r}return!(!o4(n,i)||!o4(n,t))}function Vnn(n,e){var s,f,h,l,d;return s=Ol(d=n,"x"),function G3e(n,e){ru(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new Zkn(e).a,s),f=Ol(d,"y"),function z3e(n,e){cu(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new nyn(e).a,f),h=Ol(d,xK),function X3e(n,e){G0(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new eyn(e).a,h),l=Ol(d,FK),function W3e(n,e){U0(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new tyn(e).a,l),l}function Mw(n,e){Xqn(n,e),1&n.b&&(n.a.a=null),2&n.b&&(n.a.f=null),4&n.b&&(n.a.g=null,n.a.i=null),16&n.b&&(n.a.d=null,n.a.e=null),8&n.b&&(n.a.b=null),32&n.b&&(n.a.j=null,n.a.c=null)}function gEe(n){var e,t,i,r,c;if(null==n)return yu;for(c=new Cd(cr,"[","]"),i=0,r=(t=n).length;i(Ln(f+1,e.c.length),u(e.c[f+1],17)).a-i&&++l,nn(s,(Ln(f+l,e.c.length),u(e.c[f+l],17))),h+=(Ln(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t=0?n.Lh(t,!0,!0):ib(n,r,!0),160),u(i,220).Zl(e)}function Ynn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?0==n?0:((e=n<0)&&(n=-n),t=di(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):nxn(Ec(n))}function LEe(n,e,t){t.Ug("Eades radial",1),t.dh(e,QS),n.d=u(z(e,(_g(),X2)),27),n.c=F(R(z(e,(ka(),oO)))),n.e=QF(u(z(e,Zj),300)),n.a=function o8e(n){switch(n.g){case 0:return new Q3n;case 1:return new Y3n;default:throw M(new Un(wK+(null!=n.f?n.f:""+n.g)))}}(u(z(e,j1n),434)),n.b=function Ake(n){switch(n.g){case 1:return new G3n;case 2:return new z3n;case 3:return new U3n;case 0:return null;default:throw M(new Un(wK+(null!=n.f?n.f:""+n.g)))}}(u(z(e,p1n),354)),function fke(n){var e,t,i,r,c;if(i=0,r=p2,n.b)for(e=0;e<360;e++)Yen(n,n.d,0,0,Rd,t=.017453292519943295*e),(c=n.b.Dg(n.d))=(c=s.gc()))s.$b();else for(r=s.Kc(),i=0;i0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=Xjn(nF(cw(rt(zV(n.a),new fbn),new hbn)));return f>0?f+n.n.d+n.n.a:0}function V5(n){var e,t,i,r,c,f;if(f=0,0==n.b)f=Xjn(nF(cw(rt(zV(n.a),new obn),new sbn)));else{for(e=0,r=0,c=(i=ORn(n,!0)).length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function KEe(n){var e,t;if(2!=n.c.length)throw M(new Sr("Order only allowed for two paths."));Ln(0,n.c.length),e=u(n.c[0],18),Ln(1,n.c.length),t=u(n.c[1],18),e.d.i!=t.c.i&&(n.c.length=0,Rn(n.c,t),Rn(n.c,e))}function V_n(n,e,t){var i;for($g(t,e.g,e.f),qo(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i;i++)V_n(n,u(D((!e.a&&(e.a=new q(Qe,e,10,11)),e.a),i),27),u(D((!t.a&&(t.a=new q(Qe,t,10,11)),t.a),i),27))}function J_n(n){var e,t;return(t=new V1).a+="e_",null!=(e=function Fme(n){return 0!=n.b.c.length&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:qN(n)}(n))&&(t.a+=""+e),n.c&&n.d&&(Re((t.a+=" ",t),IA(n.c)),Re(Fc((t.a+="[",t),n.c.i),"]"),Re((t.a+=AR,t),IA(n.d)),Re(Fc((t.a+="[",t),n.d.i),"]")),t.a}function Q_n(n){switch(n.g){case 0:return new g8n;case 1:return new v8n;case 2:return new b8n;case 3:return new d8n;default:throw M(new Un("No implementation is available for the layout phase "+(null!=n.f?n.f:""+n.g)))}}function een(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function ten(n){var e,t;switch(n.b){case-1:return!0;case 0:return(t=n.t)>1||-1==t||(e=ys(n))&&(ar(),e.lk()==pJn)?(n.b=-1,!0):(n.b=1,!1);default:return!1}}function ien(n,e){var t,i,r,c;if(Ye(n),0!=n.c||123!=n.a)throw M(new De($e((Ie(),KVn))));if(c=112==e,(t=A3(n.i,125,i=n.d))<0)throw M(new De($e((Ie(),_Vn))));return r=Xo(n.i,i,t),n.d=t+1,yNn(r,c,512==(512&n.e))}function Y_n(n){var e,t,i,r,c,s,f;if((i=n.a.c.length)>0)for(s=n.c.d,r=lh(gi(new W((f=n.d.d).a,f.b),s),1/(i+1)),c=new W(s.a,s.b),t=new C(n.a);t.a=0&&i=0?n.Lh(t,!0,!0):ib(n,r,!0),160),u(i,220).Wl(e);throw M(new Un(Aa+e.xe()+LK))}function KA(n,e){var t,i,r;if(r=0,(i=e[0])>=n.length)return-1;for(Gn(i,n.length),t=n.charCodeAt(i);t>=48&&t<=57&&(r=10*r+(t-48),!(++i>=n.length));)Gn(i,n.length),t=n.charCodeAt(i);return i>e[0]?e[0]=i:r=-1,r}function YEe(n,e,t){var i,r,s,f;s=n.c,f=n.d,r=(oc(S(T(yi,1),J,8,0,[s.i.n,s.n,s.a])).b+oc(S(T(yi,1),J,8,0,[f.i.n,f.n,f.a])).b)/2,i=s.j==(en(),Zn)?new W(e+s.i.c.c.a+t,r):new W(e-t,r),S3(n.a,0,i)}function tb(n){var e,i,r;for(e=null,i=qh(To(S(T(No,1),xn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));ve(i);)if(r=Ur(u(fe(i),84)),e){if(e!=r)return!1}else e=r;return!0}function $x(n,e,t){var i;if(++n.j,e>=n.i)throw M(new Ar(qK+e+_d+n.i));if(t>=n.i)throw M(new Ar(UK+t+_d+n.i));return i=n.g[t],e!=t&&(e>16)>>16&16),t+=e=(n>>=e)-256>>16&8,t+=e=(n<<=e)-Nw>>16&4,(t+=e=(n<<=e)-yh>>16&2)+2-(e=(i=(n<<=e)>>14)&~(i>>1)))}function ZEe(n){var e,t,i,r;for(Xv(),xP=new Z,H_=new de,__=new Z,!n.a&&(n.a=new q(Qe,n,10,11)),function qLe(n){var e,t,r,s,f,h,l,d,g,v;for(e=new de,h=new ne(n);h.e!=h.i.gc();){for(f=u(ue(h),27),t=new Yt,Xe(H_,f,t),v=new Rbn,r=u(Vr(new Mn(null,new L0(new ie(ce(yy(f).a.Kc(),new Vn)))),gPn(v,Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)])))),85),J$n(t,u(r.xc((Kn(),!0)),16),new Kbn),s=u(Vr(rt(u(r.xc(!1),15).Lc(),new _bn),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15).Kc();s.Ob();)(g=JKn(u(s.Pb(),74)))&&((l=u(Rr(br(e.f,g)),21))||(l=mqn(g),Yc(e.f,g,l)),Fi(t,l));for(r=u(Vr(new Mn(null,new L0(new ie(ce(xl(f).a.Kc(),new Vn)))),gPn(v,Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr])))),85),J$n(t,u(r.xc(!0),16),new Hbn),d=u(Vr(rt(u(r.xc(!1),15).Lc(),new qbn),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15).Kc();d.Ob();)(g=QKn(u(d.Pb(),74)))&&((l=u(Rr(br(e.f,g)),21))||(l=mqn(g),Yc(e.f,g,l)),Fi(t,l))}}(e=n.a),r=new ne(e);r.e!=r.i.gc();)i=u(ue(r),27),-1==Hr(xP,i,0)&&(t=new Z,nn(__,t),tRn(i,t));return __}function eCe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)(t=u(be(i),65)).c.g==n.g&&x(m(t.b,(bc(),Nh)))!==x(m(t.c,Nh))&&!zg(new Mn(null,new Pn(r,16)),new dkn(t))&&Rn(r.c,t);return Jt(r,new Upn),r}function nHn(n,e,t){var i,r,c,s;return L(e,153)&&L(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):L(e,250)&&L(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(m(r.a,(Js(),Np)),17).a:0}function eHn(n,e){var t,i,r,c,s,f,h,l;for(l=F(R(m(e,(cn(),h9)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f0?1:E0(isNaN(i),isNaN(0)))>=0^(zs(Sh),(y.Math.abs(f)<=Sh||0==f||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:E0(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(zs(Sh),(y.Math.abs(i)<=Sh||0==i||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:E0(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}(c=i.b,s=r.b))>=0?t:(f=o5(gi(new W(s.c+s.b/2,s.d+s.a/2),new W(c.c+c.b/2,c.d+c.a/2))),-(AUn(c,s)-1)*f)}function ib(n,e,t){var i,r,c;if(c=a2(($u(),Ui),n.Dh(),e))return ar(),u(c,69).xk()||(c=Vv(Ir(Ui,c))),r=u((i=n.Ih(c))>=0?n.Lh(i,!0,!0):ib(n,c,!0),160),u(r,220).Sl(e,t);throw M(new Un(Aa+e.xe()+LK))}function ren(n,e,t,i){var r,c,s,f,h;if(r=n.d[e])if(c=r.g,h=r.i,null!=i){for(f=0;f>5),15,1))[t]=1<1;e>>=1)1&e&&(i=Gg(i,t)),t=1==t.d?Gg(t,t):new nRn(kUn(t.a,t.d,K(ye,_e,28,t.d<<1,15,1)));return Gg(i,t)}(n,e)}function tHn(n){var e,t,i;for(tX(),this.b=SZn,this.c=(ii(),eh),this.f=(dCn(),AZn),this.a=n,qz(this,new nwn),WA(this),i=new C(n.b);i.a=null.Um()?(qA(n),cen(n)):e.Ob()}function cHn(n){if(this.a=n,n.c.i.k==(Xn(),Qt))this.c=n.c,this.d=u(m(n.c.i,(V(),mc)),64);else{if(n.d.i.k!=Qt)throw M(new Un("Edge "+n+" is not an external edge."));this.c=n.d,this.d=u(m(n.d.i,(V(),mc)),64)}}function uHn(n,e){var t,r;r=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,3,r,n.b)),e?e!=n&&(Jc(n,e.zb),q$(n,e.d),G$(n,null==(t=e.c??e.zb)||Tn(t,e.zb)?null:t)):(Jc(n,null),q$(n,0),G$(n,null))}function oHn(n,e){var t;this.e=(D0(),Se(n),D0(),mZ(n)),this.c=(Se(e),mZ(e)),sW(this.e.Rd().dc()==this.c.Rd().dc()),this.d=jBn(this.e),this.b=jBn(this.c),t=hd(pi,[J,xn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,function L4e(n){var e,t,i,r;for(i=0,r=(t=n.a).length;i0?up(t):ny(up(t)),ft(e,xm,c)}function lCe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&Jt(s,new Mvn),r=s.c.length/2|0,i=0;i=0;)s.am((i=t[c]).Lk())&&me(r,i);!fzn(n,r)&&ao(n.e)&&b3(n,e.Jk()?oa(n,6,e,(On(),Vi),null,-1,!1):oa(n,e.tk()?2:1,e,null,null,-1,!1))}function bCe(n,e){var i,r,s;return n.a==(N4(),Z8)||!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=e.a.c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-(e.a.c+e.a.b),r>s))}function wHn(n){var e,t,r,c,s,f;for(r$(),t=new h1,r=new C(n.e.b);r.a1?n.e*=F(n.a):n.f/=F(n.a),function F6e(n){var t,r;for(t=n.b.a.a.ec().Kc();t.Ob();)r=new VHn(u(t.Pb(),567),n.e,n.f),nn(n.g,r)}(n),H8e(n),function RAe(n){var i,r,c,s,d,g;for(r=function $Me(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=nt,r=Xi,f=nt,c=Xi,l=0;l=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&tt(n,new ji(n,9,t,c,r)),r):c}function hen(n,e){var i,r,c,s;for(c=n.b.Ce(e),i=n.a.get(c)??K(pi,xn,1,0,5,1),s=0;s>5)>=n.d)return n.e<0;if(t=n.a[r],e=1<<(31&e),n.e<0){if(r<(i=DFn(n)))return!1;t=i==r?-t:~t}return 0!=(t&e)}function aen(n,e){var t,i,r,c,s,f,h;if(c=e.e)for(t=xx(c),i=u(n.g,689),s=0;s>16)),15).dd(c))>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Kl:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Kl:0,c=i?co:0,r=t>>e-44),eu(r&co,c&co,s&Kl)}function Bx(n){var e,t,i,r,c,s;for(this.c=new Z,this.d=n,i=Mt,r=Mt,e=fi,t=fi,s=ge(n,0);s.b!=s.d.c;)c=u(be(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new zo(i,r,e-i,t-r)}function IHn(n,e){var i,c,s,f;for(c=new C(n.b);c.a0&&L(e,44)&&(n.a._j(),c=null==(h=(l=u(e,44)).ld())?0:wt(h),s=$W(n.a,c),t=n.a.d[s]))for(i=u(t.g,379),a=t.i,f=0;f=2)for(e=R((t=r.Kc()).Pb());t.Ob();)c=e,e=R(t.Pb()),i=y.Math.min(i,(Jn(e),e-(Jn(c),c)));return i}function FCe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)(t=u(be(i),65)).b.g==n.g&&!Tn(t.b.c,VS)&&x(m(t.b,(bc(),Nh)))!==x(m(t.c,Nh))&&!zg(new Mn(null,new Pn(r,16)),new bkn(t))&&Rn(r.c,t);return Jt(r,new Wpn),r}function xCe(n,e){var t,i,r;if(x(e)===x(Se(n)))return!0;if(!L(e,15)||(i=u(e,15),(r=n.gc())!=i.gc()))return!1;if(L(i,59)){for(t=0;te.a&&(i.Hc((Id(),L9))?n.c.a+=(t.a-e.a)/2:i.Hc(D9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((Id(),$9))?n.c.b+=(t.b-e.b)/2:i.Hc(N9)&&(n.c.b+=t.b-e.b)),u(m(n,(V(),zc)),21).Hc((gr(),fs))&&(t.a>e.a||t.b>e.b))for(f=new C(n.a);f.a0&&(r=t),s=new C(n.f.e);s.a0&&r0):r<0&&-r0)}function YCe(n,e,t,i){var r,c,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new C(n.c);d.a=0&&Tn(n.substr(f,2),"//")?($i(f+=2,h=GF(n,f,W9,V9),n.length),i=n.substr(f,h-f),f=h):null!=d&&(f==n.length||(Gn(f,n.length),47!=n.charCodeAt(f)))&&(s=!1,-1==(h=dW(n,ku(35),f))&&(h=n.length),$i(f,h,n.length),i=n.substr(f,h-f),f=h);if(!t&&f0&&58==Gi(a,a.length-1)&&(r=a,f=h)),f0&&(Gn(0,t.length),47!=t.charCodeAt(0))))throw M(new Un("invalid opaquePart: "+t));if(n&&(null==e||!k7(_O,e.toLowerCase()))&&null!=t&&$F(t,W9,V9))throw M(new Un(uJn+t));if(n&&null!=e&&k7(_O,e.toLowerCase())&&!function Vke(n){if(null!=n&&n.length>0&&33==Gi(n,n.length-1))try{return null==BHn(Xo(n,0,n.length-1)).e}catch(t){if(!L(t=At(t),33))throw M(t)}return!1}(t))throw M(new Un(uJn+t));if(!function e8e(n){var e;return null==n||(e=n.length)>0&&(Gn(e-1,n.length),58==n.charCodeAt(e-1))&&!$F(n,W9,V9)}(i))throw M(new Un("invalid device: "+i));if(!function R6e(n){var e,t;if(null==n)return!1;for(e=0,t=n.length;e=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function rMe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,f=0,h=(s=n).length;f0&&++a;++l}return a}function Ws(n){var t;return(t=new yo(sd(n.Rm))).a+="@",Re(t,(wt(n)>>>0).toString(16)),n.Vh()?(t.a+=" (eProxyURI: ",Fc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Fc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Fc(t,n.Kh()),t.a+=")"),t.a}function Y5(n){var e,t,r;if(n.e)throw M(new Sr((yl(I_),oR+I_.k+sR)));for(n.d==(ii(),eh)&&fS(n,$r),t=new C(n.a.a);t.a=0)return r;for(c=1,f=new C(e.j);f.a=0)return r;for(c=1,f=new C(e.j);f.a0&&e.Ne((Ln(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Vo(n,r,(Ln(r-1,n.c.length),u(n.c[r-1],10))),--r;Ln(r,n.c.length),n.c[r]=c}t.a=new de,t.b=new de}function zHn(n,e,t){var r;if(2==(n.c-n.b&n.a.length-1))e==(en(),zn)||e==Zn?(AT(u(T5(n),15),(Po(),sl)),AT(u(T5(n),15),Ka)):(AT(u(T5(n),15),(Po(),Ka)),AT(u(T5(n),15),sl));else for(r=new f5(n);r.a!=r.b;)AT(u(eA(r),15),t)}function dMe(n,e){var t,r,c,s,f,h;for(f=new Ni(r=D3(new rz(n)),r.c.length),h=new Ni(c=D3(new rz(e)),c.c.length),s=null;f.b>0&&h.b>0&&(oe(f.b>0),t=u(f.a.Xb(f.c=--f.b),27),oe(h.b>0),t==u(h.a.Xb(h.c=--h.b),27));)s=t;return s}function XHn(n,e,t){var i,r,c,s;WOn(n,e)>WOn(n,t)?(i=sc(t,(en(),Zn)),n.d=i.dc()?0:gN(u(i.Xb(0),12)),s=sc(e,Wn),n.b=s.dc()?0:gN(u(s.Xb(0),12))):(r=sc(t,(en(),Wn)),n.d=r.dc()?0:gN(u(r.Xb(0),12)),c=sc(e,Zn),n.b=c.dc()?0:gN(u(c.Xb(0),12)))}function WHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ut(n.r,e),21),87).Kc();c.Ob();)(r=u(c.Pb(),117)).e.a=t*F(R(r.b.of(DP))),r.e.b=(i=r.b).pf((Ue(),so))?i.ag()==(en(),zn)?-i.Mf().b-F(R(i.of(so))):F(R(i.of(so))):i.ag()==(en(),zn)?-i.Mf().b:0}function wMe(n){var e,t,i,r,c,s,f,h;e=!0,r=null,c=null;n:for(h=new C(n.a);h.a>1,n.k=t-1>>1}(this,this.d,this.c),function xEe(n){var e,t,i,r,c,s,f;for(t=QX(n.e),c=lh(W6(Bi(JX(n.e)),n.d*n.a,n.c*n.b),-.5),e=t.a-c.a,r=t.b-c.b,f=0;f0&&YIe(this,r)}function yen(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,!(s=i)&&(s=new lT),nn(s.e,e),h=c[e.a].Kc();h.Ob();)(f=u(h.Pb(),290)).d!=t&&f.c!=t&&(f.c!=e&¥(n,f.c,e,s,r,c),f.d!=e&¥(n,f.d,e,s,r,c),nn(s.c,f),si(s.d,f.b));return s}return null}function vMe(n){var e,r,s;for(e=0,r=new C(n.e);r.a=2}function jen(n,e,t){var i,r,c;for(c=new C(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&xe(e,i.b));for(r=new C(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&xe(t,i.a))}function qA(n){var e,t,r;if(null==n.g&&(n.d=n.bj(n.f),me(n,n.d),n.c))return n.f;if(r=(e=u(n.g[n.i-1],51)).Pb(),n.e=e,(t=n.bj(r)).Ob())n.d=t,me(n,t);else for(n.d=null;!e.Ob()&&(Dt(n.g,--n.i,null),0!=n.i);)e=u(n.g[n.i-1],51);return r}function yMe(n,e,t,i){var r,s,f;for(id(r=new Fl(n),(Xn(),Oc)),U(r,(V(),ot),e),U(r,i9,i),U(r,(cn(),Kt),(Ii(),Xc)),U(r,Af,e.c),U(r,Ss,e.d),Eqn(e,r),f=y.Math.floor(t/2),s=new C(r.j);s.a=2147483648&&(i-=4294967296),i)}function ZHn(n,e,t){var i,r,c,s,f,h,l;for(c=new Z,function HPe(n,e,t,i){var r,c,s,f,h,l,a;for(f=-1,a=new C(n);a.a0&&p.a<=0){h.c.length=0,Rn(h.c,p);break}(v=p.i-p.d)>=f&&(v>f&&(h.c.length=0,f=v),Rn(h.c,p))}0!=h.c.length&&(s=u(sn(h,CA(r,h.c.length)),118),O.a.Bc(s),s.g=a++,stn(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new C(n);g.ai.b.g&&Rn(c.c,i);return c}function Cen(n,e,t){var i,r,c;if(!(c=a2(($u(),Ui),n.Dh(),e)))throw M(new Un(Aa+e.xe()+O8));if(ar(),!u(c,69).xk()&&!(c=Vv(Ir(Ui,c))))throw M(new Un(Aa+e.xe()+O8));r=u((i=n.Ih(c))>=0?n.Lh(i,!0,!0):ib(n,c,!0),160),u(r,220).Xl(e,t)}function UA(n,e){var i,r,c,s;if(e){for(s=!(c=L(n.Cb,90)||L(n.Cb,102))&&L(n.Cb,331),i=new ne((!e.a&&(e.a=new Z6(e,yr,e)),e.a));i.e!=i.i.gc();)if(r=iS(u(ue(i),89)),c?L(r,90):s?L(r,156):r)return r;return c?(In(),$s):(In(),rh)}return null}function SMe(n,e){var t,i,c;for(e.Ug("Resize child graph to fit parent.",1),i=new C(n.b);i.ae.a&&(i.Hc((Id(),L9))?n.c.a+=(t.a-e.a)/2:i.Hc(D9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((Id(),$9))?n.c.b+=(t.b-e.b)/2:i.Hc(N9)&&(n.c.b+=t.b-e.b)),u(m(n,(V(),zc)),21).Hc((gr(),fs))&&(t.a>e.a||t.b>e.b))for(s=new C(n.a);s.a0),c.a.Xb(c.c=--c.b),nw(c,r),oe(c.b0);t++);if(t>0&&t0);e++);return e>0&&t>16!=6&&e){if(I4(n,e))throw M(new Un(L8+gHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?WZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,6,i)),(i=LW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,6,e,e))}function zA(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(I4(n,e))throw M(new Un(L8+iGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?YZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,12,i)),(i=DW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,3,e,e))}function Men(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(I4(n,e))throw M(new Un(L8+eUn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?JZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,9,i)),(i=NW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,9,e,e))}function B4(n){var e,t,i,r,c;if(i=ys(n),null==(c=n.j)&&i)return n.Jk()?null:i.ik();if(L(i,156)){if((t=i.jk())&&(r=t.wi())!=n.i){if((e=u(i,156)).nk())try{n.g=r.ti(e,c)}catch(s){if(!L(s=At(s),82))throw M(s);n.g=null}n.i=r}return n.g}return null}function iqn(n){var e;return nn(e=new Z,new Sv(new W(n.c,n.d),new W(n.c+n.b,n.d))),nn(e,new Sv(new W(n.c,n.d),new W(n.c,n.d+n.a))),nn(e,new Sv(new W(n.c+n.b,n.d+n.a),new W(n.c+n.b,n.d))),nn(e,new Sv(new W(n.c+n.b,n.d+n.a),new W(n.c,n.d+n.a))),e}function RMe(n){var e,i;if(null==n)return yu;try{return Jr(n)}catch(r){if(L(r=At(r),103))return e=r,i=sd(po(n))+"@"+(ml(),(TZ(n)>>>0).toString(16)),Z8e(Bme(),(C3(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+sd(e.Rm)+">";throw M(r)}}function KMe(n,e,t){var r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),!u(ee(n.b,r),272)&&(Ct(Wh(r))==Ct(va(r))?ATe(n,r,t):Wh(r)==Ct(va(r))?null==ee(n.c,r)&&null!=ee(n.b,va(r))&&$Gn(n,r,t,!1):null==ee(n.d,r)&&null!=ee(n.b,Wh(r))&&$Gn(n,r,t,!0))}function _Me(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),cc(f=new Dc,i),bi(f,(en(),Zn)),U(f,(V(),MI),(Kn(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),cc(h=new Dc,c),bi(h,Wn),U(h,MI,!0),U(t=new B0,MI,!0),Qi(t,f),Pi(t,h)}function HMe(n,e,t,i){var r,c,s,f;r=_Bn(n,e,t),c=_Bn(n,t,e),s=u(ee(n.c,e),118),f=u(ee(n.c,t),118),r>16!=11&&e){if(I4(n,e))throw M(new Un(L8+Gen(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?ZZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,10,i)),(i=qW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,11,e,e))}function Hx(n,e,t){return f2(),(!o4(n,e)||!o4(n,t))&&(mB(new W(n.c,n.d),new W(n.c+n.b,n.d),e,t)||mB(new W(n.c+n.b,n.d),new W(n.c+n.b,n.d+n.a),e,t)||mB(new W(n.c+n.b,n.d+n.a),new W(n.c,n.d+n.a),e,t)||mB(new W(n.c,n.d+n.a),new W(n.c,n.d),e,t))}function Ten(n,e){var t,i,r,c;if(!n.dc())for(t=0,i=n.gc();t>16!=7&&e){if(I4(n,e))throw M(new Un(L8+d_n(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?VZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=u(e,54).Rh(n,1,EE,i)),(i=FV(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,7,e,e))}function oqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(I4(n,e))throw M(new Un(L8+lBn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?QZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=u(e,54).Rh(n,0,ME,i)),(i=xV(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,3,e,e))}function qx(n,e){var t,i,r,c,s,f,h,l,a;return R4(),e.d>n.d&&(f=n,n=e,e=f),e.d<63?function QTe(n,e){var i,c,s,f,h,l,a,d,g;return h=n.e!=e.e?-1:1,2==(f=(i=n.d)+(c=e.d))?(g=Ae(a=Zi(vi(n.a[0],vr),vi(e.a[0],vr))),0==(d=Ae(ia(a,32)))?new Tl(h,g):new dd(h,2,S(T(ye,1),_e,28,15,[g,d]))):(J6e(n.a,i,e.a,c,s=K(ye,_e,28,f,15,1)),l5(l=new dd(h,f,s)),l)}(n,e):(l=tQ(n,s=(-2&n.d)<<4),a=tQ(e,s),i=fB(n,Qv(l,s)),r=fB(e,Qv(a,s)),h=qx(l,a),t=qx(i,r),c=Qv(c=gB(gB(c=qx(fB(l,i),fB(r,a)),h),t),s),gB(gB(h=Qv(h,s<<1),c),t))}function M1(){M1=N,sq=new Sg(hWn,0),Vhn=new Sg("LONGEST_PATH",1),Jhn=new Sg("LONGEST_PATH_SOURCE",2),oq=new Sg("COFFMAN_GRAHAM",3),Whn=new Sg(LR,4),Qhn=new Sg("STRETCH_WIDTH",5),qI=new Sg("MIN_WIDTH",6),_m=new Sg("BF_MODEL_ORDER",7),Hm=new Sg("DF_MODEL_ORDER",8)}function lTe(n,e,t){var i,r,c,s,f;for(s=O5(n,t),f=K(cl,A1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)on(un(m(r=u(c.Pb(),12),(V(),xj))))&&(f[i++]=u(m(r,Wu),10));if(i=0;c+=t?1:-1)s|=e.c.lg(h,c,t,i&&!on(un(m(e.j,(V(),Da))))&&!on(un(m(e.j,(V(),x2))))),s|=e.q.ug(h,c,t),s|=Wqn(n,h[c],t,i);return oi(n.c,e),s}function VA(n,e,t){var i,r,c,s,l,a,d,g;for(d=0,g=(a=ALn(n.j)).length;d1&&(n.a=!0),Ube(u(t.b,68),et(Bi(u(e.b,68).c),lh(gi(Bi(u(t.b,68).a),u(e.b,68).a),r))),NOn(n,e),sqn(n,t)}function fqn(n){var t,i,r,c,s,f;for(c=new C(n.a.a);c.a0&&c>0?e++:i>0?t++:c>0?r++:t++}On(),Jt(n.j,new _gn)}function vTe(n,e){var t,i,r,c,s,f,h,l,a;for(s=e.g,h=u(sn(f=e.j,f.c.length-1),113),Ln(0,f.c.length),l=hx(n,s,h,a=u(f.c[0],113)),c=1;cl&&(h=t,a=r,l=i);e.a=a,e.c=h}function Vs(n){if(!n.a.d||!n.a.e)throw M(new Sr((yl(VQn),VQn.k+" must have a source and target "+(yl(Ton),Ton.k+" specified."))));if(n.a.d==n.a.e)throw M(new Sr("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return rM(n.a.d.g,n.a),rM(n.a.e.b,n.a),n.a}function hqn(n,e,t){var i,r,c,s,f,h;if(i=0,0!=e.b&&0!=t.b){c=ge(e,0),s=ge(t,0),f=F(R(be(c))),h=F(R(be(s))),r=!0;do{if(f>h-n.b&&fh-n.a&&f0&&(r+=(c=u(sn(this.b,0),176)).o,i+=c.p),r*=2,i*=2,e>1?r=di(y.Math.ceil(r*e)):i=di(y.Math.ceil(i/e)),this.a=new gZ(r,i)}function bqn(n,e,t,i,r,c){var s,f,l,a,d,g,v,p,k;for(a=i,e.j&&e.o?(k=(v=u(ee(n.f,e.A),60)).d.c+v.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(l=(v=u(ee(n.f,t.C),60)).d.c,++d):l=t.a.c,p=k+(f=(l-k)/y.Math.max(2,d-a)),g=a;g=0;s+=r?1:-1){for(f=e[s],h=i==(en(),Zn)?r?sc(f,i):es(sc(f,i)):r?es(sc(f,i)):sc(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;si(t,h)}}function gqn(n,e,t){var i,r,c,s,f,h,l,a;for(c=F(R(n.b.Kc().Pb())),l=F(R(function xme(n){var e;if(n){if((e=n).dc())throw M(new tc);return e.Xb(e.gc()-1)}return xOn(n.Kc())}(e.b))),i=lh(Bi(n.a),l-t),r=lh(Bi(e.a),t-c),lh(a=et(i,r),1/(l-c)),this.a=a,this.b=new Z,f=!0,(s=n.b.Kc()).Pb();s.Ob();)h=F(R(s.Pb())),f&&h-t>lK&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function _Te(n){var e,t,i,r;if(function cSe(n,e){var t,i,r,c,s,f,h;for(r=K(ye,_e,28,n.e.a.c.length,15,1),s=new C(n.e.a);s.a0){for(g6(n.c);den(n,u(E(new C(n.e.a)),125))>5,e&=31,i>=n.d)return n.e<0?(mh(),EQn):(mh(),G8);if(function Lje(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s>>r|t[s+i+1]<>>r,++s}return c}(r=K(ye,_e,28,1+(c=n.d-i),15,1),c,n.a,i,e),n.e<0){for(t=0;t0&&n.a[t]<<32-e){for(t=0;t=0)&&(!(t=a2(($u(),Ui),r,e))||((i=t.Ik())>1||-1==i)&&3!=F0(Ir(Ui,t))))}function GTe(n,e,t,i){var r,c,s,f,h;return f=Ur(u(D((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),h=Ur(u(D((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84)),Ct(f)==Ct(h)||dw(h,f)?null:(s=ak(e))==t?i:(c=u(ee(n.a,s),10))&&(r=c.e)?r:null}function Den(n,e,t){var r,c,s,f,h;if((s=n[function Che(n,e){return n?e-1:0}(t,n.length)])[c=Jjn(t,s.length)].k==(Xn(),Qt))for(h=e.j,r=0;r>24}(n));break;case 2:n.g=xk(function ove(n){if(2!=n.p)throw M(new Au);return Ae(n.f)&ri}(n));break;case 3:n.g=function Hwe(n){if(3!=n.p)throw M(new Au);return n.e}(n);break;case 4:n.g=new h7(function _we(n){if(4!=n.p)throw M(new Au);return n.e}(n));break;case 6:n.g=$l(function Gwe(n){if(6!=n.p)throw M(new Au);return n.f}(n));break;case 5:n.g=Y(function n2e(n){if(5!=n.p)throw M(new Au);return Ae(n.f)}(n));break;case 7:n.g=k4(function ape(n){if(7!=n.p)throw M(new Au);return Ae(n.f)<<16>>16}(n))}return n.g}function Nen(n){if(null==n.n)switch(n.p){case 0:n.n=function v2e(n){if(0!=n.p)throw M(new Au);return R6(n.k,0)}(n)?(Kn(),mm):(Kn(),Pa);break;case 1:n.n=Ik(function hpe(n){if(1!=n.p)throw M(new Au);return Ae(n.k)<<24>>24}(n));break;case 2:n.n=xk(function sve(n){if(2!=n.p)throw M(new Au);return Ae(n.k)&ri}(n));break;case 3:n.n=function qwe(n){if(3!=n.p)throw M(new Au);return n.j}(n);break;case 4:n.n=new h7(function Uwe(n){if(4!=n.p)throw M(new Au);return n.j}(n));break;case 6:n.n=$l(function zwe(n){if(6!=n.p)throw M(new Au);return n.k}(n));break;case 5:n.n=Y(function e2e(n){if(5!=n.p)throw M(new Au);return Ae(n.k)}(n));break;case 7:n.n=k4(function lpe(n){if(7!=n.p)throw M(new Au);return Ae(n.k)<<16>>16}(n))}return n.n}function yqn(n,e,t,i){var r,s,f,h;if(ar(),f=u(e,69).xk(),Bl(n.e,e)){if(e.Si()&&rS(n,e,i,L(e,102)&&0!=(u(e,19).Bb&sr)))throw M(new Un(hj))}else for(h=ou(n.e.Dh(),e),r=u(n.g,124),s=0;s0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),rQ(n,Zc,r.c+i.b+t[0]-(t[1]-s)/2,t),e==Zc&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function Tqn(){this.c=K(Ai,Mr,28,(en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])).length,15,1),this.b=K(Ai,Mr,28,S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn]).length,15,1),this.a=K(Ai,Mr,28,S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn]).length,15,1),oX(this.c,Mt),oX(this.b,fi),oX(this.a,fi)}function Kc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,null==n.b)n.b=K(ye,_e,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(n.b[(i=n.b.length)-1]+1==r)return void(n.b[i-1]=c);s=K(ye,_e,28,i+2,15,1),Nc(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||u2(n)}}function Aw(n){var e,t,i,r,c;for(r=new Z,e=new Y6((!n.a&&(n.a=new q(Qe,n,10,11)),n.a)),i=new ie(ce(xl(n).a.Kc(),new Vn));ve(i);)L(D((!(t=u(fe(i),74)).b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(c=Ur(u(D((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),e.a._b(c)||Rn(r.c,c));return r}function nAe(n,e){var t,i,r,c,s,f,h;for(t=fi,Xn(),f=Ut,r=new C(e.a);r.a1;)Sw(r,r.i-1);return i}function Sqn(n,e){var t,i,c,s,f,h;for(t=new Rg,c=new C(n.b);c.an.d[s.p]&&(t+=JJ(n.b,c),sa(n.a,Y(c)));for(;!v6(n.a);)PQ(n.b,u(Hv(n.a),17).a)}return t}function Pqn(n,e,t){var i,r,c,s;for(c=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));r.e!=r.i.gc();)0==(!(i=u(ue(r),27)).a&&(i.a=new q(Qe,i,10,11)),i.a).i||(c+=Pqn(n,i,!1));if(t)for(s=Ct(e);s;)c+=(!s.a&&(s.a=new q(Qe,s,10,11)),s.a).i,s=Ct(s);return c}function Sw(n,e){var t,i,r,c;return n.Pj()?(i=null,r=n.Qj(),n.Tj()&&(i=n.Vj(n.$i(e),null)),t=n.Ij(4,c=hp(n,e),null,e,r),n.Mj()&&null!=c&&(i=n.Oj(c,i)),i?(i.nj(t),i.oj()):n.Jj(t),c):(c=hp(n,e),n.Mj()&&null!=c&&(i=n.Oj(c,null))&&i.oj(),c)}function gr(){gr=N,pI=new Xb("COMMENTS",0),fs=new Xb("EXTERNAL_PORTS",1),n9=new Xb("HYPEREDGES",2),mI=new Xb("HYPERNODES",3),Dm=new Xb("NON_FREE_PORTS",4),N2=new Xb("NORTH_SOUTH_PORTS",5),e9=new Xb(YXn,6),Om=new Xb("CENTER_LABELS",7),Lm=new Xb("END_LABELS",8),kI=new Xb("PARTITIONS",9)}function Iqn(n,e){var t,r,s;Ct(n)&&(s=u(m(e,(cn(),Qd)),181),x(z(n,Kt))===x((Ii(),Ha))&&ft(n,Kt,th),k0(),r=GGn(new a0(Ct(n)),new VD(Ct(n)?new a0(Ct(n)):null,n),!1,!0),Xs(s,(mo(),ag)),(t=u(m(e,$m),8)).a=y.Math.max(r.a,t.a),t.b=y.Math.max(r.b,t.b))}function QA(){QA=N,dH=new Gv(kS,0,(en(),zn),zn),gH=new Gv(dR,1,ae,ae),aH=new Gv(aR,2,Zn,Zn),mH=new Gv(bR,3,Wn,Wn),wH=new Gv("NORTH_WEST_CORNER",4,Wn,zn),bH=new Gv("NORTH_EAST_CORNER",5,zn,Zn),pH=new Gv("SOUTH_WEST_CORNER",6,ae,Wn),vH=new Gv("SOUTH_EAST_CORNER",7,Zn,ae)}function hAe(n){var e,i,r,c,s;for(c=new Yt,e=new Y6((!n.a&&(n.a=new q(Qe,n,10,11)),n.a)),r=new ie(ce(xl(n).a.Kc(),new Vn));ve(r);)L(D((!(i=u(fe(r),74)).b&&(i.b=new Dn(he,i,4,7)),i.b),0),193)||(s=Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),e.a._b(s)||c.a.zc(s,c));return c}function f2(){f2=N,San=S(T(Ja,1),YB,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),y.Math.pow(2,-65)}function R4(){var n,e;for(R4=N,Lp=K(T2,J,92,32,0,1),z8=K(T2,J,92,32,0,1),n=1,e=0;e<=18;e++)Lp[e]=(mh(),Ac(n,0)>=0?ga(n):c5(ga(d1(n)))),z8[e]=zC(Us(n,e),0)?ga(Us(n,e)):c5(ga(d1(Us(n,e)))),n=Zi(n,5);for(;e=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function Lqn(n,e,t){var i,r,c,s,f;if(!z3(e)){for((f=t.eh((L(e,16)?u(e,16).gc():Ml(e.Kc()))/n.a|0)).Ug(wWn,1),s=new d3n,c=null,r=e.Kc();r.Ob();)i=u(r.Pb(),40),s=To(S(T(No,1),xn,20,0,[s,new pl(i)])),c&&(U(c,(bt(),vre),i),U(i,Lq,c),C$(i)==C$(c)&&(U(c,Dq,i),U(i,nO,c))),c=i;f.Vg(),Lqn(n,s,t)}}function Ux(n,e){var t;switch(t=null,e.g){case 1:n.e.pf((Ue(),IU))&&(t=u(n.e.of(IU),256));break;case 3:n.e.pf((Ue(),OU))&&(t=u(n.e.of(OU),256));break;case 2:n.e.pf((Ue(),PU))&&(t=u(n.e.of(PU),256));break;case 4:n.e.pf((Ue(),LU))&&(t=u(n.e.of(LU),256))}return!t&&(t=u(n.e.of((Ue(),idn)),256)),t}function Dqn(n,e,t){var i,r,c,s,f,h;for(r=t,c=0,f=new C(e);f.aCWn?Jt(h,n.b):i<=CWn&&i>MWn?Jt(h,n.d):i<=MWn&&i>TWn?Jt(h,n.c):i<=TWn&&Jt(h,n.a),c=Dqn(n,h,c);return r}function Nqn(n,e,t,i){var r,s,f,h,l;for(r=(i.c+i.a)/2,jo(e.j),xe(e.j,r),jo(t.e),xe(t.e,r),l=new tEn,f=new C(n.f);f.a1&&(i=new W(r,t.b),xe(e.a,i)),m5(e.a,S(T(yi,1),J,8,0,[g,d]))}function Fen(n,e,t){var i,r;for(e=48;t--)n7[t]=t-48<<24>>24;for(i=70;i>=65;i--)n7[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)n7[r]=r-97+10<<24>>24;for(c=0;c<10;c++)XO[c]=48+c&ri;for(n=10;n<=15;n++)XO[n]=65+n-10&ri}function Gx(n){var e,t,i,r,s;if(!n.c){if(s=new jmn,null==(e=J9).a.zc(n,e)){for(i=new ne(Lc(n));i.e!=i.i.gc();)L(r=iS(t=u(ue(i),89)),90)&&Bt(s,Gx(u(r,29))),me(s,t);e.a.Bc(n),e.a.gc()}(function w8e(n){var e,t,i,r;for(t=u(n.g,689),i=n.i-1;i>=0;--i)for(e=t[i],r=0;r>19)return"-"+Bqn(b4(n));for(t=n,i="";0!=t.l||0!=t.m||0!=t.h;){if(t=ptn(t,y$(gS),!0),e=""+sEn(Sa),0!=t.l||0!=t.m||0!=t.h)for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function Ren(n,e,t,i){var r,c,s,f;if(Ml((Q7(),new ie(ce(Nl(e).a.Kc(),new Vn))))>=n.a||!knn(e,t))return-1;if(z3(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(-1==(f=Ren(n,(c=u(s.Pb(),18)).c.i==e?c.d.i:c.c.i,t,i))||(r=y.Math.max(r,f))>n.c-1)return-1;return r+1}function Rqn(n,e){var t,i,r,c,s,f;if(x(e)===x(n))return!0;if(!L(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t0)if(n._j(),null!=e){for(c=0;c0&&(n.a=h+(v-1)*c,e.c.b+=n.a,e.f.b+=n.a),0!=p.a.gc()&&(v=jtn(new $N(1,c),e,p,k,e.f.b+h-e.c.b))>0&&(e.f.b+=h+(v-1)*c)}(n,e,i),function TLe(n){var e,t,i,r,c,s,f,l,a,g,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn,$n;for(X=new Z,p=new C(n.b);p.a>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw M(new sh("Invalid hexadecimal"))}}function ZA(){ZA=N,Con=new Ag("SPIRAL",0),kon=new Ag("LINE_BY_LINE",1),yon=new Ag("MANHATTAN",2),mon=new Ag("JITTER",3),D_=new Ag("QUADRANTS_LINE_BY_LINE",4),Eon=new Ag("QUADRANTS_MANHATTAN",5),jon=new Ag("QUADRANTS_JITTER",6),pon=new Ag("COMBINE_LINE_BY_LINE_MANHATTAN",7),von=new Ag("COMBINE_JITTER_MANHATTAN",8)}function _qn(n,e,t,i){var r,c,s,f,h,l;for(h=gx(n,t),l=gx(e,t),r=!1;h&&l&&(i||p7e(h,l,t));)s=gx(h,t),f=gx(l,t),Ak(e),Ak(n),c=h.c,vB(h,!1),vB(l,!1),t?(yw(e,l.p,c),e.p=l.p,yw(n,h.p+1,c),n.p=h.p):(yw(n,h.p,c),n.p=h.p,yw(e,l.p+1,c),e.p=l.p),Di(h,null),Di(l,null),h=s,l=f,r=!0;return r}function Hqn(n){switch(n.g){case 0:return new e8n;case 1:return new Z5n;case 3:return new gCn;case 4:return new Xvn;case 5:return new UAn;case 6:return new n8n;case 2:return new Y5n;case 7:return new z5n;case 8:return new W5n;default:throw M(new Un("No implementation is available for the layerer "+(null!=n.f?n.f:""+n.g)))}}function AAe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new C(i.j);f.a=e.length)throw M(new Ar("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new J7(i),J$(this.e,this.c,(en(),Wn)),this.i=new J7(i),J$(this.i,this.c,Zn),this.f=new oPn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Xn(),Qt),this.a&&function _je(n,e,t){var i,r,c,s,f,l;f=(c=n.d.p).e,n.g=new J7(c.r),i=(s=n.d.o.c.p)>0?f[s-1]:K(cl,A1,10,0,0,1),r=f[s],l=sr.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(ee(n.f,s.d.i),60),e.bc.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new ie(ce(ki(v).a.Kc(),new Vn));ve(f);)0!=(s=u(fe(f),18)).a.b&&(e=u(_s(s.a),8),s.d.j==(en(),zn)&&((j=new u8(e,new W(e.a,r.d.d),r,s)).f.a=!0,j.a=s.d,Rn(k.c,j)),s.d.j==ae&&((j=new u8(e,new W(e.a,r.d.d+r.d.a),r,s)).f.d=!0,j.a=s.d,Rn(k.c,j)))}return k}(n);break;case 3:i=new Z,_t(rt(Kr(uc(uc(new Mn(null,new Pn(n.d.b,16)),new ivn),new rvn),new cvn),new U2n),new T7n(i)),t=i;break;default:throw M(new Sr("Compaction not supported for "+e+" edges."))}(function RIe(n,e){var t,i,r,c,s,h,l;if(0!=e.c.length){for(On(),yN(e.c,e.c.length,null),i=u(E(r=new C(e)),154);r.a0&&e0?c.a?t>(f=c.b.Mf().a)&&(c.d.b=r=(t-f)/2,c.d.c=r):c.d.c=n.s+t:e5(n.u)&&((i=Cnn(c.b)).c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}(n,e),r=null,h=null,f){for(h=r=u((c=s.Kc()).Pb(),117);c.Ob();)h=u(c.Pb(),117);r.d.b=0,h.d.c=0,a&&!r.a&&(r.d.c=0)}d&&(function Aye(n){var e,t,i,r,c;for(e=0,t=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),e=y.Math.max(e,i.d.b),t=y.Math.max(t,i.d.c);for(r=n.Kc();r.Ob();)(i=u(r.Pb(),117)).d.b=e,i.d.c=t}(s),f&&(r.d.b=0,h.d.c=0))}function Qqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ut(n.r,e),21),87),f=n.u.Hc((Xu(),qa)),t=n.u.Hc(q9),i=n.u.Hc(H9),h=n.u.Hc(Yp),d=n.B.Hc((ro(),IO)),l=!t&&!i&&(h||2==s.gc()),function ePe(n,e){var t,i,r,c,s,f,h,l;for(h=u(u(ut(n.r,e),21),87).Kc();h.Ob();)(r=(f=u(h.Pb(),117)).c?zSn(f.c):0)>0?f.a?r>(l=f.b.Mf().b)&&(n.v||1==f.c.d.c.length?(f.d.d=s=(r-l)/2,f.d.a=s):(t=u(sn(f.c.d,0),187).Mf().b,f.d.d=y.Math.max(0,i=(t-l)/2),f.d.a=r-i-l)):f.d.a=n.t+r:e5(n.u)&&((c=Cnn(f.b)).d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}(n,e),a=null,r=null,f){for(r=a=u((c=s.Kc()).Pb(),117);c.Ob();)r=u(c.Pb(),117);a.d.d=0,r.d.a=0,l&&!a.a&&(a.d.a=0)}d&&(function Sye(n){var e,t,i,r,c;for(t=0,e=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),t=y.Math.max(t,i.d.d),e=y.Math.max(e,i.d.a);for(r=n.Kc();r.Ob();)(i=u(r.Pb(),117)).d.d=t,i.d.a=e}(s),f&&(a.d.d=0,r.d.a=0))}function Yqn(n,e,t){var r,s,f,h,a;if(r=e.k,e.p>=0)return!1;if(e.p=t.b,nn(t.e,e),r==(Xn(),Ei)||r==Gc)for(s=new C(e.j);s.an.d[f.p]&&(t+=JJ(n.b,c),sa(n.a,Y(c))):++s;for(t+=n.b.d*s;!v6(n.a);)PQ(n.b,u(Hv(n.a),17).a)}return t}function nUn(n){var e,t,i,r,c,s;return c=0,(e=ys(n)).kk()&&(c|=4),n.Bb&Bu&&(c|=2),L(n,102)?(r=dr(t=u(n,19)),t.Bb&Cc&&(c|=32),r&&(se(uw(r)),c|=8,((s=r.t)>1||-1==s)&&(c|=16),r.Bb&Cc&&(c|=64)),t.Bb&sr&&(c|=_w),c|=Qs):L(e,469)?c|=512:(i=e.kk())&&1&i.i&&(c|=256),512&n.Bb&&(c|=128),c}function GAe(n){var e,t,i,r,c,s,f,l,a,d,g,v;for(g=-1,v=0,a=0,d=(l=n).length;a0&&++v;++g}return v}function Wx(n){var e,t,i,r,c,s,f;for(f=new de,i=new C(n.a.b);i.a=n.o)throw M(new kz);f=e>>5,c=Us(1,Ae(Us(31&e,1))),n.n[t][f]=r?vf(n.n[t][f],c):vi(n.n[t][f],vV(c)),c=Us(c,1),n.n[t][f]=i?vf(n.n[t][f],c):vi(n.n[t][f],vV(c))}catch(h){throw L(h=At(h),333)?M(new Ar(wR+n.o+"*"+n.p+gR+e+cr+t+vR)):M(h)}}function Uen(n,e,t,i){var c,s;e&&(c=F(R(m(e,(bt(),$1))))+i,s=t+F(R(m(e,eO)))/2,U(e,Qj,Y(Ae(Ec(y.Math.round(c))))),U(e,Yj,Y(Ae(Ec(y.Math.round(s))))),0==e.d.b||Uen(n,u(ZC(new Eg(ge(new pl(e).a.d,0))),40),t+F(R(m(e,eO)))+n.b,i+F(R(m(e,Gm)))),null!=m(e,Dq)&&Uen(n,u(m(e,Dq),40),t,i))}function Gen(n){var e,t,i;return 64&n.Db?Ax(n):(e=new yo(Xcn),(t=n.k)?Re(Re((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Tr,n,1,7)),n.n.i>0&&(!(i=(!n.n&&(n.n=new q(Tr,n,1,7)),u(D(n.n,0),135)).a)||Re(Re((e.a+=' "',e),i),'"'))),Re(v0(Re(v0(Re(v0(Re(v0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function eUn(n){var e,t,i;return 64&n.Db?Ax(n):(e=new yo(Wcn),(t=n.k)?Re(Re((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Tr,n,1,7)),n.n.i>0&&(!(i=(!n.n&&(n.n=new q(Tr,n,1,7)),u(D(n.n,0),135)).a)||Re(Re((e.a+=' "',e),i),'"'))),Re(v0(Re(v0(Re(v0(Re(v0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Jx(n,e){var t,i,r,c,s,h;if(null==e||0==e.length)return null;if(!(r=u(Bc(n.a,e),143))){for(i=new qb(new vl(n.b).a.vc().Kc());i.a.Ob();)if(c=u(i.a.Pb(),44),Tn((s=(t=u(c.md(),143)).c).substr(s.length-(h=e.length),h),e)&&(e.length==s.length||46==Gi(s,s.length-e.length-1))){if(r)return null;r=t}r&&Pr(n.a,e,r)}return r}function tUn(n){var e,t,i;vt(n,(cn(),Ab))&&!(i=u(m(n,Ab),21)).dc()&&(t=new Go(e=u(df(kr),9),u(Hs(e,e.length),9),0),i.Hc((Tw(),Fo))?Xs(t,Fo):Xs(t,uf),i.Hc(Ps)||Xs(t,Ps),i.Hc(rf)?Xs(t,of):i.Hc(zl)?Xs(t,fl):i.Hc(cf)&&Xs(t,Is),i.Hc(of)?Xs(t,rf):i.Hc(fl)?Xs(t,zl):i.Hc(Is)&&Xs(t,cf),U(n,Ab,t))}function nSe(n){var t,i,r,c,s;for(r=u(m(n,(V(),Eb)),10),Ln(0,(i=n.j).c.length),t=u(i.c[0],12),s=new C(r.j);s.ar.p?(bi(c,ae),c.d&&(c.a.b=c.o.b-c.a.b)):c.j==ae&&r.p>n.p&&(bi(c,zn),c.d&&(c.a.b=-(c.o.b-c.a.b)));break}return r}function My(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(L(e,207)||L(e,366)||L(e,193)))throw M(new Un("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return l=(h=e.i+i-(s=n.a/2))+e.g+n.a,d=(a=e.j+r-s)+e.f+n.a,xe(c=new Su,new W(h,a)),xe(c,new W(h,d)),xe(c,new W(l,d)),xe(c,new W(l,a)),qr(f=new Bx(c),e),t&&Xe(n.b,e,f),f}function K4(n,e,t){var i,r,c,s,h,l,a,g;for(c=new W(e,t),a=new C(n.a);a.a1)for(f=te+1;fl.b.e.b*(1-A)+l.c.e.b*A));p++);if(X.gc()>0&&(Fe=0==l.a.b?Bi(l.b.e):u(_s(l.a),8),O=et(Bi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=et(Bi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),p>=X.gc()-1&&Fe.b>O.b&&l.c.e.b>O.b||p<=0&&Fe.bl.b.e.a*(1-A)+l.c.e.a*A));p++);if(X.gc()>0&&(Fe=0==l.a.b?Bi(l.b.e):u(_s(l.a),8),O=et(Bi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=et(Bi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),p>=X.gc()-1&&Fe.a>O.a&&l.c.e.a>O.a||p<=0&&Fe.a=F(R(m(n,(bt(),_ln))))&&++Bn):(v.f&&v.d.e.a<=F(R(m(n,(bt(),Iq))))&&++kn,v.g&&v.c.e.a+v.c.f.a>=F(R(m(n,(bt(),Kln))))&&++Bn)}else 0==$?nen(l):$<0&&(++jn[te],++j[It],kn=u(($n=xDe(l,e,n,new ai(Y(kn),Y(Bn)),t,i,new ai(Y(j[It]),Y(jn[te])))).a,17).a,Bn=u($n.b,17).a)}(n,f,c,s),function zDe(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p;for(d=ge(n.b,0);d.b!=d.d.c;)if(!Tn((a=u(be(d),40)).c,VS))for(c=u(Vr(new Mn(null,new Pn(eCe(a,n),16)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),e==(ii(),$r)||e==zr?c.jd(new A3n):c.jd(new S3n),p=c.gc(),r=0;r0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-v)/(y.Math.abs(f-g)/40)>50&&tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a+i/5.3,v>h?a.e.b+a.f.b*s-i/2:a.e.b+a.f.b*s+i/2))),tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==zr?(l=F(R(m(a,(bt(),Sf)))),a.e.a-i>l?tr(u(c.Xb(r),65).a,new W(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-v)/(y.Math.abs(f-g)/40)>50&&tr(u(c.Xb(r),65).a,new W(a.e.a-i/5.3,v>h?a.e.b+a.f.b*s-i/2:a.e.b+a.f.b*s+i/2))),tr(u(c.Xb(r),65).a,new W(a.e.a,a.e.b+a.f.b*s))):e==hs?(l=F(R(m(a,(bt(),tf)))),a.e.b+a.f.b+i0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-v)/40)>50&&tr(u(c.Xb(r),65).a,new W(g>f?a.e.a+a.f.a*s-i/2:a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b))),tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=F(R(m(a,(bt(),Sf)))),Sxn(u(c.Xb(r),65),n)?tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,u(_s(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-v)/40)>50&&tr(u(c.Xb(r),65).a,new W(g>f?a.e.a+a.f.a*s-i/2:a.e.a+a.f.a*s+i/2,a.e.b-i/5.3))),tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,a.e.b)))}(n,f,c,s),i=ge(n.a,0);i.b!=i.d.c;)(t=u(be(i),65)).a.b<2&&nen(t);e.Vg()}function oUn(n){switch(n.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return u(Nen(n),17).a==n.o;case 1:case 2:if(-2==n.o)return!1;switch(n.p){case 0:case 1:case 2:case 6:case 5:case 7:return j0(n.k,n.f);case 3:case 4:return n.j==n.e;default:return null==n.n?null==n.g:it(n.n,n.g)}default:return!1}}function oSe(n,e){var t,i,r;switch(e.Ug("Breaking Point Insertion",1),i=new ben(n),u(m(n,(cn(),cq)),351).g){case 2:r=new pG;break;case 0:r=new wG;break;default:r=new mG}if(t=r.og(n,i),on(un(m(n,Ghn)))&&(t=function JIe(n,e){var t,i,r,c,f,h,l,a,d,g,v,p,k,j,A,I,O,$;for(g=new Z,r=new Z,k=null,f=e.Kc();f.Ob();)c=new _7n(u(f.Pb(),17).a),Rn(r.c,c),k&&(c.d=k,k.e=c),k=c;for(O=function EPe(n){var e,t,i,r,c,f,h,l,a;for(a=K(ye,_e,28,n.b.c.length+1,15,1),l=new Yt,i=0,c=new C(n.b);c.a1&&(i=new W(r,t.b),xe(e.a,i)),m5(e.a,S(T(yi,1),J,8,0,[g,d]))}function js(){js=N,zI=new Wb(Th,0),Uj=new Wb("NIKOLOV",1),Gj=new Wb("NIKOLOV_PIXEL",2),rln=new Wb("NIKOLOV_IMPROVED",3),cln=new Wb("NIKOLOV_IMPROVED_PIXEL",4),iln=new Wb("DUMMYNODE_PERCENTAGE",5),uln=new Wb("NODECOUNT_PERCENTAGE",6),XI=new Wb("NO_BOUNDARY",7),Lb=new Wb("MODEL_ORDER_LEFT_TO_RIGHT",8),cg=new Wb("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Xen(){Xen=N,Jre=new Cn(fcn,(Kn(),!1)),nce=new Cn(hcn,Y(0)),ece=new Cn(lcn,0),tce=new Cn(YS,!1),Xk(),Yre=new Cn(gK,a1n=cO),Y(0),Qre=new Cn(vK,Y(1)),zT(),uce=new Cn(acn,b1n=Jq),pT(),oce=new Cn(dcn,w1n=Gq),AA(),Zre=new Cn(bcn,d1n=Vq),cce=new Cn(pK,0),ice=new Cn(mK,!1),rce=new Cn(wcn,!1)}function Qx(n,e,t){var i,r,c,s,f,h;if(e){if(t<=-1){if(L(i=Nn(e.Dh(),-1-t),102))return u(i,19);for(f=0,h=(s=u(e.Mh(i),160)).gc();f=40)&&function hPe(n){var e,t,i,r,c,s,f;for(n.o=new Rg,i=new yt,s=new C(n.e.a);s.a0,f=oA(e,c),gW(t?f.b:f.g,e),1==Qg(f).c.length&&Nt(i,f,i.c.b,i.c),r=new ai(c,e),sa(n.o,r),pu(n.e.a,c))}(n),function pIe(n){var e,t,i,r,s,f,h,l,a,d;for(a=n.e.a.c.length,s=new C(n.e.a);s.a0&&xe(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&xe(n.e,c))))}function bUn(n,e,t,i){var r,c,s,f,h,l,a;for(gi(h=new W(t,i),u(m(e,(bt(),Um)),8)),a=ge(e.b,0);a.b!=a.d.c;)et((l=u(be(a),40)).e,h),xe(n.b,l);for(f=u(Vr(SJ(new Mn(null,new Pn(e.a,16))),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15).Kc();f.Ob();){for(c=ge((s=u(f.Pb(),65)).a,0);c.b!=c.d.c;)(r=u(be(c),8)).a+=h.a,r.b+=h.b;xe(n.a,s)}}function ntn(n,e){var t,i,r,c;if(0<(L(n,16)?u(n,16).gc():Ml(n.Kc()))){if(1<(r=e)){for(--r,c=new Gpn,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=To(S(T(No,1),xn,20,0,[c,new pl(t)]));return ntn(c,r)}if(r<0){for(c=new zpn,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=To(S(T(No,1),xn,20,0,[c,new pl(t)]));if(0<(L(c,16)?u(c,16).gc():Ml(c.Kc())))return ntn(c,r)}}return u(ZC(n.Kc()),40)}function CSe(n,e,t){var i,r,c,s;for(t.Ug("Processor order nodes",2),n.b=F(R(m(e,(bc(),$q)))),n.a=u(m(e,Nb),88),n.a==(ii(),eh)&&(n.a=nh,U(e,Nb,n.a)),r=new yt,s=ge(e.b,0);s.b!=s.d.c;)on(un(m(c=u(be(s),40),(bt(),Ba))))&&Nt(r,c,r.c.b,r.c);oe(0!=r.b),hGn(n,i=u(r.a.a.c,40)),t.fh(1),Uen(n,i,0-F(R(m(i,(bt(),eO))))/2,0),t.fh(1),t.Vg()}function ro(){ro=N,n6=new Ig("DEFAULT_MINIMUM_SIZE",0),jE=new Ig("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),AO=new Ig("COMPUTE_PADDING",2),G9=new Ig("OUTSIDE_NODE_LABELS_OVERHANG",3),SO=new Ig("PORTS_OVERHANG",4),IO=new Ig("UNIFORM_PORT_SPACING",5),PO=new Ig("SPACE_EFFICIENT_PORT_LABELS",6),KU=new Ig("FORCE_TABULAR_NODE_LABELS",7),yE=new Ig("ASYMMETRICAL",8)}function nB(n,e){var t,i,r,c,s,f,h,l;if(e){if(t=(c=e.Dh())?Mo(c).wi().si(c):null){for(y1(n,e,t),h=0,l=(null==(r=e.Dh()).i&&kh(r),r.i).length;h=0&&h0&&(Gn(0,n.length),45==n.charCodeAt(0)||(Gn(0,n.length),43==n.charCodeAt(0)))?1:0;it)throw M(new sh(fb+n+'"'));return f}function H4(n){switch(n){case 100:return b2(H8,!0);case 68:return b2(H8,!1);case 119:return b2(i_,!0);case 87:return b2(i_,!1);case 115:return b2(r_,!0);case 83:return b2(r_,!1);case 99:return b2(c_,!0);case 67:return b2(c_,!1);case 105:return b2(u_,!0);case 73:return b2(u_,!1);default:throw M(new ic(JJn+n.toString(16)))}}function pUn(n,e,t,i,r){t&&(!i||(n.c-n.b&n.a.length-1)>1)&&1==e&&u(n.a[n.b],10).k==(Xn(),Oc)?gp(u(n.a[n.b],10),(Po(),sl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&1==e&&u(n.a[n.c-1&n.a.length-1],10).k==(Xn(),Oc)?gp(u(n.a[n.c-1&n.a.length-1],10),(Po(),Ka)):2==(n.c-n.b&n.a.length-1)?(gp(u(T5(n),10),(Po(),sl)),gp(u(T5(n),10),Ka)):function sMe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Kh(n.c-n.b&n.a.length-1),l=null,a=null,c=new f5(n);c.a!=c.b;)r=u(eA(c),10),t=(f=u(m(r,(V(),Af)),12))?f.i:null,i=(s=u(m(r,Ss),12))?s.i:null,(l!=t||a!=i)&&(kHn(h,e),l=t,a=i),Rn(h.c,r);kHn(h,e)}(n,r),WJ(n)}function xSe(n){var e,t,i,s,f,h,l;for(s=new Z,i=new ie(ce(Vt(n.b).a.Kc(),new Vn));ve(i);)or(t=u(fe(i),18))&&nn(s,new RDn(t,jNn(n,t.c),jNn(n,t.d)));for(l=new qb(new vl(n.e).a.vc().Kc());l.a.Ob();)e=u(l.a.Pb(),44),(f=u(e.md(),113)).d.p=0;for(h=new qb(new vl(n.e).a.vc().Kc());h.a.Ob();)e=u(h.a.Pb(),44),0==(f=u(e.md(),113)).d.p&&nn(n.d,gSe(n,f))}function _Se(n,e){var t,i,r,c,f,h,l;if(null==(l=un(m(e,(bc(),Nre))))||(Jn(l),l)){for(function dCe(n,e){var t,i,r,c,s;for(n.a=K(ss,$w,15,r=e.b.b,0,1),n.b=K(fo,el,28,r,16,1),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),n.a[c.g]=new yt;for(i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}(n,e),r=new Z,h=ge(e.b,0);h.b!=h.d.c;)(t=Hnn(n,u(be(h),40),null))&&(qr(t,e),Rn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new C(r);i.a0&&(e.Cd(t),t.i&&p5e(t))}(r=DTe(n,e),(f=u(is(r,0),219)).c.kg()?f.c.eg()?new U7n(n):new G7n(n):new q7n(n)),function Z6e(n){var e,t,i;for(i=new C(n.b);i.a=0&&f!=t&&(c=new ji(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new ji(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function mUn(n){var e,t,i;if(null==n.b){if(i=new e1,null!=n.i&&(jr(i,n.i),i.a+=":"),256&n.f){for(256&n.f&&null!=n.a&&(function uge(n){return null!=n&&k7(_O,n.toLowerCase())}(n.i)||(i.a+="//"),jr(i,n.a)),null!=n.d&&(i.a+="/",jr(i,n.d)),16&n.f&&(i.a+="/"),e=0,t=n.j.length;e>>31;0!=i&&(n[t]=i)}(t,t,e<<1),i=0,r=0,s=0;rg)&&(a+f+s8(i,g,!1).a<=e.b&&(Ck(t,c-t.s),t.c=!0,Ck(i,c-t.s),uy(i,t.s,t.t+t.d+f),i.k=!0,fY(t.q,i),v=!0,r&&(NT(e,i),i.j=e,n.c.length>s&&(fy((Ln(s,n.c.length),u(n.c[s],186)),i),0==(Ln(s,n.c.length),u(n.c[s],186)).a.c.length&&l1(n,s)))),v)}function jUn(n,e,t){var i,s,f,h,a;if(0==e.p){for(e.p=1,(s=t)||(s=new ai(new Z,new Go(i=u(df(fr),9),u(Hs(i,i.length),9),0))),u(s.a,15).Fc(e),e.k==(Xn(),Qt)&&u(s.b,21).Fc(u(m(e,(V(),mc)),64)),h=new C(e.j);h.a0)if(r=u(n.Ab.g,2033),null==e){for(c=0;ct.s&&f=0&&l>=0&&hs)return en(),Zn;break;case 4:case 3:if(a<0)return en(),zn;if(a+t>c)return en(),ae}return(h=(l+f/2)/s)+(i=(a+t/2)/c)<=1&&h-i<=0?(en(),Wn):h+i>=1&&h-i>=0?(en(),Zn):i<.5?(en(),zn):(en(),ae)}function ZSe(n,e){var t,i,r,c,f,l,a,d,g,v,p,k;for(t=!1,a=F(R(m(e,(cn(),Ob)))),p=ja*a,r=new C(e.b);r.af.n.b-f.d.d+g.a+p&&(g.a=(g.g*g.a+d.g*d.a)/(k=d.g+g.g),g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function TUn(n,e,t,i,r,c,s){var h,l,a,d,g;for(g=new Lv,l=e.Kc();l.Ob();)for(d=new C(u(l.Pb(),853).Rf());d.an.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)))>n.a/2+e.a/2?1:0==t&&0==r?0:0==t?c/r+1:0==r?i/t+1:y.Math.min(i/t,c/r)+1}function rPe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new C(n.f.e);r.a0&&n.d!=(v5(),W_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(v5(),z_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new W(f/c,e.d.b);case 2:return new W(e.d.a,h/c);default:return new W(f/c,h/c)}}function SUn(n){var e,i,r,c,s;for(nn(s=new Vc((!n.a&&(n.a=new ni(Ro,n,5)),n.a).i+2),new W(n.j,n.k)),_t(new Mn(null,(!n.a&&(n.a=new ni(Ro,n,5)),new Pn(n.a,16))),new Rkn(s)),nn(s,new W(n.b,n.c)),e=1;e0&&(Uk(h,!1,(ii(),$r)),Uk(h,!0,zr)),iu(e.g,new HCn(n,t)),Xe(n.g,e,t)}function OUn(){var n;for(OUn=N,Hun=S(T(ye,1),_e,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),k_=K(ye,_e,28,37,15,1),kQn=S(T(ye,1),_e,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),qun=K(Ja,YB,28,37,14,1),n=2;n<=36;n++)k_[n]=di(y.Math.pow(n,Hun[n])),qun[n]=ly(Ry,k_[n])}function cPe(n){var e;if(1!=(!n.a&&(n.a=new q(jt,n,6,6)),n.a).i)throw M(new Un(uVn+(!n.a&&(n.a=new q(jt,n,6,6)),n.a).i));return e=new Su,Hk(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))&&Fi(e,mzn(n,Hk(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),!1)),Hk(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))&&Fi(e,mzn(n,Hk(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),!0)),e}function LUn(n,e){var t,i,c;for(c=!1,i=new ie(ce((e.d?n.a.c==(wh(),Db)?ki(e.b):Vt(e.b):n.a.c==(wh(),N1)?ki(e.b):Vt(e.b)).a.Kc(),new Vn));ve(i);)if(t=u(fe(i),18),(on(n.a.f[n.a.g[e.b.p].p])||or(t)||t.c.i.c!=t.d.i.c)&&!on(n.a.n[n.a.g[e.b.p].p])&&!on(n.a.n[n.a.g[e.b.p].p])&&(c=!0,bf(n.b,n.a.g[c7e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function itn(n,e,t){var i,r,c,s,f,h,l;if(0==(i=t.gc()))return!1;if(n.Pj())if(h=n.Qj(),aZ(n,e,t),s=1==i?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new J1(i),c=e+i,r=e;r0){for(s=0;s>16==-15&&n.Cb.Yh()&&N$(new P$(n.Cb,9,13,t,n.c,j1(eo(u(n.Cb,62)),n))):L(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(L(e=n.c,90)||(In(),e=$s),L(t,90)||(In(),t=$s),N$(new P$(n.Cb,9,10,t,e,j1(Lc(u(n.Cb,29)),n)))))),n.c}function sPe(n,e,t){var i,r,c,s,h,l,a,d;for(t.Ug("Hyperedge merging",1),function LCe(n,e){var t,i,r,c;for((c=u(Vr(uc(uc(new Mn(null,new Pn(e.b,16)),new lgn),new agn),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15)).Jc(new dgn),t=0,r=c.Kc();r.Ob();)-1==(i=u(r.Pb(),12)).p&&pen(n,i,t++)}(n,e),h=new Ni(e.b,0);h.b0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}((Ct(n)&&(k0(),new a0(Ct(n))),k0(),new VD(Ct(n)?new a0(Ct(n)):null,n)),zr),c=u(m(i,Ohn),107),gOn(t=i.d,c),gOn(t,r),i}function RUn(n,e){var t,i,s,f;return i=y.Math.abs($M(n.b).a-$M(e.b).a),f=y.Math.abs($M(n.b).b-$M(e.b).b),t=1,s=1,i>n.b.b/2+e.b.b/2&&(t=1-y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c))/i),f>n.b.a/2+e.b.a/2&&(s=1-y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d))/f),(1-y.Math.min(t,s))*y.Math.sqrt(i*i+f*f)}function lPe(n){var e,i,r;for(kB(n,n.e,n.f,(K0(),xa),!0,n.c,n.i),kB(n,n.e,n.f,xa,!1,n.c,n.i),kB(n,n.e,n.f,G2,!0,n.c,n.i),kB(n,n.e,n.f,G2,!1,n.c,n.i),function oPe(n,e,t,i,r){var c,s,f,h,l,a,d;for(s=new C(e);s.a=p&&(I>p&&(v.c.length=0,p=I),Rn(v.c,s));0!=v.c.length&&(g=u(sn(v,CA(e,v.c.length)),131),$n.a.Bc(g),g.s=k++,jen(g,kn,X),v.c.length=0)}for($=n.c.length+1,f=new C(n);f.a(Bn=i.b).s&&(vo(t),pu(Bn.i,i),i.c>0&&(i.a=Bn,nn(Bn.t,i),i.b=tn,nn(tn.i,i)))})(n.i,u(m(n.d,(V(),Hp)),234)),function NOe(n){var t,i,r,c,s,f,h,l,a;for(l=new yt,f=new yt,c=new C(n);c.a-1){for(r=ge(f,0);r.b!=r.d.c;)(i=u(be(r),131)).v=s;for(;0!=f.b;)for(t=new C((i=u(bx(f,0),131)).i);t.a=65;t--)ch[t]=t-65<<24>>24;for(i=122;i>=97;i--)ch[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)ch[r]=r-48+52<<24>>24;for(ch[43]=62,ch[47]=63,c=0;c<=25;c++)U1[c]=65+c&ri;for(s=26,h=0;s<=51;++s,h++)U1[s]=97+h&ri;for(n=52,f=0;n<=61;++n,f++)U1[n]=48+f&ri;U1[62]=43,U1[63]=47}function KUn(n,e){var t,i,r,c,s,f;return(r=rY(n))==(f=rY(e))?n.e==e.e&&n.a<54&&e.a<54?n.fe.f?1:0:(i=n.e-e.e,(t=(n.d>0?n.d:y.Math.floor((n.a-1)*Xzn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*Xzn)+1))>i+1?r:t0&&(s=Gg(s,QUn(i))),JBn(c,s))):rc)return en(),Zn;break;case 4:case 3:if(h<0)return en(),zn;if(h+n.f>r)return en(),ae}return(s=(f+n.g/2)/c)+(t=(h+n.f/2)/r)<=1&&s-t<=0?(en(),Wn):s+t>=1&&s-t>=0?(en(),Zn):t<.5?(en(),zn):(en(),ae)}function Pw(n){var e,t,i,r,c,s;if(Ze(),4!=n.e&&5!=n.e)throw M(new Un("Token#complementRanges(): must be RANGE: "+n.e));for(u2(c=n),f8(c),i=c.b.length+2,0==c.b[0]&&(i-=2),(t=c.b[c.b.length-1])==vm&&(i-=2),(r=new Co(4)).b=K(ye,_e,28,i,15,1),s=0,c.b[0]>0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e0&&(kL(h,h.d-r.d),r.c==(pf(),Fa)&&Zse(h,h.a-r.d),h.d<=0&&h.i>0&&Nt(e,h,e.c.b,e.c));for(c=new C(n.f);c.a0&&(XE(f,f.i-r.d),r.c==(pf(),Fa)&&nfe(f,f.b-r.d),f.i<=0&&f.d>0&&Nt(t,f,t.c.b,t.c))}function Nc(n,e,t,i,r){var c,s,f,h,l,a,d;if(ml(),QV(n,"src"),QV(t,"dest"),d=po(n),h=po(t),gV(0!=(4&d.i),"srcType is not an array"),gV(0!=(4&h.i),"destType is not an array"),s=h.c,gV(1&(a=d.c).i?a==s:0==(1&s.i),"Array types don't match"),function i6e(n,e,t,i,r){if(e<0||i<0||r<0||e+r>n.length||i+r>t.length)throw M(new lz)}(n,e,t,i,r),1&a.i||d==h)uen(n,e,t,i,r,!0);else if(l=kd(n),c=kd(t),x(n)===x(t)&&ei;)Dt(c,f,l[--e]);else for(f=i+r;iv&&(c&&(tr(X,g),tr(jn,Y(l.b-1))),Fe=t.b,It+=g+e,g=0,a=y.Math.max(a,t.b+t.c+te)),ru(f,Fe),cu(f,It),a=y.Math.max(a,Fe+te+t.c),g=y.Math.max(g,d),Fe+=te+e;if(a=y.Math.max(a,i),($n=It+g+t.a)2*c?(a=new PT(d),l=Ou(s)/go(s),h=yB(a,e,new kv,t,i,r,l),et(wf(a.e),h),d.c.length=0,c=0,Rn(d.c,a),Rn(d.c,s),c=Ou(a)*go(a)+Ou(s)*go(s)):(Rn(d.c,s),c+=Ou(s)*go(s));return d}(f,e,d.a,d.b,(l=i,Jn(r),l));break;case 1:j=function vPe(n,e,t,i,r){var c,s,f,h,l,a,d,g,v;for(On(),Jt(n,new Y4n),s=Z7(n),v=new Z,g=new Z,f=null,h=0;0!=s.b;)c=u(0==s.b?null:(oe(0!=s.b),Qo(s,s.a.a)),163),!f||Ou(f)*go(f)/21&&(h>Ou(f)*go(f)/2||0==s.b)&&(d=new PT(g),a=Ou(f)/go(f),l=yB(d,e,new kv,t,i,r,a),et(wf(d.e),l),f=d,Rn(v.c,d),h=0,g.c.length=0));return si(v,g),v}(f,e,d.a,d.b,(a=i,Jn(r),a));break;default:j=function qIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,k;for(f=K(Ai,Mr,28,n.c.length,15,1),zZ(g=new LM(new Z4n),n),l=0,k=new Z;0!=g.b.c.length;)if(s=u(0==g.b.c.length?null:sn(g.b,0),163),l>1&&Ou(s)*go(s)/2>f[0]){for(c=0;cf[c];)++c;d=new PT(new f1(k,0,c+1)),a=Ou(s)/go(s),h=yB(d,e,new kv,t,i,r,a),et(wf(d.e),h),Rv(D4(g,d),Z4),zZ(g,new f1(k,c+1,k.c.length)),k.c.length=0,l=0,vPn(f,f.length,0)}else null!=(0==g.b.c.length?null:sn(g.b,0))&&V$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Ou(s)*go(s),++l,Rn(k.c,s);return k}(f,e,d.a,d.b,(h=i,Jn(r),h))}ub(n,(k=yB(new PT(j),e,t,d.a,d.b,i,(Jn(r),r))).a,k.b,!1,!0)}(n,r,c,t),e.Vg()}function pPe(n,e,t,i,r){var s,f,h,l,a,d,g,v,p;for(g=function qke(n,e){var t,r,c;for(c=new Ni(n.e,0),t=0;c.blK)return t;r>-1e-6&&++t}return t}(n,t),h=0;h0),i.a.Xb(i.c=--i.b),d>g+h&&vo(i);for(s=new C(v);s.a0),i.a.Xb(i.c=--i.b)}}function Iw(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=K(fn,J,2,0,6,1),i=0,l=n,c=null;;){if(null==(f=t.exec(l))||""==l){h[i]=l;break}h[i]=($i(0,s=f.index,l.length),l.substr(0,s)),l=Xo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=($i(0,1,l.length),l.substr(0,1)),Gn(1,l.length+1),l=l.substr(1)),c=l,++i}if(n.length>0){for(r=h.length;r>0&&""==h[r-1];)--r;r0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),PM(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(f=0,l=(c=n.a).length;ff&&(f=r,a.c.length=0),r==f&&nn(a,new ai(t.c.i,t)));On(),Jt(a,n.c),P0(n.b,h.p,a)}}(d,n),d.f=Kh(d.d),function KSe(n,e){var t,i,r,s,f,h,l,a;for(s=new C(e.b);s.af&&(f=r,a.c.length=0),r==f&&nn(a,new ai(t.d.i,t)));On(),Jt(a,n.c),P0(n.f,h.p,a)}}(d,n),d}function HUn(n,e){var i,r,c;for(c=u(sn(n.n,n.n.c.length-1),209).d,n.p=y.Math.min(n.p,e.g),n.r=y.Math.max(n.r,c),n.g=y.Math.max(n.g,e.g+(1==n.b.c.length?0:n.i)),n.o=y.Math.min(n.o,e.f),n.e+=e.f+(1==n.b.c.length?0:n.i),n.f=y.Math.max(n.f,e.f),r=n.n.c.length>0?(n.n.c.length-1)*n.i:0,i=new C(n.n);i.a1)for(i=ge(r,0);i.b!=i.d.c;)for(c=0,h=new C((t=u(be(i),235)).e);h.a0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),IM(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(p=i.d+t.d,v=i.a-t.d-t.a,h=0,a=(s=n.a).length;h0||0==Q0(r.b.d,n.b.d+n.b.a)&&i.b<0||0==Q0(r.b.d+r.b.a,n.b.d)&&i.b>0){f=0;break}}else f=y.Math.min(f,R_n(n,r,i));f=y.Math.min(f,UUn(n,c,f,i))}return f}function Py(n,e){var t,r,c,s,f,h;if(n.b<2)throw M(new Un("The vector chain must contain at least a source and a target point."));for(oe(0!=n.b),K7(e,(r=u(n.a.a.c,8)).a,r.b),h=new Nv((!e.a&&(e.a=new ni(Ro,e,5)),e.a)),s=ge(n,1);s.a=0&&c!=t)throw M(new Un(hj));for(r=0,h=0;hF(Lf(s.g,s.d[0]).a)?(oe(h.b>0),h.a.Xb(h.c=--h.b),nw(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new Z),f.e).Mc(e),l=(!f.e&&(f.e=new Z),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new Z),f.e).Fc(s),++s.c));r||Rn(i.c,s)}function TPe(n,e,t){var i,c,s,f,h,l,a,d,g,v;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,f=new W(e.i+e.g/2,e.j+e.f/2),(l=u(z(e,(Ue(),Wp)),8)).a=l.a+d,l.b=l.b+g,i=f.b-(c=(f.b-l.b)/(f.a-l.a))*f.a,h=new W(t.i+t.g/2,t.j+t.f/2),(a=u(z(t,Wp),8)).a=a.a+d,a.b=a.b+g,!(l.a<(v=(i-(h.b-(s=(h.b-a.b)/(h.a-a.a))*h.a))/(s-c))&&f.a>>0).toString(16),t.length-2,t.length):n>=sr?"\\v"+Xo(t="0"+(n>>>0).toString(16),t.length-6,t.length):""+String.fromCharCode(n&ri)}return i}function WUn(n){var e,t,i;if(Dg(u(m(n,(cn(),Kt)),101)))for(t=new C(n.j);t.a=e.o&&t.f<=e.f||.5*e.a<=t.f&&1.5*e.a>=t.f){if((s=u(sn(e.n,e.n.c.length-1),209)).e+s.d+t.g+r<=i&&(u(sn(e.n,e.n.c.length-1),209).f-n.f+t.f<=n.b||1==n.a.c.length))return rZ(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||1==n.a.c.length))return nn(e.b,t),f=u(sn(e.n,e.n.c.length-1),209),nn(e.n,new ZM(e.s,f.f+f.a+e.i,e.i)),BZ(u(sn(e.n,e.n.c.length-1),209),t),HUn(e,t),!0}return!1}function JUn(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=x$(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&null!=s?it(s,t):x(s)===x(t))?(null!=s&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=x$(n,e,t),n.Mj()&&!(n.Yi()&&null!=s?it(s,t):x(s)===x(t))&&(r=null,null!=s&&(r=n.Oj(s,null)),(r=n.Nj(t,r))&&r.oj()),s)}function DPe(n,e){var t,i,r,c;if(e.Ug("Path-Like Graph Wrapping",1),0!=n.b.c.length)if(null==(r=new ben(n)).i&&(r.i=cY(r,new gG)),t=F(r.i)*r.f/(null==r.i&&(r.i=cY(r,new gG)),F(r.i)),r.b>t)e.Vg();else{switch(u(m(n,(cn(),cq)),351).g){case 2:c=new pG;break;case 0:c=new wG;break;default:c=new mG}if(i=c.og(n,r),!c.pg())switch(u(m(n,_I),352).g){case 2:i=K_n(r,i);break;case 1:i=OKn(r,i)}(function SIe(n,e,t){var i,r,c,f,h,a,d,g,v,p,j;if(!t.dc()){for(f=0,g=0,p=u((i=t.Kc()).Pb(),17).a;f0&&(h=f/60|0,l=f%60,r=n.q.getDate(),n.q.getHours()+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function NPe(n,e){var t,i,r,c;if(function X2e(n,e){FTn(n,Ae(vi(I0(e,24),vS)),Ae(vi(e,vS)))}(n.d,n.e),n.c.a.$b(),0!=F(R(m(e.j,(cn(),PI))))||0!=F(R(m(e.j,PI))))for(t=p2,x(m(e.j,ul))!==x((vh(),D1))&&U(e.j,(V(),Da),(Kn(),!0)),c=u(m(e.j,l9),17).a,r=0;r=j&&n.e[h.p]>p*n.b||O>=t*j)&&(Rn(g.c,f),f=new Z,Fi(s,c),c.a.$b(),v=y.Math.max(v,(l-=a)*n.b+k),l+=O,I=O,O=0,a=0,k=0);return new ai(v,g)}function cB(n){var e,i,r,s,f;if(!n.d){if(f=new Cmn,null==(e=J9).a.zc(n,e)){for(i=new ne(_r(n));i.e!=i.i.gc();)Bt(f,cB(u(ue(i),29)));e.a.Bc(n),e.a.gc()}for(s=f.i,!n.q&&(n.q=new q(Ds,n,11,10)),r=new ne(n.q);r.e!=r.i.gc();++s)u(ue(r),411);Bt(f,(!n.q&&(n.q=new q(Ds,n,11,10)),n.q)),gw(f),n.d=new Lg((u(D(H((ra(),_n).o),9),19),f.i),f.g),n.e=u(f.g,688),null==n.e&&(n.e=tse),no(n).b&=-17}return n.d}function q4(n,e,t,i){var r,c,s,f,h,l;if(l=ou(n.e.Dh(),e),h=0,r=u(n.g,124),ar(),u(e,69).xk()){for(s=0;s1||-1==p)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!dr(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),(r=u(Rf(n,l),58))?(s?-1==(h=g.dd(r))?g.Gi(c,r):c!=h&&g.Ui(c,r):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else null==k?a.Wb(null):null==(r=Rf(n,k))?n.b&&!dr(e)&&a.Wb(k):a.Wb(r)}function RPe(n,e){var t,i,r,c,s,f,h,l;for(t=new ogn,r=new ie(ce(ki(e).a.Kc(),new Vn));ve(r);)if(!or(i=u(fe(r),18))&&knn(f=i.c.i,UP)){if(-1==(l=Ren(n,f,UP,qP)))continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new Z),nn(t.a,f)}for(s=new ie(ce(Vt(e).a.Kc(),new Vn));ve(s);)if(!or(c=u(fe(s),18))&&knn(h=c.d.i,qP)){if(-1==(l=Ren(n,h,qP,UP)))continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new Z),nn(t.c,h)}return t}function KPe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(id(r=new Fl(n),(Xn(),Ei)),U(r,(V(),ot),t),U(r,(cn(),Kt),(Ii(),Xc)),Rn(i.c,r),cc(s=new Dc,r),bi(s,(en(),Wn)),cc(f=new Dc,r),bi(f,Zn),a=t.d,Pi(t,s),qr(c=new B0,t),U(c,Nr,null),Qi(c,f),Pi(c,a),l=new Ni(t.b,0);l.b1e6)throw M(new uC("power of ten too big"));if(n<=nt)return Qv(ky(Lp[1],e),e);for(r=i=ky(Lp[1],nt),t=Ec(n-nt),e=di(n%nt);Ac(t,nt)>0;)r=Gg(r,i),t=ms(t,nt);for(r=Qv(r=Gg(r,ky(Lp[1],e)),nt),t=Ec(n-nt);Ac(t,nt)>0;)r=Qv(r,nt),t=ms(t,nt);return Qv(r,e)}function YUn(n){var e,t,i,r,f,h,l,a;for(h=new C(n.a);h.al&&i>l)){r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}a=f,l=F(e.p[f.p])+F(e.d[f.p])+f.o.b+f.d.a}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function ltn(n,e,t,i){var r,c,s,f,l,a,d;if(id(c=new Fl(n),(Xn(),Gc)),U(c,(cn(),Kt),(Ii(),Xc)),r=0,e){for(U(s=new Dc,(V(),ot),e),U(c,ot,e.i),bi(s,(en(),Wn)),cc(s,c),a=0,d=(l=gh(e.e)).length;a=0&&!e2(n,a,d);)--d;r[a]=d}for(v=0;v=0&&!e2(n,f,p);)--f;c[p]=f}for(h=0;he[g]&&gi[h]&&eS(n,h,g,!1,!0)}function atn(n){var e,t,i,r,c,s,f,h;t=on(un(m(n,(Js(),QYn)))),c=n.a.c.d,f=n.a.d.d,t?(s=lh(gi(new W(f.a,f.b),c),.5),h=lh(Bi(n.e),.5),e=gi(et(new W(c.a,c.b),s),h),yW(n.d,e)):(r=F(R(m(n.a,uZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function o8(n){var e,t,i,c,f,h;if(!n.f){if(h=new MG,f=new MG,null==(e=J9).a.zc(n,e)){for(c=new ne(_r(n));c.e!=c.i.gc();)Bt(h,o8(u(ue(c),29)));e.a.Bc(n),e.a.gc()}for(!n.s&&(n.s=new q(Mu,n,21,17)),i=new ne(n.s);i.e!=i.i.gc();)L(t=u(ue(i),179),102)&&me(f,u(t,19));gw(f),n.r=new USn(n,(u(D(H((ra(),_n).o),6),19),f.i),f.g),Bt(h,n.r),gw(h),n.f=new Lg((u(D(H(_n.o),5),19),h.i),h.g),no(n).b&=-3}return n.f}function nGn(n){m0(n,new Od(g0(d0(w0(b0(new ed,xd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Bbn))),Q(n,xd,mR,rn($on)),Q(n,xd,kR,rn(K_)),Q(n,xd,Mp,rn(FYn)),Q(n,xd,hb,rn(Non)),Q(n,xd,nin,rn(KYn)),Q(n,xd,ein,rn(RYn)),Q(n,xd,Ztn,rn(_Yn)),Q(n,xd,tin,rn(BYn)),Q(n,xd,fin,rn(xYn)),Q(n,xd,hin,rn(R_)),Q(n,xd,lin,rn(Don)),Q(n,xd,ain,rn(FP))}function cS(){cS=N,Zdn=S(T(ds,1),jh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Ooe=new RegExp("[ \t\n\r\f]+");try{X9=S(T(SNe,1),xn,2114,0,[new l7((HX(),lA("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",W7((cC(),cC(),q8))))),new l7(lA("yyyy-MM-dd'T'HH:mm:ss'.'SSS",W7(q8))),new l7(lA("yyyy-MM-dd'T'HH:mm:ss",W7(q8))),new l7(lA("yyyy-MM-dd'T'HH:mm",W7(q8))),new l7(lA("yyyy-MM-dd",W7(q8)))])}catch(n){if(!L(n=At(n),82))throw M(n)}}function WPe(n,e){var t,r,c;if(r=0!=io(n.d,1),0==zen(n,e)&&on(un(m(e.j,(V(),Da)))))return 0;!on(un(m(e.j,(V(),Da))))&&!on(un(m(e.j,x2)))||x(m(e.j,(cn(),ul)))===x((vh(),D1))?e.c.mg(e.e,r):r=on(un(m(e.j,Da))),Cy(n,e,r,!0),on(un(m(e.j,x2)))&&U(e.j,x2,(Kn(),!1)),on(un(m(e.j,Da)))&&(U(e.j,Da,(Kn(),!1)),U(e.j,x2,!0)),t=zen(n,e);do{if(iY(n),0==t)return 0;c=t,Cy(n,e,r=!r,!1),t=zen(n,e)}while(c>t);return c}function eGn(n,e){var t,r,c;if(r=0!=io(n.d,1),0==RA(n,e)&&on(un(m(e.j,(V(),Da)))))return 0;!on(un(m(e.j,(V(),Da))))&&!on(un(m(e.j,x2)))||x(m(e.j,(cn(),ul)))===x((vh(),D1))?e.c.mg(e.e,r):r=on(un(m(e.j,Da))),Cy(n,e,r,!0),on(un(m(e.j,x2)))&&U(e.j,x2,(Kn(),!1)),on(un(m(e.j,Da)))&&(U(e.j,Da,(Kn(),!1)),U(e.j,x2,!0)),t=RA(n,e);do{if(iY(n),0==t)return 0;c=t,Cy(n,e,r=!r,!1),t=RA(n,e)}while(c>t);return c}function dtn(n,e,t,i){var r,c,s,f,h,l,a,d,g;return d=((h=gi(new W(t.a,t.b),n)).a*i.b-h.b*i.a)/(a=e.a*i.b-e.b*i.a),g=(l=h.a*e.b-h.b*e.a)/a,0==a?0==l?(c=fa(n,r=et(new W(t.a,t.b),lh(new W(i.a,i.b),.5))),s=fa(et(new W(n.a,n.b),e),r),f=.5*y.Math.sqrt(i.a*i.a+i.b*i.b),c=0&&d<=1&&g>=0&&g<=1?et(new W(n.a,n.b),lh(new W(e.a,e.b),d)):null}function QPe(n){var t,i,r,c,s,h,l,a,d,g;for(a=new WE(new rd(wHn(n)).a.vc().Kc());a.a.Ob();){for(r=u(a.a.Pb(),44),d=0,g=0,d=(l=u(r.ld(),10)).d.d,g=l.o.b+l.d.a,n.d[l.p]=0,t=l;(c=n.a[t.p])!=l;)i=z8e(t,c),0,h=n.c==(wh(),N1)?i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,s=F(n.d[t.p])+h,n.d[c.p]=s,d=y.Math.max(d,c.d.d-s),g=y.Math.max(g,s+c.o.b+c.d.a),t=c;t=l;do{n.d[t.p]=F(n.d[t.p])+d,t=n.a[t.p]}while(t!=l);n.b[l.p]=d+g}}function s8(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=0,s=n.t,r=0,i=0,h=0,g=0,d=0,t&&(n.n.c.length=0,nn(n.n,new ZM(n.s,n.t,n.i))),f=0,a=new C(n.b);a.a0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,nn(n.n,new ZM(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&BZ(u(sn(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,HZ(n.j)),new zo(n.s,n.t,r,i)}function uB(n){var t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=Mt,h=fi,g=Mt,l=fi,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),d=y.Math.min(d,(r=t.a).c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new C(t.c);s.af?1:-1:LY(n.a,e.a,c)))d=-h,a=s==h?E$(e.a,f,n.a,c):M$(e.a,f,n.a,c);else if(d=s,s==h){if(0==r)return mh(),G8;a=E$(n.a,c,e.a,f)}else a=M$(n.a,c,e.a,f);return l5(l=new dd(d,a.length,a)),l}function nIe(n,e){var i,r,c;if(c=BUn(e),!e.c&&(e.c=new q(Yu,e,9,9)),_t(new Mn(null,(!e.c&&(e.c=new q(Yu,e,9,9)),new Pn(e.c,16))),new G9n(c)),function zOe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=on(un(z(n,(cn(),ng)))),g=u(z(n,tg),21),h=!1,l=!1,d=new ne((!n.c&&(n.c=new q(Yu,n,9,9)),n.c));!(d.e==d.i.gc()||h&&l);){for(c=u(ue(d),123),f=0,r=qh(To(S(T(No,1),xn,20,0,[(!c.d&&(c.d=new Dn(Xt,c,8,5)),c.d),(!c.e&&(c.e=new Dn(Xt,c,7,4)),c.e)])));ve(r)&&(i=u(fe(r),74),a=s&&tb(i)&&on(un(z(i,Vd))),t=vGn((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),c)?n==Ct(Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))):n==Ct(Ur(u(D((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((Xu(),Xl))&&(!c.n&&(c.n=new q(Tr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((gr(),fs)),l&&e.Fc((gr(),n9))}(e,r=u(m(c,(V(),zc)),21)),r.Hc((gr(),fs)))for(i=new ne((!e.c&&(e.c=new q(Yu,e,9,9)),e.c));i.e!=i.i.gc();)yLe(n,e,c,u(ue(i),123));return 0!=u(z(e,(cn(),Qd)),181).gc()&&Iqn(e,c),on(un(m(c,Dhn)))&&r.Fc(kI),vt(c,_j)&&Rjn(new wZ(F(R(m(c,_j)))),c),x(z(e,Zw))===x((Ll(),B1))?function GDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,O,$,_,X,tn,jn,kn,Bn,$n,te;for(s=new yt,X=u(m(t,(cn(),$o)),88),k=0,Fi(s,(!e.a&&(e.a=new q(Qe,e,10,11)),e.a));0!=s.b;)(x(z(l=Ct(a=u(0==s.b?null:(oe(0!=s.b),Qo(s,s.a.a)),27)),ul))!==x((vh(),D1))||x(z(l,Wd))===x((k1(),Pm))||x(z(l,Wd))===x((k1(),Sm))||on(un(z(l,Tb)))||x(z(l,Yw))!==x((Sd(),zw))||x(z(l,$a))===x((js(),Lb))||x(z(l,$a))===x((js(),cg))||x(z(l,Jd))===x((M1(),_m))||x(z(l,Jd))===x((M1(),Hm)))&&!on(un(z(a,II)))&&ft(a,(V(),lt),Y(k++)),!on(un(z(a,Yd)))&&(g=0!=(!a.a&&(a.a=new q(Qe,a,10,11)),a.a).i,p=kye(a),v=x(z(a,Zw))===x((Ll(),B1)),$=null,(te=!Bf(a,(Ue(),Xm))||PDn(Oe(z(a,Xm))))&&v&&(g||p)&&(U($=BUn(a),$o,X),vt($,_j)&&Rjn(new wZ(F(R(m($,_j)))),$),0!=u(z(a,Qd),181).gc()&&(d=$,_t(new Mn(null,(!a.c&&(a.c=new q(Yu,a,9,9)),new Pn(a.c,16))),new z9n(d)),Iqn(a,$))),tn=t,(jn=u(ee(n.a,Ct(a)),10))&&(tn=jn.e),O=lzn(n,a,tn),$&&(O.e=$,$.e=O,Fi(s,(!a.a&&(a.a=new q(Qe,a,10,11)),a.a))));for(k=0,Nt(s,e,s.c.b,s.c);0!=s.b;){for(h=new ne((!(c=u(0==s.b?null:(oe(0!=s.b),Qo(s,s.a.a)),27)).b&&(c.b=new q(Xt,c,12,3)),c.b));h.e!=h.i.gc();)iUn(f=u(ue(h),74)),(x(z(e,ul))!==x((vh(),D1))||x(z(e,Wd))===x((k1(),Pm))||x(z(e,Wd))===x((k1(),Sm))||on(un(z(e,Tb)))||x(z(e,Yw))!==x((Sd(),zw))||x(z(e,$a))===x((js(),Lb))||x(z(e,$a))===x((js(),cg))||x(z(e,Jd))===x((M1(),_m))||x(z(e,Jd))===x((M1(),Hm)))&&ft(f,(V(),lt),Y(k++)),Bn=Ur(u(D((!f.b&&(f.b=new Dn(he,f,4,7)),f.b),0),84)),$n=Ur(u(D((!f.c&&(f.c=new Dn(he,f,5,8)),f.c),0),84)),!(on(un(z(f,Yd)))||on(un(z(Bn,Yd)))||on(un(z($n,Yd))))&&(_=c,tb(f)&&on(un(z(Bn,ng)))&&on(un(z(f,Vd)))||dw($n,Bn)?_=Bn:dw(Bn,$n)&&(_=$n),tn=t,(jn=u(ee(n.a,_),10))&&(tn=jn.e),U(Ltn(n,f,_,tn),(V(),yfn),GTe(n,f,e,t)));if(v=x(z(c,Zw))===x((Ll(),B1)))for(r=new ne((!c.a&&(c.a=new q(Qe,c,10,11)),c.a));r.e!=r.i.gc();)te=!Bf(i=u(ue(r),27),(Ue(),Xm))||PDn(Oe(z(i,Xm))),kn=x(z(i,Zw))===x(B1),te&&kn&&Nt(s,i,s.c.b,s.c)}}(n,e,c):function PDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j;for(g=0,r=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));r.e!=r.i.gc();)on(un(z(i=u(ue(r),27),(cn(),Yd))))||((x(z(a=Ct(i),ul))!==x((vh(),D1))||x(z(a,Wd))===x((k1(),Pm))||x(z(a,Wd))===x((k1(),Sm))||on(un(z(a,Tb)))||x(z(a,Yw))!==x((Sd(),zw))||x(z(a,$a))===x((js(),Lb))||x(z(a,$a))===x((js(),cg))||x(z(a,Jd))===x((M1(),_m))||x(z(a,Jd))===x((M1(),Hm)))&&!on(un(z(i,II)))&&(ft(i,(V(),lt),Y(g)),++g),lzn(n,i,t));for(g=0,l=new ne((!e.b&&(e.b=new q(Xt,e,12,3)),e.b));l.e!=l.i.gc();)f=u(ue(l),74),(x(z(e,(cn(),ul)))!==x((vh(),D1))||x(z(e,Wd))===x((k1(),Pm))||x(z(e,Wd))===x((k1(),Sm))||on(un(z(e,Tb)))||x(z(e,Yw))!==x((Sd(),zw))||x(z(e,$a))===x((js(),Lb))||x(z(e,$a))===x((js(),cg))||x(z(e,Jd))===x((M1(),_m))||x(z(e,Jd))===x((M1(),Hm)))&&(ft(f,(V(),lt),Y(g)),++g),k=Wh(f),j=va(f),d=on(un(z(k,ng))),p=!on(un(z(f,Yd))),v=d&&tb(f)&&on(un(z(f,Vd))),c=Ct(k)==e&&Ct(k)==Ct(j),s=(Ct(k)==e&&j==e)^(Ct(j)==e&&k==e),p&&!v&&(s||c)&&Ltn(n,f,e,t);if(Ct(e))for(h=new ne(BIn(Ct(e)));h.e!=h.i.gc();)(k=Wh(f=u(ue(h),74)))==e&&tb(f)&&(v=on(un(z(k,(cn(),ng))))&&on(un(z(f,Vd))))&&Ltn(n,f,e,t)}(n,e,c),c}function _c(n,e){var t,i,r,c,s,f,h;if(null==n)return null;if(0==(c=n.length))return"";for(h=K(ds,jh,28,c,15,1),$i(0,c,n.length),$i(0,c,h.length),zPn(n,0,c,h,0),t=null,f=e,r=0,s=0;r0?Xo(t.a,0,c-1):"":($i(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function Ow(n,e){var t,i,r,c,s;if(s=u(e,138),u2(n),u2(s),null!=s.b){if(n.c=!0,null==n.b)return n.b=K(ye,_e,28,s.b.length,15,1),void Nc(s.b,0,n.b,0,s.b.length);for(c=K(ye,_e,28,n.b.length+s.b.length,15,1),t=0,i=0,r=0;t=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]0?n.i:0)),++e;for(YY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Mt,n.p=Mt,c=new C(n.b);c.a0&&(!(r=(!n.n&&(n.n=new q(Tr,n,1,7)),u(D(n.n,0),135)).a)||Re(Re((e.a+=' "',e),r),'"'))),!n.b&&(n.b=new Dn(he,n,4,7)),t=!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1)),e.a+=t?" [":" ",Re(e,oW(new GL,new ne(n.b))),t&&(e.a+="]"),e.a+=AR,t&&(e.a+="["),Re(e,oW(new GL,new ne(n.c))),t&&(e.a+="]"),e.a)}function wtn(n,e,t){var i,r,s,f,h,l,a;return y.Math.abs(e.s-e.c)a?new gd((pf(),og),t,e,l-a):l>0&&a>0&&(new gd((pf(),og),e,t,0),new gd(og,t,e,0))),s)}function rGn(n,e,t,i){var r,c,s,h,l,a;if(c=cA(i),!on(un(m(i,(cn(),Ahn))))&&!on(un(m(n,NI)))||Dg(u(m(n,Kt),101)))switch(h=new Dc,cc(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,h_n(a,0,0,n.o.a,n.o.b),bi(h,MUn(h,c))):(r=up(c),bi(h,t==(wr(),nu)?r:ny(r))),s=u(m(i,(V(),zc)),21),l=h.j,c.g){case 2:case 1:(l==(en(),zn)||l==ae)&&s.Fc((gr(),N2));break;case 4:case 3:(l==(en(),Zn)||l==Wn)&&s.Fc((gr(),N2))}else r=up(c),h=ttn(n,t,t==(wr(),nu)?r:ny(r));return h}function cGn(n,e){var t,i,r,c,s;for(s=new Ed(new cd(n.f.b).a);s.b;){if(r=u((c=W0(s)).ld(),602),1==e){if(r.Af()!=(ii(),hs)&&r.Af()!=nh)continue}else if(r.Af()!=(ii(),$r)&&r.Af()!=zr)continue;switch(i=u(u(c.md(),42).b,86),t=u(u(c.md(),42).a,194).c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function uGn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(i=new ie(ce(xl(e).a.Kc(),new Vn));ve(i);)L(D((!(t=u(fe(i),74)).b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(h=Ur(u(D((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),Q5(t)||(s=e.i+e.g/2,f=e.j+e.f/2,a=h.i+h.g/2,d=h.j+h.f/2,(g=new Oi).a=a-s,g.b=d-f,O4(c=new W(g.a,g.b),e.g,e.f),g.a-=c.a,g.b-=c.b,s=a-g.a,f=d-g.b,O4(l=new W(g.a,g.b),h.g,h.f),g.a-=l.a,g.b-=l.b,a=s+g.a,d=f+g.b,n4(r=s2(t,!0,!0),s),t4(r,f),Z3(r,a),e4(r,d),uGn(n,h)))}function oGn(n){m0(n,new Od(g0(d0(w0(b0(new ed,ab),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new b4n))),Q(n,ab,jK,rn(gO)),Q(n,ab,Ocn,rn(vU)),Q(n,ab,Lcn,rn(gU)),Q(n,ab,EK,rn(lan)),Q(n,ab,CK,rn(wU)),Q(n,ab,hb,han),Q(n,ab,Fw,8),Q(n,ab,MK,rn(iue)),Q(n,ab,Dcn,rn(san)),Q(n,ab,Ncn,rn(fan)),Q(n,ab,uj,(Kn(),!1))}function hB(n,e,t){var i,r,c,f,h,l,a;return i=n.a.o==(Nf(),Yf)?Mt:fi,!(f=LUn(n,new nMn(e,t))).a&&f.c?(xe(n.d,f),i):f.a?(r=f.a.c,h=f.a.d,t?(l=n.a.c==(wh(),Db)?h:r,a=F(n.a.p[n.a.g[(c=n.a.c==Db?r:h).i.p].p])+F(n.a.d[c.i.p])+c.n.b+c.a.b-F(n.a.d[l.i.p])-l.n.b-l.a.b):(l=n.a.c==(wh(),N1)?h:r,a=F(n.a.p[n.a.g[(c=n.a.c==N1?r:h).i.p].p])+F(n.a.d[c.i.p])+c.n.b+c.a.b-F(n.a.d[l.i.p])-l.n.b-l.a.b),n.a.n[n.a.g[r.i.p].p]=(Kn(),!0),n.a.n[n.a.g[h.i.p].p]=!0,a):i}function oS(n,e,t){var i,c,s,f,h,l,a;if(Bl(n.e,e))ar(),_A((h=u(e,69).xk()?new kM(e,n):new B7(e,n)).c,h.b),U6(h,u(t,16));else{for(a=ou(n.e.Dh(),e),i=u(n.g,124),s=0;s"}null!=h&&(e.a+=""+h)}else n.e?null!=(f=n.e.zb)&&(e.a+=""+f):(e.a+="?",n.b?(e.a+=" super ",lB(n.b,e)):n.f&&(e.a+=" extends ",lB(n.f,e)))}function aB(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(Xn(),Ut)||n.j.c.length<=1||(c=u(m(n,(cn(),Kt)),101),c==(Ii(),Xc))||(kw(),i=(n.q?n.q:(On(),On(),il))._b(Sb)?u(m(n,Sb),203):u(m(Ki(n),f9),203),r=i,r==GI)||r!=U2&&r!=q2&&(s=F(R(mw(n,h9))),e=u(m(n,qj),140),!e&&(e=new KW(s,s,s,s)),l=sc(n,(en(),Wn)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=sc(n,Zn),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function sS(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=null,n.d&&(a=u(Bc(n.d,e),142)),!a){if(d=(c=n.a.vi()).i,!n.d||k6(n.d)!=d){for(h=new de,n.d&&E5(h,n.d),f=l=h.f.c+h.i.c;fe||on(un(z(h,(Uf(),tE)))))&&(r=0,c+=a.b+t,Rn(d.c,a),NT(a=new $J(c,t),i=new bF(0,a.f,a,t)),r=0),0==i.b.c.length||!on(un(z(Ct(h),(Uf(),cU))))&&(h.f>=i.o&&h.f<=i.f||.5*i.a<=h.f&&1.5*i.a>=h.f)?rZ(i,h):(NT(a,s=new bF(i.s+i.r+t,a.f,a,t)),rZ(s,h)),r=h.i+h.g;return Rn(d.c,a),d}function f8(n){var e,t,i,r;if(!(null==n.b||n.b.length<=2||n.a)){for(e=0,r=0;r=n.b[r+1])r+=2;else{if(!(t0&&Ac(r,-6)>=0){if(Ac(r,0)>=0){for(c=t+Ae(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ks(d,t,a-t+1)}for(s=2;rD(s,Yi(d1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ks(d,t,a-t)}return p=t+1,i=a,g=new Cg,h&&(g.a+="-"),i-p>=1?(ca(g,d[t]),g.a+=".",g.a+=ks(d,t+1,a-t-1)):g.a+=ks(d,t,a-t),g.a+="E",Ac(r,0)>0&&(g.a+="+"),g.a+=""+t5(r),g.a}(Ec(n.f),di(n.e)),n.g):(r=EB((!n.c&&(n.c=bk(Ec(n.f))),n.c),0),0==n.e?r:(e=(!n.c&&(n.c=bk(Ec(n.f))),n.c).e<0?2:1,i=-n.e+(t=r.length)-e,(c=new V1).a+=""+r,n.e>0&&i>=-6?i>=0?_7(c,t-di(n.e),String.fromCharCode(46)):(iF(c,e-1,e-1,"0."),_7(c,e+1,ks(Gd,0,-di(i)-1))):(t-e>=1&&(_7(c,e,String.fromCharCode(46)),++t),_7(c,t,String.fromCharCode(69)),i>0&&_7(c,++t,String.fromCharCode(43)),_7(c,++t,""+t5(Ec(i)))),n.g=c.a,n.g))}function wB(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p;for(p=new de,c=n.a.ec().Kc();c.Ob();)Xe(p,i=u(c.Pb(),177),t.af(i));for(Se(n),Jt(s=n?new Hu(n):D3(n.a.ec().Kc()),new D9n(p)),f=oT(s),h=new YC(e),Yc((v=new de).f,e,h);0!=f.a.gc();){for(l=null,a=null,d=null,r=f.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),177),F(R(Rr(br(p.f,i))))<=Mt){if(tu(v,i.a)&&!tu(v,i.b)){a=i.b,d=i.a,l=i;break}if(tu(v,i.b)&&!tu(v,i.a)){a=i.a,d=i.b,l=i;break}}if(!l)break;g=new YC(a),nn(u(Rr(br(v.f,d)),225).a,g),Yc(v.f,a,g),f.a.Bc(l)}return h}function Ld(n,e){var t,i,r,s,f;if(e){if(!n.a&&(n.a=new iC),2==n.e)return void tC(n.a,e);if(1==e.e){for(r=0;r=sr?jr(t,iZ(i)):B3(t,i&ri),s=new n$(10,null,0),function hwe(n,e,t){$3(t,n.a.c.length),Vo(n.a,t,e)}(n.a,s,f-1)):(s.Mm(),jr(t=new p6,s.Mm())),0==e.e?(i=e.Km())>=sr?jr(t,iZ(i)):B3(t,i&ri):jr(t,e.Mm()),u(s,530).b=t.a}}function PIe(n,e,t){var i,r,c;if((r=u(m(e,(cn(),SI)),282))!=(N4(),Z8)){switch(1===(t.Ug("Horizontal Compaction",1),n.a=e,function ghe(n,e){return n.g=e,n}(i=new fHn(((c=new VNn).d=e,c.c=u(m(c.d,Gl),223),function yAe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new C(n.d.b);r.a0&&Uk(l,!0,(ii(),zr)),f.k==(Xn(),Qt)&&lIn(l),Xe(n.f,f,e)):((a=(i=u(yge(Nl(f)),18)).c.i)==f&&(a=i.d.i),d=new ai(a,gi(Bi(f.n),a.n)),Xe(n.b,f,d))}(c),PAe(c),c.a)),n.b),u(m(e,uhn),431).g)?Wjn(i,new kFn(n.a)):Wjn(i,(mJ(),UQn)),r.g){case 1:Y5(i);break;case 2:Y5(fS(i,(ii(),zr)));break;case 3:Y5(Vjn(fS(Y5(i),(ii(),zr)),new q2n));break;case 4:Y5(Vjn(fS(Y5(i),(ii(),zr)),new m7n(c)));break;case 5:Y5(function whe(n,e){return n.b=e,n}(i,ene))}fS(i,(ii(),$r)),i.e=!0,function iLe(n){var e,t,i,r;for(_t(rt(new Mn(null,new Pn(n.a.b,16)),new X2n),new W2n),function Bke(n){var e,t,i,r,c;for(i=new Ed(new cd(n.b).a);i.b;)e=u((t=W0(i)).ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),et(wf(e.n),et(Bi(c.n),r))}(n),_t(rt(new Mn(null,new Pn(n.a.b,16)),new V2n),new J2n),n.c==(Dl(),Qp)&&(_t(rt(uc(new Mn(null,new Pn(new rd(n.f),1)),new Q2n),new Y2n),new E7n(n)),_t(rt(Kr(uc(uc(new Mn(null,new Pn(n.d.b,16)),new Z2n),new nvn),new evn),new tvn),new M7n(n))),r=new W(Mt,Mt),e=new W(fi,fi),i=new C(n.a.b);i.a1&&(h=l.Hg(h,n.a,f));return 1==h.c.length?u(sn(h,h.c.length-1),238):2==h.c.length?function vIe(n,e,t,i){var s,a,d,g,O;return g=e.f,(s=n.f)!=(Z5(),zp)&&s!=P9||g!=zp&&g!=P9?s!=V2&&s!=I9||g!=V2&&g!=I9?s!=V2&&s!=zp||g!=V2&&g!=zp?n:(s==V2?(d=n,a=e):(d=e,a=n),O=y.Math.max(t.j+t.f,d.e+i.f)-y.Math.min(t.j,d.e),(d.d+i.g-t.i)*O<=(y.Math.max(t.i+t.g,a.d+i.g)-y.Math.min(t.i,a.d))*(a.e+i.f-t.j)?n.f==V2?n:e:n.f==zp?n:e):n.f==I9?n:e:n.f==P9?n:e}((Ln(0,h.c.length),u(h.c[0],238)),(Ln(1,h.c.length),u(h.c[1],238)),s,c):null}function wGn(n){var e,t,i,r,c,s;for(iu(n.a,new Dbn),t=new C(n.a);t.a=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.ds.c&&c.c0){if(e=new BX(n.i,n.g),c=(t=n.i)<100?null:new J1(t),n.Tj())for(i=0;i0){for(f=n.g,l=n.i,g5(n),c=l<100?null:new J1(l),i=0;i4){if(!n.fk(e))return!1;if(n.al()){if(h=(i=(r=u(e,54)).Eh())==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh())for(c=0;c0)if(e=new sY(n.pj()),c=(t=a)<100?null:new J1(t),z7(n,t,e.g),r=1==t?n.Ij(4,D(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new ne(e);i.e!=i.i.gc();)c=n.Oj(ue(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else z7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(On(),Vi),null,-1,h));else if(n.Mj())if((a=n.Ej())>0){for(f=n.Fj(),l=a,z7(n,a,f),c=l<100?null:new J1(l),i=0;i.5?A-=2*s*(p-.5):p<.5&&(A+=2*c*(.5-p)),A<(r=f.d.b)&&(A=r),A>j.a-(k=f.d.c)-a&&(A=j.a-k-a),f.n.a=e+A}}function Ly(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;if(n.e&&n.c.c>19&&(e=b4(e),h=!h),s=function DMe(n){var e,t,i;return(t=n.l)&t-1||(i=n.m)&i-1||(e=n.h)&e-1||0==e&&0==i&&0==t?-1:0==e&&0==i&&0!=t?HQ(t):0==e&&0!=i&&0==t?HQ(i)+22:0!=e&&0==i&&0==t?HQ(e)+44:-1}(e),c=!1,r=!1,i=!1,n.h==Hy&&0==n.m&&0==n.l){if(r=!0,c=!0,-1!=s)return f=wen(n,s),h&&aF(f),t&&(Sa=eu(0,0,0)),f;n=iTn((Q3(),Dun)),i=!0,h=!h}else n.h>>19&&(c=!0,n=b4(n),i=!0,h=!h);return-1!=s?s6e(n,s,h,c,t):nnn(n,e)<0?(t&&(Sa=c?b4(n):eu(n.l,n.m,n.h)),eu(0,0,0)):function ISe(n,e,t,i,r,c){var s,h,l,a,d,g;for(s=c_n(e,l=kxn(e)-kxn(n)),h=eu(0,0,0);l>=0&&(!E7e(n,s)||(l<22?h.l|=1<>>1,s.m=a>>>1|(1&d)<<21,s.l=g>>>1|(1&a)<<21,--l;return t&&aF(h),c&&(i?(Sa=b4(n),r&&(Sa=exn(Sa,(Q3(),Nun)))):Sa=eu(n.l,n.m,n.h)),h}(i?n:eu(n.l,n.m,n.h),e,h,c,r,t)}function gB(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;if(0==(s=n.e))return e;if(0==(h=e.e))return n;if((c=n.d)+(f=e.d)==2)return t=vi(n.a[0],vr),i=vi(e.a[0],vr),s==h?(p=Ae(a=Yi(t,i)),0==(v=Ae(ia(a,32)))?new Tl(s,p):new dd(s,2,S(T(ye,1),_e,28,15,[p,v]))):(mh(),zC(s<0?ms(i,t):ms(t,i),0)?ga(s<0?ms(i,t):ms(t,i)):c5(ga(d1(s<0?ms(i,t):ms(t,i)))));if(s==h)g=s,d=c>=f?M$(n.a,c,e.a,f):M$(e.a,f,n.a,c);else{if(0==(r=c!=f?c>f?1:-1:LY(n.a,e.a,c)))return mh(),G8;1==r?(g=s,d=E$(n.a,c,e.a,f)):(g=h,d=E$(e.a,f,n.a,c))}return l5(l=new dd(g,d.length,d)),l}function QIe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t=0)return t;switch(F0(Ir(n,t))){case 2:if(Tn("",v1(n,t.qk()).xe())){if(a=men(n,e,h=ok(Ir(n,t)),_3(Ir(n,t))))return a;for(s=0,d=(r=Ven(n,e)).gc();s1,l=new xf(g.b);rc(l.a)||rc(l.b);)d=(h=u(rc(l.a)?E(l.a):E(l.b),18)).c==g?h.d:h.c,y.Math.abs(oc(S(T(yi,1),J,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&BTe(n,h,s,c,g)}}function ht(){ht=N,S0n=(Xz(),Mc).b,lse=u(D(H(Mc.b),0),35),o0=u(D(H(Mc.b),1),35),hse=u(D(H(Mc.b),2),35),uv=Mc.bb,u(D(H(Mc.bb),0),35),u(D(H(Mc.bb),1),35),ov=Mc.fb,Q9=u(D(H(Mc.fb),0),35),u(D(H(Mc.fb),1),35),u(D(H(Mc.fb),2),19),Rb=Mc.qb,Ese=u(D(H(Mc.qb),0),35),u(D(H(Mc.qb),1),19),u(D(H(Mc.qb),2),19),LE=u(D(H(Mc.qb),3),35),DE=u(D(H(Mc.qb),4),35),Z9=u(D(H(Mc.qb),6),35),Y9=u(D(H(Mc.qb),5),19),ase=Mc.j,dse=Mc.k,bse=Mc.q,wse=Mc.w,gse=Mc.B,vse=Mc.A,pse=Mc.C,mse=Mc.D,kse=Mc._,yse=Mc.cb,jse=Mc.hb}function mGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,j,A,I,O,$;for(a=F(R(m(n,(cn(),Ib)))),i=F(R(m(n,Khn))),U(g=new lL,Ib,a+i),A=(l=e).d,I=l.d.i,j=GX(l.c.i.c),O=GX(I.c),r=new Z,d=j;d<=O;d++)id(f=new Fl(n),(Xn(),Ei)),U(f,(V(),ot),l),U(f,Kt,(Ii(),Xc)),U(f,KI,g),v=u(sn(n.b,d),30),d==j?yw(f,v.a.c.length-t,v):Di(f,v),($=F(R(m(l,O1))))<0&&U(l,O1,$=0),f.o.b=$,p=y.Math.floor($/2),bi(s=new Dc,(en(),Wn)),cc(s,f),s.n.b=p,bi(h=new Dc,Zn),cc(h,f),h.n.b=p,Pi(l,s),qr(c=new B0,l),U(c,Nr,null),Qi(c,h),Pi(c,A),Y7e(f,l,c),Rn(r.c,c),l=c;return r}function vB(n,e){var i,r,c,s,f,h,a,d,g,v,p,k,j,A,O;for(h=u(E1(n,(en(),Wn)).Kc().Pb(),12).e,v=u(E1(n,Zn).Kc().Pb(),12).g,f=h.c.length,O=$f(u(sn(n.j,0),12));f-- >0;){for(Ln(0,h.c.length),k=u(h.c[0],18),Ln(0,v.c.length),c=Hr((r=u(v.c[0],18)).d.e,r,0),Dve(k,r.d,c),Qi(r,null),Pi(r,null),p=k.a,e&&xe(p,new ir(O)),i=ge(r.a,0);i.b!=i.d.c;)xe(p,new ir(u(be(i),8)));for(A=k.b,g=new C(r.b);g.a-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return null!=e&&on(un(e))!=R6(n.k,0);case 1:return null!=e&&u(e,222).a!=Ae(n.k)<<24>>24;case 2:return null!=e&&u(e,180).a!=(Ae(n.k)&ri);case 6:return null!=e&&R6(u(e,168).a,n.k);case 5:return null!=e&&u(e,17).a!=Ae(n.k);case 7:return null!=e&&u(e,191).a!=Ae(n.k)<<16>>16;case 3:return null!=e&&F(R(e))!=n.j;case 4:return null!=e&&u(e,161).a!=n.j;default:return null==e?null!=n.n:!it(e,n.n)}}function Dy(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&x(s=PN(n,u(t,58)))!==x(t)?(n.xj(e),n.Dj(e,ENn(n,0,s)),n.al()&&(r=u(t,54),c=n.ml()?n.kl()?r.Th(n.b,dr(u(Nn(vu(n.b),n.Lj()),19)).n,u(Nn(vu(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,St(r.Dh(),dr(u(Nn(vu(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null),!u(s,54).Ph()&&(i=u(s,54),c=n.ml()?n.kl()?i.Rh(n.b,dr(u(Nn(vu(n.b),n.Lj()),19)).n,u(Nn(vu(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,St(i.Dh(),dr(u(Nn(vu(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c)),c&&c.oj()),ao(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function kGn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new Z,s=new C(n.e.a);s.a0&&(s=y.Math.max(s,MFn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(v=g+n.C.c,l&&(v+=a.d.c),s=y.Math.max(s,(Of(),zs(zf),y.Math.abs(d-1)<=zf||1==d||isNaN(d)&&isNaN(1)?0:v/(1-d)))),t.n.b=0,t.a.a=s}function jGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,v;if(t=u(Er(n.b,e),127),(h=u(u(ut(n.r,e),21),87)).dc())return t.n.d=0,void(t.n.a=0);for(l=n.u.Hc((Xu(),Xl)),s=0,n.A.Hc((mo(),u0))&&Qqn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)c=F(R((i=u(f.Pb(),117)).b.of((cM(),DP)))),r=i.b.Mf().b,a?(v=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Of(),zs(zf),y.Math.abs(g-c)<=zf||g==c||isNaN(g)&&isNaN(c)?0:v/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,MFn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(v=d+n.C.a,l&&(v+=a.d.a),s=y.Math.max(s,(Of(),zs(zf),y.Math.abs(g-1)<=zf||1==g||isNaN(g)&&isNaN(1)?0:v/(1-g)))),t.n.d=0,t.a.b=s}function aOe(n,e,t,i,r,c,s,f){var l,a,d,g,v,p,j,A;if(p=!1,l=Aen(t.q,e.f+e.b-t.q.f),v=i.f>e.b&&f,d=s8(i,A=r-(t.q.e+l-s),!1).a,v&&d>i.f)return!1;if(v){for(g=0,j=new C(e.d);j.a=(Ln(c,n.c.length),u(n.c[c],186)).e,!v&&d>e.b&&!a))&&((a||v||d<=e.b)&&(a&&d>e.b?(t.d=d,Ck(t,s_n(t,d))):(TKn(t.q,l),t.c=!0),Ck(i,r-(t.s+t.r)),uy(i,t.q.e+t.q.d,e.f),NT(e,i),n.c.length>c&&(fy((Ln(c,n.c.length),u(n.c[c],186)),i),0==(Ln(c,n.c.length),u(n.c[c],186)).a.c.length&&l1(n,c)),p=!0),p)}function EGn(n,e,t){var i,r,c,s,f,h;for(this.g=n,this.d=K(cl,A1,10,(f=e.d.length)+(h=t.d.length),0,1),s=0;s0?H$(this,this.f/this.a):null!=Lf(e.g,e.d[0]).a&&null!=Lf(t.g,t.d[0]).a?H$(this,(F(Lf(e.g,e.d[0]).a)+F(Lf(t.g,t.d[0]).a))/2):null!=Lf(e.g,e.d[0]).a?H$(this,Lf(e.g,e.d[0]).a):null!=Lf(t.g,t.d[0]).a&&H$(this,Lf(t.g,t.d[0]).a)}function dOe(n,e){var t,i,c,s,f,h,l,a,d;for(n.a=new tIn(function Vme(n){var e,t;return t=(e=u(n.e&&n.e(),9)).slice(),new Go(e,u(O$(t,e),9),e.length)}(x9)),i=new C(e.a);i.a=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(cn(),Qd),(mo(),new Go(i=u(df(U9),9),u(Hs(i,i.length),9),0)))}function vOe(n,e,t){var i,r,c,s,f,h,l,d,g,v,p,k,j,A;if(t.Ug("Network simplex layering",1),n.b=e,A=4*u(m(e,(cn(),l9)),17).a,(j=n.b.a).c.length<1)t.Vg();else{for(k=null,r=ge(c=function bSe(n,e){var t,i,r,c,s;for(null==n.c||n.c.length1)for(k=K(ye,_e,28,n.b.b.c.length,15,1),d=0,l=new C(n.b.b);l.a=t}(this.k)}function AGn(n){var e,t,i,r,c,s,f;for(e=0,c=new C(n.b.a);c.afi||e.o==n0&&a=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else{if(!(hja)&&f<10);qz(n.c,new Ybn),AGn(n),function awe(n){return d2(n,(ii(),$r)),n.d=!0,n}(n.c),function oOe(n){var e,t,i,r,c,s,f,h;for(c=new C(n.a.b);c.a=2){for(s=u(be(h=ge(t,0)),8),f=u(be(h),8);f.a=n.j?(++n.j,nn(n.b,Y(1)),nn(n.c,a)):(i=n.d[e.p][1],Vo(n.b,l,Y(u(sn(n.b,l),17).a+1-i)),Vo(n.c,l,F(R(sn(n.c,l)))+a-i*n.f)),(n.r==(js(),Uj)&&(u(sn(n.b,l),17).a>n.k||u(sn(n.b,l-1),17).a>n.k)||n.r==Gj&&(F(R(sn(n.c,l)))>n.n||F(R(sn(n.c,l-1)))>n.n))&&(h=!1),s=new ie(ce(ki(e).a.Kc(),new Vn));ve(s);)c=u(fe(s),18),n.g[(f=c.c.i).p]==l&&(r+=u((d=PGn(n,f)).a,17).a,h=h&&on(un(d.b)));return n.g[e.p]=l,new ai(Y(r+=n.d[e.p][0]),(Kn(),!!h))}function IGn(n,e){var r,s;F(R(m(e,(cn(),ef))))<2&&U(e,ef,2),u(m(e,$o),88)==(ii(),eh)&&U(e,$o,cA(e)),r=u(m(e,Wte),17),U(e,(V(),Hp),0==r.a?new xF:new sT(r.a)),null==un(m(e,s9))&&U(e,s9,(Kn(),x(m(e,Gl))===x((Dl(),Ym)))),_t(new Mn(null,new Pn(e.a,16)),new ZG(n)),_t(uc(new Mn(null,new Pn(e.b,16)),new hG),new nz(n)),s=new CGn(e),U(e,(V(),B2),s),uk(n.a),gf(n.a,(zi(),nf),u(m(e,Wd),188)),gf(n.a,rl,u(m(e,Jd),188)),gf(n.a,$c,u(m(e,o9),188)),gf(n.a,Uc,u(m(e,BI),188)),gf(n.a,Gr,function Pme(n){var e;return pTn(),jCn(Cq,n)||((e=new Mpn).a=n,RW(Cq,n,e)),u(Er(Cq,n),645)}(u(m(e,Gl),223))),XX(n.a,function CDe(n){var e,t,c;switch(t=u(m(n,(V(),zc)),21),e=QC(jZn),u(m(n,(cn(),Zw)),346)==(Ll(),B1)&&So(e,EZn),on(un(m(n,YH)))?Ke(e,(zi(),nf),(nr(),oH)):Ke(e,(zi(),$c),(nr(),oH)),null!=m(n,(wT(),O9))&&So(e,CZn),(on(un(m(n,yhn)))||on(un(m(n,vhn))))&&Lu(e,(zi(),Gr),(nr(),gsn)),u(m(n,$o),88).g){case 2:case 3:case 4:Lu(Ke(e,(zi(),nf),(nr(),psn)),Gr,vsn)}switch(t.Hc((gr(),pI))&&Lu(Ke(Ke(e,(zi(),nf),(nr(),wsn)),Uc,dsn),Gr,bsn),x(m(n,$a))!==x((js(),zI))&&Ke(e,(zi(),$c),(nr(),Dsn)),t.Hc(kI)&&(Ke(e,(zi(),nf),(nr(),xsn)),Ke(e,rl,$sn),Ke(e,$c,Fsn)),x(m(n,SI))!==x((N4(),Z8))&&x(m(n,Gl))!==x((Dl(),bE))&&Lu(e,(zi(),Gr),(nr(),Asn)),on(un(m(n,mhn)))&&Ke(e,(zi(),$c),(nr(),Tsn)),on(un(m(n,WH)))&&Ke(e,(zi(),$c),(nr(),Bsn)),function xMe(n){var e,t,i,r;return x(m(n,(cn(),Zw)))===x((Ll(),B1))?!n.e&&x(m(n,Kj))!==x((l4(),Nj)):(i=u(m(n,XH),299),r=on(un(m(n,WH)))||x(m(n,o9))===x((k5(),Dj)),e=u(m(n,fhn),17).a,t=n.a.c.length,!r&&i!=(l4(),Nj)&&(0==e||e>t))}(n)&&(c=(x(m(n,Zw))===x(B1)?u(m(n,Kj),299):u(m(n,XH),299))==(l4(),LH)?(nr(),Nsn):(nr(),_sn),Ke(e,(zi(),Uc),c)),u(m(n,Xhn),388).g){case 1:Ke(e,(zi(),Uc),(nr(),Rsn));break;case 2:Lu(Ke(Ke(e,(zi(),$c),(nr(),fsn)),Uc,hsn),Gr,lsn)}return x(m(n,ul))!==x((vh(),D1))&&Ke(e,(zi(),$c),(nr(),Ksn)),e}(e)),U(e,_H,Ly(n.a,e))}function jtn(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A;for(d=new de,s=new Z,P_n(n,t,n.d.Ag(),s,d),P_n(n,i,n.d.Bg(),s,d),n.b=.2*(k=NHn(uc(new Mn(null,new Pn(s,16)),new xpn)),j=NHn(uc(new Mn(null,new Pn(s,16)),new Bpn)),y.Math.min(k,j)),c=0,f=0;f=2&&(A=ZHn(s,!0,g),!n.e&&(n.e=new hkn(n)),$8e(n.e,A,s,n.b)),FKn(s,g),function $Oe(n){var t,i,r,c,s,f,h,l,a;for(l=new Z,f=new Z,s=new C(n);s.a-1){for(c=new C(f);c.a0)&&(RG(h,y.Math.min(h.o,r.o-1)),XE(h,h.i-1),0==h.i&&Rn(f.c,h))}}(s),v=-1,a=new C(s);a.a0&&0==t.c&&(!e&&(e=new Z),Rn(e.c,t));if(e)for(;0!=e.c.length;){if((t=u(l1(e,0),239)).b&&t.b.c.length>0)for(!t.b&&(t.b=new Z),c=new C(t.b);c.aHr(n,t,0))return new ai(r,t)}else if(F(Lf(r.g,r.d[0]).a)>F(Lf(t.g,t.d[0]).a))return new ai(r,t);for(f=(!t.e&&(t.e=new Z),t.e).Kc();f.Ob();)!(s=u(f.Pb(),239)).b&&(s.b=new Z),ow(0,(h=s.b).c.length),S6(h.c,0,t),s.c==h.c.length&&Rn(e.c,s)}return null}function l8(n,e){var t,i,r,c,s,f,h,l,a;if(5!=e.e){if(null!=(l=e).b&&null!=n.b){for(u2(n),f8(n),u2(l),f8(l),t=K(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else{if(!(h2?(si(a=new Z,new f1(A,1,A.b)),qr(I=new Bx(yzn(a,O+n.a)),e),Rn(t.c,I)):I=u(ee(n.b,i?Wh(e):va(e)),272),h=Wh(e),i&&(h=va(e)),s=function Fje(n,e){var t,i,r;return r=p2,_5(),i=Mj,r=y.Math.abs(n.b),(t=y.Math.abs(e.f-n.b))0?1:0;c.a[r]!=t;)r=n.a.Ne(t.d,(c=c.a[r]).d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}(n,h,s,a=new S$(d.d,d.e)),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function xGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(t)for(i=-1,a=new Ni(e,0);a.b=14&&a<=16?L(i,183)?Al(t,mEe(u(i,183))):L(i,195)?Al(t,rye(u(i,195))):L(i,201)?Al(t,bje(u(i,201))):L(i,2111)?Al(t,cye(u(i,2111))):L(i,53)?Al(t,pEe(u(i,53))):L(i,376)?Al(t,FEe(u(i,376))):L(i,846)?Al(t,vEe(u(i,846))):L(i,109)&&Al(t,gEe(u(i,109))):e.a._b(i)?(t.a?Re(t.a,t.b):t.a=new yo(t.d),_6(t.a,"[...]")):Al(t,BGn(kd(i),new Y6(e))):Al(t,null==i?yu:Jr(i));return t.a?0==t.e.length?t.a.a:t.a.a+""+t.e:t.c}function G4(n,e){var t,i,r,c;c=n.F,null==e?(n.F=null,p4(n,null)):(n.F=(Jn(e),e),-1!=(i=fh(e,ku(60)))?($i(0,i,e.length),r=e.substr(0,i),-1==fh(e,ku(46))&&!Tn(r,vp)&&!Tn(r,$8)&&!Tn(r,hP)&&!Tn(r,F8)&&!Tn(r,x8)&&!Tn(r,B8)&&!Tn(r,R8)&&!Tn(r,K8)&&(r=mJn),-1!=(t=tM(e,ku(62)))&&(r+=""+(Gn(t+1,e.length+1),e.substr(t+1))),p4(n,r)):(r=e,-1==fh(e,ku(46))&&(-1!=(i=fh(e,ku(91)))&&($i(0,i,e.length),r=e.substr(0,i)),Tn(r,vp)||Tn(r,$8)||Tn(r,hP)||Tn(r,F8)||Tn(r,x8)||Tn(r,B8)||Tn(r,R8)||Tn(r,K8)?r=e:(r=mJn,-1!=i&&(r+=""+(Gn(i,e.length+1),e.substr(i))))),p4(n,r),r==e&&(n.F=n.D))),4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,5,c,e))}function RGn(n,e){var t,i,r,s,f,h,l,d;if(Gn(h=e.length-1,e.length),93==(f=e.charCodeAt(h))){if((s=fh(e,ku(91)))>=0)return r=function z5e(n,e){var t;if(L(t=Ey(n.Dh(),e),102))return u(t,19);throw M(new Un(Aa+e+"' is not a valid reference"))}(n,($i(1,s,e.length),e.substr(1,s-1))),$i(s+1,h,e.length),function pDe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new Z,d=e.length,s=CY(t),l=0;l=0?n.Lh(l,!1,!0):ib(n,t,!1),61).Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a=0){i=u(j$(n,A$n(n,($i(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=Io((Gn(t+1,e.length+1),e.substr(t+1)),Xi,nt)}catch(g){throw L(g=At(g),130)?M(new kT(g)):M(g)}if(l>16==-10?t=u(n.Cb,292).Yk(e,t):n.Db>>16==-15&&(!e&&(In(),e=rh),!l&&(In(),l=rh),n.Cb.Yh()&&(h=new Sl(n.Cb,1,13,l,e,j1(eo(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,90))n.Db>>16==-23&&(L(e,90)||(In(),e=$s),L(l,90)||(In(),l=$s),n.Cb.Yh()&&(h=new Sl(n.Cb,1,10,l,e,j1(Lc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,457))for(!(f=u(n.Cb,850)).b&&(f.b=new ZE(new FL)),c=new nC(new Ed(new cd(f.b.a).a));c.a.b;)t=z4(r=u(W0(c.a).ld(),89),UA(r,f),t);return t}function KGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if((g=u(z(n,(Ue(),i0)),21)).dc())return null;if(f=0,s=0,g.Hc((mo(),kE))){for(a=u(z(n,F9),101),i=2,t=2,r=2,c=2,e=Ct(n)?u(z(Ct(n),t0),88):u(z(n,t0),88),l=new ne((!n.c&&(n.c=new q(Yu,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(ue(l),123),(d=u(z(h,iv),64))==(en(),hc)&&(d=otn(h,e),ft(h,iv,d)),a==(Ii(),Xc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return ub(n,f,s,!0,!0)}function pB(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$;for(I=u(Vr(ST(rt(new Mn(null,new Pn(e.d,16)),new I7n(t)),new O7n(t)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),d=nt,a=Xi,h=new C(e.b.j);h.a0)?l&&(g=A.p,s?++g:--g,v=!(Hx(i=hxn(u(sn(A.c.a,g),10)),X,t[0])||NPn(i,X,t[0]))):v=!0),p=!1,(_=e.D.i)&&_.c&&f.e&&(s&&_.p>0||!s&&_.p<_.c.a.c.length-1?(g=_.p,s?--g:++g,p=!(Hx(i=hxn(u(sn(_.c.a,g),10)),t[0],jn)||NPn(i,t[0],jn))):p=!0),v&&p&&xe(n.a,tn),v||m5(n.a,S(T(yi,1),J,8,0,[k,j])),p||m5(n.a,S(T(yi,1),J,8,0,[$,O]))}function QOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v;if(c=u(m(n,(V(),ot)),74)){for(i=n.a,et(r=new ir(t),function jke(n){var e,t,i,r;if(r=u(m(n,(V(),yfn)),36)){for(i=new Oi,e=Ki(n.c.i);e!=r;)e=Ki(t=e.e),A0(et(et(i,t.n),e.c),e.d.b,e.d.d);return i}return HZn}(n)),f4(n.d.i,n.c.i)?(g=n.c,gi(d=oc(S(T(yi,1),J,8,0,[g.n,g.a])),t)):d=$f(n.c),Nt(i,d,i.a,i.a.a),v=$f(n.d),null!=m(n,qH)&&et(v,u(m(n,qH),8)),Nt(i,v,i.c.b,i.c),ww(i,r),xT(s=s2(c,!0,!0),u(D((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),BT(s,u(D((!c.c&&(c.c=new Dn(he,c,5,8)),c.c),0),84)),Py(i,s),a=new C(n.b);a.as?1:E0(isNaN(0),isNaN(s)))<0&&(zs(Sh),(y.Math.abs(s-1)<=Sh||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:E0(isNaN(s),isNaN(1)))<0)&&(zs(Sh),(y.Math.abs(0-f)<=Sh||0==f||isNaN(0)&&isNaN(f)?0:0f?1:E0(isNaN(0),isNaN(f)))<0)&&(zs(Sh),(y.Math.abs(f-1)<=Sh||1==f||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:E0(isNaN(f),isNaN(1)))<0))}function eLe(n,e,t){var i;if(t.Ug("StretchWidth layering",1),0!=e.a.c.length){for(n.c=e,n.t=0,n.u=0,n.i=Mt,n.g=fi,n.d=F(R(m(e,(cn(),ef)))),function y9e(n){var e,t,i;for(n.p=(Se(i=n.c.a),new Hu(i)),t=new C(i);t.a0&&(e.a+=cr),hS(u(ue(f),167),e);for(e.a+=AR,h=new Nv((!i.c&&(i.c=new Dn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=cr),hS(u(ue(h),167),e);e.a+=")"}}}function cLe(n,e,t){var i,r,c,s,f,h,l,a;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(m(e,(cn(),$a)),243),n.r!=(js(),Lb)&&n.r!=cg?function LLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,v,p,k;for(n.o=F(R(m(n.i,(cn(),Ob)))),n.f=F(R(m(n.i,Zd))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=Ff(K(qi,J,17,n.j,0,1)),n.c=Ff(K(ui,J,345,n.j,7,1)),s=new C(n.i.b);s.a0&&nn(n.q,a),nn(n.p,a);l+=(e-=i)*n.f,Vo(n.b,f,Y(v=h+e)),Vo(n.c,f,l),n.k=y.Math.max(n.k,v),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}(n):function rAe(n){var e,t,i,r,s,h,l;for(n.a=new HW,l=0,r=0,i=new C(n.i.b);i.an.k&&(n.r=Uj,U4(n,c));break;case 4:for(n.r=XI,U4(n,c),l=0,r=new C(n.c);r.an.n&&(n.r=Gj,U4(n,c));break;case 6:U4(n,new l7n(di(y.Math.ceil(n.g.length*a/100))));break;case 5:U4(n,new a7n(di(y.Math.ceil(n.e*a/100))));break;case 8:Czn(n,!0);break;case 9:Czn(n,!1)}n.r!=Lb&&n.r!=cg?function STe(n,e){var t,i,r,c,s,f;for(r=new Z,t=0;t<=n.j;t++)(i=new xc(e)).p=n.j-t,Rn(r.c,i);for(f=new C(n.p);f.a0&&(n.c[e.c.p][e.p].d+=io(n.i,24)*zy*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function UGn(n,e){var t,i,r,c,s,f,h,l,a;return l="",0==e.length?n.ne(Htn,IB,-1,-1):(Tn((a=Cw(e)).substr(0,3),"at ")&&(Gn(3,a.length+1),a=a.substr(3)),-1==(s=(a=a.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(s=a.indexOf("@"))?(l=a,a=""):(l=Cw((Gn(s+1,a.length+1),a.substr(s+1))),a=Cw(($i(0,s,a.length),a.substr(0,s)))):($i(s+1,t=a.indexOf(")",s),a.length),l=a.substr(s+1,t-(s+1)),a=Cw(($i(0,s,a.length),a.substr(0,s)))),-1!=(s=fh(a,ku(46)))&&(Gn(s+1,a.length+1),a=a.substr(s+1)),(0==a.length||Tn(a,"Anonymous function"))&&(a=IB),f=tM(l,ku(58)),r=VW(l,ku(58),f-1),h=-1,i=-1,c=Htn,-1!=f&&-1!=r&&($i(0,r,l.length),c=l.substr(0,r),h=oAn(($i(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=oAn((Gn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function dLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;for(X=0,v=0,d=new C(e.e);d.a=l&&_>=j&&(g+=p.n.b+k.n.b+k.a.b-$,++f));if(t)for(s=new C(I.e);s.a=l&&_>=j&&(g+=p.n.b+k.n.b+k.a.b-$,++f))}f>0&&(X+=g/f,++v)}v>0?(e.a=r*X/v,e.g=v):(e.a=0,e.g=0)}function GGn(n,e,t,i){var r,c,s,f,h;return function cTe(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((Xu(),Xl)),c=0,r=new C(n.e.Xf());r.ai.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}(f),function a7e(n){switch(n.q.g){case 5:mKn(n,(en(),zn)),mKn(n,ae);break;case 4:yGn(n,(en(),zn)),yGn(n,ae);break;default:C_n(n,(en(),zn)),C_n(n,ae)}}(f),function d7e(n){switch(n.q.g){case 5:kKn(n,(en(),Zn)),kKn(n,Wn);break;case 4:jGn(n,(en(),Zn)),jGn(n,Wn);break;default:M_n(n,(en(),Zn)),M_n(n,Wn)}}(f),function BOe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((mo(),kE))&&(u(Er(n.b,(en(),zn)),127).k=!0,u(Er(n.b,ae),127).k=!0,e=n.q!=(Ii(),hl)&&n.q!=Xc,FG(u(Er(n.b,Zn),127),e),FG(u(Er(n.b,Wn),127),e),FG(n.g,e),n.A.Hc(u0)&&(u(Er(n.b,zn),127).j=!0,u(Er(n.b,ae),127).j=!0,u(Er(n.b,Zn),127).k=!0,u(Er(n.b,Wn),127).k=!0,n.g.k=!0)),n.A.Hc(mE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((ro(),G9)),c=0,s=(r=zF()).length;c1)for(_i(O,new eMn(n,v=new gtn(p,O,i))),Rn(s.c,v),d=O.a.ec().Kc();d.Ob();)pu(c,u(d.Pb(),42).b);if(f.a.gc()>1)for(_i(f,new tMn(n,v=new gtn(p,f,i))),Rn(s.c,v),d=f.a.ec().Kc();d.Ob();)pu(c,u(d.Pb(),42).b)}}function mLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A;if(k=n.n,j=n.o,g=n.d,d=F(R(mw(n,(cn(),eq)))),e){for(a=d*(e.gc()-1),v=0,h=e.Kc();h.Ob();)a+=(s=u(h.Pb(),10)).o.a,v=y.Math.max(v,s.o.b);for(A=k.a-(a-j.a)/2,c=k.b-g.d+v,r=i=j.a/(e.gc()+1),f=e.Kc();f.Ob();)(s=u(f.Pb(),10)).n.a=A,s.n.b=c-s.o.b,A+=s.o.a+d,(l=nqn(s)).n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,(p=u(m(s,(V(),yI)),12)).e.c.length+p.g.c.length==1&&(p.n.a=r-p.a.a,p.n.b=0,cc(p,n)),r+=i}if(t){for(a=d*(t.gc()-1),v=0,h=t.Kc();h.Ob();)a+=(s=u(h.Pb(),10)).o.a,v=y.Math.max(v,s.o.b);for(A=k.a-(a-j.a)/2,c=k.b+j.b+g.a-v,r=i=j.a/(t.gc()+1),f=t.Kc();f.Ob();)(s=u(f.Pb(),10)).n.a=A,s.n.b=c,A+=s.o.a+d,(l=nqn(s)).n.a=s.o.a/2-l.a.a,l.n.b=0,(p=u(m(s,(V(),yI)),12)).e.c.length+p.g.c.length==1&&(p.n.a=r-p.a.a,p.n.b=j.b,cc(p,n)),r+=i}}function yLe(n,e,t,i){var r,c,s,f,h,a,d,g,v,p,k,j;for(h=new W(i.i+i.g/2,i.j+i.f/2),v=dGn(i),p=u(z(e,(cn(),Kt)),101),j=u(z(i,xm),64),DMn(wRn(i),eg)||(k=0==i.i&&0==i.j?0:function $ye(n,e){var t;if(!Df(n))throw M(new Sr(cVn));switch(t=Df(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}(i,j),ft(i,eg,k)),U(r=Ny(i,p,j,v,new W(e.g,e.f),h,new W(i.g,i.f),u(m(t,$o),88),t),(V(),ot),i),function Jse(n,e){n.c=e}(c=u(sn(r.j,0),12),function BSe(n){var e,t,i,r,c;for(c=Df(n),r=new ne((!n.e&&(n.e=new Dn(Xt,n,7,4)),n.e));r.e!=r.i.gc();)if(i=u(ue(r),74),!dw(Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),c))return!0;for(t=new ne((!n.d&&(n.d=new Dn(Xt,n,8,5)),n.d));t.e!=t.i.gc();)if(e=u(ue(t),74),!dw(Ur(u(D((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),c))return!0;return!1}(i)),U(r,tg,(Xu(),yn(qa))),d=u(z(e,tg),181).Hc(Xl),f=new ne((!i.n&&(i.n=new q(Tr,i,1,7)),i.n));f.e!=f.i.gc();)if(!on(un(z(s=u(ue(f),135),Yd)))&&s.a&&(g=MF(s),nn(c.f,g),!d))switch(a=0,e5(u(z(e,tg),21))&&(a=een(new W(s.i,s.j),new W(s.g,s.f),new W(i.g,i.f),0,j)),j.g){case 2:case 4:g.o.a=a;break;case 1:case 3:g.o.b=a}U(r,Rm,R(z(Ct(e),Rm))),U(r,Km,R(z(Ct(e),Km))),U(r,rg,R(z(Ct(e),rg))),nn(t.a,r),Xe(n.a,i,r)}function jLe(n,e,t,i,r,c){var s,f,h,l,a,d;for(qr(l=new Dc,e),bi(l,u(z(e,(cn(),xm)),64)),U(l,(V(),ot),e),cc(l,t),(d=l.o).a=e.g,d.b=e.f,(a=l.n).a=e.i,a.b=e.j,Xe(n.a,e,l),(s=zg(Kr(uc(new Mn(null,(!e.e&&(e.e=new Dn(Xt,e,7,4)),new Pn(e.e,16))),new Ewn),new ywn),new X9n(e)))||(s=zg(Kr(uc(new Mn(null,(!e.d&&(e.d=new Dn(Xt,e,8,5)),new Pn(e.d,16))),new Cwn),new jwn),new W9n(e))),s||(s=zg(new Mn(null,(!e.e&&(e.e=new Dn(Xt,e,7,4)),new Pn(e.e,16))),new Mwn)),U(l,xj,(Kn(),!!s)),function HIe(n,e,t,i){var r,c,s,f,h,l;if((f=n.j)==(en(),hc)&&e!=(Ii(),th)&&e!=(Ii(),Ha)&&(bi(n,f=MUn(n,t)),!(n.q?n.q:(On(),On(),il))._b((cn(),eg))&&f!=hc&&(0!=n.n.a||0!=n.n.b)&&U(n,eg,function H7e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}(n,f))),e==(Ii(),hl)){switch(l=0,f.g){case 1:case 3:(c=n.i.o.a)>0&&(l=n.n.a/c);break;case 2:case 4:(r=n.i.o.b)>0&&(l=n.n.b/r)}U(n,(V(),Cb),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=th&&e!=Ha&&f!=hc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}(l,c,r,u(z(e,Pb),8)),h=new ne((!e.n&&(e.n=new q(Tr,e,1,7)),e.n));h.e!=h.i.gc();)!on(un(z(f=u(ue(h),135),Yd)))&&f.a&&nn(l.f,MF(f));switch(r.g){case 2:case 1:(l.j==(en(),zn)||l.j==ae)&&i.Fc((gr(),N2));break;case 4:case 3:(l.j==(en(),Zn)||l.j==Wn)&&i.Fc((gr(),N2))}return l}function Mtn(n,e){var t,i,r,c,s,f,h;if(RSn(),this.a=new tW(this),this.b=n,this.c=e,this.f=LN(Ir(($u(),Ui),e)),this.f.dc())if((f=rnn(Ui,n))==e)for(this.e=!0,this.d=new Z,this.f=new bmn,this.f.Fc(qd),u(sS(Sk(Ui,Mo(n)),""),29)==n&&this.f.Fc(n5(Ui,Mo(n))),r=Yx(Ui,n).Kc();r.Ob();)switch(i=u(r.Pb(),179),F0(Ir(Ui,i))){case 4:this.d.Fc(i);break;case 5:this.f.Gc(LN(Ir(Ui,i)))}else if(ar(),u(e,69).xk())for(this.e=!0,this.f=null,this.d=new Z,s=0,h=(null==n.i&&kh(n),n.i).length;s=0&&s0&&(u(Er(n.b,e),127).a.b=t)}function Ttn(n){var e;if(this.r=function tge(n,e){return new WIn(u(Se(n),50),u(Se(e),50))}(new lbn,new abn),this.b=new F5(u(Se(fr),297)),this.p=new F5(u(Se(fr),297)),this.i=new F5(u(Se(EYn),297)),this.e=n,this.o=new ir(n.Mf()),this.D=on(un(n.of((Ue(),Vm)))),this.F=n.Yf()||on(un(n.of(fE))),this.A=u(n.of(i0),21),this.B=u(n.of(Ra),21),this.q=u(n.of(F9),101),this.u=u(n.of(hg),21),!function Uye(n){var t;return Xu(),!(Bk(YM(pt(Xl,S(T(TO,1),G,279,0,[qa])),n))>1||(t=pt(q9,S(T(TO,1),G,279,0,[H9,Yp])),Bk(YM(t,n))>1))}(this.u))throw M(new n1("Invalid port label placement: "+this.u));if(this.v=on(un(n.of(sdn))),this.j=u(n.of(ev),21),!function mMe(n){var e,i;return Tw(),!(Bk(YM(pt(Fo,S(T(kr,1),G,95,0,[uf])),n))>1||(e=pt(rf,S(T(kr,1),G,95,0,[zl,cf])),Bk(YM(e,n))>1)||(i=pt(of,S(T(kr,1),G,95,0,[fl,Is])),Bk(YM(i,n))>1))}(this.j))throw M(new n1("Invalid node label placement: "+this.j));this.n=u(q5(n,Van),107),this.k=F(R(q5(n,jO))),this.d=F(R(q5(n,ddn))),this.w=F(R(q5(n,pdn))),this.s=F(R(q5(n,bdn))),this.t=F(R(q5(n,wdn))),this.C=u(q5(n,gdn),140),this.c=2*this.d,e=!this.B.Hc((ro(),yE)),this.f=new B5(0,e,0),this.g=new B5(1,e,0),HL(this.f,(yf(),Zc),this.g)}function WGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;switch(a=new Su,n.a.g){case 3:g=u(m(e.e,(V(),Xd)),15),v=u(m(e.j,Xd),15),p=u(m(e.f,Xd),15),t=u(m(e.e,R2),15),i=u(m(e.j,R2),15),r=u(m(e.f,R2),15),si(s=new Z,g),v.Jc(new _vn),si(s,es(v)),si(s,p),si(c=new Z,t),si(c,es(i)),si(c,r),U(e.f,Xd,s),U(e.f,R2,c),U(e.f,Ifn,e.f),U(e.e,Xd,null),U(e.e,R2,null),U(e.j,Xd,null),U(e.j,R2,null);break;case 1:Fi(a,e.e.a),xe(a,e.i.n),Fi(a,es(e.j.a)),xe(a,e.a.n),Fi(a,e.f.a);break;default:Fi(a,e.e.a),Fi(a,es(e.j.a)),Fi(a,e.f.a)}jo(e.f.a),Fi(e.f.a,a),Qi(e.f,e.e.c),f=u(m(e.e,(cn(),Nr)),75),l=u(m(e.j,Nr),75),h=u(m(e.f,Nr),75),(f||l||h)&&(YV(d=new Su,h),YV(d,l),YV(d,f),U(e.f,Nr,d)),Qi(e.j,null),Pi(e.j,null),Qi(e.e,null),Pi(e.e,null),Di(e.a,null),Di(e.i,null),e.g&&WGn(n,e.g)}function VGn(){var n,e,t;for(VGn=N,new Yk(1,0),new Yk(10,0),new Yk(0,0),jQn=K(y_,J,247,11,0,1),Gd=K(ds,jh,28,100,15,1),zun=S(T(Ai,1),Mr,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),Xun=K(ye,_e,28,zun.length,15,1),Wun=S(T(Ai,1),Mr,28,15,[1,10,100,T1,1e4,ZB,1e6,1e7,1e8,gS,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Vun=K(ye,_e,28,Wun.length,15,1),Jun=K(y_,J,247,11,0,1),n=0;n0&&(Gn(0,e.length),64!=(h=e.charCodeAt(0)))){if(37==h&&(l=!1,0!=(d=e.lastIndexOf("%"))&&(d==g-1||(Gn(d+1,e.length),l=46==e.charCodeAt(d+1))))){if($i(1,d,e.length),O=Tn("%",s=e.substr(1,d-1))?null:Stn(s),i=0,l)try{i=Io((Gn(d+2,e.length+1),e.substr(d+2)),Xi,nt)}catch($){throw L($=At($),130)?M(new kT($)):M($)}for(j=eY(n.Gh());j.Ob();)if(L(p=WT(j),519)&&(I=(r=u(p,598)).d,(null==O?null==I:Tn(O,I))&&0==i--))return r;return null}if(v=-1==(a=e.lastIndexOf("."))?e:($i(0,a,e.length),e.substr(0,a)),t=0,-1!=a)try{t=Io((Gn(a+1,e.length+1),e.substr(a+1)),Xi,nt)}catch($){if(!L($=At($),130))throw M($);v=e}for(v=Tn("%",v)?null:Stn(v),k=eY(n.Gh());k.Ob();)if(L(p=WT(k),197)&&(A=(c=u(p,197)).xe(),(null==v?null==A:Tn(v,A))&&0==t--))return c;return null}return RGn(n,e)}function ub(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;if(j=new W(n.g,n.f),(k=Unn(n)).a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),X=k.a/j.a,a=k.b/j.b,$=k.a-j.a,h=k.b-j.b,i)for(s=Ct(n)?u(z(Ct(n),(Ue(),t0)),88):u(z(n,(Ue(),t0)),88),f=x(z(n,(Ue(),F9)))===x((Ii(),Xc)),I=new ne((!n.c&&(n.c=new q(Yu,n,9,9)),n.c));I.e!=I.i.gc();)switch(A=u(ue(I),123),O=u(z(A,iv),64),O==(en(),hc)&&(O=otn(A,s),ft(A,iv,O)),O.g){case 1:f||ru(A,A.i*X);break;case 2:ru(A,A.i+$),f||cu(A,A.j*a);break;case 3:f||ru(A,A.i*X),cu(A,A.j+h);break;case 4:f||cu(A,A.j*a)}if($g(n,k.a,k.b),r)for(g=new ne((!n.n&&(n.n=new q(Tr,n,1,7)),n.n));g.e!=g.i.gc();)(_=(v=(d=u(ue(g),135)).i+d.g/2)/j.a)+(l=(p=d.j+d.f/2)/j.b)>=1&&(_-l>0&&p>=0?(ru(d,d.i+$),cu(d,d.j+h*l)):_-l<0&&v>=0&&(ru(d,d.i+$*_),cu(d,d.j+h)));return ft(n,(Ue(),i0),(mo(),new Go(c=u(df(U9),9),u(Hs(c,c.length),9),0))),new W(X,a)}function nzn(n){m0(n,new Od(fC(g0(d0(w0(b0(new ed,cs),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new V3n),cs))),Q(n,cs,GS,rn(dce)),Q(n,cs,Fw,rn(bce)),Q(n,cs,m2,rn(fce)),Q(n,cs,Ap,rn(hce)),Q(n,cs,Tp,rn(lce)),Q(n,cs,cm,rn(sce)),Q(n,cs,y8,rn(v1n)),Q(n,cs,um,rn(ace)),Q(n,cs,vK,rn(zq)),Q(n,cs,gK,rn(Xq)),Q(n,cs,YS,rn(m1n)),Q(n,cs,pK,rn(Wq)),Q(n,cs,mK,rn(k1n)),Q(n,cs,wcn,rn(y1n)),Q(n,cs,bcn,rn(p1n)),Q(n,cs,hcn,rn(uO)),Q(n,cs,lcn,rn(oO)),Q(n,cs,acn,rn(Zj)),Q(n,cs,dcn,rn(j1n)),Q(n,cs,fcn,rn(g1n))}function lS(n){var e,t,i,r,c,s,f,h,l,a,d;if(null==n)throw M(new sh(yu));if(l=n,h=!1,(c=n.length)>0&&(Gn(0,n.length),(45==(e=n.charCodeAt(0))||43==e)&&(Gn(1,n.length+1),n=n.substr(1),--c,h=45==e)),0==c)throw M(new sh(fb+l+'"'));for(;n.length>0&&(Gn(0,n.length),48==n.charCodeAt(0));)Gn(1,n.length+1),n=n.substr(1),--c;if(c>(OUn(),kQn)[10])throw M(new sh(fb+l+'"'));for(r=0;r0&&(d=-parseInt(($i(0,i,n.length),n.substr(0,i)),10),Gn(i,n.length+1),n=n.substr(i),c-=i,t=!1);c>=s;){if(i=parseInt(($i(0,s,n.length),n.substr(0,s)),10),Gn(s,n.length+1),n=n.substr(s),c-=s,t)t=!1;else{if(Ac(d,f)<0)throw M(new sh(fb+l+'"'));d=Zi(d,a)}d=ms(d,i)}if(Ac(d,0)>0)throw M(new sh(fb+l+'"'));if(!h&&Ac(d=d1(d),0)<0)throw M(new sh(fb+l+'"'));return d}function Stn(n){var e,t,i,r,c,s,f,h;if(bB(),null==n)return null;if((r=fh(n,ku(37)))<0)return n;for(h=new yo(($i(0,r,n.length),n.substr(0,r))),e=K(Ku,E2,28,4,15,1),f=0,i=0,s=n.length;rr+2&&fF((Gn(r+1,n.length),n.charCodeAt(r+1)),c0n,u0n)&&fF((Gn(r+2,n.length),n.charCodeAt(r+2)),c0n,u0n))if(t=lbe((Gn(r+1,n.length),n.charCodeAt(r+1)),(Gn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?128==(192&t)?e[f++]=t<<24>>24:i=0:t>=128&&(192==(224&t)?(e[f++]=t<<24>>24,i=2):224==(240&t)?(e[f++]=t<<24>>24,i=3):240==(248&t)&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:ca(h,((31&e[0])<<6|63&e[1])&ri);break;case 3:ca(h,((15&e[0])<<12|(63&e[1])<<6|63&e[2])&ri)}f=0,i=0}}else{for(c=0;c=2){if(0==(!n.a&&(n.a=new q(jt,n,6,6)),n.a).i)Q1(),t=new _E,me((!n.a&&(n.a=new q(jt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new q(jt,n,6,6)),n.a).i>1)for(g=new Nv((!n.a&&(n.a=new q(jt,n,6,6)),n.a));g.e!=g.i.gc();)z5(g);Py(e,u(D((!n.a&&(n.a=new q(jt,n,6,6)),n.a),0),166))}if(d)for(i=new ne((!n.a&&(n.a=new q(jt,n,6,6)),n.a));i.e!=i.i.gc();)for(l=new ne((!(t=u(ue(i),166)).a&&(t.a=new ni(Ro,t,5)),t.a));l.e!=l.i.gc();)h=u(ue(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new ne((!n.n&&(n.n=new q(Tr,n,1,7)),n.n));s.e!=s.i.gc();)c=u(ue(s),135),(a=u(z(c,B9),8))&&qo(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function tzn(n,e,t,i,r){var c,s,f;if(i$n(n,e),s=e[0],c=Gi(t.c,0),f=-1,MY(t))if(i>0){if(s+i>n.length)return!1;f=KA(($i(0,s+i,n.length),n.substr(0,s+i)),e)}else f=KA(n,e);switch(c){case 71:return f=c2(n,s,S(T(fn,1),J,2,6,[_zn,Hzn]),e),r.e=f,!0;case 77:return function uAe(n,e,t,i,r){return i<0?((i=c2(n,r,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB]),e))<0&&(i=c2(n,r,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(t.k=i,0))):i>0&&(t.k=i-1,!0)}(n,e,r,f,s);case 76:return function oAe(n,e,t,i,r){return i<0?((i=c2(n,r,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB]),e))<0&&(i=c2(n,r,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(t.k=i,0))):i>0&&(t.k=i-1,!0)}(n,e,r,f,s);case 69:return function Yje(n,e,t,i){var r;return(r=c2(n,t,S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB]),e))<0&&(r=c2(n,t,S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}(n,e,s,r);case 99:return function Zje(n,e,t,i){var r;return(r=c2(n,t,S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB]),e))<0&&(r=c2(n,t,S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}(n,e,s,r);case 97:return f=c2(n,s,S(T(fn,1),J,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return function sAe(n,e,t,i,r,c){var s,f,l;if(f=32,i<0){if(e[0]>=n.length||43!=(f=Gi(n,e[0]))&&45!=f||(++e[0],(i=KA(n,e))<0))return!1;45==f&&(i=-i)}return 32==f&&e[0]-t==2&&2==r.b&&(l=(new wC).q.getFullYear()-Ea+Ea-80,c.a=i==(s=l%100),i+=100*(l/100|0)+(i3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}(f,s,e[0],r);case 104:12==f&&(f=0);case 75:case 72:return!(f<0||(r.f=f,r.g=!1,0));case 107:return!(f<0||(r.f=f,r.g=!0,0));case 109:return!(f<0||(r.j=f,0));case 115:return!(f<0||(r.n=f,0));case 90:if(sf&&(O=0,$+=s+A,s=0),ESe(k,t,O,$),e=y.Math.max(e,O+j.a),s=y.Math.max(s,j.b),O+=j.a+A;return k}function nDe(n,e,t){var i,r,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_;for(f=new C(n.a.b);f.a0)if(i=d.gc(),l=di(y.Math.floor((i+1)/2))-1,r=di(y.Math.ceil((i+1)/2))-1,e.o==Yf)for(a=r;a>=l;a--)e.a[$.p]==$&&(k=u(d.Xb(a),42),p=u(k.a,10),!bf(t,k.b)&&v>n.b.e[p.p]&&(e.a[p.p]=$,e.g[$.p]=e.g[p.p],e.a[$.p]=e.g[$.p],e.f[e.g[$.p].p]=(Kn(),!!(on(e.f[e.g[$.p].p])&$.k==(Xn(),Ei))),v=n.b.e[p.p]));else for(a=l;a<=r;a++)e.a[$.p]==$&&(A=u(d.Xb(a),42),j=u(A.a,10),!bf(t,A.b)&&v0&&(r=u(sn(j.c.a,X-1),10),s=n.i[r.p],jn=y.Math.ceil(xg(n.n,r,j)),c=_.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-jn),l=Mt,X0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)<0)&&!(O.a.e.e-O.a.a-(O.b.e.e-O.b.a)<0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)>0)&&(O.a.e.e+O.b.a>tn.b.e.e+tn.a.a?c+d>0?$=d:l-i>0&&($=i):O.a.e.e+O.b.a0?$=f:l-I>0&&($=I))),_.a.e+=$,_.b&&(_.d.e+=$),1)))}function czn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new zo(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new Lv,n.c)for(s=new C(e.Rf());s.al&&(i.a+=DTn(K(ds,jh,28,-l,15,1))),i.a+="Is",fh(h,ku(32))>=0)for(r=0;r=2&&(i=u(r.Kc().Pb(),117),t=n.u.Hc((Xu(),q9)),c=n.u.Hc(Yp),!i.a&&!t&&(2==r.gc()||c))}(n,e),t=n.u.Hc((Xu(),H9)),h=l.Kc();h.Ob();)if((f=u(h.Pb(),117)).c&&!(f.c.d.c.length<=0)){switch(g=f.b.Mf(),(d=(a=f.c).i).b=a.e.a+(c=a.n).b+c.c,d.a=a.e.b+(r=a.n).d+r.a,e.g){case 1:f.a?(d.c=(g.a-d.b)/2,mf(a,(Gu(),Ia))):s||t?(d.c=-d.b-n.s,mf(a,(Gu(),Ys))):(d.c=g.a+n.s,mf(a,(Gu(),Oh))),d.d=-d.a-n.t,ah(a,(mu(),Zs));break;case 3:f.a?(d.c=(g.a-d.b)/2,mf(a,(Gu(),Ia))):s||t?(d.c=-d.b-n.s,mf(a,(Gu(),Ys))):(d.c=g.a+n.s,mf(a,(Gu(),Oh))),d.d=g.b+n.t,ah(a,(mu(),Tf));break;case 2:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,ah(a,(mu(),Oa))):s||t?(d.d=-d.a-n.t,ah(a,(mu(),Zs))):(d.d=g.b+n.t,ah(a,(mu(),Tf))),d.c=g.a+n.s,mf(a,(Gu(),Oh));break;case 4:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,ah(a,(mu(),Oa))):s||t?(d.d=-d.a-n.t,ah(a,(mu(),Zs))):(d.d=g.b+n.t,ah(a,(mu(),Tf))),d.c=-d.b-n.s,mf(a,(Gu(),Ys))}s=!1}}function tDe(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j,A,I;if(g=!1,d=!1,Dg(u(m(i,(cn(),Kt)),101))){s=!1,f=!1;n:for(p=new C(i.j);p.a=i.o.b/2}I?(A=u(m(i,(V(),qp)),15))?g?c=A:(r=u(m(i,Bp),15))?c=A.gc()<=r.gc()?A:r:(c=new Z,U(i,Bp,c)):(c=new Z,U(i,qp,c)):(r=u(m(i,(V(),Bp)),15))?d?c=r:(A=u(m(i,qp),15))?c=r.gc()<=A.gc()?r:A:(c=new Z,U(i,qp,c)):(c=new Z,U(i,Bp,c)),c.Fc(n),U(n,(V(),yI),t),e.d==t?(Pi(e,null),t.e.c.length+t.g.c.length==0&&cc(t,null),function v6e(n){var e,t;(e=u(m(n,(V(),Wu)),10))&&(pu((t=e.c).a,e),0==t.a.c.length&&pu(Ki(e).b,t))}(t)):(Qi(e,null),t.e.c.length+t.g.c.length==0&&cc(t,null)),jo(e.a)}function iDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,$n,te,Fe,It;for(t.Ug("MinWidth layering",1),v=e.b,tn=e.a,It=u(m(e,(cn(),Chn)),17).a,f=u(m(e,Mhn),17).a,n.b=F(R(m(e,ef))),n.d=Mt,$=new C(tn);$.a<$.c.c.length;)(I=u(E($),10)).k==(Xn(),Ut)&&(n.d=y.Math.min(n.d,I.o.b));for(n.d=y.Math.max(1,n.d),n.c=K(ye,_e,28,jn=tn.c.length,15,1),n.f=K(ye,_e,28,jn,15,1),n.e=K(Ai,Mr,28,jn,15,1),l=0,n.a=0,_=new C(tn);_.a<_.c.c.length;)(I=u(E(_),10)).p=l++,n.c[I.p]=qxn(ki(I)),n.f[I.p]=qxn(Vt(I)),n.e[I.p]=I.o.b/n.d,n.a+=n.e[I.p];for(n.b/=n.d,n.a/=jn,X=function XEe(n){var e,t,i,r,s,f;for(f=Kh(n.c.length),r=new C(n);r.a0){for(g=a<100?null:new J1(a),p=new sY(e).g,A=K(ye,_e,28,a,15,1),i=0,$=new q0(a),r=0;r=0;)if(null!=v?it(v,p[h]):x(v)===x(p[h])){A.length<=i&&Nc(A,0,A=K(ye,_e,28,2*A.length,15,1),0,i),A[i++]=r,me($,p[h]);break n}if(x(v)===x(f))break}}if(l=$,p=$.g,a=i,i>A.length&&Nc(A,0,A=K(ye,_e,28,i,15,1),0,i),i>0){for(O=!0,c=0;c=0;)hp(n,A[s]);if(i!=a){for(r=a;--r>=i;)hp(l,r);Nc(A,0,A=K(ye,_e,28,i,15,1),0,i)}e=l}}}else for(e=function k7e(n,e){var t,i,r;if(e.dc())return I3(),I3(),SE;for(t=new FAn(n,e.gc()),r=new ne(n);r.e!=r.i.gc();)i=ue(r),e.Hc(i)&&me(t,i);return t}(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(hp(n,r),O=!0);if(O){if(null!=A){for(d=1==(t=e.gc())?h5(n,4,e.Kc().Pb(),null,A[0],k):h5(n,6,e,A,A[0],k),g=t<100?null:new J1(t),r=e.Kc();r.Ob();)g=QW(n,u(v=r.Pb(),76),g);g?(g.nj(d),g.oj()):tt(n.e,d)}else{for(g=function Tae(n){return n<100?null:new J1(n)}(e.gc()),r=e.Kc();r.Ob();)g=QW(n,u(v=r.Pb(),76),g);g&&g.oj()}return!0}return!1}function uDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,k,j,A,I,O;for((t=new CRn(e)).a||function NSe(n){var e,t,i,r,c;switch(r=u(sn(n.a,0),10),e=new Fl(n),nn(n.a,e),e.o.a=y.Math.max(1,r.o.a),e.o.b=y.Math.max(1,r.o.b),e.n.a=r.n.a,e.n.b=r.n.b,u(m(r,(V(),mc)),64).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}return cc(i=new Dc,e),Qi(t=new B0,c=u(sn(r.j,0),12)),Pi(t,i),et(wf(i.n),c.n),et(wf(i.a),c.a),e}(e),l=function LAe(n){var e,i,r,c,s,f,h;for(h=new CDn,f=new C(n.a);f.a=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new kA((a4(),mb)),wk(n,NZn,new _u(S(T(Sj,1),xn,382,0,[i]))),s=new kA(Gw),wk(n,DZn,new _u(S(T(Sj,1),xn,382,0,[s]))),r=new kA(Uw),wk(n,LZn,new _u(S(T(Sj,1),xn,382,0,[r]))),c=new kA(S2),wk(n,OZn,new _u(S(T(Sj,1),xn,382,0,[c]))),_x(i.c,mb),_x(r.c,Uw),_x(c.c,S2),_x(s.c,Gw),f.a.c.length=0,si(f.a,i.c),si(f.a,es(r.c)),si(f.a,c.c),si(f.a,es(s.c)),f}(l)),t}function hzn(n,e,t){var i,r,s,f,h,l,d,p,k;if(null==t.p[e.p]){f=!0,t.p[e.p]=0,s=e,k=t.o==(Nf(),n0)?fi:Mt;do{r=n.b.e[s.p],t.o==n0&&r>0||t.o==Yf&&r1&&(s=y.Math.min(s,y.Math.abs(u(is(f.a,1),8).b-a.b)))));else for(k=new C(e.j);k.ar&&(c=g.a-r,s=nt,i.c.length=0,r=g.a),g.a>=r&&(Rn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(is(f.a,f.a.b-2),8).b-g.b)))));if(0!=i.c.length&&c>e.o.a/2&&s>e.o.b/2){for(cc(v=new Dc,e),bi(v,(en(),zn)),v.n.a=e.o.a/2,cc(A=new Dc,e),bi(A,ae),A.n.a=e.o.a/2,A.n.b=e.o.b,h=new C(i);h.a=l.b?A:v)):(l=u(nbe(f.a),8),Pi(f,(0==f.a.b?$f(f.c):u(_s(f.a),8)).b>=l.b?A:v)),(d=u(m(f,(cn(),Nr)),75))&&pw(d,l,!0);e.n.a=r-e.o.a/2}}function Ny(n,e,t,i,r,c,s,f,h){var l,a,d,g,v,p,k;switch(v=t,id(a=new Fl(h),(Xn(),Qt)),U(a,(V(),Efn),s),U(a,(cn(),Kt),(Ii(),Xc)),k=F(R(n.of(eg))),U(a,eg,k),cc(d=new Dc,a),e!=th&&e!=Ha||(v=i>=0?up(f):ny(up(f)),n.qf(xm,v)),l=new Oi,g=!1,n.pf(Pb)?(yW(l,u(n.of(Pb),8)),g=!0):function y1e(n,e,t){return n.a=e,n.b=t,n}(l,s.a/2,s.b/2),v.g){case 4:U(a,hu,(ts(),Na)),U(a,EI,(Md(),D2)),a.o.b=s.b,k<0&&(a.o.a=-k),bi(d,(en(),Zn)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,hu,(ts(),Qw)),U(a,EI,(Md(),Im)),a.o.b=s.b,k<0&&(a.o.a=-k),bi(d,(en(),Wn)),g||(l.a=0);break;case 1:U(a,zd,(Pl(),$2)),a.o.a=s.a,k<0&&(a.o.b=-k),bi(d,(en(),ae)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,zd,(Pl(),xp)),a.o.a=s.a,k<0&&(a.o.b=-k),bi(d,(en(),zn)),g||(l.b=0)}if(yW(d.n,l),U(a,Pb,l),e==c0||e==hl||e==Xc){if(p=0,e==c0&&n.pf(L1))switch(v.g){case 1:case 2:p=u(n.of(L1),17).a;break;case 3:case 4:p=-u(n.of(L1),17).a}else switch(v.g){case 4:case 2:p=c.b,e==hl&&(p/=r.b);break;case 1:case 3:p=c.a,e==hl&&(p/=r.a)}U(a,Cb,p)}return U(a,mc,v),a}function lzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(qr(a=new Fl(t),e),U(a,(V(),ot),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,nn(t.a,a),Xe(n.a,e,a),(0!=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i||on(un(z(e,(cn(),ng)))))&&U(a,kfn,(Kn(),!0)),l=u(m(t,zc),21),(d=u(m(a,(cn(),Kt)),101))==(Ii(),Ha)?U(a,Kt,th):d!=th&&l.Fc((gr(),Dm)),g=0,i=u(m(t,$o),88),h=new ne((!e.c&&(e.c=new q(Yu,e,9,9)),e.c));h.e!=h.i.gc();)f=u(ue(h),123),(x(z(r=Ct(e),ul))!==x((vh(),D1))||x(z(r,Wd))===x((k1(),Pm))||x(z(r,Wd))===x((k1(),Sm))||on(un(z(r,Tb)))||x(z(r,Yw))!==x((Sd(),zw))||x(z(r,$a))===x((js(),Lb))||x(z(r,$a))===x((js(),cg))||x(z(r,Jd))===x((M1(),_m))||x(z(r,Jd))===x((M1(),Hm)))&&!on(un(z(e,II)))&&ft(f,lt,Y(g++)),on(un(z(f,Yd)))||jLe(n,f,a,l,i,d);for(s=new ne((!e.n&&(e.n=new q(Tr,e,1,7)),e.n));s.e!=s.i.gc();)!on(un(z(c=u(ue(s),135),Yd)))&&c.a&&nn(a.b,MF(c));return on(un(m(a,u9)))&&l.Fc((gr(),pI)),on(un(m(a,NI)))&&(l.Fc((gr(),mI)),l.Fc(n9),U(a,Kt,th)),a}function yB(n,e,t,i,r,c,s){var f,h,l,a,d,g,v,p,k,A,I,O,$,_,X,tn,jn,kn,Bn,$n,te,Fe,It;for(k=0,Bn=0,l=new C(n.b);l.ak&&(c&&(tr(X,v),tr(jn,Y(a.b-1)),nn(n.d,p),f.c.length=0),Fe=t.b,It+=v+e,v=0,d=y.Math.max(d,t.b+t.c+te)),Rn(f.c,h),gRn(h,Fe,It),d=y.Math.max(d,Fe+te+t.c),v=y.Math.max(v,g),Fe+=te+e,p=h;if(si(n.a,f),nn(n.d,u(sn(f,f.c.length-1),163)),d=y.Math.max(d,i),($n=It+v+t.a)0,(l=_.e.c.length>0)&&A?Rn(g.c,_):l?Rn(k.c,_):A&&Rn($.c,_);for(p=new C(k);p.aI.nh()-l.b&&(g=I.nh()-l.b),v>I.oh()-l.d&&(v=I.oh()-l.d),a=l.c.c.length?(Xn(),Ut):(Xn(),Ei),Ei),t.a.g=y.Math.max(c=t.a.g,c+((a*=2)-c)),t.b.g=y.Math.max(s=t.b.g,s+(a-s)),r=e}}(n),s.Vg()),D9e(n.f),c=u(m(e,l9),17).a*n.f.a.c.length,Zx(Kz(_z(sN(n.f),c),!1),t.eh(1)),0!=n.d.a.gc()){for((s=t.eh(1)).Ug("Flexible Where Space Processing",1),f=u(bo(_v(Kr(new Mn(null,new Pn(n.f.a,16)),new opn),new npn)),17).a,l=u(bo(tw(Kr(new Mn(null,new Pn(n.f.a,16)),new spn),new epn)),17).a-f,a=M0(new od,n.f),d=M0(new od,n.f),Vs(Rs(Bs(xs(Ks(new ws,2e4),l),a),d)),_t(rt(rt(zV(n.i),new fpn),new hpn),new AIn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)u(r.Pb(),218).g=1;Zx(Kz(_z(sN(n.f),c),!1),s.eh(1)),s.Vg()}on(un(m(e,s9)))&&((s=t.eh(1)).Ug("Straight Edges Post-Processing",1),function qje(n){var e,t,i;for(Fi(t=new yt,n.o),i=new yz;0!=t.b;)rzn(n,e=u(0==t.b?null:(oe(0!=t.b),Qo(t,t.a.a)),515),!0)&&nn(i.a,e);for(;0!=i.a.c.length;)rzn(n,e=u(Bxn(i),515),!1)}(n),s.Vg()),function ROe(n){var e,i,r,c,s,f,h,l,a,g,v,p,k,j,A;for(i=new C(n.e.b);i.al&&(g=0,v+=h+e,h=0),K4(s,g,v),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new W(t+e,v+h+e)}(gu(n,(en(),ih)),e),p=t2(gu(n,sf),e),$=t2(gu(n,xo),e),jn=PA(gu(n,Os),e),g=PA(gu(n,ls),e),I=t2(gu(n,ff),e),k=t2(gu(n,Ju),e),X=t2(gu(n,Bo),e),_=t2(gu(n,as),e),kn=PA(gu(n,lu),e),A=t2(gu(n,Eu),e),O=t2(gu(n,Qu),e),tn=t2(gu(n,ju),e),Bn=PA(gu(n,Cu),e),v=PA(gu(n,Ru),e),j=t2(gu(n,Wc),e),t=Xg(S(T(Ai,1),Mr,28,15,[I.a,jn.a,X.a,Bn.a])),i=Xg(S(T(Ai,1),Mr,28,15,[p.a,d.a,$.a,j.a])),r=A.a,c=Xg(S(T(Ai,1),Mr,28,15,[k.a,g.a,_.a,v.a])),l=Xg(S(T(Ai,1),Mr,28,15,[I.b,p.b,k.b,O.b])),h=Xg(S(T(Ai,1),Mr,28,15,[jn.b,d.b,g.b,j.b])),a=kn.b,f=Xg(S(T(Ai,1),Mr,28,15,[X.b,$.b,_.b,tn.b])),a1(gu(n,ih),t+r,l+a),a1(gu(n,Wc),t+r,l+a),a1(gu(n,sf),t+r,0),a1(gu(n,xo),t+r,l+a+h),a1(gu(n,Os),0,l+a),a1(gu(n,ls),t+r+i,l+a),a1(gu(n,Ju),t+r+i,0),a1(gu(n,Bo),0,l+a+h),a1(gu(n,as),t+r+i,l+a+h),a1(gu(n,lu),0,l),a1(gu(n,Eu),t,0),a1(gu(n,ju),0,l+a+h),a1(gu(n,Ru),t+r+i,0),(s=new Oi).a=Xg(S(T(Ai,1),Mr,28,15,[t+i+r+c,kn.a,O.a,tn.a])),s.b=Xg(S(T(Ai,1),Mr,28,15,[l+h+a+f,A.b,Bn.b,v.b])),s}function wzn(n){var e,t,r,c,s,f,h,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn;for(I=new W(Mt,Mt),e=new W(fi,fi),jn=new C(n);jn.a=48&&e<=57))throw M(new De($e((Ie(),QVn))));for(i=e-48;r=48&&e<=57;)if((i=10*i+e-48)<0)throw M(new De($e((Ie(),hun))));if(t=i,44==e){if(r>=n.j)throw M(new De($e((Ie(),ZVn))));if((e=Gi(n.i,r++))>=48&&e<=57){for(t=e-48;r=48&&e<=57;)if((t=10*t+e-48)<0)throw M(new De($e((Ie(),hun))));if(i>t)throw M(new De($e((Ie(),nJn))))}else t=-1}if(125!=e)throw M(new De($e((Ie(),YVn))));n.bm(r)?(Ze(),Ze(),c=new sw(9,c),n.d=r+1):(Ze(),Ze(),c=new sw(3,c),n.d=r),c.Om(i),c.Nm(t),Ye(n)}}return c}function gzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O;if(tu(n.a,e)){if(bf(u(ee(n.a,e),49),t))return 1}else Xe(n.a,e,new Yt);if(tu(n.a,t)){if(bf(u(ee(n.a,t),49),e))return-1}else Xe(n.a,t,new Yt);if(tu(n.e,e)){if(bf(u(ee(n.e,e),49),t))return-1}else Xe(n.e,e,new Yt);if(tu(n.e,t)){if(bf(u(ee(n.a,t),49),e))return 1}else Xe(n.e,t,new Yt);if(n.c==(vh(),bq)||!vt(e,(V(),lt))||!vt(t,(V(),lt))){for(d=null,l=new C(e.j);l.a(s=px(n,t))?_4(n,e,t):_4(n,t,e),rs?1:0}return(i=u(m(e,(V(),lt)),17).a)>(c=u(m(t,lt),17).a)?_4(n,e,t):_4(n,t,e),ic?1:0}function ob(n,e,t){var i,r,s,f,h,l,a,d,g,v,p,k,j;if(null==t)return null;if(n.a!=e.jk())throw M(new Un(dm+e.xe()+wb));if(L(e,469)){if(!(j=function wAe(n,e){var t,i;if(null==e){for(!n.a&&(n.a=new q(Wl,n,9,5)),i=new ne(n.a);i.e!=i.i.gc();)if(null==((t=u(ue(i),694)).c??t.zb))return t}else for(!n.a&&(n.a=new q(Wl,n,9,5)),i=new ne(n.a);i.e!=i.i.gc();)if(Tn(e,(t=u(ue(i),694)).c??t.zb))return t;return null}(u(e,685),t)))throw M(new Un(DK+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(v1(($u(),Ui),e).Nl()){case 2:t=_c(t,!1);break;case 3:t=_c(t,!0)}if(i=v1(Ui,e).Jl())return i.jk().wi().ti(i,t);if(g=v1(Ui,e).Ll()){for(j=new Z,a=0,d=(l=gF(t)).length;a1)for(p=new Nv((!n.a&&(n.a=new q(jt,n,6,6)),n.a));p.e!=p.i.gc();)z5(p);for(j=Fe,Fe>_+$?j=_+$:Fe<_-$&&(j=_-$),A=It,It>X+k?A=X+k:It_-$&&j<_+$&&A>X-k&&AFe+te?jn=Fe+te:_It+tn?kn=It+tn:XFe-te&&jnIt-tn&&knt&&(g=t-1),(v=G1+io(e,24)*zy*d-d/2)<0?v=1:v>i&&(v=i-1),Q1(),OT(r=new KE,g),IT(r,v),me((!s.a&&(s.a=new ni(Ro,s,5)),s.a),r)}function vzn(n){m0(n,new Od(g0(d0(w0(b0(new ed,uo),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new c4n))),Q(n,uo,Mp,1.3),Q(n,uo,rm,(Kn(),!1)),Q(n,uo,hb,_1n),Q(n,uo,Fw,15),Q(n,uo,US,rn($ce)),Q(n,uo,m2,rn(Bce)),Q(n,uo,Ap,rn(Kce)),Q(n,uo,Tp,rn(_ce)),Q(n,uo,cm,rn(xce)),Q(n,uo,y8,rn(rU)),Q(n,uo,um,rn(Hce)),Q(n,uo,Ccn,rn(G1n)),Q(n,uo,Mcn,rn(U1n)),Q(n,uo,Ecn,rn(uU)),Q(n,uo,jcn,rn(z1n)),Q(n,uo,Tcn,rn(K1n)),Q(n,uo,Acn,rn(cU)),Q(n,uo,Scn,rn(R1n)),Q(n,uo,Pcn,rn(q1n)),Q(n,uo,k8,rn(B1n)),Q(n,uo,zS,rn(Fce)),Q(n,uo,kcn,rn(eE)),Q(n,uo,mcn,rn(x1n)),Q(n,uo,ycn,rn(tE)),Q(n,uo,pcn,rn(H1n))}function EB(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn,te,Fe;if(sB(),p=n.d,r=n.a,0==(jn=n.e))switch(e){case 0:return"0";case 1:return Y4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(X=new V1).a+=e<0?"0E+":"0E",X.a+=-e,X.a}if($=K(ds,jh,28,1+(O=10*p+1+7),15,1),t=O,1==p)if((f=r[0])<0){Fe=vi(f,vr);do{k=Fe,Fe=ly(Fe,10),$[--t]=48+Ae(ms(k,Zi(Fe,10)))&ri}while(0!=Ac(Fe,0))}else{Fe=f;do{$[--t]=(k=Fe)-10*(Fe=Fe/10|0)+48&ri}while(0!=Fe)}else{Nc(r,0,Bn=K(ye,_e,28,p,15,1),0,te=p);n:for(;;){for(tn=0,l=te-1;l>=0;l--)A=dye(Yi(Us(tn,32),vi(Bn[l],vr))),Bn[l]=Ae(A),tn=Ae(I0(A,32));I=Ae(tn),j=t;do{$[--t]=48+I%10&ri}while(0!=(I=I/10|0)&&0!=t);for(i=9-j+t,h=0;h0;h++)$[--t]=48;for(d=te-1;0==Bn[d];d--)if(0==d)break n;te=d+1}for(;48==$[t];)++t}if(v=jn<0,s=O-t-e-1,0==e)return v&&($[--t]=45),ks($,t,O-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=O-1;g>=a;g--)$[g+1]=$[g];return $[++a]=46,v&&($[--t]=45),ks($,t,O-t+1)}for(d=2;d<1-s;d++)$[--t]=48;return $[--t]=46,$[--t]=48,v&&($[--t]=45),ks($,t,O-t)}return kn=t+1,c=O,_=new Cg,v&&(_.a+="-"),c-kn>=1?(ca(_,$[t]),_.a+=".",_.a+=ks($,t+1,O-t-1)):_.a+=ks($,t,O-t),_.a+="E",s>0&&(_.a+="+"),_.a+=""+s,_.a}function pzn(n,e){var r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;switch(n.c=e,n.g=new de,k0(),hZ(new VE(new a0(n.c))),O=Oe(z(n.c,(dy(),lan))),h=u(z(n.c,gU),324),_=u(z(n.c,vU),437),s=u(z(n.c,san),490),$=u(z(n.c,wU),438),n.j=F(R(z(n.c,tue))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw M(new Un(eP+(null!=h.f?h.f:""+h.g)))}if(n.d=new lOn(f,_,s),U(n.d,(s4(),W8),un(z(n.c,nue))),n.d.c=on(un(z(n.c,fan))),0==zM(n.c).i)return n.d;for(d=new ne(zM(n.c));d.e!=d.i.gc();){for(X=new W((a=u(ue(d),27)).i+(v=a.g/2),a.j+(g=a.f/2));tu(n.g,X);)A0(X,(y.Math.random()-.5)*Mh,(y.Math.random()-.5)*Mh);k=u(z(a,(Ue(),Wm)),140),j=new MOn(X,new zo(X.a-v-n.j/2-k.b,X.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),nn(n.d.i,j),Xe(n.g,X,new ai(j,a))}switch($.g){case 0:if(null==O)n.d.d=u(sn(n.d.i,0),68);else for(I=new C(n.d.i);I.a1&&Nt(a,A,a.c.b,a.c),_$(r)));A=I}return a}function kzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn;for(t.Ug(mWn,1),Bn=u(Vr(rt(new Mn(null,new Pn(e,16)),new N3n),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),a=u(Vr(rt(new Mn(null,new Pn(e,16)),new Ekn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15),p=u(Vr(rt(new Mn(null,new Pn(e,16)),new jkn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15),k=K(ZI,JS,40,e.gc(),0,1),s=0;s=0&&kn=0&&!k[v]){k[v]=r,a.gd(f),--f;break}if((v=kn-g)=0&&!k[v]){k[v]=r,a.gd(f),--f;break}}for(p.jd(new $3n),h=k.length-1;h>=0;h--)!k[h]&&!p.dc()&&(k[h]=u(p.Xb(0),40),p.gd(0));for(l=0;l=0;h--)xe(t,(Ln(h,s.c.length),u(s.c[h],8)));return t}function jzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$;for(O=F(R(z(e,(Vh(),sg)))),v=F(R(z(e,T9))),g=F(R(z(e,fO))),tY((!e.a&&(e.a=new q(Qe,e,10,11)),e.a)),A=aGn((!e.a&&(e.a=new q(Qe,e,10,11)),e.a),O,n.b),j=0;jg&&fy((Ln(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&0==(Ln(g,e.c.length),u(e.c[g],186)).a.c.length;)pu(e,(Ln(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!on(un(u(sn(a.b,0),27).of((Uf(),tE))))&&XSe(e,p,c,a,j,t,g,i)){k=!0;continue}if(j){if(v=p.b,d=a.f,!on(un(u(sn(a.b,0),27).of(tE)))&&aOe(e,p,c,a,t,g,i,r)){if(k=!0,v=n.j)return n.a=-1,void(n.c=1);if(e=Gi(n.i,n.d++),n.a=e,1!=n.b){switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,n.d>=n.j||63!=Gi(n.i,n.d))break;if(++n.d>=n.j)throw M(new De($e((Ie(),zK))));switch(e=Gi(n.i,n.d++)){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw M(new De($e((Ie(),zK))));if(61==(e=Gi(n.i,n.d++)))i=16;else{if(33!=e)throw M(new De($e((Ie(),DVn))));i=17}break;case 35:for(;n.d=n.j)throw M(new De($e((Ie(),sP))));n.a=Gi(n.i,n.d++);break;default:i=0}n.c=i}else{switch(e){case 92:if(i=10,n.d>=n.j)throw M(new De($e((Ie(),sP))));n.a=Gi(n.i,n.d++);break;case 45:512==(512&n.e)&&n.dn.a.c.length-1;)nn(n.a,new ai(p2,Jrn));i=u(m(r,Nh),17).a,t==(ii(),$r)||t==zr?(r.e.aF(R(u(sn(n.a,i),42).b))&&jL(u(sn(n.a,i),42),r.e.a+r.f.a)):(r.e.bF(R(u(sn(n.a,i),42).b))&&jL(u(sn(n.a,i),42),r.e.b+r.f.b))}}(n,e,r),function QLe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(a=(r=u(m(n,(bc(),Nb)),88))==(ii(),$r)||r==zr?nh:zr,t=u(Vr(rt(new Mn(null,new Pn(n.b,16)),new n3n),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),(h=u(Vr(Kr(t.Oc(),new pkn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15)).Gc(u(Vr(Kr(t.Oc(),new mkn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),16)),h.jd(new kkn(a)),g=new i1(new ykn(r)),i=new de,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,40),on(un(s.c))?(g.a.zc(l,(Kn(),Pa)),new h3(g.a.Zc(l,!1)).a.gc()>0&&Xe(i,l,u(new h3(g.a.Zc(l,!1)).a.Vc(),40)),new h3(g.a.ad(l,!0)).a.gc()>1&&Xe(i,LBn(g,l),l)):(new h3(g.a.Zc(l,!1)).a.gc()>0&&x(c=u(new h3(g.a.Zc(l,!1)).a.Vc(),40))===x(Rr(br(i.f,l)))&&u(m(l,(bt(),Aq)),15).Fc(c),new h3(g.a.ad(l,!0)).a.gc()>1&&(d=LBn(g,l),x(Rr(br(i.f,d)))===x(l)&&u(m(d,(bt(),Aq)),15).Fc(l)),g.a.Bc(l))}(e,v/2/2),yd(p=e.b,new wkn(r)),l=ge(p,0);l.b!=l.d.c;)if(!on(un(m(h=u(be(l),40),(bt(),Ba))))){if(i=DAe(h,r),k=SPe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:k.e.a-v-h.f.a<(d=j.a-v-h.f.a)&&(d=k.e.a-v-h.f.a),g=d+h.f.a;break;case 1:k.e.a+v>(d=j.a+i.f.a+v)&&(d=k.e.a+k.f.a+v),g=d+h.f.a;break;case 4:k.e.b-v-h.f.b<(d=j.b-v-h.f.b)&&(d=k.e.b-v-h.f.b),g=d+h.f.b;break;case 3:k.e.b+v>(d=j.b+i.f.b+v)&&(d=k.e.b+k.f.b+v),g=d+h.f.b}else if(k)switch(r.g){case 2:g=(d=k.e.a-v-h.f.a)+h.f.a;break;case 1:g=(d=k.e.a+k.f.a+v)+h.f.a;break;case 4:g=(d=k.e.b-v-h.f.b)+h.f.b;break;case 3:g=(d=k.e.b+k.f.b+v)+h.f.b}x(m(e,Nq))===x((S5(),Vj))?(c=d,s=g,null!=(f=w4(rt(new Mn(null,new Pn(n.a,16)),new rMn(c,s)))).a?r==(ii(),$r)||r==zr?h.e.a=d:h.e.b=d:null!=(f=r==(ii(),$r)||r==hs?w4(rt(N$n(new Mn(null,new Pn(n.a,16))),new gkn(c))):w4(rt(N$n(new Mn(null,new Pn(n.a,16))),new vkn(c)))).a&&(r==$r||r==zr?h.e.a=F(R((oe(null!=f.a),u(f.a,42)).a)):h.e.b=F(R((oe(null!=f.a),u(f.a,42)).a))),null!=f.a&&(a=Hr(n.a,(oe(null!=f.a),f.a),0))>0&&a!=u(m(h,Nh),17).a&&(U(h,Bln,(Kn(),!0)),U(h,Nh,Y(a)))):r==(ii(),$r)||r==zr?h.e.a=d:h.e.b=d}t.Vg()}}function Ezn(n){var e,t,i,r,s,f,h,l;for(n.b=1,Ye(n),e=null,0==n.c&&94==n.a?(Ye(n),Ze(),Ze(),Kc(e=new Co(4),0,vm),f=new Co(4)):(Ze(),Ze(),f=new Co(4)),r=!0;1!=(l=n.c);){if(0==l&&93==n.a&&!r){e&&(l8(e,f),f=e);break}if(t=n.a,i=!1,10==l)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:Ow(f,H4(t)),i=!0;break;case 105:case 73:case 99:case 67:Ow(f,H4(t)),(t=-1)<0&&(i=!0);break;case 112:case 80:if(!(h=ien(n,t)))throw M(new De($e((Ie(),XK))));Ow(f,h),i=!0;break;default:t=Ben(n)}else if(24==l&&!r){if(e&&(l8(e,f),f=e),l8(f,Ezn(n)),0!=n.c||93!=n.a)throw M(new De($e((Ie(),qVn))));break}if(Ye(n),!i){if(0==l){if(91==t)throw M(new De($e((Ie(),sun))));if(93==t)throw M(new De($e((Ie(),fun))));if(45==t&&!r&&93!=n.a)throw M(new De($e((Ie(),WK))))}if(0!=n.c||45!=n.a||45==t&&r)Kc(f,t,t);else{if(Ye(n),1==(l=n.c))throw M(new De($e((Ie(),fP))));if(0==l&&93==n.a)Kc(f,t,t),Kc(f,45,45);else{if(0==l&&93==n.a||24==l)throw M(new De($e((Ie(),WK))));if(s=n.a,0==l){if(91==s)throw M(new De($e((Ie(),sun))));if(93==s)throw M(new De($e((Ie(),fun))));if(45==s)throw M(new De($e((Ie(),WK))))}else 10==l&&(s=Ben(n));if(Ye(n),t>s)throw M(new De($e((Ie(),zVn))));Kc(f,t,s)}}}r=!1}if(1==n.c)throw M(new De($e((Ie(),fP))));return u2(f),f8(f),n.b=0,Ye(n),f}function $De(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_;if(t.Ug("Coffman-Graham Layering",1),0!=e.a.c.length){for(_=u(m(e,(cn(),Ehn)),17).a,h=0,s=0,g=new C(e.a);g.a=_||!P8e(A,i))&&(i=yIn(e,a)),Di(A,i),c=new ie(ce(ki(A).a.Kc(),new Vn));ve(c);)r=u(fe(c),18),!n.a[r.p]&&(--n.e[(k=r.c.i).p],0==n.e[k.p]&&Rv(D4(v,k),Z4));for(l=a.c.length-1;l>=0;--l)nn(e.b,(Ln(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}else t.Vg()}function Czn(n,e){var t,i,r,c,s,l,a,d,g,v,p,k,j,A,I,O,$;$=!1;do{for($=!1,c=e?new rd(n.a.b).a.gc()-2:1;e?c>=0:cu(m(j,lt),17).a)&&(O=!1);if(O){for(s=!1,I=!0,i=!1,a=ge(qJ(n.a,Y(e?c+1:c-1)),0);a.b!=a.d.c;)vt(l=u(be(a),10),lt)?l.p!=d.p&&(s|=e?u(m(l,lt),17).au(m(d,lt),17).a,I=!1):!s&&I&&l.k==(Xn(),Oc)&&(i=!0,(g=e?u(fe(new ie(ce(ki(l).a.Kc(),new Vn))),18).c.i:u(fe(new ie(ce(Vt(l).a.Kc(),new Vn))),18).d.i)==d&&(t=e?u(fe(new ie(ce(Vt(l).a.Kc(),new Vn))),18).d.i:u(fe(new ie(ce(ki(l).a.Kc(),new Vn))),18).c.i,(e?u(Qb(n.a,t),17).a-u(Qb(n.a,g),17).a:u(Qb(n.a,g),17).a-u(Qb(n.a,t),17).a)<=2&&(I=!1)));if(i&&I&&(t=e?u(fe(new ie(ce(Vt(d).a.Kc(),new Vn))),18).d.i:u(fe(new ie(ce(ki(d).a.Kc(),new Vn))),18).c.i,(e?u(Qb(n.a,t),17).a-u(Qb(n.a,d),17).a:u(Qb(n.a,d),17).a-u(Qb(n.a,t),17).a)<=2&&t.k==(Xn(),Ut)&&(I=!1)),s||I){for(k=eqn(n,d,e);0!=k.a.gc();)p=u(k.a.ec().Kc().Pb(),10),k.a.Bc(p),Fi(k,eqn(n,p,e));--v,$=!0}}}}while($)}function xDe(n,e,t,i,r,c,s){var f,h,l,a,d,g,v,p;return g=u(i.a,17).a,v=u(i.b,17).a,d=n.b,p=n.c,f=0,a=0,e==(ii(),$r)||e==zr?(a=I7(bBn(cw(Kr(new Mn(null,new Pn(t.b,16)),new x3n),new p3n))),d.e.b+d.f.b/2>a?(l=++v,f=F(R(bo(tw(Kr(new Mn(null,new Pn(t.b,16)),new oMn(r,l)),new m3n))))):(h=++g,f=F(R(bo(_v(Kr(new Mn(null,new Pn(t.b,16)),new sMn(r,h)),new k3n)))))):(a=I7(bBn(cw(Kr(new Mn(null,new Pn(t.b,16)),new C3n),new v3n))),d.e.a+d.f.a/2>a?(l=++v,f=F(R(bo(tw(Kr(new Mn(null,new Pn(t.b,16)),new cMn(r,l)),new y3n))))):(h=++g,f=F(R(bo(_v(Kr(new Mn(null,new Pn(t.b,16)),new uMn(r,h)),new j3n)))))),e==$r?(tr(n.a,new W(F(R(m(d,(bt(),Sf))))-r,f)),tr(n.a,new W(p.e.a+p.f.a+r+c,f)),tr(n.a,new W(p.e.a+p.f.a+r+c,p.e.b+p.f.b/2)),tr(n.a,new W(p.e.a+p.f.a,p.e.b+p.f.b/2))):e==zr?(tr(n.a,new W(F(R(m(d,(bt(),tf))))+r,d.e.b+d.f.b/2)),tr(n.a,new W(d.e.a+d.f.a+r,f)),tr(n.a,new W(p.e.a-r-c,f)),tr(n.a,new W(p.e.a-r-c,p.e.b+p.f.b/2)),tr(n.a,new W(p.e.a,p.e.b+p.f.b/2))):e==hs?(tr(n.a,new W(f,F(R(m(d,(bt(),Sf))))-r)),tr(n.a,new W(f,p.e.b+p.f.b+r+c)),tr(n.a,new W(p.e.a+p.f.a/2,p.e.b+p.f.b+r+c)),tr(n.a,new W(p.e.a+p.f.a/2,p.e.b+p.f.b+r))):(0==n.a.b||(u(_s(n.a),8).b=F(R(m(d,(bt(),tf))))+r*u(s.b,17).a),tr(n.a,new W(f,F(R(m(d,(bt(),tf))))+r*u(s.b,17).a)),tr(n.a,new W(f,p.e.b-r*u(s.a,17).a-c))),new ai(Y(g),Y(v))}function Mzn(){Mzn=N,jB(),Sn(He=new R0,(en(),sf),ih),Sn(He,Os,ih),Sn(He,Ju,ih),Sn(He,ff,ih),Sn(He,Cu,ih),Sn(He,Qu,ih),Sn(He,ff,sf),Sn(He,ih,ls),Sn(He,sf,ls),Sn(He,Os,ls),Sn(He,Ju,ls),Sn(He,Eu,ls),Sn(He,ff,ls),Sn(He,Cu,ls),Sn(He,Qu,ls),Sn(He,lu,ls),Sn(He,ih,xo),Sn(He,sf,xo),Sn(He,ls,xo),Sn(He,Os,xo),Sn(He,Ju,xo),Sn(He,Eu,xo),Sn(He,ff,xo),Sn(He,lu,xo),Sn(He,Bo,xo),Sn(He,Cu,xo),Sn(He,Ru,xo),Sn(He,Qu,xo),Sn(He,sf,Os),Sn(He,Ju,Os),Sn(He,ff,Os),Sn(He,Qu,Os),Sn(He,sf,Ju),Sn(He,Os,Ju),Sn(He,ff,Ju),Sn(He,Ju,Ju),Sn(He,Cu,Ju),Sn(He,ih,as),Sn(He,sf,as),Sn(He,ls,as),Sn(He,xo,as),Sn(He,Os,as),Sn(He,Ju,as),Sn(He,Eu,as),Sn(He,ff,as),Sn(He,Bo,as),Sn(He,lu,as),Sn(He,Qu,as),Sn(He,Cu,as),Sn(He,Wc,as),Sn(He,ih,Bo),Sn(He,sf,Bo),Sn(He,ls,Bo),Sn(He,Os,Bo),Sn(He,Ju,Bo),Sn(He,Eu,Bo),Sn(He,ff,Bo),Sn(He,lu,Bo),Sn(He,Qu,Bo),Sn(He,Ru,Bo),Sn(He,Wc,Bo),Sn(He,sf,lu),Sn(He,Os,lu),Sn(He,Ju,lu),Sn(He,ff,lu),Sn(He,Bo,lu),Sn(He,Qu,lu),Sn(He,Cu,lu),Sn(He,ih,ju),Sn(He,sf,ju),Sn(He,ls,ju),Sn(He,Os,ju),Sn(He,Ju,ju),Sn(He,Eu,ju),Sn(He,ff,ju),Sn(He,lu,ju),Sn(He,Qu,ju),Sn(He,sf,Cu),Sn(He,ls,Cu),Sn(He,xo,Cu),Sn(He,Ju,Cu),Sn(He,ih,Ru),Sn(He,sf,Ru),Sn(He,xo,Ru),Sn(He,Os,Ru),Sn(He,Ju,Ru),Sn(He,Eu,Ru),Sn(He,ff,Ru),Sn(He,ff,Wc),Sn(He,Ju,Wc),Sn(He,lu,ih),Sn(He,lu,Os),Sn(He,lu,ls),Sn(He,Eu,ih),Sn(He,Eu,sf),Sn(He,Eu,xo)}function RDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,k,j,A,I,O,$,_,X;switch(t.Ug("Brandes & Koepf node placement",1),n.a=e,n.c=yPe(e),i=u(m(e,(cn(),ZH)),281),v=on(un(m(e,s9))),n.d=i==(ay(),vI)&&!v||i==IH,function lOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O;if(!((k=e.b.c.length)<3)){for(v=K(ye,_e,28,k,15,1),d=0,a=new C(e.b);a.as)&&oi(n.b,u(j.b,18));++f}c=s}}}(n,e),_=null,X=null,A=null,I=null,Ao(4,Dw),j=new Vc(4),u(m(e,ZH),281).g){case 3:A=new h2(e,n.c.d,(Nf(),n0),(wh(),N1)),Rn(j.c,A);break;case 1:I=new h2(e,n.c.d,(Nf(),Yf),(wh(),N1)),Rn(j.c,I);break;case 4:_=new h2(e,n.c.d,(Nf(),n0),(wh(),Db)),Rn(j.c,_);break;case 2:X=new h2(e,n.c.d,(Nf(),Yf),(wh(),Db)),Rn(j.c,X);break;default:A=new h2(e,n.c.d,(Nf(),n0),(wh(),N1)),I=new h2(e,n.c.d,Yf,N1),_=new h2(e,n.c.d,n0,Db),X=new h2(e,n.c.d,Yf,Db),Rn(j.c,_),Rn(j.c,X),Rn(j.c,A),Rn(j.c,I)}for(r=new VCn(e,n.c),f=new C(j);f.ajn[h]&&(j=h),d=new C(n.a.b);d.aKx(c))&&(d=c);for(!d&&(Ln(0,j.c.length),d=u(j.c[0],185)),k=new C(e.b);k.a=-1900?1:0,Re(n,t>=4?S(T(fn,1),J,2,6,[_zn,Hzn])[f]:S(T(fn,1),J,2,6,["BC","AD"])[f]);break;case 121:!function r9e(n,e,t){var i;switch((i=t.q.getFullYear()-Ea+Ea)<0&&(i=-i),e){case 1:n.a+=i;break;case 2:zh(n,i%100,2);break;default:zh(n,i,e)}}(n,t,i);break;case 77:!function jSe(n,e,t){var i;switch(i=t.q.getMonth(),e){case 5:Re(n,S(T(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:Re(n,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB])[i]);break;case 3:Re(n,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:zh(n,i+1,e)}}(n,t,i);break;case 107:zh(n,0==(h=r.q.getHours())?24:h,t);break;case 83:!function FMe(n,e,t){var i,r;Ac(i=Ec(t.q.getTime()),0)<0?(r=T1-Ae(ty(d1(i),T1)))==T1&&(r=0):r=Ae(ty(i,T1)),1==e?ca(n,48+(r=y.Math.min((r+50)/100|0,9))&ri):2==e?zh(n,r=y.Math.min((r+5)/10|0,99),2):(zh(n,r,3),e>3&&zh(n,0,e-3))}(n,t,r);break;case 69:a=i.q.getDay(),Re(n,5==t?S(T(fn,1),J,2,6,["S","M","T","W","T","F","S"])[a]:4==t?S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB])[a]:S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Re(n,S(T(fn,1),J,2,6,["AM","PM"])[1]):Re(n,S(T(fn,1),J,2,6,["AM","PM"])[0]);break;case 104:zh(n,0==(d=r.q.getHours()%12)?12:d,t);break;case 75:zh(n,r.q.getHours()%12,t);break;case 72:zh(n,r.q.getHours(),t);break;case 99:p=i.q.getDay(),5==t?Re(n,S(T(fn,1),J,2,6,["S","M","T","W","T","F","S"])[p]):4==t?Re(n,S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB])[p]):3==t?Re(n,S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[p]):zh(n,p,1);break;case 76:k=i.q.getMonth(),5==t?Re(n,S(T(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):4==t?Re(n,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB])[k]):3==t?Re(n,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):zh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,Re(n,t<4?S(T(fn,1),J,2,6,["Q1","Q2","Q3","Q4"])[j]:S(T(fn,1),J,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:zh(n,i.q.getDate(),t);break;case 109:zh(n,r.q.getMinutes(),t);break;case 115:zh(n,r.q.getSeconds(),t);break;case 122:Re(n,t<4?c.c[0]:c.c[1]);break;case 118:Re(n,c.b);break;case 90:Re(n,t<3?function PEe(n){var e,t;return t=-n.a,e=S(T(ds,1),jh,28,15,[43,48,48,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ri,e[2]=e[2]+(t/60|0)%10&ri,e[3]=e[3]+(t%60/10|0)&ri,e[4]=e[4]+t%10&ri,ks(e,0,e.length)}(c):3==t?function NEe(n){var e,t;return t=-n.a,e=S(T(ds,1),jh,28,15,[43,48,48,58,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ri,e[2]=e[2]+(t/60|0)%10&ri,e[4]=e[4]+(t%60/10|0)&ri,e[5]=e[5]+t%10&ri,ks(e,0,e.length)}(c):function $Ee(n){var e;return e=S(T(ds,1),jh,28,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(e[3]=43,n=-n),e[4]=e[4]+((n/60|0)/10|0)&ri,e[5]=e[5]+(n/60|0)%10&ri,e[7]=e[7]+(n%60/10|0)&ri,e[8]=e[8]+n%10&ri,ks(e,0,e.length)}(c.a));break;default:return!1}return!0}function Ltn(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,$,_,X,tn,jn,kn,Bn,$n,te,Fe;if(iUn(e),h=u(D((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84),a=u(D((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84),f=Ur(h),l=Ur(a),s=0==(!e.a&&(e.a=new q(jt,e,6,6)),e.a).i?null:u(D((!e.a&&(e.a=new q(jt,e,6,6)),e.a),0),166),tn=u(ee(n.a,f),10),$n=u(ee(n.a,l),10),jn=null,te=null,L(h,193)&&(L(X=u(ee(n.a,h),305),12)?jn=u(X,12):L(X,10)&&(tn=u(X,10),jn=u(sn(tn.j,0),12))),L(a,193)&&(L(Bn=u(ee(n.a,a),305),12)?te=u(Bn,12):L(Bn,10)&&($n=u(Bn,10),te=u(sn($n.j,0),12))),!tn||!$n)throw M(new Cv("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(qr(k=new B0,e),U(k,(V(),ot),e),U(k,(cn(),Nr),null),v=u(m(i,zc),21),tn==$n&&v.Fc((gr(),e9)),jn||(wr(),_=nu,kn=null,s&&Dg(u(m(tn,Kt),101))&&(XLn(kn=new W(s.j,s.k),ak(e)),yDn(kn,t),dw(l,f)&&(_=Vu,et(kn,tn.n))),jn=rGn(tn,kn,_,i)),te||(wr(),_=Vu,Fe=null,s&&Dg(u(m($n,Kt),101))&&(XLn(Fe=new W(s.b,s.c),ak(e)),yDn(Fe,t)),te=rGn($n,Fe,_,Ki($n))),Qi(k,jn),Pi(k,te),(jn.e.c.length>1||jn.g.c.length>1||te.e.c.length>1||te.g.c.length>1)&&v.Fc((gr(),n9)),g=new ne((!e.n&&(e.n=new q(Tr,e,1,7)),e.n));g.e!=g.i.gc();)if(!on(un(z(d=u(ue(g),135),Yd)))&&d.a)switch(j=MF(d),nn(k.b,j),u(m(j,Dh),278).g){case 1:case 2:v.Fc((gr(),Lm));break;case 0:v.Fc((gr(),Om)),U(j,Dh,(Kf(),Jm))}if(c=u(m(i,o9),322),A=u(m(i,BI),323),r=c==(k5(),Dj)||A==(K5(),aq),s&&0!=(!s.a&&(s.a=new ni(Ro,s,5)),s.a).i&&r){for(I=wy(s),p=new Su,$=ge(I,0);$.b!=$.d.c;)xe(p,new ir(u(be($),8)));U(k,Mfn,p)}return k}function V(){var n,e;V=N,ot=new ct(pin),yfn=new ct("coordinateOrigin"),_H=new ct("processors"),kfn=new Pt("compoundNode",(Kn(),!1)),xj=new Pt("insideConnections",!1),Mfn=new ct("originalBendpoints"),Tfn=new ct("originalDummyNodePosition"),Afn=new ct("originalLabelEdge"),i9=new ct("representedLabels"),t9=new ct("endLabels"),Rp=new ct("endLabel.origin"),_p=new Pt("labelSide",(Po(),gE)),F2=new Pt("maxEdgeThickness",0),Qf=new Pt("reversed",!1),Hp=new ct(min),Af=new Pt("longEdgeSource",null),Ss=new Pt("longEdgeTarget",null),Jw=new Pt("longEdgeHasLabelDummies",!1),Bj=new Pt("longEdgeBeforeLabelDummy",!1),EI=new Pt("edgeConstraint",(Md(),CH)),Eb=new ct("inLayerLayoutUnit"),zd=new Pt("inLayerConstraint",(Pl(),$j)),Kp=new Pt("inLayerSuccessorConstraint",new Z),Cfn=new Pt("inLayerSuccessorConstraintBetweenNonDummies",!1),Wu=new ct("portDummy"),jI=new Pt("crossingHint",Y(0)),zc=new Pt("graphProperties",new Go(e=u(df(OH),9),u(Hs(e,e.length),9),0)),mc=new Pt("externalPortSide",(en(),hc)),Efn=new Pt("externalPortSize",new Oi),FH=new ct("externalPortReplacedDummies"),CI=new ct("externalPortReplacedDummy"),Ul=new Pt("externalPortConnections",new Go(n=u(df(fr),9),u(Hs(n,n.length),9),0)),Cb=new Pt(mXn,0),mfn=new ct("barycenterAssociates"),qp=new ct("TopSideComments"),Bp=new ct("BottomSideComments"),yI=new ct("CommentConnectionPort"),BH=new Pt("inputCollect",!1),KH=new Pt("outputCollect",!1),Fj=new Pt("cyclic",!1),jfn=new ct("crossHierarchyMap"),qH=new ct("targetOffset"),new Pt("splineLabelSize",new Oi),B2=new ct("spacings"),MI=new Pt("partitionConstraint",!1),jb=new ct("breakingPoint.info"),Ifn=new ct("splines.survivingEdge"),Xd=new ct("splines.route.start"),R2=new ct("splines.edgeChain"),Pfn=new ct("originalPortConstraints"),Mb=new ct("selfLoopHolder"),Nm=new ct("splines.nsPortY"),lt=new ct("modelOrder"),RH=new ct("longEdgeTargetNode"),Da=new Pt(ZXn,!1),x2=new Pt(ZXn,!1),xH=new ct("layerConstraints.hiddenNodes"),Sfn=new ct("layerConstraints.opposidePort"),HH=new ct("targetNode.modelOrder")}function Ue(){var n,e;Ue=N,Xm=new ct(BWn),rv=new ct(RWn),Xh(),Due=new Cn(Arn,xan=kU),new f6,Q2=new Cn(Mp,null),Nue=new ct(Kcn),Id(),Ran=pt(EU,S(T(CU,1),G,298,0,[jU])),oE=new Cn(US,Ran),sE=new Cn(uj,(Kn(),!1)),ii(),t0=new Cn(uK,Kan=eh),Dl(),Han=new Cn(cj,qan=xU),xue=new Cn(Bcn,!1),Ll(),nv=new Cn(qS,zan=MO),edn=new C0(12),x1=new Cn(hb,edn),hE=new Cn(k8,!1),SU=new Cn(zS,!1),lE=new Cn(y8,!1),Ii(),F9=new Cn(TR,udn=Ha),Wp=new ct(GS),aE=new ct(Jy),$U=new ct(MS),FU=new ct(m8),Xan=new Su,$b=new Cn(Brn,Xan),Fue=new Cn(_rn,!1),Bue=new Cn(Hrn,!1),new ct(KWn),Wan=new a6,Wm=new Cn(Urn,Wan),yO=new Cn(Mrn,!1),new f6,Hue=new Cn(_Wn,1),Z2=new ct(HWn),Y2=new ct(qWn),Vm=new Cn(Qy,!1),new Cn(UWn,!0),Y(0),new Cn(GWn,Y(100)),new Cn(zWn,!1),Y(0),new Cn(XWn,Y(4e3)),Y(0),new Cn(WWn,Y(400)),new Cn(VWn,!1),new Cn(JWn,!1),new Cn(QWn,!0),new Cn(YWn,!1),sA(),$ue=new Cn(Rcn,Ban=_U),que=new Cn(brn,10),Uue=new Cn(wrn,10),hdn=new Cn(mR,20),Gue=new Cn(grn,10),ldn=new Cn(MR,2),adn=new Cn(cK,10),ddn=new Cn(vrn,0),jO=new Cn(krn,5),bdn=new Cn(prn,1),wdn=new Cn(mrn,1),r0=new Cn(Fw,20),zue=new Cn(yrn,10),pdn=new Cn(jrn,10),Vp=new ct(Ern),vdn=new cTn,gdn=new Cn(Grn,vdn),Kue=new ct(sK),Rue=new Cn(oK,tdn=!1),Jan=new C0(5),Van=new Cn(Irn,Jan),Tw(),e=u(df(kr),9),Qan=new Go(e,u(Hs(e,e.length),9),0),ev=new Cn(cm,Qan),Zg(),idn=new Cn(Drn,rdn=_a),IU=new ct(Nrn),OU=new ct($rn),LU=new ct(Frn),PU=new ct(xrn),n=u(df(U9),9),Yan=new Go(n,u(Hs(n,n.length),9),0),i0=new Cn(m2,Yan),ndn=yn((ro(),n6)),Ra=new Cn(Tp,ndn),Zan=new W(0,0),tv=new Cn(Ap,Zan),fg=new Cn(rm,!1),Kf(),TU=new Cn(Rrn,_an=Jm),MU=new Cn(TS,!1),new ct(ZWn),Y(1),new Cn(nVn,null),cdn=new ct(qrn),DU=new ct(Krn),en(),iv=new Cn(Trn,fdn=hc),so=new ct(Crn),Xu(),odn=yn(qa),hg=new Cn(um,odn),NU=new Cn(Orn,!1),sdn=new Cn(Lrn,!0),new f6,CO=new Cn(Yy,1),mdn=new Cn(_cn,null),dE=new Cn(Zy,150),EO=new Cn(nj,1.414),Jp=new Cn(lb,null),Xue=new Cn(Hcn,1),fE=new Cn(Srn,!1),AU=new Cn(Prn,!1),Uan=new Cn(kR,1),FA(),new Cn(eVn,Gan=RU),_ue=!0,cp(),Vue=dg,Jue=dg,Wue=dg}function nr(){nr=N,psn=new Zt("DIRECTION_PREPROCESSOR",0),wsn=new Zt("COMMENT_PREPROCESSOR",1),P2=new Zt("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),uH=new Zt("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),xsn=new Zt("PARTITION_PREPROCESSOR",4),VP=new Zt("LABEL_DUMMY_INSERTER",5),cI=new Zt("SELF_LOOP_PREPROCESSOR",6),Ww=new Zt("LAYER_CONSTRAINT_PREPROCESSOR",7),$sn=new Zt("PARTITION_MIDPROCESSOR",8),Tsn=new Zt("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Dsn=new Zt("NODE_PROMOTION",10),Xw=new Zt("LAYER_CONSTRAINT_POSTPROCESSOR",11),Fsn=new Zt("PARTITION_POSTPROCESSOR",12),Esn=new Zt("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Bsn=new Zt("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),fsn=new Zt("BREAKING_POINT_INSERTER",15),ZP=new Zt("LONG_EDGE_SPLITTER",16),oH=new Zt("PORT_SIDE_PROCESSOR",17),XP=new Zt("INVERTED_PORT_PROCESSOR",18),tI=new Zt("PORT_LIST_SORTER",19),Ksn=new Zt("SORT_BY_INPUT_ORDER_OF_MODEL",20),eI=new Zt("NORTH_SOUTH_PORT_PREPROCESSOR",21),hsn=new Zt("BREAKING_POINT_PROCESSOR",22),Nsn=new Zt(GXn,23),_sn=new Zt(zXn,24),iI=new Zt("SELF_LOOP_PORT_RESTORER",25),Rsn=new Zt("SINGLE_EDGE_GRAPH_WRAPPER",26),WP=new Zt("IN_LAYER_CONSTRAINT_PROCESSOR",27),ksn=new Zt("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),Osn=new Zt("LABEL_AND_NODE_SIZE_PROCESSOR",29),Isn=new Zt("INNERMOST_NODE_MARGIN_CALCULATOR",30),uI=new Zt("SELF_LOOP_ROUTER",31),dsn=new Zt("COMMENT_NODE_MARGIN_CALCULATOR",32),zP=new Zt("END_LABEL_PREPROCESSOR",33),QP=new Zt("LABEL_DUMMY_SWITCHER",34),asn=new Zt("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),jm=new Zt("LABEL_SIDE_SELECTOR",36),Ssn=new Zt("HYPEREDGE_DUMMY_MERGER",37),Csn=new Zt("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Lsn=new Zt("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),J8=new Zt("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),gsn=new Zt("CONSTRAINTS_POSTPROCESSOR",41),bsn=new Zt("COMMENT_POSTPROCESSOR",42),Psn=new Zt("HYPERNODE_PROCESSOR",43),Msn=new Zt("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),YP=new Zt("LONG_EDGE_JOINER",45),rI=new Zt("SELF_LOOP_POSTPROCESSOR",46),lsn=new Zt("BREAKING_POINT_REMOVER",47),nI=new Zt("NORTH_SOUTH_PORT_POSTPROCESSOR",48),Asn=new Zt("HORIZONTAL_COMPACTOR",49),JP=new Zt("LABEL_DUMMY_REMOVER",50),ysn=new Zt("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),msn=new Zt("END_LABEL_SORTER",52),Ij=new Zt("REVERSED_EDGE_RESTORER",53),GP=new Zt("END_LABEL_POSTPROCESSOR",54),jsn=new Zt("HIERARCHICAL_NODE_RESIZER",55),vsn=new Zt("DIRECTION_POSTPROCESSOR",56)}function Dtn(){Dtn=N,Dk(),oee=new Cn(Pin,_fn=bI),mee=new Cn(Iin,(Kn(),!1)),cT(),Cee=new Cn(IS,Xfn=$H),Ree=new Cn(Oin,!1),Kee=new Cn(Lin,!0),Dne=new Cn(Din,!1),Ok(),ete=new Cn(Nin,ehn=gq),Y(1),fte=new Cn($in,Y(7)),hte=new Cn(Fin,!1),kee=new Cn(xin,!1),k1(),uee=new Cn(DR,Kfn=jH),M1(),Bee=new Cn(rj,Jfn=sq),ts(),Iee=new Cn(Bin,Wfn=Rj),Y(-1),Pee=new Cn(Rin,null),Y(-1),Oee=new Cn(Kin,Y(-1)),Y(-1),Lee=new Cn(NR,Y(4)),Y(-1),Nee=new Cn($R,Y(2)),js(),xee=new Cn(FR,Vfn=zI),Y(0),Fee=new Cn(xR,Y(0)),Aee=new Cn(BR,Y(nt)),k5(),cee=new Cn(C8,Rfn=Y8),Une=new Cn(_in,!1),Qne=new Cn(RR,.1),iee=new Cn(KR,!1),Zne=new Cn(Hin,null),nee=new Cn(qin,null),Y(-1),eee=new Cn(Uin,null),Y(-1),tee=new Cn(Gin,Y(-1)),Y(0),Gne=new Cn(zin,Y(40)),l4(),Vne=new Cn(_R,Bfn=DH),zne=new Cn(OS,xfn=Nj),K5(),nte=new Cn(k2,nhn=a9),Gee=new ct(LS),Tk(),_ee=new Cn(HR,Qfn=gI),ay(),qee=new Cn(qR,Yfn=vI),new f6,Wee=new Cn(UR,.3),Jee=new ct(GR),kw(),Qee=new Cn(zR,Zfn=GI),XT(),aee=new Cn(Xin,Ufn=pq),A5(),dee=new Cn(Win,Gfn=kq),m4(),bee=new Cn(DS,zfn=w9),gee=new Cn(NS,.2),hee=new Cn(XR,2),cte=new Cn(Vin,null),ote=new Cn(Jin,10),ute=new Cn(Qin,10),ste=new Cn(Yin,20),Y(0),tte=new Cn(Zin,Y(0)),Y(0),ite=new Cn(nrn,Y(0)),Y(0),rte=new Cn(ern,Y(0)),Nne=new Cn(WR,!1),N4(),Fne=new Cn(trn,Dfn=Z8),gT(),$ne=new Cn(irn,Lfn=kH),jee=new Cn($S,!1),Y(0),yee=new Cn(VR,Y(16)),Y(0),Eee=new Cn(JR,Y(5)),QT(),Ite=new Cn(_l,rhn=Eq),lte=new Cn(FS,10),bte=new Cn(xS,1),DT(),yte=new Cn(M8,ihn=dI),vte=new ct(QR),thn=Y(1),Y(0),mte=new Cn(YR,thn),LT(),Nte=new Cn(BS,chn=jq),Ote=new ct(RS),Tte=new Cn(KS,!0),Cte=new Cn(_S,2),Ste=new Cn(ZR,!0),BA(),fee=new Cn(rrn,qfn=wI),ap(),see=new Cn(crn,Hfn=Tm),vh(),qne=new Cn(HS,Ffn=D1),Hne=new Cn(urn,!1),_ne=new Cn(orn,!1),Sd(),xne=new Cn(nK,Nfn=zw),I5(),Kne=new Cn(srn,$fn=fq),Bne=new Cn(eK,0),Rne=new Cn(tK,0),Tee=EH,Mee=Dj,Dee=qI,$ee=qI,See=oq,Ll(),Yne=B1,ree=Y8,Jne=Y8,Xne=Y8,Wne=B1,zee=d9,Xee=a9,Hee=a9,Uee=a9,Vee=dq,Zee=d9,Yee=d9,Dl(),wee=Qp,vee=Qp,pee=w9,lee=bE,ate=qm,dte=ug,wte=qm,gte=ug,jte=qm,Ete=ug,pte=yH,kte=dI,$te=qm,Fte=ug,Lte=qm,Dte=ug,Ate=ug,Mte=ug,Pte=ug}function Ze(){Ze=N,t7=new h0(7),N0n=new Hh(8,94),new Hh(8,64),$0n=new Hh(8,36),Pse=new Hh(8,65),Ise=new Hh(8,122),Ose=new Hh(8,90),Dse=new Hh(8,98),Sse=new Hh(8,66),Lse=new Hh(8,60),Nse=new Hh(8,62),D0n=new h0(11),Kc(WO=new Co(4),48,57),Kc(r6=new Co(4),48,57),Kc(r6,65,90),Kc(r6,95,95),Kc(r6,97,122),Kc(t3=new Co(4),9,9),Kc(t3,10,10),Kc(t3,12,12),Kc(t3,13,13),Kc(t3,32,32),F0n=Pw(WO),B0n=Pw(r6),x0n=Pw(t3),i6=new de,e7=new de,Ase=S(T(fn,1),J,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),O0n=S(T(fn,1),J,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",ZJn,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),L0n=S(T(ye,1),_e,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function dS(){dS=N,yYn=new Yo("OUT_T_L",0,(Gu(),Oh),(mu(),Zs),(yf(),vc),vc,S(T(As,1),xn,21,0,[pt((Tw(),uf),S(T(kr,1),G,95,0,[of,rf]))])),kYn=new Yo("OUT_T_C",1,Ia,Zs,vc,Zc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[of,zl])),pt(uf,S(T(kr,1),G,95,0,[of,zl,Ps]))])),jYn=new Yo("OUT_T_R",2,Ys,Zs,vc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[of,cf]))])),aYn=new Yo("OUT_B_L",3,Oh,Tf,pc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[Is,rf]))])),lYn=new Yo("OUT_B_C",4,Ia,Tf,pc,Zc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[Is,zl])),pt(uf,S(T(kr,1),G,95,0,[Is,zl,Ps]))])),dYn=new Yo("OUT_B_R",5,Ys,Tf,pc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[Is,cf]))])),gYn=new Yo("OUT_L_T",6,Ys,Tf,vc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[rf,of,Ps]))])),wYn=new Yo("OUT_L_C",7,Ys,Oa,Zc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[rf,fl])),pt(uf,S(T(kr,1),G,95,0,[rf,fl,Ps]))])),bYn=new Yo("OUT_L_B",8,Ys,Zs,pc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[rf,Is,Ps]))])),mYn=new Yo("OUT_R_T",9,Oh,Tf,vc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[cf,of,Ps]))])),pYn=new Yo("OUT_R_C",10,Oh,Oa,Zc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[cf,fl])),pt(uf,S(T(kr,1),G,95,0,[cf,fl,Ps]))])),vYn=new Yo("OUT_R_B",11,Oh,Zs,pc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[cf,Is,Ps]))])),fYn=new Yo("IN_T_L",12,Oh,Tf,vc,vc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[of,rf])),pt(Fo,S(T(kr,1),G,95,0,[of,rf,Ps]))])),sYn=new Yo("IN_T_C",13,Ia,Tf,vc,Zc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[of,zl])),pt(Fo,S(T(kr,1),G,95,0,[of,zl,Ps]))])),hYn=new Yo("IN_T_R",14,Ys,Tf,vc,pc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[of,cf])),pt(Fo,S(T(kr,1),G,95,0,[of,cf,Ps]))])),uYn=new Yo("IN_C_L",15,Oh,Oa,Zc,vc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[fl,rf])),pt(Fo,S(T(kr,1),G,95,0,[fl,rf,Ps]))])),cYn=new Yo("IN_C_C",16,Ia,Oa,Zc,Zc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[fl,zl])),pt(Fo,S(T(kr,1),G,95,0,[fl,zl,Ps]))])),oYn=new Yo("IN_C_R",17,Ys,Oa,Zc,pc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[fl,cf])),pt(Fo,S(T(kr,1),G,95,0,[fl,cf,Ps]))])),iYn=new Yo("IN_B_L",18,Oh,Zs,pc,vc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[Is,rf])),pt(Fo,S(T(kr,1),G,95,0,[Is,rf,Ps]))])),tYn=new Yo("IN_B_C",19,Ia,Zs,pc,Zc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[Is,zl])),pt(Fo,S(T(kr,1),G,95,0,[Is,zl,Ps]))])),rYn=new Yo("IN_B_R",20,Ys,Zs,pc,pc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[Is,cf])),pt(Fo,S(T(kr,1),G,95,0,[Is,cf,Ps]))])),$_=new Yo(v8,21,null,null,null,null,S(T(As,1),xn,21,0,[]))}function In(){In=N,vg=(ra(),_n).b,u(D(H(_n.b),0),35),u(D(H(_n.b),1),19),K1=_n.a,u(D(H(_n.a),0),35),u(D(H(_n.a),1),19),u(D(H(_n.a),2),19),u(D(H(_n.a),3),19),u(D(H(_n.a),4),19),za=_n.o,u(D(H(_n.o),0),35),u(D(H(_n.o),1),35),Xoe=u(D(H(_n.o),2),19),u(D(H(_n.o),3),19),u(D(H(_n.o),4),19),u(D(H(_n.o),5),19),u(D(H(_n.o),6),19),u(D(H(_n.o),7),19),u(D(H(_n.o),8),19),u(D(H(_n.o),9),19),u(D(H(_n.o),10),19),u(D(H(_n.o),11),19),u(D(H(_n.o),12),19),u(D(H(_n.o),13),19),u(D(H(_n.o),14),19),u(D(H(_n.o),15),19),u(D(st(_n.o),0),62),u(D(st(_n.o),1),62),u(D(st(_n.o),2),62),u(D(st(_n.o),3),62),u(D(st(_n.o),4),62),u(D(st(_n.o),5),62),u(D(st(_n.o),6),62),u(D(st(_n.o),7),62),u(D(st(_n.o),8),62),u(D(st(_n.o),9),62),zoe=_n.p,u(D(H(_n.p),0),35),u(D(H(_n.p),1),35),u(D(H(_n.p),2),35),u(D(H(_n.p),3),35),u(D(H(_n.p),4),19),u(D(H(_n.p),5),19),u(D(st(_n.p),0),62),u(D(st(_n.p),1),62),Woe=_n.q,u(D(H(_n.q),0),35),Xa=_n.v,u(D(H(_n.v),0),19),u(D(st(_n.v),0),62),u(D(st(_n.v),1),62),u(D(st(_n.v),2),62),_1=_n.w,u(D(H(_n.w),0),35),u(D(H(_n.w),1),35),u(D(H(_n.w),2),35),u(D(H(_n.w),3),19),Wa=_n.B,u(D(H(_n.B),0),19),u(D(st(_n.B),0),62),u(D(st(_n.B),1),62),u(D(st(_n.B),2),62),Voe=_n.Q,u(D(H(_n.Q),0),19),u(D(st(_n.Q),0),62),Joe=_n.R,u(D(H(_n.R),0),35),$s=_n.S,u(D(st(_n.S),0),62),u(D(st(_n.S),1),62),u(D(st(_n.S),2),62),u(D(st(_n.S),3),62),u(D(st(_n.S),4),62),u(D(st(_n.S),5),62),u(D(st(_n.S),6),62),u(D(st(_n.S),7),62),u(D(st(_n.S),8),62),u(D(st(_n.S),9),62),u(D(st(_n.S),10),62),u(D(st(_n.S),11),62),u(D(st(_n.S),12),62),u(D(st(_n.S),13),62),u(D(st(_n.S),14),62),H1=_n.T,u(D(H(_n.T),0),19),u(D(H(_n.T),2),19),Qoe=u(D(H(_n.T),3),19),u(D(H(_n.T),4),19),u(D(st(_n.T),0),62),u(D(st(_n.T),1),62),u(D(H(_n.T),1),19),q1=_n.U,u(D(H(_n.U),0),35),u(D(H(_n.U),1),35),u(D(H(_n.U),2),19),u(D(H(_n.U),3),19),u(D(H(_n.U),4),19),u(D(H(_n.U),5),19),u(D(st(_n.U),0),62),pg=_n.V,u(D(H(_n.V),0),19),cv=_n.W,u(D(H(_n.W),0),35),u(D(H(_n.W),1),35),u(D(H(_n.W),2),35),u(D(H(_n.W),3),19),u(D(H(_n.W),4),19),u(D(H(_n.W),5),19),Yoe=_n.bb,u(D(H(_n.bb),0),35),u(D(H(_n.bb),1),35),u(D(H(_n.bb),2),35),u(D(H(_n.bb),3),35),u(D(H(_n.bb),4),35),u(D(H(_n.bb),5),35),u(D(H(_n.bb),6),35),u(D(H(_n.bb),7),19),u(D(st(_n.bb),0),62),u(D(st(_n.bb),1),62),Zoe=_n.eb,u(D(H(_n.eb),0),35),u(D(H(_n.eb),1),35),u(D(H(_n.eb),2),35),u(D(H(_n.eb),3),35),u(D(H(_n.eb),4),35),u(D(H(_n.eb),5),35),u(D(H(_n.eb),6),19),u(D(H(_n.eb),7),19),hr=_n.ab,u(D(H(_n.ab),0),35),u(D(H(_n.ab),1),35),xb=_n.H,u(D(H(_n.H),0),19),u(D(H(_n.H),1),19),u(D(H(_n.H),2),19),u(D(H(_n.H),3),19),u(D(H(_n.H),4),19),u(D(H(_n.H),5),19),u(D(st(_n.H),0),62),Bb=_n.db,u(D(H(_n.db),0),19),rh=_n.M}function Ntn(n,e,t,i){var r,c,s,h,l,a,d,g,v,p,k,A,I,O,$,_,X,tn,jn,kn,Bn,$n,te,Fe,It,Zu,Fr,Ko,hv,G1,hf,lf,s0,i3,Qa,r3,dl,Kb,lv,xh,f0,Vl;if(i.$g()||on(un(z(e,(Ue(),yO)))))return On(),On(),Vi;if(tn=0!=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i,jn=!(kn=function hEe(n){var e,t,i;if(on(un(z(n,(Ue(),fE))))){for(i=new Z,t=new ie(ce(xl(n).a.Kc(),new Vn));ve(t);)tb(e=u(fe(t),74))&&on(un(z(e,AU)))&&Rn(i.c,e);return i}return On(),On(),Vi}(e)).dc(),tn||jn){if(!(r=u(z(e,rv),143)))throw M(new n1("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(lv=FX(r,(F4(),xO)),rRn(e),!tn&&jn&&!lv)return On(),On(),Vi;if(O=new Z,x(z(e,nv))===x((Ll(),B1))&&(FX(r,$O)||FX(r,NO))){if(on(un(z(e,Vm))))throw M(new n1("Topdown layout cannot be used together with hierarchy handling."));for(hv=Vqn(n,e),Fi(G1=new yt,(!e.a&&(e.a=new q(Qe,e,10,11)),e.a));0!=G1.b;)rRn(Fr=u(0==G1.b?null:(oe(0!=G1.b),Qo(G1,G1.a.a)),27)),x(z(Fr,nv))===x(R9)||Bf(Fr,Xm)&&!YJ(r,z(Fr,rv))?(si(O,Ntn(n,Fr,t,i)),ft(Fr,nv,R9),aUn(Fr)):Fi(G1,(!Fr.a&&(Fr.a=new q(Qe,Fr,10,11)),Fr.a))}else{if(hv=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i,on(un(z(e,Vm)))){if((xh=i.eh(1)).Ug(DWn,1),null==z(e,Jp))throw M(new n1(e.k+" has not been assigned a top-down node type."));if(u(z(e,Jp),280)==(cp(),dg)||u(z(e,Jp),280)==OO)for(I=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));I.e!=I.i.gc();)A=u(ue(I),27),Zu=u(z(A,rv),143),(!A.a&&(A.a=new q(Qe,A,10,11)),A.a).i>0&&hk(Zu.f),null!=z(A,mdn)&&(Kb=u(z(A,mdn),347).Tg(A),$g(A,y.Math.max(A.g,Kb.a),y.Math.max(A.f,Kb.b)));if(hf=u(z(e,x1),107),xh.bh("Available Child Area: ("+(v=e.g-(hf.b+hf.c))+"|"+(g=e.f-(hf.d+hf.a))+")"),ft(e,Q2,v/g),sRn(e,r,i.eh(hv)),u(z(e,Jp),280)==OO&&(Ptn(e),$g(e,hf.b+F(R(z(e,Z2)))+hf.c,hf.d+F(R(z(e,Y2)))+hf.a)),xh.bh("Executed layout algorithm: "+Oe(z(e,Xm))+" on node "+e.k),u(z(e,Jp),280)==dg){if(v<0||g<0)throw M(new n1("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(Bf(e,Z2)||Bf(e,Y2)||Ptn(e),k=F(R(z(e,Z2))),p=F(R(z(e,Y2))),xh.bh("Desired Child Area: ("+k+"|"+p+")"),lf=y.Math.min(s0=v/k,y.Math.min(i3=g/p,F(R(z(e,Xue))))),ft(e,CO,lf),xh.bh(e.k+" -- Local Scale Factor (X|Y): ("+s0+"|"+i3+")"),$=u(z(e,oE),21),c=0,s=0,lf'?":Tn(DVn,n)?"'(?<' or '(? toIndex: ",Jtn=", toIndex: ",Qtn="Index: ",Ytn=", Size: ",nm="org.eclipse.elk.alg.common",Ne={50:1},eXn="org.eclipse.elk.alg.common.compaction",tXn="Scanline/EventHandler",nl="org.eclipse.elk.alg.common.compaction.oned",iXn="CNode belongs to another CGroup.",rXn="ISpacingsHandler/1",oR="The ",sR=" instance has been finished already.",cXn="The direction ",uXn=" is not supported by the CGraph instance.",oXn="OneDimensionalCompactor",sXn="OneDimensionalCompactor/lambda$0$Type",fXn="Quadruplet",hXn="ScanlineConstraintCalculator",lXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",aXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",dXn="ScanlineConstraintCalculator/Timestamp",bXn="ScanlineConstraintCalculator/lambda$0$Type",Eh={178:1,46:1},fR="org.eclipse.elk.alg.common.compaction.options",fc="org.eclipse.elk.core.data",Ztn="org.eclipse.elk.polyomino.traversalStrategy",nin="org.eclipse.elk.polyomino.lowLevelSort",ein="org.eclipse.elk.polyomino.highLevelSort",tin="org.eclipse.elk.polyomino.fill",Es={134:1},hR="polyomino",g8="org.eclipse.elk.alg.common.networksimplex",el={183:1,3:1,4:1},wXn="org.eclipse.elk.alg.common.nodespacing",$d="org.eclipse.elk.alg.common.nodespacing.cellsystem",em="CENTER",gXn={217:1,336:1},iin={3:1,4:1,5:1,603:1},jp="LEFT",Ep="RIGHT",rin="Vertical alignment cannot be null",cin="BOTTOM",mS="org.eclipse.elk.alg.common.nodespacing.internal",v8="UNDEFINED",zf=.01,Xy="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",vXn="LabelPlacer/lambda$0$Type",pXn="LabelPlacer/lambda$1$Type",mXn="portRatioOrPosition",tm="org.eclipse.elk.alg.common.overlaps",lR="DOWN",Ch="org.eclipse.elk.alg.common.polyomino",kS="NORTH",aR="EAST",dR="SOUTH",bR="WEST",yS="org.eclipse.elk.alg.common.polyomino.structures",uin="Direction",wR="Grid is only of size ",gR=". Requested point (",vR=") is out of bounds.",jS=" Given center based coordinates were (",Wy="org.eclipse.elk.graph.properties",kXn="IPropertyHolder",oin={3:1,96:1,137:1},Cp="org.eclipse.elk.alg.common.spore",yXn="org.eclipse.elk.alg.common.utils",Fd={205:1},g2="org.eclipse.elk.core",jXn="Connected Components Compaction",EXn="org.eclipse.elk.alg.disco",ES="org.eclipse.elk.alg.disco.graph",pR="org.eclipse.elk.alg.disco.options",sin="CompactionStrategy",fin="org.eclipse.elk.disco.componentCompaction.strategy",hin="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",lin="org.eclipse.elk.disco.debug.discoGraph",ain="org.eclipse.elk.disco.debug.discoPolys",CXn="componentCompaction",xd="org.eclipse.elk.disco",mR="org.eclipse.elk.spacing.componentComponent",kR="org.eclipse.elk.edge.thickness",Mp="org.eclipse.elk.aspectRatio",hb="org.eclipse.elk.padding",v2="org.eclipse.elk.alg.disco.transform",yR=1.5707963267948966,p2=17976931348623157e292,$w={3:1,4:1,5:1,198:1},MXn={3:1,6:1,4:1,5:1,100:1,115:1},jR="org.eclipse.elk.alg.force",din="ComponentsProcessor",TXn="ComponentsProcessor/1",bin="ElkGraphImporter/lambda$0$Type",Vy="org.eclipse.elk.alg.force.graph",AXn="Component Layout",win="org.eclipse.elk.alg.force.model",CS="org.eclipse.elk.force.model",gin="org.eclipse.elk.force.iterations",vin="org.eclipse.elk.force.repulsivePower",ER="org.eclipse.elk.force.temperature",Mh=.001,CR="org.eclipse.elk.force.repulsion",p8="org.eclipse.elk.alg.force.options",im=1.600000023841858,su="org.eclipse.elk.force",Jy="org.eclipse.elk.priority",Fw="org.eclipse.elk.spacing.nodeNode",MR="org.eclipse.elk.spacing.edgeLabel",MS="org.eclipse.elk.randomSeed",m8="org.eclipse.elk.separateConnectedComponents",k8="org.eclipse.elk.interactive",TR="org.eclipse.elk.portConstraints",TS="org.eclipse.elk.edgeLabels.inline",y8="org.eclipse.elk.omitNodeMicroLayout",rm="org.eclipse.elk.nodeSize.fixedGraphSize",Tp="org.eclipse.elk.nodeSize.options",m2="org.eclipse.elk.nodeSize.constraints",cm="org.eclipse.elk.nodeLabels.placement",um="org.eclipse.elk.portLabels.placement",Qy="org.eclipse.elk.topdownLayout",Yy="org.eclipse.elk.topdown.scaleFactor",Zy="org.eclipse.elk.topdown.hierarchicalNodeWidth",nj="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",lb="org.eclipse.elk.topdown.nodeType",pin="origin",min="random",SXn="boundingBox.upLeft",PXn="boundingBox.lowRight",kin="org.eclipse.elk.stress.fixed",yin="org.eclipse.elk.stress.desiredEdgeLength",jin="org.eclipse.elk.stress.dimension",Ein="org.eclipse.elk.stress.epsilon",Cin="org.eclipse.elk.stress.iterationLimit",Ca="org.eclipse.elk.stress",IXn="ELK Stress",Ap="org.eclipse.elk.nodeSize.minimum",AS="org.eclipse.elk.alg.force.stress",OXn="Layered layout",Sp="org.eclipse.elk.alg.layered",ej="org.eclipse.elk.alg.layered.compaction.components",j8="org.eclipse.elk.alg.layered.compaction.oned",SS="org.eclipse.elk.alg.layered.compaction.oned.algs",Bd="org.eclipse.elk.alg.layered.compaction.recthull",Xf="org.eclipse.elk.alg.layered.components",Th="NONE",Min="MODEL_ORDER",Pc={3:1,6:1,4:1,9:1,5:1,126:1},LXn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},PS="org.eclipse.elk.alg.layered.compound",gt={47:1},Hc="org.eclipse.elk.alg.layered.graph",AR=" -> ",DXn="Not supported by LGraph",Tin="Port side is undefined",SR={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},A1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},NXn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},xXn="The given string contains parts that cannot be parsed as numbers.",tj="org.eclipse.elk.core.math",BXn={3:1,4:1,140:1,214:1,423:1},RXn={3:1,4:1,107:1,214:1,423:1},S1="org.eclipse.elk.alg.layered.graph.transform",KXn="ElkGraphImporter",_Xn="ElkGraphImporter/lambda$1$Type",HXn="ElkGraphImporter/lambda$2$Type",qXn="ElkGraphImporter/lambda$4$Type",Qn="org.eclipse.elk.alg.layered.intermediate",UXn="Node margin calculation",GXn="ONE_SIDED_GREEDY_SWITCH",zXn="TWO_SIDED_GREEDY_SWITCH",PR="No implementation is available for the layout processor ",IR="IntermediateProcessorStrategy",OR="Node '",XXn="FIRST_SEPARATE",WXn="LAST_SEPARATE",VXn="Odd port side processing",li="org.eclipse.elk.alg.layered.intermediate.compaction",E8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",tl="org.eclipse.elk.alg.layered.p3order.counting",ij={230:1},Pp="org.eclipse.elk.alg.layered.intermediate.loops",Do="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Ma="org.eclipse.elk.alg.layered.intermediate.loops.routing",Ain="org.eclipse.elk.alg.layered.intermediate.preserveorder",Ah="org.eclipse.elk.alg.layered.intermediate.wrapping",Ic="org.eclipse.elk.alg.layered.options",LR="INTERACTIVE",Sin="GREEDY",JXn="DEPTH_FIRST",QXn="EDGE_LENGTH",YXn="SELF_LOOPS",ZXn="firstTryWithInitialOrder",Pin="org.eclipse.elk.layered.directionCongruency",Iin="org.eclipse.elk.layered.feedbackEdges",IS="org.eclipse.elk.layered.interactiveReferencePoint",Oin="org.eclipse.elk.layered.mergeEdges",Lin="org.eclipse.elk.layered.mergeHierarchyEdges",Din="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Nin="org.eclipse.elk.layered.portSortingStrategy",$in="org.eclipse.elk.layered.thoroughness",Fin="org.eclipse.elk.layered.unnecessaryBendpoints",xin="org.eclipse.elk.layered.generatePositionAndLayerIds",DR="org.eclipse.elk.layered.cycleBreaking.strategy",rj="org.eclipse.elk.layered.layering.strategy",Bin="org.eclipse.elk.layered.layering.layerConstraint",Rin="org.eclipse.elk.layered.layering.layerChoiceConstraint",Kin="org.eclipse.elk.layered.layering.layerId",NR="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",$R="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",FR="org.eclipse.elk.layered.layering.nodePromotion.strategy",xR="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",BR="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",C8="org.eclipse.elk.layered.crossingMinimization.strategy",_in="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",RR="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",KR="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Hin="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",qin="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Uin="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Gin="org.eclipse.elk.layered.crossingMinimization.positionId",zin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",_R="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",OS="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",k2="org.eclipse.elk.layered.nodePlacement.strategy",LS="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",HR="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",qR="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",UR="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",GR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",zR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Xin="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Win="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",DS="org.eclipse.elk.layered.edgeRouting.splines.mode",NS="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",XR="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Vin="org.eclipse.elk.layered.spacing.baseValue",Jin="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Qin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Yin="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Zin="org.eclipse.elk.layered.priority.direction",nrn="org.eclipse.elk.layered.priority.shortness",ern="org.eclipse.elk.layered.priority.straightness",WR="org.eclipse.elk.layered.compaction.connectedComponents",trn="org.eclipse.elk.layered.compaction.postCompaction.strategy",irn="org.eclipse.elk.layered.compaction.postCompaction.constraints",$S="org.eclipse.elk.layered.highDegreeNodes.treatment",VR="org.eclipse.elk.layered.highDegreeNodes.threshold",JR="org.eclipse.elk.layered.highDegreeNodes.treeHeight",_l="org.eclipse.elk.layered.wrapping.strategy",FS="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",xS="org.eclipse.elk.layered.wrapping.correctionFactor",M8="org.eclipse.elk.layered.wrapping.cutting.strategy",QR="org.eclipse.elk.layered.wrapping.cutting.cuts",YR="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",BS="org.eclipse.elk.layered.wrapping.validify.strategy",RS="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",KS="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",_S="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",ZR="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",rrn="org.eclipse.elk.layered.edgeLabels.sideSelection",crn="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",HS="org.eclipse.elk.layered.considerModelOrder.strategy",urn="org.eclipse.elk.layered.considerModelOrder.portModelOrder",orn="org.eclipse.elk.layered.considerModelOrder.noModelOrder",nK="org.eclipse.elk.layered.considerModelOrder.components",srn="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",eK="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",tK="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",iK="layering",nWn="layering.minWidth",eWn="layering.nodePromotion",om="crossingMinimization",qS="org.eclipse.elk.hierarchyHandling",tWn="crossingMinimization.greedySwitch",iWn="nodePlacement",rWn="nodePlacement.bk",cWn="edgeRouting",cj="org.eclipse.elk.edgeRouting",Wf="spacing",frn="priority",hrn="compaction",uWn="compaction.postCompaction",oWn="Specifies whether and how post-process compaction is applied.",lrn="highDegreeNodes",arn="wrapping",sWn="wrapping.cutting",fWn="wrapping.validify",drn="wrapping.multiEdge",rK="edgeLabels",T8="considerModelOrder",brn="org.eclipse.elk.spacing.commentComment",wrn="org.eclipse.elk.spacing.commentNode",grn="org.eclipse.elk.spacing.edgeEdge",cK="org.eclipse.elk.spacing.edgeNode",vrn="org.eclipse.elk.spacing.labelLabel",prn="org.eclipse.elk.spacing.labelPortHorizontal",mrn="org.eclipse.elk.spacing.labelPortVertical",krn="org.eclipse.elk.spacing.labelNode",yrn="org.eclipse.elk.spacing.nodeSelfLoop",jrn="org.eclipse.elk.spacing.portPort",Ern="org.eclipse.elk.spacing.individual",Crn="org.eclipse.elk.port.borderOffset",Mrn="org.eclipse.elk.noLayout",Trn="org.eclipse.elk.port.side",uj="org.eclipse.elk.debugMode",Arn="org.eclipse.elk.alignment",Srn="org.eclipse.elk.insideSelfLoops.activate",Prn="org.eclipse.elk.insideSelfLoops.yo",uK="org.eclipse.elk.direction",Irn="org.eclipse.elk.nodeLabels.padding",Orn="org.eclipse.elk.portLabels.nextToPortIfPossible",Lrn="org.eclipse.elk.portLabels.treatAsGroup",Drn="org.eclipse.elk.portAlignment.default",Nrn="org.eclipse.elk.portAlignment.north",$rn="org.eclipse.elk.portAlignment.south",Frn="org.eclipse.elk.portAlignment.west",xrn="org.eclipse.elk.portAlignment.east",US="org.eclipse.elk.contentAlignment",Brn="org.eclipse.elk.junctionPoints",Rrn="org.eclipse.elk.edgeLabels.placement",Krn="org.eclipse.elk.port.index",_rn="org.eclipse.elk.commentBox",Hrn="org.eclipse.elk.hypernode",qrn="org.eclipse.elk.port.anchor",oK="org.eclipse.elk.partitioning.activate",sK="org.eclipse.elk.partitioning.partition",GS="org.eclipse.elk.position",Urn="org.eclipse.elk.margins",Grn="org.eclipse.elk.spacing.portsSurrounding",zS="org.eclipse.elk.interactiveLayout",gc="org.eclipse.elk.core.util",zrn={3:1,4:1,5:1,601:1},hWn="NETWORK_SIMPLEX",Xrn="SIMPLE",pr={106:1,47:1},XS="org.eclipse.elk.alg.layered.p1cycles",Hl="org.eclipse.elk.alg.layered.p2layers",Wrn={413:1,230:1},lWn={846:1,3:1,4:1},xu="org.eclipse.elk.alg.layered.p3order",mr="org.eclipse.elk.alg.layered.p4nodes",aWn={3:1,4:1,5:1,854:1},Sh=1e-5,Ta="org.eclipse.elk.alg.layered.p4nodes.bk",fK="org.eclipse.elk.alg.layered.p5edges",Cf="org.eclipse.elk.alg.layered.p5edges.orthogonal",hK="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",lK=1e-6,xw="org.eclipse.elk.alg.layered.p5edges.splines",aK=.09999999999999998,WS=1e-8,dWn=4.71238898038469,Vrn=3.141592653589793,ql="org.eclipse.elk.alg.mrtree",dK=.10000000149011612,VS="SUPER_ROOT",A8="org.eclipse.elk.alg.mrtree.graph",Jrn=-17976931348623157e292,qc="org.eclipse.elk.alg.mrtree.intermediate",bWn="Processor compute fanout",JS={3:1,6:1,4:1,5:1,534:1,100:1,115:1},wWn="Set neighbors in level",oj="org.eclipse.elk.alg.mrtree.options",gWn="DESCENDANTS",Qrn="org.eclipse.elk.mrtree.compaction",Yrn="org.eclipse.elk.mrtree.edgeEndTextureLength",Zrn="org.eclipse.elk.mrtree.treeLevel",ncn="org.eclipse.elk.mrtree.positionConstraint",ecn="org.eclipse.elk.mrtree.weighting",tcn="org.eclipse.elk.mrtree.edgeRoutingMode",icn="org.eclipse.elk.mrtree.searchOrder",vWn="Position Constraint",fu="org.eclipse.elk.mrtree",pWn="org.eclipse.elk.tree",mWn="Processor arrange level",sm="org.eclipse.elk.alg.mrtree.p2order",ko="org.eclipse.elk.alg.mrtree.p4route",rcn="org.eclipse.elk.alg.radial",Rd=6.283185307179586,ccn="Before",ucn=5e-324,QS="After",ocn="org.eclipse.elk.alg.radial.intermediate",kWn="COMPACTION",bK="org.eclipse.elk.alg.radial.intermediate.compaction",yWn={3:1,4:1,5:1,100:1},scn="org.eclipse.elk.alg.radial.intermediate.optimization",wK="No implementation is available for the layout option ",S8="org.eclipse.elk.alg.radial.options",fcn="org.eclipse.elk.radial.centerOnRoot",hcn="org.eclipse.elk.radial.orderId",lcn="org.eclipse.elk.radial.radius",YS="org.eclipse.elk.radial.rotate",gK="org.eclipse.elk.radial.compactor",vK="org.eclipse.elk.radial.compactionStepSize",acn="org.eclipse.elk.radial.sorter",dcn="org.eclipse.elk.radial.wedgeCriteria",bcn="org.eclipse.elk.radial.optimizationCriteria",pK="org.eclipse.elk.radial.rotation.targetAngle",mK="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",wcn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",jWn="Compaction",gcn="rotation",cs="org.eclipse.elk.radial",EWn="org.eclipse.elk.alg.radial.p1position.wedge",vcn="org.eclipse.elk.alg.radial.sorting",CWn=5.497787143782138,MWn=3.9269908169872414,TWn=2.356194490192345,AWn="org.eclipse.elk.alg.rectpacking",ZS="org.eclipse.elk.alg.rectpacking.intermediate",kK="org.eclipse.elk.alg.rectpacking.options",pcn="org.eclipse.elk.rectpacking.trybox",mcn="org.eclipse.elk.rectpacking.currentPosition",kcn="org.eclipse.elk.rectpacking.desiredPosition",ycn="org.eclipse.elk.rectpacking.inNewRow",jcn="org.eclipse.elk.rectpacking.widthApproximation.strategy",Ecn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Ccn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",Mcn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Tcn="org.eclipse.elk.rectpacking.packing.strategy",Acn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",Scn="org.eclipse.elk.rectpacking.packing.compaction.iterations",Pcn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",yK="widthApproximation",SWn="Compaction Strategy",PWn="packing.compaction",uo="org.eclipse.elk.rectpacking",fm="org.eclipse.elk.alg.rectpacking.p1widthapproximation",nP="org.eclipse.elk.alg.rectpacking.p2packing",IWn="No Compaction",Icn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",sj="org.eclipse.elk.alg.rectpacking.util",eP="No implementation available for ",Bw="org.eclipse.elk.alg.spore",Rw="org.eclipse.elk.alg.spore.options",ab="org.eclipse.elk.sporeCompaction",jK="org.eclipse.elk.underlyingLayoutAlgorithm",Ocn="org.eclipse.elk.processingOrder.treeConstruction",Lcn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",EK="org.eclipse.elk.processingOrder.preferredRoot",CK="org.eclipse.elk.processingOrder.rootSelection",MK="org.eclipse.elk.structure.structureExtractionStrategy",Dcn="org.eclipse.elk.compaction.compactionStrategy",Ncn="org.eclipse.elk.compaction.orthogonal",$cn="org.eclipse.elk.overlapRemoval.maxIterations",Fcn="org.eclipse.elk.overlapRemoval.runScanline",TK="processingOrder",OWn="overlapRemoval",hm="org.eclipse.elk.sporeOverlap",LWn="org.eclipse.elk.alg.spore.p1structure",AK="org.eclipse.elk.alg.spore.p2processingorder",SK="org.eclipse.elk.alg.spore.p3execution",DWn="Topdown Layout",NWn="Invalid index: ",lm="org.eclipse.elk.core.alg",y2={341:1},Kw={295:1},$Wn="Make sure its type is registered with the ",xcn=" utility class.",am="true",PK="false",FWn="Couldn't clone property '",db=.05,oo="org.eclipse.elk.core.options",xWn=1.2999999523162842,bb="org.eclipse.elk.box",Bcn="org.eclipse.elk.expandNodes",Rcn="org.eclipse.elk.box.packingMode",BWn="org.eclipse.elk.algorithm",RWn="org.eclipse.elk.resolvedAlgorithm",Kcn="org.eclipse.elk.bendPoints",KWn="org.eclipse.elk.labelManager",_Wn="org.eclipse.elk.scaleFactor",HWn="org.eclipse.elk.childAreaWidth",qWn="org.eclipse.elk.childAreaHeight",UWn="org.eclipse.elk.animate",GWn="org.eclipse.elk.animTimeFactor",zWn="org.eclipse.elk.layoutAncestors",XWn="org.eclipse.elk.maxAnimTime",WWn="org.eclipse.elk.minAnimTime",VWn="org.eclipse.elk.progressBar",JWn="org.eclipse.elk.validateGraph",QWn="org.eclipse.elk.validateOptions",YWn="org.eclipse.elk.zoomToFit",ZWn="org.eclipse.elk.font.name",nVn="org.eclipse.elk.font.size",_cn="org.eclipse.elk.topdown.sizeApproximator",Hcn="org.eclipse.elk.topdown.scaleCap",eVn="org.eclipse.elk.edge.type",tVn="partitioning",iVn="nodeLabels",tP="portAlignment",IK="nodeSize",OK="port",qcn="portLabels",fj="topdown",rVn="insideSelfLoops",P8="org.eclipse.elk.fixed",iP="org.eclipse.elk.random",Ucn={3:1,34:1,22:1,347:1},cVn="port must have a parent node to calculate the port side",uVn="The edge needs to have exactly one edge section. Found: ",I8="org.eclipse.elk.core.util.adapters",us="org.eclipse.emf.ecore",j2="org.eclipse.elk.graph",oVn="EMapPropertyHolder",sVn="ElkBendPoint",fVn="ElkGraphElement",hVn="ElkConnectableShape",Gcn="ElkEdge",lVn="ElkEdgeSection",aVn="EModelElement",dVn="ENamedElement",zcn="ElkLabel",Xcn="ElkNode",Wcn="ElkPort",bVn={94:1,93:1},Ip="org.eclipse.emf.common.notify.impl",Aa="The feature '",O8="' is not a valid changeable feature",wVn="Expecting null",LK="' is not a valid feature",gVn="The feature ID",vVn=" is not a valid feature ID",Cc=32768,pVn={110:1,94:1,93:1,58:1,54:1,99:1},Hn="org.eclipse.emf.ecore.impl",Kd="org.eclipse.elk.graph.impl",L8="Recursive containment not allowed for ",dm="The datatype '",wb="' is not a valid classifier",DK="The value '",E2={195:1,3:1,4:1},NK="The class '",bm="http://www.eclipse.org/elk/ElkGraph",Vcn="property",D8="value",$K="source",mVn="properties",kVn="identifier",FK="height",xK="width",BK="parent",RK="text",KK="children",yVn="hierarchical",Jcn="sources",_K="targets",Qcn="sections",rP="bendPoints",Ycn="outgoingShape",Zcn="incomingShape",nun="outgoingSections",eun="incomingSections",ur="org.eclipse.emf.common.util",tun="Severe implementation error in the Json to ElkGraph importer.",Ph="id",Hi="org.eclipse.elk.graph.json",iun="Unhandled parameter types: ",jVn="startPoint",EVn="An edge must have at least one source and one target (edge id: '",wm="').",CVn="Referenced edge section does not exist: ",MVn=" (edge id: '",run="target",TVn="sourcePoint",AVn="targetPoint",cP="group",Je="name",SVn="connectableShape cannot be null",PVn="edge cannot be null",HK="Passed edge is not 'simple'.",uP="org.eclipse.elk.graph.util",hj="The 'no duplicates' constraint is violated",qK="targetIndex=",_d=", size=",UK="sourceIndex=",Ih={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},GK={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},oP="logging",IVn="measureExecutionTime",OVn="parser.parse.1",LVn="parser.parse.2",sP="parser.next.1",zK="parser.next.2",DVn="parser.next.3",NVn="parser.next.4",Hd="parser.factor.1",cun="parser.factor.2",$Vn="parser.factor.3",FVn="parser.factor.4",xVn="parser.factor.5",BVn="parser.factor.6",RVn="parser.atom.1",KVn="parser.atom.2",_Vn="parser.atom.3",uun="parser.atom.4",XK="parser.atom.5",oun="parser.cc.1",fP="parser.cc.2",HVn="parser.cc.3",qVn="parser.cc.5",sun="parser.cc.6",fun="parser.cc.7",WK="parser.cc.8",UVn="parser.ope.1",GVn="parser.ope.2",zVn="parser.ope.3",P1="parser.descape.1",XVn="parser.descape.2",WVn="parser.descape.3",VVn="parser.descape.4",JVn="parser.descape.5",os="parser.process.1",QVn="parser.quantifier.1",YVn="parser.quantifier.2",ZVn="parser.quantifier.3",nJn="parser.quantifier.4",hun="parser.quantifier.5",eJn="org.eclipse.emf.common.notify",lun={424:1,686:1},tJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},lj={378:1,152:1},N8="index=",VK={3:1,4:1,5:1,129:1},iJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},aun={3:1,6:1,4:1,5:1,198:1},rJn={3:1,4:1,5:1,173:1,379:1},cJn=";/?:@&=+$,",uJn="invalid authority: ",oJn="EAnnotation",sJn="ETypedElement",fJn="EStructuralFeature",hJn="EAttribute",lJn="EClassifier",aJn="EEnumLiteral",dJn="EGenericType",bJn="EOperation",wJn="EParameter",gJn="EReference",vJn="ETypeParameter",Et="org.eclipse.emf.ecore.util",JK={79:1},dun={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},pJn="org.eclipse.emf.ecore.util.FeatureMap$Entry",Bu=8192,_w=2048,$8="byte",hP="char",F8="double",x8="float",B8="int",R8="long",K8="short",mJn="java.lang.Object",C2={3:1,4:1,5:1,254:1},bun={3:1,4:1,5:1,688:1},kJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Qr={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},aj="mixed",Be="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Cs="kind",yJn={3:1,4:1,5:1,689:1},wun={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},lP={20:1,31:1,56:1,16:1,15:1,61:1,71:1},aP={51:1,128:1,287:1},dP={76:1,343:1},bP="The value of type '",wP="' must be of type '",M2=1352,Ms="http://www.eclipse.org/emf/2002/Ecore",gP=-32768,gb="constraints",Wi="baseType",jJn="getEStructuralFeature",EJn="getFeatureID",_8="feature",CJn="getOperationID",gun="operation",MJn="defaultValue",TJn="eTypeParameters",AJn="isInstance",SJn="getEEnumLiteral",PJn="eContainingClass",ze={57:1},IJn={3:1,4:1,5:1,124:1},OJn="org.eclipse.emf.ecore.resource",LJn={94:1,93:1,599:1,2034:1},QK="org.eclipse.emf.ecore.resource.impl",vun="unspecified",dj="simple",vP="attribute",DJn="attributeWildcard",pP="element",YK="elementWildcard",Mf="collapse",ZK="itemType",mP="namespace",bj="##targetNamespace",Ts="whiteSpace",pun="wildcards",qd="http://www.eclipse.org/emf/2003/XMLType",n_="##any",gm="uninitialized",wj="The multiplicity constraint is violated",kP="org.eclipse.emf.ecore.xml.type",NJn="ProcessingInstruction",$Jn="SimpleAnyType",FJn="XMLTypeDocumentRoot",ci="org.eclipse.emf.ecore.xml.type.impl",gj="INF",xJn="processing",BJn="ENTITIES_._base",mun="minLength",kun="ENTITY",yP="NCName",RJn="IDREFS_._base",yun="integer",e_="token",t_="pattern",KJn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",jun="\\i\\c*",_Jn="[\\i-[:]][\\c-[:]]*",HJn="nonPositiveInteger",vj="maxInclusive",Eun="NMTOKEN",qJn="NMTOKENS_._base",Cun="nonNegativeInteger",pj="minInclusive",UJn="normalizedString",GJn="unsignedByte",zJn="unsignedInt",XJn="18446744073709551615",WJn="unsignedShort",VJn="processingInstruction",I1="org.eclipse.emf.ecore.xml.type.internal",vm=1114111,JJn="Internal Error: shorthands: \\u",H8="xml:isDigit",i_="xml:isWord",r_="xml:isSpace",c_="xml:isNameChar",u_="xml:isInitialNameChar",QJn="09\u0660\u0669\u06f0\u06f9\u0966\u096f\u09e6\u09ef\u0a66\u0a6f\u0ae6\u0aef\u0b66\u0b6f\u0be7\u0bef\u0c66\u0c6f\u0ce6\u0cef\u0d66\u0d6f\u0e50\u0e59\u0ed0\u0ed9\u0f20\u0f29",YJn="AZaz\xc0\xd6\xd8\xf6\xf8\u0131\u0134\u013e\u0141\u0148\u014a\u017e\u0180\u01c3\u01cd\u01f0\u01f4\u01f5\u01fa\u0217\u0250\u02a8\u02bb\u02c1\u0386\u0386\u0388\u038a\u038c\u038c\u038e\u03a1\u03a3\u03ce\u03d0\u03d6\u03da\u03da\u03dc\u03dc\u03de\u03de\u03e0\u03e0\u03e2\u03f3\u0401\u040c\u040e\u044f\u0451\u045c\u045e\u0481\u0490\u04c4\u04c7\u04c8\u04cb\u04cc\u04d0\u04eb\u04ee\u04f5\u04f8\u04f9\u0531\u0556\u0559\u0559\u0561\u0586\u05d0\u05ea\u05f0\u05f2\u0621\u063a\u0641\u064a\u0671\u06b7\u06ba\u06be\u06c0\u06ce\u06d0\u06d3\u06d5\u06d5\u06e5\u06e6\u0905\u0939\u093d\u093d\u0958\u0961\u0985\u098c\u098f\u0990\u0993\u09a8\u09aa\u09b0\u09b2\u09b2\u09b6\u09b9\u09dc\u09dd\u09df\u09e1\u09f0\u09f1\u0a05\u0a0a\u0a0f\u0a10\u0a13\u0a28\u0a2a\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59\u0a5c\u0a5e\u0a5e\u0a72\u0a74\u0a85\u0a8b\u0a8d\u0a8d\u0a8f\u0a91\u0a93\u0aa8\u0aaa\u0ab0\u0ab2\u0ab3\u0ab5\u0ab9\u0abd\u0abd\u0ae0\u0ae0\u0b05\u0b0c\u0b0f\u0b10\u0b13\u0b28\u0b2a\u0b30\u0b32\u0b33\u0b36\u0b39\u0b3d\u0b3d\u0b5c\u0b5d\u0b5f\u0b61\u0b85\u0b8a\u0b8e\u0b90\u0b92\u0b95\u0b99\u0b9a\u0b9c\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8\u0baa\u0bae\u0bb5\u0bb7\u0bb9\u0c05\u0c0c\u0c0e\u0c10\u0c12\u0c28\u0c2a\u0c33\u0c35\u0c39\u0c60\u0c61\u0c85\u0c8c\u0c8e\u0c90\u0c92\u0ca8\u0caa\u0cb3\u0cb5\u0cb9\u0cde\u0cde\u0ce0\u0ce1\u0d05\u0d0c\u0d0e\u0d10\u0d12\u0d28\u0d2a\u0d39\u0d60\u0d61\u0e01\u0e2e\u0e30\u0e30\u0e32\u0e33\u0e40\u0e45\u0e81\u0e82\u0e84\u0e84\u0e87\u0e88\u0e8a\u0e8a\u0e8d\u0e8d\u0e94\u0e97\u0e99\u0e9f\u0ea1\u0ea3\u0ea5\u0ea5\u0ea7\u0ea7\u0eaa\u0eab\u0ead\u0eae\u0eb0\u0eb0\u0eb2\u0eb3\u0ebd\u0ebd\u0ec0\u0ec4\u0f40\u0f47\u0f49\u0f69\u10a0\u10c5\u10d0\u10f6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110b\u110c\u110e\u1112\u113c\u113c\u113e\u113e\u1140\u1140\u114c\u114c\u114e\u114e\u1150\u1150\u1154\u1155\u1159\u1159\u115f\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116d\u116e\u1172\u1173\u1175\u1175\u119e\u119e\u11a8\u11a8\u11ab\u11ab\u11ae\u11af\u11b7\u11b8\u11ba\u11ba\u11bc\u11c2\u11eb\u11eb\u11f0\u11f0\u11f9\u11f9\u1e00\u1e9b\u1ea0\u1ef9\u1f00\u1f15\u1f18\u1f1d\u1f20\u1f45\u1f48\u1f4d\u1f50\u1f57\u1f59\u1f59\u1f5b\u1f5b\u1f5d\u1f5d\u1f5f\u1f7d\u1f80\u1fb4\u1fb6\u1fbc\u1fbe\u1fbe\u1fc2\u1fc4\u1fc6\u1fcc\u1fd0\u1fd3\u1fd6\u1fdb\u1fe0\u1fec\u1ff2\u1ff4\u1ff6\u1ffc\u2126\u2126\u212a\u212b\u212e\u212e\u2180\u2182\u3007\u3007\u3021\u3029\u3041\u3094\u30a1\u30fa\u3105\u312c\u4e00\u9fa5\uac00\ud7a3",ZJn="Private Use",o_="ASSIGNED",s_="\0\x7f\x80\xff\u0100\u017f\u0180\u024f\u0250\u02af\u02b0\u02ff\u0300\u036f\u0370\u03ff\u0400\u04ff\u0530\u058f\u0590\u05ff\u0600\u06ff\u0700\u074f\u0780\u07bf\u0900\u097f\u0980\u09ff\u0a00\u0a7f\u0a80\u0aff\u0b00\u0b7f\u0b80\u0bff\u0c00\u0c7f\u0c80\u0cff\u0d00\u0d7f\u0d80\u0dff\u0e00\u0e7f\u0e80\u0eff\u0f00\u0fff\u1000\u109f\u10a0\u10ff\u1100\u11ff\u1200\u137f\u13a0\u13ff\u1400\u167f\u1680\u169f\u16a0\u16ff\u1780\u17ff\u1800\u18af\u1e00\u1eff\u1f00\u1fff\u2000\u206f\u2070\u209f\u20a0\u20cf\u20d0\u20ff\u2100\u214f\u2150\u218f\u2190\u21ff\u2200\u22ff\u2300\u23ff\u2400\u243f\u2440\u245f\u2460\u24ff\u2500\u257f\u2580\u259f\u25a0\u25ff\u2600\u26ff\u2700\u27bf\u2800\u28ff\u2e80\u2eff\u2f00\u2fdf\u2ff0\u2fff\u3000\u303f\u3040\u309f\u30a0\u30ff\u3100\u312f\u3130\u318f\u3190\u319f\u31a0\u31bf\u3200\u32ff\u3300\u33ff\u3400\u4db5\u4e00\u9fff\ua000\ua48f\ua490\ua4cf\uac00\ud7a3\ue000\uf8ff\uf900\ufaff\ufb00\ufb4f\ufb50\ufdff\ufe20\ufe2f\ufe30\ufe4f\ufe50\ufe6f\ufe70\ufefe\ufeff\ufeff\uff00\uffef",Mun="UNASSIGNED",pm={3:1,122:1},nQn="org.eclipse.emf.ecore.xml.type.util",jP={3:1,4:1,5:1,381:1},Tun="org.eclipse.xtext.xbase.lib",eQn="Cannot add elements to a Range",tQn="Cannot set elements in a Range",iQn="Cannot remove elements from a Range",rQn="user.agent";y.goog=y.goog||{},y.goog.global=y.goog.global||y,EP={},b(1,null,{},xi),o.Fb=function(e){return eTn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return T0(this)},o.Ib=function(){return sd(po(this))+"@"+(wt(this)>>>0).toString(16)},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()},b(297,1,{297:1,2124:1},kY),o.ve=function(e){var t;return(t=new kY).i=4,t.c=e>1?EOn(this,e-1):this,t},o.we=function(){return yl(this),this.b},o.xe=function(){return sd(this)},o.ye=function(){return yl(this),this.k},o.ze=function(){return 0!=(4&this.i)},o.Ae=function(){return 0!=(1&this.i)},o.Ib=function(){return OQ(this)},o.i=0;var h_,pi=w(wc,"Object",1),Aun=w(wc,"Class",297);b(2096,1,Fy),w(xy,"Optional",2096),b(1191,2096,Fy,lc),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Se(e),b6(),h_},w(xy,"Absent",1191),b(636,1,{},GL),w(xy,"Joiner",636);var nNe=Ot(xy,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},I8n),o.Mb=function(e){return Exn(this,e)},o.Lb=function(e){return Exn(this,e)},o.Fb=function(e){var t;return!!L(e,589)&&(t=u(e,589),ven(this.a,t.a))},o.Hb=function(){return TY(this.a)+306654252},o.Ib=function(){return function Kje(n){var e,t,i,r;for(e=ca(Re(new yo("Predicates."),"and"),40),t=!0,r=new u6(n);r.b0},o.Pb=function(){if(this.c>=this.d)throw M(new tc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw M(new tc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0,w(En,"AbstractIndexedListIterator",399),b(713,204,X4),o.Ob=function(){return X$(this)},o.Pb=function(){return MQ(this)},o.e=1,w(En,"AbstractIterator",713),b(2084,1,{229:1}),o.Zb=function(){return this.f||(this.f=this.ac())},o.Fb=function(e){return wF(this,e)},o.Hb=function(){return wt(this.Zb())},o.dc=function(){return 0==this.gc()},o.ec=function(){return Kv(this)},o.Ib=function(){return Jr(this.Zb())},w(En,"AbstractMultimap",2084),b(742,2084,Dd),o.$b=function(){$T(this)},o._b=function(e){return fEn(this,e)},o.ac=function(){return new j3(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new Kg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new Sjn(this)},o.lc=function(){return Cx(this.c.vc().Nc(),new Jl,64,this.d)},o.cc=function(e){return ut(this,e)},o.fc=function(e){return Vk(this,e)},o.gc=function(){return this.d},o.mc=function(e){return On(),new f3(e)},o.nc=function(){return new Ajn(this)},o.oc=function(){return Cx(this.c.Cc().Nc(),new bu,64,this.d)},o.pc=function(e,t){return new dT(this,e,t,null)},o.d=0,w(En,"AbstractMapBasedMultimap",742),b(1696,742,Dd),o.hc=function(){return new Vc(this.a)},o.jc=function(){return On(),On(),Vi},o.cc=function(e){return u(ut(this,e),15)},o.fc=function(e){return u(Vk(this,e),15)},o.Zb=function(){return zv(this)},o.Fb=function(e){return wF(this,e)},o.qc=function(e){return u(ut(this,e),15)},o.rc=function(e){return u(Vk(this,e),15)},o.mc=function(e){return JN(u(e,15))},o.pc=function(e,t){return ILn(this,e,u(t,15),null)},w(En,"AbstractListMultimap",1696),b(748,1,Ti),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(vs(this.a),16).dc()&&this.c.Qb(),--this.d.d},w(En,"AbstractMapBasedMultimap/Itr",748),b(1129,748,Ti,Ajn),o.sc=function(e,t){return t},w(En,"AbstractMapBasedMultimap/1",1129),b(1130,1,{},bu),o.Kb=function(e){return u(e,16).Nc()},w(En,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),b(1131,748,Ti,Sjn),o.sc=function(e,t){return new p0(e,t)},w(En,"AbstractMapBasedMultimap/2",1131);var Sun=Ot(le,"Map");b(2065,1,sb),o.wc=function(e){C5(this,e)},o.yc=function(e,t,i){return NF(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return ux(this,e)},o._b=function(e){return!!wnn(this,e,!1)},o.uc=function(e){var i,r;for(i=this.vc().Kc();i.Ob();)if(r=u(i.Pb(),44).md(),x(e)===x(r)||null!=e&&it(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!L(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return Rr(wnn(this,e,!1))},o.Hb=function(){return gY(this.vc())},o.dc=function(){return 0==this.gc()},o.ec=function(){return new rd(this)},o.zc=function(e,t){throw M(new Zl("Put not supported on this map"))},o.Ac=function(e){E5(this,e)},o.Bc=function(e){return Rr(wnn(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return $Kn(this)},o.Cc=function(){return new vl(this)},w(le,"AbstractMap",2065),b(2085,2065,sb),o.bc=function(){return new dC(this)},o.vc=function(){return TPn(this)},o.ec=function(){return this.g||(this.g=this.bc())},o.Cc=function(){return this.i||(this.i=new ZEn(this))},w(En,"Maps/ViewCachingAbstractMap",2085),b(402,2085,sb,j3),o.xc=function(e){return function c4e(n,e){var t;return(t=u(vw(n.d,e),16))?n.e.pc(e,t):null}(this,e)},o.Bc=function(e){return function S6e(n,e){var t,i;return(t=u(n.d.Bc(e),16))?((i=n.e.hc()).Gc(t),n.e.d-=t.gc(),t.$b(),i):null}(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():jM(new SV(this))},o._b=function(e){return oBn(this.d,e)},o.Ec=function(){return new O8n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||it(this.d,e)},o.Hb=function(){return wt(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return Jr(this.d)},w(En,"AbstractMapBasedMultimap/AsMap",402);var No=Ot(wc,"Iterable");b(31,1,Lw),o.Jc=function(e){_i(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new Pn(this,0)},o.Oc=function(){return new Mn(null,this.Nc())},o.Fc=function(e){throw M(new Zl("Add not supported on this collection"))},o.Gc=function(e){return Fi(this,e)},o.$b=function(){bJ(this)},o.Hc=function(e){return pw(this,e,!1)},o.Ic=function(e){return _k(this,e)},o.dc=function(){return 0==this.gc()},o.Mc=function(e){return pw(this,e,!0)},o.Pc=function(){return BV(this)},o.Qc=function(e){return H5(this,e)},o.Ib=function(){return pa(this)},w(le,"AbstractCollection",31);var As=Ot(le,"Set");b(Gf,31,Fu),o.Nc=function(){return new Pn(this,1)},o.Fb=function(e){return YBn(this,e)},o.Hb=function(){return gY(this)},w(le,"AbstractSet",Gf),b(2068,Gf,Fu),w(En,"Sets/ImprovedAbstractSet",2068),b(2069,2068,Fu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return FBn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return!(!this.Hc(e)||!L(e,44))&&(t=u(e,44),this.Rc().ec().Mc(t.ld()))},o.gc=function(){return this.Rc().gc()},w(En,"Maps/EntrySet",2069),b(1127,2069,Fu,O8n),o.Hc=function(e){return qY(this.a.d.vc(),e)},o.Kc=function(){return new SV(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return!!qY(this.a.d.vc(),e)&&(t=u(vs(u(e,44)),44),Xpe(this.a.e,t.ld()),!0)},o.Nc=function(){return Y7(this.a.d.vc().Nc(),new L8n(this.a))},w(En,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),b(1128,1,{},L8n),o.Kb=function(e){return SDn(this.a,u(e,44))},w(En,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),b(746,1,Ti,SV),o.Nb=function(e){Ri(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),SDn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){O3(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(En,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),b(542,2068,Fu,dC),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Se(e),this.b.wc(new V8n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new w6(this.b.vc().Kc())},o.Mc=function(e){return!!this.b._b(e)&&(this.b.Bc(e),!0)},o.gc=function(){return this.b.gc()},w(En,"Maps/KeySet",542),b(327,542,Fu,Kg),o.$b=function(){jM(new Yz(this,this.b.vc().Kc()))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||it(this.b.ec(),e)},o.Hb=function(){return wt(this.b.ec())},o.Kc=function(){return new Yz(this,this.b.vc().Kc())},o.Mc=function(e){var t,i;return i=0,(t=u(this.b.Bc(e),16))&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()},w(En,"AbstractMapBasedMultimap/KeySet",327),b(747,1,Ti,Yz),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;O3(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(En,"AbstractMapBasedMultimap/KeySet/1",747),b(503,402,{85:1,133:1},G7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new m7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){return this.b||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)},w(En,"AbstractMapBasedMultimap/SortedAsMap",503),b(446,503,xtn,V6),o.bc=function(){return new y3(this.a,u(u(this.d,133),139))},o.Sc=function(){return new y3(this.a,u(u(this.d,133),139))},o.ec=function(){return u(this.b||(this.b=new y3(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){return u(this.b||(this.b=new y3(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new V6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new V6(this.a,u(u(this.d,133),139).ad(e,t))},w(En,"AbstractMapBasedMultimap/NavigableAsMap",446),b(502,327,Lzn,m7),o.Nc=function(){return this.b.ec().Nc()},w(En,"AbstractMapBasedMultimap/SortedKeySet",502),b(401,502,Btn,y3),w(En,"AbstractMapBasedMultimap/NavigableKeySet",401),b(551,31,Lw,dT),o.Fc=function(e){var t,i;return to(this),i=this.d.dc(),(t=this.d.Fc(e))&&(++this.f.d,i&&V7(this)),t},o.Gc=function(e){var t,i,r;return!e.dc()&&(to(this),r=this.d.gc(),(t=this.d.Gc(e))&&(i=this.d.gc(),this.f.d+=i-r,0==r&&V7(this)),t)},o.$b=function(){var e;to(this),0!=(e=this.d.gc())&&(this.d.$b(),this.f.d-=e,SM(this))},o.Hc=function(e){return to(this),this.d.Hc(e)},o.Ic=function(e){return to(this),this.d.Ic(e)},o.Fb=function(e){return e===this||(to(this),it(this.d,e))},o.Hb=function(){return to(this),wt(this.d)},o.Kc=function(){return to(this),new lV(this)},o.Mc=function(e){var t;return to(this),(t=this.d.Mc(e))&&(--this.f.d,SM(this)),t},o.gc=function(){return _Mn(this)},o.Nc=function(){return to(this),this.d.Nc()},o.Ib=function(){return to(this),Jr(this.d)},w(En,"AbstractMapBasedMultimap/WrappedCollection",551);var ss=Ot(le,"List");b(744,551,{20:1,31:1,16:1,15:1},_V),o.jd=function(e){yd(this,e)},o.Nc=function(){return to(this),this.d.Nc()},o.bd=function(e,t){var i;to(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&V7(this)},o.cd=function(e,t){var i,r,c;return!t.dc()&&(to(this),c=this.d.gc(),(i=u(this.d,15).cd(e,t))&&(r=this.d.gc(),this.a.d+=r-c,0==c&&V7(this)),i)},o.Xb=function(e){return to(this),u(this.d,15).Xb(e)},o.dd=function(e){return to(this),u(this.d,15).dd(e)},o.ed=function(){return to(this),new vTn(this)},o.fd=function(e){return to(this),new KIn(this,e)},o.gd=function(e){var t;return to(this),t=u(this.d,15).gd(e),--this.a.d,SM(this),t},o.hd=function(e,t){return to(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return to(this),ILn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)},w(En,"AbstractMapBasedMultimap/WrappedList",744),b(1126,744,{20:1,31:1,16:1,15:1,59:1},uAn),w(En,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),b(628,1,Ti,lV),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return H3(this),this.b.Ob()},o.Pb=function(){return H3(this),this.b.Pb()},o.Qb=function(){UTn(this)},w(En,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),b(745,628,Jh,vTn,KIn),o.Qb=function(){UTn(this)},o.Rb=function(e){var t;t=0==_Mn(this.a),(H3(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&V7(this.a)},o.Sb=function(){return(H3(this),u(this.b,128)).Sb()},o.Tb=function(){return(H3(this),u(this.b,128)).Tb()},o.Ub=function(){return(H3(this),u(this.b,128)).Ub()},o.Vb=function(){return(H3(this),u(this.b,128)).Vb()},o.Wb=function(e){(H3(this),u(this.b,128)).Wb(e)},w(En,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),b(743,551,Lzn,IW),o.Nc=function(){return to(this),this.d.Nc()},w(En,"AbstractMapBasedMultimap/WrappedSortedSet",743),b(1125,743,Btn,aTn),w(En,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),b(1124,551,Fu,AAn),o.Nc=function(){return to(this),this.d.Nc()},w(En,"AbstractMapBasedMultimap/WrappedSet",1124),b(1133,1,{},Jl),o.Kb=function(e){return function i3e(n){var e;return e=n.ld(),Y7(u(n.md(),16).Nc(),new F8n(e))}(u(e,44))},w(En,"AbstractMapBasedMultimap/lambda$1$Type",1133),b(1132,1,{},F8n),o.Kb=function(e){return new p0(this.a,e)},w(En,"AbstractMapBasedMultimap/lambda$2$Type",1132);var l_,a_,d_,sQn,Ud=Ot(le,"Map/Entry");b(358,1,TB),o.Fb=function(e){var t;return!!L(e,44)&&(t=u(e,44),bh(this.ld(),t.ld())&&bh(this.md(),t.md()))},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(null==e?0:wt(e))^(null==t?0:wt(t))},o.nd=function(e){throw M(new Pe)},o.Ib=function(){return this.ld()+"="+this.md()},w(En,Dzn,358),b(2086,31,Lw),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return!!L(e,44)&&(t=u(e,44),function Cve(n,e,t){var i;return!!(i=u(n.Zb().xc(e),16))&&i.Hc(t)}(this.od(),t.ld(),t.md()))},o.Mc=function(e){var t;return!!L(e,44)&&(t=u(e,44),lLn(this.od(),t.ld(),t.md()))},o.gc=function(){return this.od().d},w(En,"Multimaps/Entries",2086),b(749,2086,Lw,OG),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()},w(En,"AbstractMultimap/Entries",749),b(750,749,Fu,Pz),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return $nn(this,e)},o.Hb=function(){return jFn(this)},w(En,"AbstractMultimap/EntrySet",750),b(751,31,Lw,LG),o.$b=function(){this.a.$b()},o.Hc=function(e){return function j6e(n,e){var i;for(i=n.Zb().Cc().Kc();i.Ob();)if(u(i.Pb(),16).Hc(e))return!0;return!1}(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()},w(En,"AbstractMultimap/Values",751),b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Se(e),Hg(this).Jc(new e9n(e))},o.Nc=function(){var e;return Cx(e=Hg(this).Nc(),new QO,64|1296&e.yd(),this.a.d)},o.Fc=function(e){return xz(),!0},o.Gc=function(e){return Se(this),Se(e),L(e,552)?Ave(u(e,849)):!e.dc()&&B$(this,e.Kc())},o.Hc=function(e){var t;return((t=u(vw(zv(this.a),e),16))?t.gc():0)>0},o.Fb=function(e){return function VCe(n,e){var t,i,r;if(e===n)return!0;if(L(e,552)){if(r=u(e,849),n.a.d!=r.a.d||Hg(n).gc()!=Hg(r).gc())return!1;for(i=Hg(r).Kc();i.Ob();)if(BOn(n,(t=u(i.Pb(),425)).a.ld())!=u(t.a.md(),16).gc())return!1;return!0}return!1}(this,e)},o.Hb=function(){return wt(Hg(this))},o.dc=function(){return Hg(this).dc()},o.Mc=function(e){return W_n(this,e,1)>0},o.Ib=function(){return Jr(Hg(this))},w(En,"AbstractMultiset",2087),b(2089,2068,Fu),o.$b=function(){$T(this.a.a)},o.Hc=function(e){var i;return!(!L(e,504)||(i=u(e,425),u(i.a.md(),16).gc()<=0||BOn(this.a,i.a.ld())!=u(i.a.md(),16).gc()))},o.Mc=function(e){var t,i,r;return!(!L(e,504)||(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),0==r))&&function REe(n,e,t){var i,c,s;return Ao(t,"oldCount"),Ao(0,"newCount"),((i=u(vw(zv(n.a),e),16))?i.gc():0)==t&&(Ao(0,"count"),(s=-((c=u(vw(zv(n.a),e),16))?c.gc():0))>0?xz():s<0&&W_n(n,e,-s),!0)}(this.a,t,r)},w(En,"Multisets/EntrySet",2089),b(1139,2089,Fu,x8n),o.Kc=function(){return new Djn(TPn(zv(this.a.a)).Kc())},o.gc=function(){return zv(this.a.a).gc()},w(En,"AbstractMultiset/EntrySet",1139),b(627,742,Dd),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){return this.f||(this.f=this.ac())},o.qd=function(){return On(),On(),PP},o.Fb=function(e){return wF(this,e)},o.rd=function(e){return u(ut(this,e),21)},o.sd=function(e){return u(Vk(this,e),21)},o.mc=function(e){return On(),new g3(u(e,21))},o.pc=function(e,t){return new AAn(this,e,u(t,21))},w(En,"AbstractSetMultimap",627),b(1723,627,Dd),o.hc=function(){return new i1(this.b)},o.pd=function(){return new i1(this.b)},o.jc=function(){return sJ(new i1(this.b))},o.qd=function(){return sJ(new i1(this.b))},o.cc=function(e){return u(u(ut(this,e),21),87)},o.rd=function(e){return u(u(ut(this,e),21),87)},o.fc=function(e){return u(u(Vk(this,e),21),87)},o.sd=function(e){return u(u(Vk(this,e),21),87)},o.mc=function(e){return L(e,277)?sJ(u(e,277)):(On(),new wW(u(e,87)))},o.Zb=function(){return this.f||(this.f=L(this.c,139)?new V6(this,u(this.c,139)):L(this.c,133)?new G7(this,u(this.c,133)):new j3(this,this.c))},o.pc=function(e,t){return L(t,277)?new aTn(this,e,u(t,277)):new IW(this,e,u(t,87))},w(En,"AbstractSortedSetMultimap",1723),b(1724,1723,Dd),o.Zb=function(){return u(u(this.f||(this.f=L(this.c,139)?new V6(this,u(this.c,139)):L(this.c,133)?new G7(this,u(this.c,133)):new j3(this,this.c)),133),139)},o.ec=function(){return u(u(this.i||(this.i=L(this.c,139)?new y3(this,u(this.c,139)):L(this.c,133)?new m7(this,u(this.c,133)):new Kg(this,this.c)),87),277)},o.bc=function(){return L(this.c,139)?new y3(this,u(this.c,139)):L(this.c,133)?new m7(this,u(this.c,133)):new Kg(this,this.c)},w(En,"AbstractSortedKeySortedSetMultimap",1724),b(2109,1,{2046:1}),o.Fb=function(e){return function kke(n,e){var r;return e===n||!!L(e,678)&&(r=u(e,2046),YBn(n.g||(n.g=new gL(n)),r.g||(r.g=new gL(r))))}(this,e)},o.Hb=function(){return gY(this.g||(this.g=new gL(this)))},o.Ib=function(){return $Kn(this.f||(this.f=new lW(this)))},w(En,"AbstractTable",2109),b(679,Gf,Fu,gL),o.$b=function(){Gjn()},o.Hc=function(e){var t,i;return!!L(e,479)&&(t=u(e,697),!!(i=u(vw(JPn(this.a),na(t.c.e,t.b)),85))&&qY(i.vc(),new p0(na(t.c.c,t.a),Zv(t.c,t.b,t.a))))},o.Kc=function(){return function Cge(n){return new GTn(n,n.e.Rd().gc()*n.c.Rd().gc())}(this.a)},o.Mc=function(e){var t,i;return!!L(e,479)&&(t=u(e,697),!!(i=u(vw(JPn(this.a),na(t.c.e,t.b)),85))&&function e5e(n,e){Se(n);try{return n.Mc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return!1;throw M(t)}}(i.vc(),new p0(na(t.c.c,t.a),Zv(t.c,t.b,t.a))))},o.gc=function(){return ZSn(this.a)},o.Nc=function(){return function Ive(n){return vN(n.e.Rd().gc()*n.c.Rd().gc(),273,new D8n(n))}(this.a)},w(En,"AbstractTable/CellSet",679),b(2025,31,Lw,R8n),o.$b=function(){Gjn()},o.Hc=function(e){return function aye(n,e){var t,i,r,c,f,h,l;for(h=0,l=(f=n.a).length;h=0?"+":"")+(i/60|0),t=JC(y.Math.abs(i)%60),(XKn(),AQn)[this.q.getDay()]+" "+SQn[this.q.getMonth()]+" "+JC(this.q.getDate())+" "+JC(this.q.getHours())+":"+JC(this.q.getMinutes())+":"+JC(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var wQn,gQn,vQn,m_,Sa,Dun,pQn,Nun,$un,TP=w(le,"Date",206);b(2015,206,Gzn,gKn),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",2015),b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null},w(kp,"JSONValue",2064),b(221,2064,{221:1},td,NG),o.Fb=function(e){return!!L(e,221)&&LJ(this.a,u(e,221).a)},o.oe=function(){return Pfe},o.Hb=function(){return yJ(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new yo("["),t=0,e=this.a.length;t0&&(i.a+=","),Fc(i,lw(this,t));return i.a+="]",i.a},w(kp,"JSONArray",221),b(493,2064,{493:1},$G),o.oe=function(){return Ife},o.qe=function(){return this},o.Ib=function(){return Kn(),""+this.a},o.a=!1,w(kp,"JSONBoolean",493),b(997,63,Rl,Njn),w(kp,"JSONException",997),b(1036,2064,{},tL),o.oe=function(){return Ofe},o.Ib=function(){return yu},w(kp,"JSONNull",1036),b(263,2064,{263:1},zE),o.Fb=function(e){return!!L(e,263)&&this.a==u(e,263).a},o.oe=function(){return Afe},o.Hb=function(){return Ov(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0,w(kp,"JSONNumber",263),b(190,2064,{190:1},jv,s7),o.Fb=function(e){return!!L(e,190)&&LJ(this.a,u(e,190).a)},o.oe=function(){return Sfe},o.Hb=function(){return yJ(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,f;for(f=new yo("{"),e=!0,r=0,c=(i=Y$(this,K(fn,J,2,0,6,1))).length;r=0?":"+this.c:"")+")"},o.c=0;var Gun=w(wc,"StackTraceElement",319);oQn={3:1,484:1,34:1,2:1};var yQn,fn=w(wc,Ktn,2);b(111,427,{484:1},e1,p6,gs),w(wc,"StringBuffer",111),b(104,427,{484:1},V1,Cg,yo),w(wc,"StringBuilder",104),b(702,77,QB,Bz),w(wc,"StringIndexOutOfBoundsException",702),b(2145,1,{}),b(48,63,{3:1,103:1,63:1,82:1,48:1},Pe,Zl),w(wc,"UnsupportedOperationException",48),b(247,242,{3:1,34:1,242:1,247:1},Yk,Vz),o.Fd=function(e){return KUn(this,u(e,247))},o.ue=function(){return Ew(bGn(this))},o.Fb=function(e){var t;return this===e||!!L(e,247)&&(t=u(e,247),this.e==t.e&&0==KUn(this,t))},o.Hb=function(){var e;return 0!=this.b?this.b:this.a<54?(e=Ec(this.f),this.b=Ae(vi(e,-1)),this.b=33*this.b+Ae(vi(I0(e,32),-1)),this.b=17*this.b+di(this.e),this.b):(this.b=17*Zxn(this.c)+di(this.e),this.b)},o.Ib=function(){return bGn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var jQn,Gd,zun,Xun,Wun,Vun,Jun,Qun,y_=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},Tl,GOn,dd,nRn,ea),o.Fd=function(e){return JBn(this,u(e,92))},o.ue=function(){return Ew(EB(this,0))},o.Fb=function(e){return fZ(this,e)},o.Hb=function(){return Zxn(this)},o.Ib=function(){return EB(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var EQn,AP,CQn,j_,SP,G8,MQn,TQn,Lp,z8,T2=w("java.math","BigInteger",92);b(498,2065,sb),o.$b=function(){qu(this)},o._b=function(e){return tu(this,e)},o.uc=function(e){return Nxn(this,e,this.i)||Nxn(this,e,this.f)},o.vc=function(){return new cd(this)},o.xc=function(e){return ee(this,e)},o.zc=function(e,t){return Xe(this,e,t)},o.Bc=function(e){return Yv(this,e)},o.gc=function(){return k6(this)},o.g=0,w(le,"AbstractHashMap",498),b(267,Gf,Fu,cd),o.$b=function(){this.a.$b()},o.Hc=function(e){return yLn(this,e)},o.Kc=function(){return new Ed(this.a)},o.Mc=function(e){var t;return!!yLn(this,e)&&(t=u(e,44).ld(),this.a.Bc(t),!0)},o.gc=function(){return this.a.gc()},w(le,"AbstractHashMap/EntrySet",267),b(268,1,Ti,Ed),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return W0(this)},o.Ob=function(){return this.b},o.Qb=function(){JNn(this)},o.b=!1,o.d=0,w(le,"AbstractHashMap/EntrySetIterator",268),b(426,1,Ti,u6),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return tD(this)},o.Pb=function(){return gJ(this)},o.Qb=function(){vo(this)},o.b=0,o.c=-1,w(le,"AbstractList/IteratorImpl",426),b(98,426,Jh,Ni),o.Qb=function(){vo(this)},o.Rb=function(e){nw(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return oe(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){Yb(-1!=this.c),this.a.hd(this.c,e)},w(le,"AbstractList/ListIteratorImpl",98),b(244,56,Q4,f1),o.bd=function(e,t){ow(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return Ln(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return Ln(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return Ln(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0,w(le,"AbstractList/SubList",244),b(266,Gf,Fu,rd),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return new WE(this.a.vc().Kc())},o.Mc=function(e){return!!this.a._b(e)&&(this.a.Bc(e),!0)},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/1",266),b(541,1,Ti,WE),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).ld()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/1/1",541),b(231,31,Lw,vl),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){return new qb(this.a.vc().Kc())},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/2",231),b(301,1,Ti,qb),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).md()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/2/1",301),b(494,1,{494:1,44:1}),o.Fb=function(e){var t;return!!L(e,44)&&(t=u(e,44),jc(this.d,t.ld())&&jc(this.e,t.md()))},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return Fg(this.d)^Fg(this.e)},o.nd=function(e){return xW(this,e)},o.Ib=function(){return this.d+"="+this.e},w(le,"AbstractMap/AbstractEntry",494),b(397,494,{494:1,397:1,44:1},TC),w(le,"AbstractMap/SimpleEntry",397),b(2082,1,nR),o.Fb=function(e){var t;return!!L(e,44)&&(t=u(e,44),jc(this.ld(),t.ld())&&jc(this.md(),t.md()))},o.Hb=function(){return Fg(this.ld())^Fg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()},w(le,Dzn,2082),b(2090,2065,xtn),o.Xc=function(e){return VL(this.Ee(e))},o.tc=function(e){return ADn(this,e)},o._b=function(e){return BW(this,e)},o.vc=function(){return new EL(this)},o.Tc=function(){return _Pn(this.Ge())},o.Yc=function(e){return VL(this.He(e))},o.xc=function(e){return Rr(this.Fe(e))},o.$c=function(e){return VL(this.Ie(e))},o.ec=function(){return new h9n(this)},o.Vc=function(){return _Pn(this.Je())},o._c=function(e){return VL(this.Ke(e))},w(le,"AbstractNavigableMap",2090),b(629,Gf,Fu,EL),o.Hc=function(e){return L(e,44)&&ADn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return!!L(e,44)&&(t=u(e,44),this.b.Le(t))},o.gc=function(){return this.b.gc()},w(le,"AbstractNavigableMap/EntrySet",629),b(1146,Gf,Btn,h9n),o.Nc=function(){return new CC(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return BW(this.a,e)},o.Kc=function(){return new l9n(this.a.vc().b.De())},o.Mc=function(e){return!!BW(this.a,e)&&(this.a.Bc(e),!0)},o.gc=function(){return this.a.gc()},w(le,"AbstractNavigableMap/NavigableKeySet",1146),b(1147,1,Ti,l9n),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return tD(this.a.a)},o.Pb=function(){return hAn(this.a).ld()},o.Qb=function(){gSn(this.a)},w(le,"AbstractNavigableMap/NavigableKeySet/1",1147),b(2103,31,Lw),o.Fc=function(e){return Rv(D4(this,e),Z4),!0},o.Gc=function(e){return Jn(e),nk(e!=this,"Can't add a queue to itself"),Fi(this,e)},o.$b=function(){for(;null!=R$(this););},w(le,"AbstractQueue",2103),b(310,31,{4:1,20:1,31:1,16:1},Rg,gLn),o.Fc=function(e){return HJ(this,e),!0},o.$b=function(){WJ(this)},o.Hc=function(e){return txn(new f5(this),e)},o.dc=function(){return v6(this)},o.Kc=function(){return new f5(this)},o.Mc=function(e){return function a2e(n,e){return!!txn(n,e)&&(Y$n(n),!0)}(new f5(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new Pn(this,272)},o.Qc=function(e){var t;return e.length<(t=this.c-this.b&this.a.length-1)&&(e=sC(new Array(t),e)),wFn(this,e,t),e.length>t&&Dt(e,t,null),e},o.b=0,o.c=0,w(le,"ArrayDeque",310),b(459,1,Ti,f5),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return eA(this)},o.Qb=function(){Y$n(this)},o.a=0,o.b=0,o.c=-1,w(le,"ArrayDeque/IteratorImpl",459),b(13,56,Wzn,Z,Vc,Hu),o.bd=function(e,t){P0(this,e,t)},o.Fc=function(e){return nn(this,e)},o.cd=function(e,t){return $Y(this,e,t)},o.Gc=function(e){return si(this,e)},o.$b=function(){Ub(this.c,0)},o.Hc=function(e){return-1!=Hr(this,e,0)},o.Jc=function(e){iu(this,e)},o.Xb=function(e){return sn(this,e)},o.dd=function(e){return Hr(this,e,0)},o.dc=function(){return 0==this.c.length},o.Kc=function(){return new C(this)},o.gd=function(e){return l1(this,e)},o.Mc=function(e){return pu(this,e)},o.ce=function(e,t){ROn(this,e,t)},o.hd=function(e,t){return Vo(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){Jt(this,e)},o.Pc=function(){return pM(this.c)},o.Qc=function(e){return Hf(this,e)};var Vi,il,PP,ym,Yun,E_,Zun,AQn,SQn,eNe=w(le,"ArrayList",13);b(7,1,Ti,C),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return rc(this)},o.Pb=function(){return E(this)},o.Qb=function(){r5(this)},o.a=0,o.b=-1,w(le,"ArrayList/1",7),b(2112,y.Function,{},Gt),o.Me=function(e,t){return at(e,t)},b(151,56,Vzn,_u),o.Hc=function(e){return-1!=Z$n(this,e)},o.Jc=function(e){var i,r,c;for(Jn(e),r=0,c=(i=this.a).length;r0)throw M(new Un(Wtn+e+" greater than "+this.e));return this.f.Te()?sOn(this.c,this.b,this.a,e,t):KOn(this.c,e,t)},o.zc=function(e,t){if(!dx(this.c,this.f,e,this.b,this.a,this.e,this.d))throw M(new Un(e+" outside the range "+this.b+" to "+this.e));return mxn(this.c,e,t)},o.Bc=function(e){var t;return dx(this.c,this.f,t=e,this.b,this.a,this.e,this.d)?fOn(this.c,t):null},o.Le=function(e){return BM(this,e.ld())&&dQ(this.c,e)},o.gc=function(){var e,t,i;if(!((t=this.f.Te()?T4(this.c,this.b,!!this.a):EQ(this.c))&&BM(this,t.d)&&t))return 0;for(e=0,i=new Z$(this.c,this.f,this.b,this.a,this.e,this.d);tD(i.a);i.b=u(gJ(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw M(new Un(Wtn+e+Yzn+this.b));return this.f.Ue()?sOn(this.c,e,t,this.e,this.d):_On(this.c,e,t)},o.a=!1,o.d=!1,w(le,"TreeMap/SubMap",631),b(304,22,rR,MC),o.Te=function(){return!1},o.Ue=function(){return!1};var M_,T_,A_,S_,NQn,IP=we(le,"TreeMap/SubMapType",304,ke,function Rve(){return J3(),S(T(IP,1),G,304,0,[M_,T_,A_,S_])},function Vae(n){return J3(),Ee((CNn(),NQn),n)});b(1143,304,rR,bTn),o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/1",1143,IP,null,null),b(1144,304,rR,ETn),o.Te=function(){return!0},o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/2",1144,IP,null,null),b(1145,304,rR,dTn),o.Te=function(){return!0},we(le,"TreeMap/SubMapType/3",1145,IP,null,null),b(157,Gf,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},dz,i1,h3),o.Nc=function(){return new CC(this)},o.Fc=function(e){return ik(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return XD(this,e)},o.gc=function(){return this.a.gc()};var oNe=w(le,"TreeSet",157);b(1082,1,{},w9n),o.Ve=function(e,t){return function aae(n,e,t){return n.Ne(e,t)<=0?t:e}(this.a,e,t)},w(cR,"BinaryOperator/lambda$0$Type",1082),b(1083,1,{},g9n),o.Ve=function(e,t){return function dae(n,e,t){return n.Ne(e,t)<=0?e:t}(this.a,e,t)},w(cR,"BinaryOperator/lambda$1$Type",1083),b(952,1,{},bs),o.Kb=function(e){return e},w(cR,"Function/lambda$0$Type",952),b(395,1,Le,l3),o.Mb=function(e){return!this.a.Mb(e)},w(cR,"Predicate/lambda$2$Type",395),b(581,1,{581:1});var ron,P_,$Qn=w(w8,"Handler",581);b(2107,1,Fy),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()},w(w8,"Level",2107),b(1706,2107,Fy,W1),o.xe=function(){return"INFO"},w(w8,"Level/LevelInfo",1706),b(1843,1,{},Hyn),w(w8,"LogManager",1843),b(1896,1,Fy,wSn),o.b=null,w(w8,"LogRecord",1896),b(525,1,{525:1},p$),o.e=!1;var FQn=!1,xQn=!1,Vf=!1,BQn=!1,RQn=!1;w(w8,"Logger",525),b(835,581,{581:1},Ql),w(w8,"SimpleConsoleLogHandler",835),b(108,22,{3:1,34:1,22:1,108:1},cD);var con,Yr,Hw,KQn,Dr=we(hi,"Collector/Characteristics",108,ke,function T2e(){return zu(),S(T(Dr,1),G,108,0,[con,Yr,Hw])},function Jae(n){return zu(),Ee((bNn(),KQn),n)});b(758,1,{},VV),w(hi,"CollectorImpl",758),b(1074,1,{},wu),o.Ve=function(e,t){return function u5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Re(n.a,n.b):n.a=new yo(n.d),wLn(n.a,e.a,e.d.length,t)),n}(u(e,213),u(t,213))},w(hi,"Collectors/10methodref$merge$Type",1074),b(1075,1,{},dv),o.Kb=function(e){return vLn(u(e,213))},w(hi,"Collectors/11methodref$toString$Type",1075),b(1076,1,{},v9n),o.Kb=function(e){return Kn(),!!qX(e)},w(hi,"Collectors/12methodref$test$Type",1076),b(144,1,{},Br),o.Yd=function(e,t){u(e,16).Fc(t)},w(hi,"Collectors/20methodref$add$Type",144),b(146,1,{},yc),o.Xe=function(){return new Z},w(hi,"Collectors/21methodref$ctor$Type",146),b(359,1,{},Rh),o.Xe=function(){return new Yt},w(hi,"Collectors/23methodref$ctor$Type",359),b(360,1,{},Fs),o.Yd=function(e,t){oi(u(e,49),t)},w(hi,"Collectors/24methodref$add$Type",360),b(1069,1,{},Yl),o.Ve=function(e,t){return sCn(u(e,15),u(t,16))},w(hi,"Collectors/4methodref$addAll$Type",1069),b(1073,1,{},xE),o.Yd=function(e,t){Al(u(e,213),u(t,484))},w(hi,"Collectors/9methodref$add$Type",1073),b(1072,1,{},LSn),o.Xe=function(){return new Cd(this.a,this.b,this.c)},w(hi,"Collectors/lambda$15$Type",1072),b(1077,1,{},U0n),o.Xe=function(){var e;return y1(e=new h1,(Kn(),!1),new Z),y1(e,!0,new Z),e},w(hi,"Collectors/lambda$22$Type",1077),b(1078,1,{},p9n),o.Xe=function(){return S(T(pi,1),xn,1,5,[this.a])},w(hi,"Collectors/lambda$25$Type",1078),b(1079,1,{},m9n),o.Yd=function(e,t){!function Lbe(n,e){return Dt(e,0,PV(e[0],$l(1)))}(0,kd(e))},w(hi,"Collectors/lambda$26$Type",1079),b(1080,1,{},k9n),o.Ve=function(e,t){return function uwe(n,e,t){return Dt(e,0,PV(e[0],t[0])),e}(0,kd(e),kd(t))},w(hi,"Collectors/lambda$27$Type",1080),b(1081,1,{},G0n),o.Kb=function(e){return kd(e)[0]},w(hi,"Collectors/lambda$28$Type",1081),b(728,1,{},oG),o.Ve=function(e,t){return PV(e,t)},w(hi,"Collectors/lambda$4$Type",728),b(145,1,{},Tu),o.Ve=function(e,t){return function _he(n,e){return n.Gc(e),n}(u(e,16),u(t,16))},w(hi,"Collectors/lambda$42$Type",145),b(361,1,{},bv),o.Ve=function(e,t){return function Hhe(n,e){return Fi(n,e),n}(u(e,49),u(t,49))},w(hi,"Collectors/lambda$50$Type",361),b(362,1,{},wv),o.Kb=function(e){return u(e,49)},w(hi,"Collectors/lambda$51$Type",362),b(1068,1,{},y9n),o.Yd=function(e,t){!function a6e(n,e,t){var i,r;Kn(),i=!!qX(t),(r=u(e.xc(i),15))||(r=new Z,e.zc(i,r)),r.Fc(t)}(0,u(e,85),t)},w(hi,"Collectors/lambda$7$Type",1068),b(1070,1,{},z0n),o.Ve=function(e,t){return function Hme(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),44),n.yc(i.ld(),i.md(),t);return n}(u(e,85),u(t,85),new Yl)},w(hi,"Collectors/lambda$8$Type",1070),b(1071,1,{},j9n),o.Kb=function(e){return function R5e(n,e){var t,i,r;for(r=new de,i=e.vc().Kc();i.Ob();)Xe(r,(t=u(i.Pb(),44)).ld(),Eme(n,u(t.md(),15)));return r}(this.a,u(e,85))},w(hi,"Collectors/lambda$9$Type",1071),b(550,1,{}),o.$e=function(){s5(this)},o.d=!1,w(hi,"TerminatableStream",550),b(827,550,Vtn,SW),o.$e=function(){s5(this)},w(hi,"DoubleStreamImpl",827),b(1847,736,Lo,DSn),o.Re=function(e){return function H9e(n,e){var t;return n.a||(t=K(Ai,Mr,28,0,15,1),Tg(n.b.a,new E9n(t)),Lyn(t,D$n(Gt.prototype.Me,Gt,[])),n.a=new hSn(t,n.d)),bT(n.a,e)}(this,u(e,189))},o.a=null,w(hi,"DoubleStreamImpl/2",1847),b(1848,1,Gy,E9n),o.Pe=function(e){!function $le(n,e){return n[n.length]=e}(this.a,e)},w(hi,"DoubleStreamImpl/2/lambda$0$Type",1848),b(1845,1,Gy,C9n),o.Pe=function(e){!function Nle(n,e){return n[n.length]=e}(this.a,e)},w(hi,"DoubleStreamImpl/lambda$0$Type",1845),b(1846,1,Gy,M9n),o.Pe=function(e){DBn(this.a,e)},w(hi,"DoubleStreamImpl/lambda$2$Type",1846),b(1397,735,Lo,jDn),o.Re=function(e){return function Sve(n,e){return n.a<=n.b&&(e.Dd(n.a++),!0)}(this,u(e,202))},o.a=0,o.b=0,o.c=0,w(hi,"IntStream/5",1397),b(806,550,Vtn,PW),o.$e=function(){s5(this)},o._e=function(){return ua(this),this.a},w(hi,"IntStreamImpl",806),b(807,550,Vtn,nX),o.$e=function(){s5(this)},o._e=function(){return ua(this),hW(),DQn},w(hi,"IntStreamImpl/Empty",807),b(1687,1,By,T9n),o.Dd=function(e){qFn(this.a,e)},w(hi,"IntStreamImpl/lambda$4$Type",1687);var Dp,sNe=Ot(hi,"Stream");b(26,550,{533:1,687:1,848:1},Mn),o.$e=function(){s5(this)},w(hi,"StreamImpl",26),b(1102,500,Lo,oSn),o.Bd=function(e){for(;O3e(this);){if(this.a.Bd(e))return!0;s5(this.b),this.b=null,this.a=null}return!1},w(hi,"StreamImpl/1",1102),b(1103,1,re,A9n),o.Cd=function(e){!function rbe(n,e){e&&(n.b=e,n.a=(ua(e),e.a))}(this.a,u(e,848))},w(hi,"StreamImpl/1/lambda$0$Type",1103),b(1104,1,Le,S9n),o.Mb=function(e){return oi(this.a,e)},w(hi,"StreamImpl/1methodref$add$Type",1104),b(1105,500,Lo,_In),o.Bd=function(e){var t;return this.a||(t=new Z,this.b.a.Nb(new P9n(t)),On(),Jt(t,this.c),this.a=new Pn(t,16)),C$n(this.a,e)},o.a=null,w(hi,"StreamImpl/5",1105),b(1106,1,re,P9n),o.Cd=function(e){nn(this.a,e)},w(hi,"StreamImpl/5/2methodref$add$Type",1106),b(737,500,Lo,CQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new MCn(this,e)););return this.b},o.b=!1,w(hi,"StreamImpl/FilterSpliterator",737),b(1096,1,re,MCn),o.Cd=function(e){!function nwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}(this.a,this.b,e)},w(hi,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),b(1091,736,Lo,DDn),o.Re=function(e){return function Nae(n,e){return n.b.Bd(new TCn(n,e))}(this,u(e,189))},w(hi,"StreamImpl/MapToDoubleSpliterator",1091),b(1095,1,re,TCn),o.Cd=function(e){!function rle(n,e,t){e.Pe(n.a.Ye(t))}(this.a,this.b,e)},w(hi,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),b(1090,735,Lo,NDn),o.Re=function(e){return function $ae(n,e){return n.b.Bd(new ACn(n,e))}(this,u(e,202))},w(hi,"StreamImpl/MapToIntSpliterator",1090),b(1094,1,re,ACn),o.Cd=function(e){!function cle(n,e,t){e.Dd(n.a.Ze(t))}(this.a,this.b,e)},w(hi,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),b(734,500,Lo,fQ),o.Bd=function(e){return rSn(this,e)},w(hi,"StreamImpl/MapToObjSpliterator",734),b(1093,1,re,SCn),o.Cd=function(e){!function ule(n,e,t){e.Cd(n.a.Kb(t))}(this.a,this.b,e)},w(hi,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),b(1092,500,Lo,fFn),o.Bd=function(e){for(;iD(this.b,0);){if(!this.a.Bd(new X0n))return!1;this.b=ms(this.b,1)}return this.a.Bd(e)},o.b=0,w(hi,"StreamImpl/SkipSpliterator",1092),b(1097,1,re,X0n),o.Cd=function(e){},w(hi,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),b(626,1,re,iL),o.Cd=function(e){c9n(this,e)},w(hi,"StreamImpl/ValueConsumer",626),b(1098,1,re,W0n),o.Cd=function(e){fd()},w(hi,"StreamImpl/lambda$0$Type",1098),b(1099,1,re,V0n),o.Cd=function(e){fd()},w(hi,"StreamImpl/lambda$1$Type",1099),b(1100,1,{},I9n),o.Ve=function(e,t){return function dde(n,e,t){return fd(),n.a.Yd(e,t),e}(this.a,e,t)},w(hi,"StreamImpl/lambda$4$Type",1100),b(1101,1,re,PCn),o.Cd=function(e){!function mae(n,e,t){fd(),c9n(n,e.Ve(n.a,t))}(this.b,this.a,e)},w(hi,"StreamImpl/lambda$5$Type",1101),b(1107,1,re,O9n),o.Cd=function(e){!function Ime(n,e){try{e.de()}catch(i){if(!L(i=At(i),82))throw M(i);Rn(n.c,i)}}(this.a,u(e,380))},w(hi,"TerminatableStream/lambda$0$Type",1107),b(2142,1,{}),b(2014,1,{},J0n),w("javaemul.internal","ConsoleLogger",2014);var fNe=0;b(2134,1,{}),b(1830,1,re,Q0n),o.Cd=function(e){u(e,317)},w(nm,"BowyerWatsonTriangulation/lambda$0$Type",1830),b(1831,1,re,L9n),o.Cd=function(e){Fi(this.a,u(e,317).e)},w(nm,"BowyerWatsonTriangulation/lambda$1$Type",1831),b(1832,1,re,Y0n),o.Cd=function(e){u(e,177)},w(nm,"BowyerWatsonTriangulation/lambda$2$Type",1832),b(1827,1,Ne,D9n),o.Ne=function(e,t){return function dpe(n,e,t){return TN(R(Rr(br(n.f,e))),R(Rr(br(n.f,t))))}(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(nm,"NaiveMinST/lambda$0$Type",1827),b(449,1,{},o6),w(nm,"NodeMicroLayout",449),b(177,1,{177:1},Sv),o.Fb=function(e){var t;return!!L(e,177)&&(t=u(e,177),jc(this.a,t.a)&&jc(this.b,t.b)||jc(this.a,t.b)&&jc(this.b,t.a))},o.Hb=function(){return Fg(this.a)+Fg(this.b)};var hNe=w(nm,"TEdge",177);b(317,1,{317:1},ftn),o.Fb=function(e){var t;return!!L(e,317)&&yT(this,(t=u(e,317)).a)&&yT(this,t.b)&&yT(this,t.c)},o.Hb=function(){return Fg(this.a)+Fg(this.b)+Fg(this.c)},w(nm,"TTriangle",317),b(225,1,{225:1},YC),w(nm,"Tree",225),b(1218,1,{},TOn),w(eXn,"Scanline",1218);var _Qn=Ot(eXn,tXn);b(1758,1,{},y$n),w(nl,"CGraph",1758),b(316,1,{316:1},POn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=fi,w(nl,"CGroup",316),b(830,1,{},gz),w(nl,"CGroup/CGroupBuilder",830),b(60,1,{60:1},_An),o.Ib=function(){return this.j?Oe(this.j.Kb(this)):(yl(OP),OP.o+"@"+(T0(this)>>>0).toString(16))},o.f=0,o.i=fi;var HQn,OP=w(nl,"CNode",60);b(829,1,{},vz),w(nl,"CNode/CNodeBuilder",829),b(1590,1,{},Z0n),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0},w(nl,rXn,1590),b(1853,1,{},nbn),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j;for(a=Mt,r=new C(e.a.b);r.ar.d.c||r.d.c==s.d.c&&r.d.b0?e+this.n.d+this.n.a:0},o.kf=function(){var t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=oZ(this,wx(this,null,!0));else for(yf(),i=0,r=(t=S(T(qw,1),G,237,0,[vc,Zc,pc])).length;i0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=wx(this,null,!1),yf(),r=0,c=(i=S(T(qw,1),G,237,0,[vc,Zc,pc])).length;r0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),cQ(this,Zc,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var N_=0,LP=0;w($d,"GridContainerCell",1538),b(471,22,{3:1,34:1,22:1,471:1},oD);var Ia,Oh,Ys,ZQn,YQn=we($d,"HorizontalLabelAlignment",471,ke,function S2e(){return Gu(),S(T(YQn,1),G,471,0,[Oh,Ia,Ys])},function ede(n){return Gu(),Ee((lNn(),ZQn),n)});b(314,217,{217:1,314:1},aOn,E$n,cOn),o.jf=function(){return zSn(this)},o.kf=function(){return EV(this)},o.a=0,o.c=!1;var lNe=w($d,"LabelCell",314);b(252,336,{217:1,336:1,252:1},B5),o.jf=function(){return W5(this)},o.kf=function(){return V5(this)},o.lf=function(){iB(this)},o.mf=function(){rB(this)},o.b=0,o.c=0,o.d=!1,w($d,"StripContainerCell",252),b(1691,1,Le,obn),o.Mb=function(e){return function ehe(n){return!!n&&n.k}(u(e,217))},w($d,"StripContainerCell/lambda$0$Type",1691),b(1692,1,{},sbn),o.Ye=function(e){return u(e,217).kf()},w($d,"StripContainerCell/lambda$1$Type",1692),b(1693,1,Le,fbn),o.Mb=function(e){return function the(n){return!!n&&n.j}(u(e,217))},w($d,"StripContainerCell/lambda$2$Type",1693),b(1694,1,{},hbn),o.Ye=function(e){return u(e,217).jf()},w($d,"StripContainerCell/lambda$3$Type",1694),b(472,22,{3:1,34:1,22:1,472:1},sD);var Zs,Oa,Tf,eYn,nYn=we($d,"VerticalLabelAlignment",472,ke,function A2e(){return mu(),S(T(nYn,1),G,472,0,[Tf,Oa,Zs])},function tde(n){return mu(),Ee((dNn(),eYn),n)});b(800,1,{},Ttn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,o.F=!1,w(mS,"NodeContext",800),b(1536,1,Ne,lbn),o.Ne=function(e,t){return rTn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mS,"NodeContext/0methodref$comparePortSides$Type",1536),b(1537,1,Ne,abn),o.Ne=function(e,t){return function Oye(n,e){var t;if(0!=(t=rTn(n.b.ag(),e.b.ag())))return t;switch(n.b.ag().g){case 1:case 2:return Tc(n.b.Nf(),e.b.Nf());case 3:case 4:return Tc(e.b.Nf(),n.b.Nf())}return 0}(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mS,"NodeContext/1methodref$comparePortContexts$Type",1537),b(164,22,{3:1,34:1,22:1,164:1},Yo);var tYn,iYn,rYn,cYn,uYn,oYn,sYn,fYn,hYn,lYn,aYn,dYn,bYn,wYn,gYn,vYn,pYn,mYn,kYn,yYn,jYn,$_,CYn,Aon,DP,EYn=we(mS,"NodeLabelLocation",164,ke,zF,function ide(n){return dS(),Ee((VMn(),CYn),n)});b(117,1,{117:1},lHn),o.a=!1,w(mS,"PortContext",117),b(1541,1,re,dbn),o.Cd=function(e){EEn(u(e,314))},w(Xy,vXn,1541),b(1542,1,Le,bbn),o.Mb=function(e){return!!u(e,117).c},w(Xy,pXn,1542),b(1543,1,re,wbn),o.Cd=function(e){EEn(u(e,117).c)},w(Xy,"LabelPlacer/lambda$2$Type",1543),b(1540,1,re,gbn),o.Cd=function(e){Zb(),function Nfe(n){n.b.Of(n.e)}(u(e,117))},w(Xy,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),b(801,1,re,tV),o.Cd=function(e){Whe(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1,w(Xy,"NodeLabelCellCreator/lambda$0$Type",801),b(1539,1,re,F9n),o.Cd=function(e){!function xfe(n,e){Fnn(n.c,e)}(this.a,u(e,187))},w(Xy,"PortContextCreator/lambda$0$Type",1539),b(1902,1,{},vbn),w(tm,"GreedyRectangleStripOverlapRemover",1902),b(1903,1,Ne,pbn),o.Ne=function(e,t){return function T1e(n,e){return at(n.c.d,e.c.d)}(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tm,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),b(1849,1,{},zyn),o.a=5,o.e=0,w(tm,"RectangleStripOverlapRemover",1849),b(1850,1,Ne,mbn),o.Ne=function(e,t){return function A1e(n,e){return at(n.c.c,e.c.c)}(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tm,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),b(1852,1,Ne,kbn),o.Ne=function(e,t){return function gwe(n,e){return at(n.c.c+n.c.b,e.c.c+e.c.b)}(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tm,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),b(417,22,{3:1,34:1,22:1,417:1},AC);var mj,F_,x_,kj,TYn,MYn=we(tm,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,ke,function Hve(){return V0(),S(T(MYn,1),G,417,0,[kj,mj,F_,x_])},function rde(n){return V0(),Ee((TNn(),TYn),n)});b(226,1,{226:1},EN),w(tm,"RectangleStripOverlapRemover/RectangleNode",226),b(1851,1,re,x9n),o.Cd=function(e){!function i7e(n,e){var t,i;switch(i=e.c,t=e.a,n.b.g){case 0:t.d=n.e-i.a-i.d;break;case 1:t.d+=n.e;break;case 2:t.c=n.e-i.a-i.d;break;case 3:t.c=n.e+i.d}}(this.a,u(e,226))},w(tm,"RectangleStripOverlapRemover/lambda$1$Type",1851),b(1323,1,Ne,ybn),o.Ne=function(e,t){return function jIe(n,e){var t,i,r,c;return t=new jbn,1==(r=2==(r=(i=u(Vr(Kr(new Mn(null,new Pn(n.f,16)),t),hw(new Rh,new Fs,new bv,new wv,S(T(Dr,1),G,108,0,[(zu(),Hw),Yr]))),21)).gc())?1:0)&&j0(ty(u(Vr(rt(i.Lc(),new Ebn),$Fn($l(0),new oG)),168).a,2),0)&&(r=0),1==(c=2==(c=(i=u(Vr(Kr(new Mn(null,new Pn(e.f,16)),t),hw(new Rh,new Fs,new bv,new wv,S(T(Dr,1),G,108,0,[Hw,Yr]))),21)).gc())?1:0)&&j0(ty(u(Vr(rt(i.Lc(),new Cbn),$Fn($l(0),new oG)),168).a,2),0)&&(c=0),r0?n.a:n.b,e,t)}(this,u(e,42),u(t,176))},w(Ch,"SuccessorCombination",782),b(649,1,{},rL),o.Ve=function(e,t){var i;return function JEe(n){var e,t,i,r,c;return t=r=u(n.a,17).a,i=c=u(n.b,17).a,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new ai(Y(t),Y(i))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorJitter",649),b(648,1,{},cL),o.Ve=function(e,t){var i;return function FTe(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new ai(Y(-e-1),Y(-e-1));if(e==-t)return new ai(Y(-e),Y(t+1))}return y.Math.abs(e)>y.Math.abs(t)?new ai(Y(-e),Y(e<0?t:t+1)):new ai(Y(e+1),Y(t))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorLineByLine",648),b(573,1,{},BE),o.Ve=function(e,t){var i;return function JCe(n){var e,t,i,r;return e=i=u(n.a,17).a,t=r=u(n.b,17).a,0==i&&0==r?t-=1:-1==i&&r<=0?(e=0,t-=2):i<=0&&r>0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new ai(Y(e),Y(t))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorManhattan",573),b(1344,1,{},Obn),o.Ve=function(e,t){var i;return function uTe(n){var e,t,i;return t=u(n.a,17).a,i=u(n.b,17).a,t<(e=y.Math.max(y.Math.abs(t),y.Math.abs(i)))&&i==-e?new ai(Y(t+1),Y(i)):t==e&&i=-e&&i==e?new ai(Y(t-1),Y(i)):new ai(Y(t),Y(i-1))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorMaxNormWindingInMathPosSense",1344),b(409,1,{},a3),o.Ve=function(e,t){return XV(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1,w(Ch,"SuccessorQuadrantsGeneric",409),b(1345,1,{},Lbn),o.Kb=function(e){return u(e,334).a},w(Ch,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),b(332,22,{3:1,34:1,22:1,332:1},SC),o.a=!1;var yj,jj,Ej,Cj,SYn,AYn=we(yS,uin,332,ke,function Kve(){return sp(),S(T(AYn,1),G,332,0,[jj,yj,Ej,Cj])},function cde(n){return sp(),Ee((SNn(),SYn),n)});b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Y(0),c=0;c0&&ru(A,$*X),_>0&&cu(A,_*tn);for(C5(n.b,new Ubn),e=new Z,f=new Ed(new cd(n.c).a);f.b;)i=u((s=W0(f)).ld(),74),t=u(s.md(),407).a,r=s2(i,!1,!1),Py(d=xKn(Wh(i),wy(r),t),r),(O=JKn(i))&&-1==Hr(e,O,0)&&(Rn(e.c,O),MIn(O,(oe(0!=d.b),u(d.a.a.c,8)),t));for(j=new Ed(new cd(n.d).a);j.b;)i=u((k=W0(j)).ld(),74),t=u(k.md(),407).a,r=s2(i,!1,!1),d=xKn(va(i),zk(wy(r)),t),Py(d=zk(d),r),(O=QKn(i))&&-1==Hr(e,O,0)&&(Rn(e.c,O),MIn(O,(oe(0!=d.b),u(d.c.b.c,8)),t))}(s),ft(e,Don,this.b),t.Vg()},o.a=0,w(EXn,"DisCoLayoutProvider",1114),b(1208,1,{},xbn),o.c=!1,o.e=0,o.f=0,w(EXn,"DisCoPolyominoCompactor",1208),b(567,1,{567:1},sPn),o.b=!0,w(ES,"DCComponent",567),b(406,22,{3:1,34:1,22:1,406:1},PC),o.a=!1;var NP,Mj,$P,Tj,OYn,IYn=we(ES,"DCDirection",406,ke,function _ve(){return _5(),S(T(IYn,1),G,406,0,[Mj,NP,$P,Tj])},function ude(n){return _5(),Ee((ANn(),OYn),n)});b(272,137,{3:1,272:1,96:1,137:1},Bx),w(ES,"DCElement",272),b(407,1,{407:1},KZ),o.c=0,w(ES,"DCExtension",407),b(762,137,oin,Qjn),w(ES,"DCGraph",762),b(489,22,{3:1,34:1,22:1,489:1},vAn);var B_,LYn,DYn,Oon,Lon,NYn,$Yn,FYn,R_,xYn,Don,FP,K_,Non,BYn,RYn,KYn,_Yn,$on,__,H_,xP,Ion=we(pR,sin,489,ke,function Vwe(){return vC(),S(T(Ion,1),G,489,0,[B_])},function ode(n){return vC(),Ee((MLn(),LYn),n)});b(865,1,Es,$5n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,fin),CXn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),Lon),(C1(),Tt)),Ion),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,hin),CXn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),J2),fn),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,lin),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Zf),pi),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,ain),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Zf),pi),yn(Fn)))),nGn((new F5n,e))},w(pR,"DisCoMetaDataProvider",865),b(1010,1,Es,F5n),o.hf=function(e){nGn(e)},w(pR,"DisCoOptions",1010),b(1011,1,{},Bbn),o.sf=function(){return new Fbn},o.tf=function(e){},w(pR,"DisCoOptions/DiscoFactory",1011),b(568,176,{330:1,176:1,568:1},VHn),o.a=0,o.b=0,o.c=0,o.d=0,w("org.eclipse.elk.alg.disco.structures","DCPolyomino",568),b(1286,1,Le,Rbn),o.Mb=function(e){return qX(e)},w(v2,"ElkGraphComponentsProcessor/lambda$0$Type",1286),b(1287,1,{},Kbn),o.Kb=function(e){return Xv(),Wh(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$1$Type",1287),b(1288,1,Le,_bn),o.Mb=function(e){return function bbe(n){return Xv(),Wh(n)==Ct(va(n))}(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$2$Type",1288),b(1289,1,{},Hbn),o.Kb=function(e){return Xv(),va(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$3$Type",1289),b(1290,1,Le,qbn),o.Mb=function(e){return function wbe(n){return Xv(),va(n)==Ct(Wh(n))}(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$4$Type",1290),b(1291,1,Le,B9n),o.Mb=function(e){return function s2e(n,e){return Xv(),n==Ct(Wh(e))||n==Ct(va(e))}(this.a,u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$5$Type",1291),b(1292,1,{},R9n),o.Kb=function(e){return function Swe(n,e){return Xv(),n==Wh(e)?va(e):Wh(e)}(this.a,u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$6$Type",1292),b(1205,1,{},GLn),o.a=0,w(v2,"ElkGraphTransformer",1205),b(1206,1,{},Ubn),o.Yd=function(e,t){!function nCe(n,e,t){var i,r,c,s;n.a=t.b.d,L(e,326)?(_i(c=wy(r=s2(u(e,74),!1,!1)),i=new K9n(n)),Py(c,r),null!=e.of((Ue(),$b))&&_i(u(e.of($b),75),i)):((s=u(e,422)).rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}(this,u(e,167),u(t,272))},w(v2,"ElkGraphTransformer/OffsetApplier",1206),b(1207,1,re,K9n),o.Cd=function(e){!function h1e(n,e){A0(e,n.a.a.a,n.a.a.b)}(this,u(e,8))},w(v2,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),b(760,1,{},fG),w(jR,din,760),b(1195,1,Ne,Gbn),o.Ne=function(e,t){return function HEe(n,e){var t,i,r;return 0==(t=u(m(e,(Js(),Np)),17).a-u(m(n,Np),17).a)?(i=gi(Bi(u(m(n,(ha(),Aj)),8)),u(m(n,V8),8)),r=gi(Bi(u(m(e,Aj),8)),u(m(e,V8),8)),at(i.a*i.b,r.a*r.b)):t}(u(e,235),u(t,235))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(jR,TXn,1195),b(1196,1,re,ICn),o.Cd=function(e){!function z2e(n,e,t){var i;et(i=new ir(t.d),n),nZ(e,i.a,i.b)}(this.b,this.a,u(e,250))},w(jR,bin,1196),b(738,205,Fd,wz),o.rf=function(e,t){QHn(this,e,t)},w(jR,"ForceLayoutProvider",738),b(309,137,{3:1,309:1,96:1,137:1}),w(Vy,"FParticle",309),b(250,309,{3:1,250:1,309:1,96:1,137:1},XPn),o.Ib=function(){var e;return this.a?(e=Hr(this.a.a,this,0))>=0?"b"+e+"["+v$(this.a)+"]":"b["+v$(this.a)+"]":"b_"+T0(this)},w(Vy,"FBendpoint",250),b(290,137,{3:1,290:1,96:1,137:1},HAn),o.Ib=function(){return v$(this)},w(Vy,"FEdge",290),b(235,137,{3:1,235:1,96:1,137:1},lT);var HYn,qYn,Fon,UYn,GYn,zYn,XYn,WYn,dNe=w(Vy,"FGraph",235);b(454,309,{3:1,454:1,309:1,96:1,137:1},ULn),o.Ib=function(){return null==this.b||0==this.b.length?"l["+v$(this.a)+"]":"l_"+this.b},w(Vy,"FLabel",454),b(153,309,{3:1,153:1,309:1,96:1,137:1},jTn),o.Ib=function(){return NJ(this)},o.a=0,w(Vy,"FNode",153),b(2100,1,{}),o.vf=function(e){rtn(this,e)},o.wf=function(){GRn(this)},o.d=0,w(win,"AbstractForceModel",2100),b(641,2100,{641:1},HFn),o.uf=function(e,t){var i,r,c,f;return pGn(this.f,e,t),c=gi(Bi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-o5(e.e)/2-o5(t.e)/2),lh(c,((i=nHn(this.e,e,t))>0?-function dwe(n,e){return n>0?y.Math.log(n/e):-100}(r,this.c)*i:function H1e(n,e){return n>0?e/(n*n):100*e}(r,this.b)*u(m(e,(Js(),Np)),17).a)/f),c},o.vf=function(e){rtn(this,e),this.a=u(m(e,(Js(),RP)),17).a,this.c=F(R(m(e,KP))),this.b=F(R(m(e,U_)))},o.xf=function(e){return e0?e*e/n:e*e*100}(r=y.Math.max(0,f-o5(e.e)/2-o5(t.e)/2),this.a)*u(m(e,(Js(),Np)),17).a,(i=nHn(this.e,e,t))>0&&(s-=function Qfe(n,e){return n*n/e}(r,this.a)*i),lh(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for(rtn(this,e),this.b=F(R(m(e,(Js(),G_)))),this.c=this.b/u(m(e,RP),17).a,r=e.e.c.length,s=0,c=0,h=new C(e.e);h.a0},o.a=0,o.b=0,o.c=0,w(win,"FruchtermanReingoldModel",642),b(860,1,Es,x5n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,CS),""),"Force Model"),"Determines the model for force calculation."),Fon),(C1(),Tt)),xon),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,gin),""),"Iterations"),"The number of iterations on the force model."),Y(300)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,vin),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ER),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Mh),Ji),ui),yn(Fn)))),ti(e,ER,CS,WYn),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,CR),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Ji),ui),yn(Fn)))),ti(e,CR,CS,GYn),uzn((new B5n,e))},w(p8,"ForceMetaDataProvider",860),b(432,22,{3:1,34:1,22:1,432:1},wX);var q_,BP,VYn,JYn,QYn,Bon,RP,Ron,YYn,ZYn,nZn,eZn,Kon,tZn,_on,Hon,iZn,Np,rZn,U_,qon,cZn,uZn,KP,G_,oZn,sZn,fZn,Uon,hZn,Aj,V8,$p,_P,lZn,aZn,Gon,dZn,bZn,wZn,HP,zon,Xon,Won,Von,Jon,gZn,vZn,pZn,mZn,Qon,kZn,xon=we(p8,"ForceModelStrategy",432,ke,function Nge(){return MT(),S(T(xon,1),G,432,0,[q_,BP])},function sde(n){return MT(),Ee((eDn(),VYn),n)});b(T1,1,Es,B5n),o.hf=function(e){uzn(e)},w(p8,"ForceOptions",T1),b(1001,1,{},Vbn),o.sf=function(){return new wz},o.tf=function(e){},w(p8,"ForceOptions/ForceFactory",1001),b(861,1,Es,R5n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,kin),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Kn(),!1)),(C1(),mi)),qt),yn((Ef(),wi))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,yin),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[$h]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,jin),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Gon),Tt),Yon),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ein),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Mh),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Cin),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Y(nt)),Zr),qi),yn(Fn)))),NGn((new K5n,e))},w(p8,"StressMetaDataProvider",861),b(1004,1,Es,K5n),o.hf=function(e){NGn(e)},w(p8,"StressOptions",1004),b(1005,1,{},Xbn),o.sf=function(){return new qAn},o.tf=function(e){},w(p8,"StressOptions/StressFactory",1005),b(1110,205,Fd,qAn),o.rf=function(e,t){var r,c,s,f;for(t.Ug(IXn,1),on(un(z(e,(sy(),Von))))?on(un(z(e,Qon)))||lk(new o6((k0(),new a0(e)))):QHn(new wz,e,t.eh(1)),c=axn(e),f=(r=qUn(this.a,c)).Kc();f.Ob();)!((s=u(f.Pb(),235)).e.c.length<=1)&&(mIe(this.b,s),GCe(this.b),iu(s.d,new Wbn));dzn(c=izn(r)),t.Vg()},w(AS,"StressLayoutProvider",1110),b(1111,1,re,Wbn),o.Cd=function(e){atn(u(e,454))},w(AS,"StressLayoutProvider/lambda$0$Type",1111),b(1002,1,{},_yn),o.c=0,o.e=0,o.g=0,w(AS,"StressMajorization",1002),b(391,22,{3:1,34:1,22:1,391:1},fD);var z_,X_,W_,yZn,jZn,EZn,CZn,Yon=we(AS,"StressMajorization/Dimension",391,ke,function I2e(){return v5(),S(T(Yon,1),G,391,0,[X_,z_,W_])},function fde(n){return v5(),Ee((wNn(),yZn),n)});b(1003,1,Ne,_9n),o.Ne=function(e,t){return function xae(n,e,t){return at(n[e.a],n[t.a])}(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(AS,"StressMajorization/lambda$0$Type",1003),b(1192,1,{},VOn),w(Sp,"ElkLayered",1192),b(1193,1,re,H9n),o.Cd=function(e){!function kEe(n,e){var t;if((t=u(m(e,(cn(),o9)),322))!=n)throw M(new Cv("The hierarchy aware processor "+t+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}(this.a,u(e,36))},w(Sp,"ElkLayered/lambda$0$Type",1193),b(1194,1,re,q9n),o.Cd=function(e){!function Bae(n,e){return U(e,(cn(),Kj),n)}(this.a,u(e,36))},w(Sp,"ElkLayered/lambda$1$Type",1194),b(1281,1,{},LTn),w(Sp,"GraphConfigurator",1281),b(770,1,re,ZG),o.Cd=function(e){r_n(this.a,u(e,10))},w(Sp,"GraphConfigurator/lambda$0$Type",770),b(771,1,{},hG),o.Kb=function(e){return enn(),new Mn(null,new Pn(u(e,30).a,16))},w(Sp,"GraphConfigurator/lambda$1$Type",771),b(772,1,re,nz),o.Cd=function(e){r_n(this.a,u(e,10))},w(Sp,"GraphConfigurator/lambda$2$Type",772),b(1109,205,Fd,Xyn),o.rf=function(e,t){var i;i=nIe(new Vyn,e),x(z(e,(cn(),Zw)))===x((Ll(),B1))?L5e(this.a,i,t):_Ce(this.a,i,t),t.$g()||JGn(new _5n,i)},w(Sp,"LayeredLayoutProvider",1109),b(367,22,{3:1,34:1,22:1,367:1},M7);var nf,rl,$c,Uc,Gr,MZn,TZn,AZn,Zon=we(Sp,"LayeredPhases",367,ke,function Npe(){return zi(),S(T(Zon,1),G,367,0,[nf,rl,$c,Uc,Gr])},function hde(n){return zi(),Ee((f$n(),MZn),n)});b(1717,1,{},uFn),o.i=0,w(ej,"ComponentsToCGraphTransformer",1717),b(1718,1,{},zbn),o.yf=function(e,t){return y.Math.min(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},w(ej,"ComponentsToCGraphTransformer/1",1718),b(86,1,{86:1}),o.i=0,o.k=!0,o.o=fi;var J_,Q_,V_=w(j8,"CNode",86);b(470,86,{470:1,86:1},mW,PZ),o.Ib=function(){return""},w(ej,"ComponentsToCGraphTransformer/CRectNode",470),b(1688,1,{},Jbn),w(ej,"OneDimensionalComponentsCompaction",1688),b(1689,1,{},Qbn),o.Kb=function(e){return function y2e(n){return jF(),Kn(),0!=u(n.a,86).d.e}(u(e,42))},o.Fb=function(e){return this===e},w(ej,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),b(1690,1,{},Ybn),o.Kb=function(e){return function N5e(n){return jF(),Kn(),!!(CBn(u(n.a,86).j,u(n.b,88))||0!=u(n.a,86).d.e&&CBn(u(n.a,86).j,u(n.b,88)))}(u(e,42))},o.Fb=function(e){return this===e},w(ej,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),b(1720,1,{},tIn),w(j8,"CGraph",1720),b(194,1,{194:1},qF),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=fi,w(j8,"CGroup",194),b(1719,1,{},Zbn),o.yf=function(e,t){return y.Math.max(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},w(j8,rXn,1719),b(1721,1,{},tHn),o.d=!1;var SZn,Y_=w(j8,oXn,1721);b(1722,1,{},nwn),o.Kb=function(e){return tX(),Kn(),0!=u(u(e,42).a,86).d.e},o.Fb=function(e){return this===e},w(j8,sXn,1722),b(833,1,{},IV),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(j8,fXn,833),b(1898,1,{},pPn),w(SS,hXn,1898);var Sj=Ot(Bd,tXn);b(1899,1,{382:1},YIn),o.bf=function(e){!function VTe(n,e){var t,i,r;e.a?(ik(n.b,e.b),n.a[e.b.i]=u(nD(n.b,e.b),86),(t=u(ZL(n.b,e.b),86))&&(n.a[t.i]=e.b)):((i=u(nD(n.b,e.b),86))&&i==n.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),(r=u(ZL(n.b,e.b),86))&&n.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),XD(n.b,e.b))}(this,u(e,476))},w(SS,lXn,1899),b(Ea,1,Ne,ewn),o.Ne=function(e,t){return function rge(n,e){return at(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(SS,aXn,Ea),b(476,1,{476:1},vX),o.a=!1,w(SS,dXn,476),b(1901,1,Ne,twn),o.Ne=function(e,t){return function cke(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),0==(t=at(i,r))){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}(u(e,476),u(t,476))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(SS,bXn,1901),b(148,1,{148:1},M3,dV),o.Fb=function(e){var t;return null!=e&&bNe==po(e)&&(t=u(e,148),jc(this.c,t.c)&&jc(this.d,t.d))},o.Hb=function(){return Wk(S(T(pi,1),xn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+cr+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var bNe=w(Bd,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},IC);var mb,Uw,S2,Gw,IZn,OZn,LZn,DZn,NZn,$Zn,nsn,dt,PZn=we(Bd,"Point/Quadrant",416,ke,function qve(){return a4(),S(T(PZn,1),G,416,0,[mb,Gw,Uw,S2])},function lde(n){return a4(),Ee((INn(),IZn),n)});b(1708,1,{},Gyn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null,w(Bd,"RectilinearConvexHull",1708),b(583,1,{382:1},kA),o.bf=function(e){!function D3e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new dV(e.c,e.d,n.d)),n.b=e.d)}(this,u(e,148))},o.b=0,w(Bd,"RectilinearConvexHull/MaximalElementsEventHandler",583),b(1710,1,Ne,iwn),o.Ne=function(e,t){return function cge(n,e){return iX(),at((Jn(n),n),(Jn(e),e))}(R(e),R(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),b(1709,1,{382:1},j$n),o.bf=function(e){hTe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null,w(Bd,"RectilinearConvexHull/RectangleEventHandler",1709),b(1711,1,Ne,rwn),o.Ne=function(e,t){return function dve(n,e){return p5(),n.c==e.c?at(e.d,n.d):at(n.c,e.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$0$Type",1711),b(1712,1,Ne,own),o.Ne=function(e,t){return function bve(n,e){return p5(),n.c==e.c?at(n.d,e.d):at(n.c,e.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$1$Type",1712),b(1713,1,Ne,swn),o.Ne=function(e,t){return function ave(n,e){return p5(),n.c==e.c?at(e.d,n.d):at(e.c,n.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$2$Type",1713),b(1714,1,Ne,uwn),o.Ne=function(e,t){return function wve(n,e){return p5(),n.c==e.c?at(n.d,e.d):at(e.c,n.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$3$Type",1714),b(1715,1,Ne,fwn),o.Ne=function(e,t){return zye(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$4$Type",1715),b(1716,1,{},AOn),w(Bd,"Scanline",1716),b(2104,1,{}),w(Xf,"AbstractGraphPlacer",2104),b(335,1,{335:1},bAn),o.Ff=function(e){return!!this.Gf(e)&&(Sn(this.b,u(m(e,(V(),Ul)),21),e),!0)},o.Gf=function(e){var t,i,r;for(t=u(m(e,(V(),Ul)),21),r=u(ut(dt,t),21).Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ut(this.b,i),15).dc())return!1;return!0},w(Xf,"ComponentGroup",335),b(779,2104,{},pz),o.Hf=function(e){var i;for(i=new C(this.a);i.ai?1:0}(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Xf,"ComponentsProcessor/lambda$0$Type",1283),b(579,335,{335:1,579:1},EDn),o.Ff=function(e){return IY(this,e)},o.Gf=function(e){return cqn(this,e)},w(Xf,"ModelOrderComponentGroup",579),b(1310,2104,{},lwn),o.Ef=function(e,t){var i,r,c,s,f,l,a,d,g,v;if(1!=e.gc()){if(e.dc())return t.a.c.length=0,t.f.a=0,void(t.f.b=0);for(this.Jf(e,t),c=u(e.Xb(0),36),t.a.c.length=0,qr(t,c),a=0,v=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),a=y.Math.max(a,(d=s.f).a),v+=d.a*d.b;if(a=y.Math.max(a,y.Math.sqrt(v)*F(R(m(t,(cn(),TI))))),r=F(R(m(t,Hj))),this.If(e,t,a,r),on(un(m(c,AI)))){for(Otn(i=new oL,e,r),l=e.Kc();l.Ob();)et(wf(u(l.Pb(),36).c),i.e);et(wf(t.f),i.a)}yQ(t,e)}else(g=u(e.Xb(0),36))!=t&&(t.a.c.length=0,lUn(t,g,0,0),qr(t,g),vJ(t.d,g.d),t.f.a=g.f.a,t.f.b=g.f.b)},o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g;for(d=0,g=0,h=0,c=r,f=e.Kc();f.Ob();)d+(a=(s=u(f.Pb(),36)).f).a>i&&(d=0,g+=h+r,h=0),K4(s,d+(l=s.c).a,g+l.b),wf(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(x(m(t,(cn(),Yw)))===x((Sd(),zw))){for(r=e.Kc();r.Ob();){for(f=0,s=new C((i=u(r.Pb(),36)).a);s.ai&&!u(m(s,(V(),Ul)),21).Hc((en(),zn))||l&&u(m(l,(V(),Ul)),21).Hc((en(),Zn))||u(m(s,(V(),Ul)),21).Hc((en(),Wn)))&&(v=g,p+=h+r,h=0),a=s.c,u(m(s,(V(),Ul)),21).Hc((en(),zn))&&(v=c+r),K4(s,v+a.a,p+a.b),c=y.Math.max(c,v+d.a),u(m(s,Ul),21).Hc(ae)&&(g=y.Math.max(g,v+d.a+r)),wf(a),h=y.Math.max(h,d.b),v+=d.a+r,l=s;t.f.a=c,t.f.b=p+h},o.Jf=function(e,t){},w(Xf,"ModelOrderRowGraphPlacer",1313),b(1311,1,Ne,awn),o.Ne=function(e,t){return function Lme(n,e){var t;return 0==(t=e.p-n.p)?at(n.f.a*n.f.b,e.f.a*e.f.b):t}(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Xf,"SimpleRowGraphPlacer/1",1311),b(1280,1,Eh,dwn),o.Lb=function(e){var t;return!!(t=u(m(u(e,249).b,(cn(),Nr)),75))&&0!=t.b},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return!!(t=u(m(u(e,249).b,(cn(),Nr)),75))&&0!=t.b},w(PS,"CompoundGraphPostprocessor/1",1280),b(1279,1,gt,Jyn),o.Kf=function(e,t){MRn(this,u(e,36),t)},w(PS,"CompoundGraphPreprocessor",1279),b(453,1,{453:1},wBn),o.c=!1,w(PS,"CompoundGraphPreprocessor/ExternalPort",453),b(249,1,{249:1},lM),o.Ib=function(){return YD(this.c)+":"+J_n(this.b)},w(PS,"CrossHierarchyEdge",249),b(777,1,Ne,ez),o.Ne=function(e,t){return function D7e(n,e,t){var i,r;return e.c==(wr(),nu)&&t.c==Vu?-1:e.c==Vu&&t.c==nu?1:(i=Gxn(e.a,n.a),r=Gxn(t.a,n.a),e.c==nu?r-i:i-r)}(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(PS,"CrossHierarchyEdgeComparator",777),b(305,137,{3:1,305:1,96:1,137:1}),o.p=0,w(Hc,"LGraphElement",305),b(18,305,{3:1,18:1,305:1,96:1,137:1},B0),o.Ib=function(){return J_n(this)};var eH=w(Hc,"LEdge",18);b(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},GQ),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new C(this.b)},o.Ib=function(){return 0==this.b.c.length?"G-unlayered"+pa(this.a):0==this.a.c.length?"G-layered"+pa(this.b):"G[layerless"+pa(this.a)+", layers"+pa(this.b)+"]"};var RZn,BZn=w(Hc,"LGraph",36);b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return m(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return vt(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e},w(Hc,"LGraphAdapters/AbstractLShapeAdapter",666),b(474,1,{853:1},s6),o.Rf=function(){var e,t;if(!this.b)for(this.b=Kh(this.a.b.c.length),t=new C(this.a.b);t.a0&&zxn((Gn(t-1,e.length),e.charCodeAt(t-1)),")]}\"' \t\r\n");)--t;if(s> ",e),IA(i)),Re(Fc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var csn,iH,usn,rH,osn,ssn,HZn,qZn,_Zn=w(Hc,"LPort",12);b(408,1,Qh,d3),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new U9n(new C(this.a.e))},w(Hc,"LPort/1",408),b(1309,1,Ti,U9n),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return rc(this.a)},o.Qb=function(){r5(this.a)},w(Hc,"LPort/1/1",1309),b(369,1,Qh,vv),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new tz(new C(this.a.g))},w(Hc,"LPort/2",369),b(776,1,Ti,tz),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return rc(this.a)},o.Qb=function(){r5(this.a)},w(Hc,"LPort/2/1",776),b(1302,1,Qh,DCn),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new xf(this)},w(Hc,"LPort/CombineIter",1302),b(208,1,Ti,xf),o.Nb=function(e){Ri(this,e)},o.Qb=function(){lEn()},o.Ob=function(){return X6(this)},o.Pb=function(){return rc(this.a)?E(this.a):E(this.b)},w(Hc,"LPort/CombineIter/1",208),b(1303,1,Eh,wwn),o.Lb=function(e){return LPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),0!=u(e,12).g.c.length},w(Hc,"LPort/lambda$0$Type",1303),b(1304,1,Eh,gwn),o.Lb=function(e){return DPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),0!=u(e,12).e.c.length},w(Hc,"LPort/lambda$1$Type",1304),b(1305,1,Eh,vwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),zn)},w(Hc,"LPort/lambda$2$Type",1305),b(1306,1,Eh,pwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),Zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),Zn)},w(Hc,"LPort/lambda$3$Type",1306),b(1307,1,Eh,mwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),ae)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),ae)},w(Hc,"LPort/lambda$4$Type",1307),b(1308,1,Eh,kwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),Wn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),Wn)},w(Hc,"LPort/lambda$5$Type",1308),b(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},xc),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new C(this.a)},o.Ib=function(){return"L_"+Hr(this.b.b,this,0)+pa(this.a)},w(Hc,"Layer",30),b(1330,1,{},Vyn),w(S1,KXn,1330),b(1334,1,{},ywn),o.Kb=function(e){return Ur(u(e,84))},w(S1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),b(1337,1,{},jwn),o.Kb=function(e){return Ur(u(e,84))},w(S1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),b(1331,1,re,G9n),o.Cd=function(e){dHn(this.a,u(e,123))},w(S1,bin,1331),b(1332,1,re,z9n),o.Cd=function(e){dHn(this.a,u(e,123))},w(S1,_Xn,1332),b(1333,1,{},Ewn),o.Kb=function(e){return new Mn(null,new Pn(aJ(u(e,74)),16))},w(S1,HXn,1333),b(1335,1,Le,X9n),o.Mb=function(e){return function Fle(n,e){return dw(e,Df(n))}(this.a,u(e,27))},w(S1,qXn,1335),b(1336,1,{},Cwn),o.Kb=function(e){return new Mn(null,new Pn(function Zwe(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}(u(e,74)),16))},w(S1,"ElkGraphImporter/lambda$5$Type",1336),b(1338,1,Le,W9n),o.Mb=function(e){return function xle(n,e){return dw(e,Df(n))}(this.a,u(e,27))},w(S1,"ElkGraphImporter/lambda$7$Type",1338),b(1339,1,Le,Mwn),o.Mb=function(e){return function dge(n){return tb(n)&&on(un(z(n,(cn(),Vd))))}(u(e,74))},w(S1,"ElkGraphImporter/lambda$8$Type",1339),b(1297,1,{},_5n),w(S1,"ElkGraphLayoutTransferrer",1297),b(1298,1,Le,V9n),o.Mb=function(e){return function Mae(n,e){return E7(),!f4(e.d.i,n)}(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),b(1299,1,re,J9n),o.Cd=function(e){E7(),nn(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),b(1300,1,Le,Q9n),o.Mb=function(e){return function hae(n,e){return E7(),f4(e.d.i,n)}(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),b(1301,1,re,Y9n),o.Cd=function(e){E7(),nn(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),b(819,1,{},HW),w(Qn,"BiLinkedHashMultiMap",819),b(1550,1,gt,Twn),o.Kf=function(e,t){!function Y4e(n,e){e.Ug(UXn,1),_t(uc(new Mn(null,new Pn(n.b,16)),new Awn),new Swn),e.Vg()}(u(e,36),t)},w(Qn,"CommentNodeMarginCalculator",1550),b(1551,1,{},Awn),o.Kb=function(e){return new Mn(null,new Pn(u(e,30).a,16))},w(Qn,"CommentNodeMarginCalculator/lambda$0$Type",1551),b(1552,1,re,Swn),o.Cd=function(e){!function YPe(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(f=n.d,d=u(m(n,(V(),qp)),15),e=u(m(n,Bp),15),d||e){if(c=F(R(mw(n,(cn(),eq)))),s=F(R(mw(n,Bhn))),g=0,d){for(l=0,r=d.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),g+=i.o.a;g+=c*(d.gc()-1),f.d+=l+s}if(t=0,e){for(l=0,r=e.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),t+=i.o.a;t+=c*(e.gc()-1),f.a+=l+s}(h=y.Math.max(g,t))>n.o.a&&(f.b=y.Math.max(f.b,a=(h-n.o.a)/2),f.c=y.Math.max(f.c,a))}}(u(e,10))},w(Qn,"CommentNodeMarginCalculator/lambda$1$Type",1552),b(1553,1,gt,Pwn),o.Kf=function(e,t){!function tAe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Comment post-processing",1),c=new C(n.b);c.a0&&gUn((Ln(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&gUn(u(sn(t,t.c.length-1),30),n),e.Vg()}(u(e,36),t)},w(Qn,"HierarchicalPortPositionProcessor",1582),b(1583,1,gt,H5n),o.Kf=function(e,t){!function cDe(n,e){var t,i,r,c,s,f,h,l,a,g,v,k,j,A,I,O,$,X,tn,jn,kn,Bn;for(n.b=e,n.a=u(m(e,(cn(),phn)),17).a,n.c=u(m(e,khn),17).a,0==n.c&&(n.c=nt),j=new Ni(e.b,0);j.b=n.a&&(i=RPe(n,I),a=y.Math.max(a,i.b),$=y.Math.max($,i.d),nn(f,new ai(I,i)));for(jn=new Z,l=0;l0),j.a.Xb(j.c=--j.b),nw(j,kn=new xc(n.b)),oe(j.b=2){for(k=!0,t=u(E(g=new C(c.j)),12),v=null;g.a0)}(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$2$Type",1643),b(1644,1,re,Vgn),o.Cd=function(e){!function Jme(n){var e;cb(n,!0),e=T1,vt(n,(cn(),Bm))&&(e+=u(m(n,Bm),17).a),U(n,Bm,Y(e))}(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$3$Type",1644),b(1645,1,gt,Q5n),o.Kf=function(e,t){!function SSe(n,e){var i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(m(n,(cn(),Fhn)),430),i=new C(n.b);i.ae.d.c){if((v=n.c[e.a.d])==(j=n.c[d.a.d]))continue;Vs(Rs(Bs(Ks(xs(new ws,1),100),v),j))}}}(this),function UMe(n){var e,t,i,r,c,s,f;for(c=new yt,r=new C(n.d.a);r.a1)for(e=M0((t=new od,++n.b,t),n.d),f=ge(c,0);f.b!=f.d.c;)s=u(be(f),125),Vs(Rs(Bs(Ks(xs(new ws,1),0),e),s))}(this),Zx(sN(this.d),new yv),c=new C(this.a.a.b);c.a=j&&(nn(s,Y(d)),O=y.Math.max(O,$[d-1]-g),h+=k,A+=$[d-1]-A,g=$[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}(p=y.Math.min(1/O,1/t.b/h))>r&&(r=p,i=s)}return i},o.pg=function(){return!1},w(Ah,"MSDCutIndexHeuristic",816),b(1683,1,gt,qvn),o.Kf=function(e,t){DPe(u(e,36),t)},w(Ah,"SingleEdgeGraphWrapper",1683),b(232,22,{3:1,34:1,22:1,232:1},I6);var O2,Mm,Tm,Vw,Q8,L2,wne,Am=we(Ic,"CenterEdgeLabelPlacementStrategy",232,ke,function p3e(){return ap(),S(T(Am,1),G,232,0,[Tm,Q8,Mm,Vw,L2,O2])},function kde(n){return ap(),Ee(($$n(),wne),n)});b(431,22,{3:1,34:1,22:1,431:1},pX);var Xsn,kH,gne,Wsn=we(Ic,"ConstraintCalculationStrategy",431,ke,function Bge(){return gT(),S(T(Wsn,1),G,431,0,[Xsn,kH])},function yde(n){return gT(),Ee((sDn(),gne),n)});b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},lD),o.dg=function(){return q_n(this)},o.qg=function(){return q_n(this)};var Dj,Y8,Vsn,vne,Jsn=we(Ic,"CrossingMinimizationStrategy",322,ke,function L2e(){return k5(),S(T(Jsn,1),G,322,0,[Y8,Dj,Vsn])},function jde(n){return k5(),Ee((UDn(),vne),n)});b(351,22,{3:1,34:1,22:1,351:1},aD);var Qsn,yH,dI,pne,Ysn=we(Ic,"CuttingStrategy",351,ke,function D2e(){return DT(),S(T(Ysn,1),G,351,0,[Qsn,dI,yH])},function Ede(n){return DT(),Ee((GDn(),pne),n)});b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},A7),o.dg=function(){return DHn(this)},o.qg=function(){return DHn(this)};var Zsn,jH,Sm,EH,Pm,mne,nfn=we(Ic,"CycleBreakingStrategy",348,ke,function Fpe(){return k1(),S(T(nfn,1),G,348,0,[jH,Zsn,EH,Pm,Sm])},function Cde(n){return k1(),Ee((l$n(),mne),n)});b(428,22,{3:1,34:1,22:1,428:1},mX);var bI,efn,kne,tfn=we(Ic,"DirectionCongruency",428,ke,function xge(){return Dk(),S(T(tfn,1),G,428,0,[bI,efn])},function Mde(n){return Dk(),Ee((rDn(),kne),n)});b(460,22,{3:1,34:1,22:1,460:1},dD);var Im,CH,D2,jne,yne=we(Ic,"EdgeConstraint",460,ke,function N2e(){return Md(),S(T(yne,1),G,460,0,[CH,Im,D2])},function Lde(n){return Md(),Ee((XDn(),jne),n)});b(283,22,{3:1,34:1,22:1,283:1},O6);var MH,TH,AH,SH,wI,PH,Ene,ifn=we(Ic,"EdgeLabelSideSelection",283,ke,function w3e(){return BA(),S(T(ifn,1),G,283,0,[TH,MH,SH,AH,PH,wI])},function Dde(n){return BA(),Ee((F$n(),Ene),n)});b(488,22,{3:1,34:1,22:1,488:1},kX);var gI,rfn,Cne,cfn=we(Ic,"EdgeStraighteningStrategy",488,ke,function Gge(){return Tk(),S(T(cfn,1),G,488,0,[rfn,gI])},function Nde(n){return Tk(),Ee((cDn(),Cne),n)});b(281,22,{3:1,34:1,22:1,281:1},L6);var IH,ufn,ofn,vI,sfn,ffn,Mne,hfn=we(Ic,"FixedAlignment",281,ke,function g3e(){return ay(),S(T(hfn,1),G,281,0,[vI,ofn,ffn,ufn,sfn,IH])},function Ode(n){return ay(),Ee((x$n(),Mne),n)});b(282,22,{3:1,34:1,22:1,282:1},D6);var lfn,afn,dfn,bfn,Z8,wfn,Tne,gfn=we(Ic,"GraphCompactionStrategy",282,ke,function v3e(){return N4(),S(T(gfn,1),G,282,0,[Z8,afn,wfn,bfn,dfn,lfn])},function Tde(n){return N4(),Ee((B$n(),Tne),n)});b(259,22,{3:1,34:1,22:1,259:1},Xb);var Om,pI,Lm,fs,n9,mI,Dm,N2,kI,e9,Ane,OH=we(Ic,"GraphProperties",259,ke,function eme(){return gr(),S(T(OH,1),G,259,0,[pI,fs,n9,mI,Dm,N2,e9,Om,Lm,kI])},function Ade(n){return gr(),Ee((wxn(),Ane),n)});b(299,22,{3:1,34:1,22:1,299:1},bD);var Nj,LH,DH,Sne,NH=we(Ic,"GreedySwitchType",299,ke,function $2e(){return l4(),S(T(NH,1),G,299,0,[LH,DH,Nj])},function Sde(n){return l4(),Ee((WDn(),Sne),n)});b(311,22,{3:1,34:1,22:1,311:1},wD);var xp,$j,$2,Ine,Pne=we(Ic,"InLayerConstraint",311,ke,function F2e(){return Pl(),S(T(Pne,1),G,311,0,[$j,$2,xp])},function Pde(n){return Pl(),Ee((VDn(),Ine),n)});b(429,22,{3:1,34:1,22:1,429:1},yX);var $H,vfn,One,mfn,Bp,jb,yI,kfn,yfn,jI,jfn,Fj,EI,t9,Rp,Ul,FH,CI,mc,Efn,Da,zc,xH,BH,xj,zd,Eb,Kp,Cfn,_p,Bj,Jw,Af,Ss,RH,F2,lt,ot,Mfn,Tfn,Afn,Sfn,Pfn,KH,MI,Wu,Cb,_H,Hp,i9,Qf,x2,Mb,B2,R2,Nm,Xd,Ifn,HH,qH,qp,pfn=we(Ic,"InteractiveReferencePoint",429,ke,function Fge(){return cT(),S(T(pfn,1),G,429,0,[$H,vfn])},function Ide(n){return cT(),Ee((iDn(),One),n)});b(171,22,{3:1,34:1,22:1,171:1},S7);var r9,Na,c9,Qw,Rj,Lne,Dne,Nne,$ne,Lfn,Fne,Dfn,xne,Nfn,Bne,Rne,Kne,$fn,_ne,Hne,qne,Ffn,Une,Gne,zne,xfn,Xne,Wne,Vne,Bfn,Jne,Qne,Yne,Zne,nee,eee,tee,iee,ree,cee,Rfn,uee,Kfn,oee,_fn,see,Hfn,fee,qfn,hee,lee,aee,Ufn,dee,Gfn,bee,zfn,wee,gee,vee,pee,mee,kee,yee,jee,Eee,Cee,Xfn,Mee,Tee,Aee,See,Pee,Iee,Wfn,Oee,Lee,Dee,Nee,$ee,Fee,xee,Vfn,Bee,Jfn,Ree,Kee,_ee,Qfn,Hee,qee,Yfn,Uee,Gee,zee,Xee,Wee,Vee,Jee,Qee,Zfn,Yee,Zee,nte,nhn,ete,ehn,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,ate,dte,bte,wte,gte,vte,pte,mte,thn,kte,yte,ihn,jte,Ete,Cte,Mte,Tte,Ate,Ste,Pte,Ite,rhn,Ote,Lte,Dte,Nte,chn,$te,Fte,Lh,UH,TI,u9,AI,uhn,SI,Yw,PI,ohn,shn,II,GH,ul,zH,Tb,fhn,Kj,XH,hhn,xte,Bte,Rte,OI,WH,o9,Wd,Kte,$o,lhn,ahn,LI,VH,Dh,DI,Gl,dhn,bhn,whn,JH,QH,ghn,O1,YH,vhn,Zw,phn,mhn,khn,NI,ng,Vd,yhn,jhn,Nr,Ehn,_te,hu,$I,Chn,Mhn,Thn,$a,Jd,FI,Ahn,Shn,xI,Ab,Phn,ZH,s9,Ihn,Sb,f9,BI,Qd,nq,$m,RI,Yd,Ohn,Lhn,Dhn,Fm,Nhn,Hte,qte,Ute,Gte,Pb,eg,Kt,L1,zte,tg,$hn,xm,Fhn,ig,Xte,Bm,xhn,Up,Wte,Vte,_j,eq,Bhn,Hj,ef,K2,_2,Ib,Zd,KI,rg,tq,Rm,Km,Ob,H2,iq,qj,h9,l9,Jte,Qte,Yte,Rhn,Zte,rq,Khn,_hn,Hhn,qhn,cq,Uhn,Ghn,zhn,Xhn,uq,_I,nie,HI,eie,Ofn=we(Ic,"LayerConstraint",171,ke,function Bpe(){return ts(),S(T(Ofn,1),G,171,0,[Rj,r9,Na,c9,Qw])},function $de(n){return ts(),Ee((d$n(),Lne),n)});b(859,1,Es,r8n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Pin),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),_fn),(C1(),Tt)),tfn),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Iin),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Kn(),!1)),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,IS),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Xfn),Tt),pfn),yn(Fn)))),ti(e,IS,DR,Tee),ti(e,IS,C8,Mee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Oin),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Lin),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),mi),qt),yn(Fn)))),mn(e,new ln(function Ahe(n,e){return n.f=e,n}(vn(gn(pn(An(an(wn(dn(bn(new hn,Din),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),mi),qt),yn(e0)),S(T(fn,1),J,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Nin),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),ehn),Tt),hln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,$in),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Y(7)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Fin),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,xin),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,DR),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Kfn),Tt),nfn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,rj),iK),"Node Layering Strategy"),"Strategy for node layering."),Jfn),Tt),Yhn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Bin),iK),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Wfn),Tt),Ofn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Rin),iK),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Kin),iK),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,NR),nWn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Y(4)),Zr),qi),yn(Fn)))),ti(e,NR,rj,Dee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,$R),nWn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Y(2)),Zr),qi),yn(Fn)))),ti(e,$R,rj,$ee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,FR),eWn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Vfn),Tt),oln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,xR),eWn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Y(0)),Zr),qi),yn(Fn)))),ti(e,xR,FR,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,BR),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Y(nt)),Zr),qi),yn(Fn)))),ti(e,BR,rj,See),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,C8),om),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Rfn),Tt),Jsn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_in),om),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,RR),om),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Ji),ui),yn(Fn)))),ti(e,RR,qS,Yne),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,KR),om),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),mi),qt),yn(Fn)))),ti(e,KR,C8,ree),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Hin),om),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),J2),fn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,qin),om),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),J2),fn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Uin),om),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Gin),om),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zin),tWn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Y(40)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_R),tWn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Bfn),Tt),NH),yn(Fn)))),ti(e,_R,C8,Jne),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,OS),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),xfn),Tt),NH),yn(Fn)))),ti(e,OS,C8,Xne),ti(e,OS,qS,Wne),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,k2),iWn),"Node Placement Strategy"),"Strategy for node placement."),nhn),Tt),tln),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,LS),iWn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),mi),qt),yn(Fn)))),ti(e,LS,k2,zee),ti(e,LS,k2,Xee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,HR),rWn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Qfn),Tt),cfn),yn(Fn)))),ti(e,HR,k2,Hee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,qR),rWn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Yfn),Tt),hfn),yn(Fn)))),ti(e,qR,k2,Uee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,UR),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Ji),ui),yn(Fn)))),ti(e,UR,k2,Vee),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,GR),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Tt),lq),yn(wi)))),ti(e,GR,k2,Zee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zR),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Zfn),Tt),lq),yn(Fn)))),ti(e,zR,k2,Yee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Xin),cWn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Ufn),Tt),dln),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Win),cWn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Gfn),Tt),bln),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,DS),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),zfn),Tt),gln),yn(Fn)))),ti(e,DS,cj,wee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,NS),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Ji),ui),yn(Fn)))),ti(e,NS,cj,vee),ti(e,NS,DS,pee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,XR),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Ji),ui),yn(Fn)))),ti(e,XR,cj,lee),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Vin),Wf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Jin),Wf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Qin),Wf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Yin),Wf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Zin),frn),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,nrn),frn),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ern),frn),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,WR),hrn),jXn),"Tries to further compact components (disconnected sub-graphs)."),!1),mi),qt),yn(Fn)))),ti(e,WR,m8,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,trn),uWn),"Post Compaction Strategy"),oWn),Dfn),Tt),gfn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,irn),uWn),"Post Compaction Constraint Calculation"),oWn),Lfn),Tt),Wsn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,$S),lrn),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,VR),lrn),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Y(16)),Zr),qi),yn(Fn)))),ti(e,VR,$S,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,JR),lrn),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Y(5)),Zr),qi),yn(Fn)))),ti(e,JR,$S,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_l),arn),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),rhn),Tt),kln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,FS),arn),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Ji),ui),yn(Fn)))),ti(e,FS,_l,ate),ti(e,FS,_l,dte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,xS),arn),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Ji),ui),yn(Fn)))),ti(e,xS,_l,wte),ti(e,xS,_l,gte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,M8),sWn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),ihn),Tt),Ysn),yn(Fn)))),ti(e,M8,_l,jte),ti(e,M8,_l,Ete),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,QR),sWn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Zf),ss),yn(Fn)))),ti(e,QR,M8,pte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,YR),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),thn),Zr),qi),yn(Fn)))),ti(e,YR,M8,kte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,BS),fWn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),chn),Tt),mln),yn(Fn)))),ti(e,BS,_l,$te),ti(e,BS,_l,Fte),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,RS),fWn),"Valid Indices for Wrapping"),null),Zf),ss),yn(Fn)))),ti(e,RS,_l,Lte),ti(e,RS,_l,Dte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,KS),drn),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),mi),qt),yn(Fn)))),ti(e,KS,_l,Ate),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_S),drn),"Distance Penalty When Improving Cuts"),null),2),Ji),ui),yn(Fn)))),ti(e,_S,_l,Mte),ti(e,_S,KS,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ZR),drn),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),mi),qt),yn(Fn)))),ti(e,ZR,_l,Pte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,rrn),rK),"Edge Label Side Selection"),"Method to decide on edge label sides."),qfn),Tt),ifn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,crn),rK),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Hfn),Tt),Am),pt(Fn,S(T(ol,1),G,170,0,[F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,HS),T8),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),Ffn),Tt),fln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,urn),T8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,orn),T8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,nK),T8),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),Nfn),Tt),tsn),yn(Fn)))),ti(e,nK,m8,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,srn),T8),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),$fn),Tt),nln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,eK),T8),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Ji),ui),yn(Fn)))),ti(e,eK,HS,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,tK),T8),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Ji),ui),yn(Fn)))),ti(e,tK,HS,null),Azn((new c8n,e))},w(Ic,"LayeredMetaDataProvider",859),b(998,1,Es,c8n),o.hf=function(e){Azn(e)},w(Ic,"LayeredOptions",998),b(999,1,{},Uvn),o.sf=function(){return new Xyn},o.tf=function(e){},w(Ic,"LayeredOptions/LayeredFactory",999),b(1391,1,{}),o.a=0,w(gc,"ElkSpacings/AbstractSpacingsBuilder",1391),b(792,1391,{},wZ),w(Ic,"LayeredSpacings/LayeredSpacingsBuilder",792),b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},Sg),o.dg=function(){return Hqn(this)},o.qg=function(){return Hqn(this)};var _m,oq,Hm,Whn,Vhn,Jhn,qI,sq,Qhn,tie,Yhn=we(Ic,"LayeringStrategy",265,ke,function O4e(){return M1(),S(T(Yhn,1),G,265,0,[sq,Vhn,Jhn,oq,Whn,Qhn,qI,_m,Hm])},function Fde(n){return M1(),Ee((JFn(),tie),n)});b(390,22,{3:1,34:1,22:1,390:1},gD);var fq,Zhn,UI,iie,nln=we(Ic,"LongEdgeOrderingStrategy",390,ke,function x2e(){return I5(),S(T(nln,1),G,390,0,[fq,Zhn,UI])},function xde(n){return I5(),Ee((JDn(),iie),n)});b(203,22,{3:1,34:1,22:1,203:1},NC);var q2,U2,GI,hq,rie,lq=we(Ic,"NodeFlexibility",203,ke,function zve(){return kw(),S(T(lq,1),G,203,0,[GI,hq,U2,q2])},function Bde(n){return kw(),Ee((DNn(),rie),n)});b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},P7),o.dg=function(){return LHn(this)},o.qg=function(){return LHn(this)};var a9,aq,dq,d9,eln,cie,tln=we(Ic,"NodePlacementStrategy",323,ke,function xpe(){return K5(),S(T(tln,1),G,323,0,[eln,aq,dq,a9,d9])},function Rde(n){return K5(),Ee((a$n(),cie),n)});b(243,22,{3:1,34:1,22:1,243:1},Wb);var iln,Lb,cg,Uj,rln,cln,Gj,uln,zI,XI,uie,oln=we(Ic,"NodePromotionStrategy",243,ke,function tme(){return js(),S(T(oln,1),G,243,0,[zI,Uj,Gj,rln,cln,iln,uln,XI,Lb,cg])},function Kde(n){return js(),Ee((gxn(),uie),n)});b(284,22,{3:1,34:1,22:1,284:1},$C);var sln,D1,bq,wq,oie,fln=we(Ic,"OrderingStrategy",284,ke,function Xve(){return vh(),S(T(fln,1),G,284,0,[D1,sln,bq,wq])},function _de(n){return vh(),Ee((NNn(),oie),n)});b(430,22,{3:1,34:1,22:1,430:1},jX);var gq,vq,sie,hln=we(Ic,"PortSortingStrategy",430,ke,function Rge(){return Ok(),S(T(hln,1),G,430,0,[gq,vq])},function Hde(n){return Ok(),Ee((uDn(),sie),n)});b(463,22,{3:1,34:1,22:1,463:1},vD);var Vu,nu,b9,hie,fie=we(Ic,"PortType",463,ke,function B2e(){return wr(),S(T(fie,1),G,463,0,[b9,Vu,nu])},function qde(n){return wr(),Ee((ZDn(),hie),n)});b(387,22,{3:1,34:1,22:1,387:1},pD);var lln,pq,aln,lie,dln=we(Ic,"SelfLoopDistributionStrategy",387,ke,function R2e(){return XT(),S(T(dln,1),G,387,0,[lln,pq,aln])},function Ude(n){return XT(),Ee((QDn(),lie),n)});b(349,22,{3:1,34:1,22:1,349:1},mD);var mq,zj,kq,aie,bln=we(Ic,"SelfLoopOrderingStrategy",349,ke,function K2e(){return A5(),S(T(bln,1),G,349,0,[kq,mq,zj])},function Gde(n){return A5(),Ee((YDn(),aie),n)});b(312,1,{312:1},CGn),w(Ic,"Spacings",312),b(350,22,{3:1,34:1,22:1,350:1},kD);var yq,wln,w9,die,gln=we(Ic,"SplineRoutingMode",350,ke,function _2e(){return m4(),S(T(gln,1),G,350,0,[yq,wln,w9])},function zde(n){return m4(),Ee((nNn(),die),n)});b(352,22,{3:1,34:1,22:1,352:1},yD);var jq,vln,pln,bie,mln=we(Ic,"ValidifyStrategy",352,ke,function H2e(){return LT(),S(T(mln,1),G,352,0,[pln,jq,vln])},function Xde(n){return LT(),Ee((eNn(),bie),n)});b(388,22,{3:1,34:1,22:1,388:1},jD);var ug,Eq,qm,wie,gie,vie,pie,mie,kie,yie,jie,Eie,Cie,yln,jln,Mie,kln=we(Ic,"WrappingStrategy",388,ke,function q2e(){return QT(),S(T(kln,1),G,388,0,[Eq,qm,ug])},function Wde(n){return QT(),Ee((tNn(),wie),n)});b(1398,1,pr,J5n),o.rg=function(e){return u(e,36),gie},o.Kf=function(e,t){!function TIe(n,e,t){var r,c,s,h,l,a,d,v;for(t.Ug("Depth-first cycle removal",1),a=(d=e.a).c.length,n.c=new Z,n.d=K(fo,el,28,a,16,1),n.a=K(fo,el,28,a,16,1),n.b=new Z,s=0,l=new C(d);l.a0?te+1:1);for(s=new C(X.g);s.a0?te+1:1)}0==n.c[l]?xe(n.e,k):0==n.a[l]&&xe(n.f,k),++l}for(p=-1,v=1,d=new Z,n.d=u(m(e,(V(),Hp)),234);Ko>0;){for(;0!=n.e.b;)It=u(bN(n.e),10),n.b[It.p]=p--,Zen(n,It),--Ko;for(;0!=n.f.b;)Zu=u(bN(n.f),10),n.b[Zu.p]=v++,Zen(n,Zu),--Ko;if(Ko>0){for(g=Xi,I=new C(O);I.a=g&&($>g&&(d.c.length=0,g=$),Rn(d.c,k));a=n.sg(d),n.b[a.p]=v++,Zen(n,a),--Ko}}for(Fe=O.c.length+1,l=0;ln.b[(i=r[c]).d.i.p]&&(cb(i,!0),U(e,Fj,(Kn(),!0)));n.a=null,n.c=null,n.b=null,jo(n.f),jo(n.e),t.Vg()}(this,u(e,36),t)},o.sg=function(e){return u(sn(e,CA(this.d,e.c.length)),10)},w(XS,"GreedyCycleBreaker",793),b(1401,793,pr,qMn),o.sg=function(e){var t,i,r,c;for(c=null,t=nt,r=new C(e);r.a0&&v_n(n,f,d);for(r=new C(d);r.a0){for(O=ge(n.f,0);O.b!=O.d.c;)u(be(O),10).p+=g-n.e;_nn(n),jo(n.f),Fen(n,i,v)}else{for(xe(n.f,v),v.p=i,n.e=y.Math.max(n.e,i),c=new ie(ce(ki(v).a.Kc(),new Vn));ve(c);)!(r=u(fe(c),18)).c.i.c&&r.c.i.k==(Xn(),Oc)&&(xe(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else _nn(n),jo(n.f),i=0,ve(new ie(ce(ki(v).a.Kc(),new Vn)))?Fen(n,i=(g=yRn(g=0,v))+2,v):(xe(n.f,v),v.p=0,n.e=y.Math.max(n.e,0),n.b=u(sn(n.d.b,0),30),n.c=0);for(0==n.f.b||_nn(n),n.d.a.c.length=0,A=new Z,l=new C(n.d.b);l.a=f){oe(I.b>0),I.a.Xb(I.c=--I.b);break}j.a>h&&(i?(si(i.b,j.b),i.a=y.Math.max(i.a,j.a),vo(I)):(nn(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j))}i||((i=new Qyn).c=h,i.a=f,nw(I,i),nn(i.b,a))}for(s=n.b,l=0,A=new C(t);A.ae.p?-1:0}(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Hl,"StretchWidthLayerer/1",1409),b(413,1,Wrn),o.gg=function(e,t,i,r,c,s){},o.ug=function(e,t,i){return wUn(this,e,t,i)},o.fg=function(){this.g=K(kg,lWn,28,this.d,15,1),this.f=K(kg,lWn,28,this.d,15,1)},o.hg=function(e,t){this.e[e]=K(ye,_e,28,t[e].length,15,1)},o.ig=function(e,t,i){i[e][t].p=t,this.e[e][t]=t},o.jg=function(e,t,i,r){u(sn(r[e][t].j,i),12).p=this.d++},o.b=0,o.c=0,o.d=0,w(xu,"AbstractBarycenterPortDistributor",413),b(1698,1,Ne,x7n),o.Ne=function(e,t){return function Q8e(n,e,t){var i,r,c,s;return(c=e.j)!=(s=t.j)?c.g-s.g:(r=n.f[t.p],0==(i=n.f[e.p])&&0==r?0:0==i?-1:0==r?1:at(i,r))}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(xu,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),b(832,1,ij,KJ),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.jg=function(e,t,i,r){},o.eg=function(){return!1},o.fg=function(){this.c=this.e.a,this.g=this.f.g},o.hg=function(e,t){t[e][0].c.p=e},o.kg=function(){return!1},o.vg=function(e,t,i,r){i?pKn(this,e):(jKn(this,e,r),xGn(this,e,t)),e.c.length>1&&(on(un(m(Ki((Ln(0,e.c.length),u(e.c[0],10))),(cn(),Tb))))?GHn(e,this.d,u(this,669)):(On(),Jt(e,this.d)),zFn(this.e,e))},o.lg=function(e,t,i,r){var f,h,l,a,d;for(t!=fPn(i,e.length)&&hQ(this.f,e[t-(i?1:-1)],i?(wr(),nu):(wr(),Vu)),d=!r||e[t][0].k==(Xn(),Qt),a=Ff(e[t]),this.vg(a,d,!1,i),f=0,l=new C(a);l.a"),e0?t$(this.a,e[t-1],e[t]):!i&&t0&&(t+=h.n.a+h.o.a/2,++d),p=new C(h.j);p.a0&&(t/=d),A=K(Ai,Mr,28,i.a.c.length,15,1),f=0,l=new C(i.a);l.a1&&(on(un(m(Ki((Ln(0,e.c.length),u(e.c[0],10))),(cn(),Tb))))?GHn(e,this.d,this):(On(),Jt(e,this.d)),on(un(m(Ki((Ln(0,e.c.length),u(e.c[0],10))),Tb)))||zFn(this.e,e))},w(xu,"ModelOrderBarycenterHeuristic",669),b(1866,1,Ne,z7n),o.Ne=function(e,t){return Tje(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(xu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),b(1423,1,pr,o8n),o.rg=function(e){var t;return u(e,36),Ke(t=QC(Die),(zi(),$c),(nr(),tI)),t},o.Kf=function(e,t){!function fge(n){n.Ug("No crossing minimization",1),n.Vg()}((u(e,36),t))},w(xu,"NoCrossingMinimizer",1423),b(809,413,Wrn,Gz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p;switch(g=this.g,i.g){case 1:for(c=0,s=0,d=new C(e.j);d.a1&&(c.j==(en(),Zn)?this.b[e]=!0:c.j==Wn&&e>0&&(this.b[e-1]=!0))},o.f=0,w(tl,"AllCrossingsCounter",1861),b(595,1,{},HT),o.b=0,o.d=0,w(tl,"BinaryIndexedTree",595),b(532,1,{},J7),w(tl,"CrossingsCounter",532),b(1950,1,Ne,X7n),o.Ne=function(e,t){return function $be(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$0$Type",1950),b(1951,1,Ne,W7n),o.Ne=function(e,t){return function Fbe(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$1$Type",1951),b(1952,1,Ne,V7n),o.Ne=function(e,t){return function xbe(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$2$Type",1952),b(1953,1,Ne,J7n),o.Ne=function(e,t){return function Bbe(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$3$Type",1953),b(1954,1,re,Q7n),o.Cd=function(e){!function B3e(n,e){return L3(),nn(n,new ai(e,Y(e.e.c.length+e.g.c.length)))}(this.a,u(e,12))},w(tl,"CrossingsCounter/lambda$4$Type",1954),b(1955,1,Le,Y7n),o.Mb=function(e){return function fle(n,e){return L3(),e!=n}(this.a,u(e,12))},w(tl,"CrossingsCounter/lambda$5$Type",1955),b(1956,1,re,Z7n),o.Cd=function(e){NMn(this,e)},w(tl,"CrossingsCounter/lambda$6$Type",1956),b(1957,1,re,GCn),o.Cd=function(e){var t;L3(),sa(this.b,(t=this.a,u(e,12),t))},w(tl,"CrossingsCounter/lambda$7$Type",1957),b(839,1,Eh,kG),o.Lb=function(e){return L3(),vt(u(e,12),(V(),Wu))},o.Fb=function(e){return this===e},o.Mb=function(e){return L3(),vt(u(e,12),(V(),Wu))},w(tl,"CrossingsCounter/lambda$8$Type",839),b(1949,1,{},nkn),w(tl,"HyperedgeCrossingsCounter",1949),b(478,1,{34:1,478:1},WAn),o.Fd=function(e){return function x8e(n,e){return n.ee.e?1:n.fe.f?1:wt(n)-wt(e)}(this,u(e,478))},o.b=0,o.c=0,o.e=0,o.f=0;var vNe=w(tl,"HyperedgeCrossingsCounter/Hyperedge",478);b(374,1,{34:1,374:1},qM),o.Fd=function(e){return function QCe(n,e){return n.ce.c?1:n.be.b?1:n.a!=e.a?wt(n.a)-wt(e.a):n.d==(b5(),p9)&&e.d==v9?-1:n.d==v9&&e.d==p9?1:0}(this,u(e,374))},o.b=0,o.c=0;var Nie=w(tl,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},EX);var v9,p9,Fie,xie,Bie,JI,QI,$ie=we(tl,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,ke,function Kge(){return b5(),S(T($ie,1),G,531,0,[p9,v9])},function Jde(n){return b5(),Ee((oDn(),Fie),n)});b(1425,1,pr,s8n),o.rg=function(e){return u(m(u(e,36),(V(),zc)),21).Hc((gr(),fs))?xie:null},o.Kf=function(e,t){!function ske(n,e,t){var r;for(t.Ug("Interactive node placement",1),n.a=u(m(e,(V(),B2)),312),r=new C(e.b);r.a1},w(mr,"NetworkSimplexPlacer/lambda$18$Type",1451),b(1452,1,re,AIn),o.Cd=function(e){!function c8e(n,e,t,i,r){Eo(),Vs(Rs(Bs(xs(Ks(new ws,0),r.d.e-n),e),r.d)),Vs(Rs(Bs(xs(Ks(new ws,0),t-r.a.e),r.a),i))}(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0,w(mr,"NetworkSimplexPlacer/lambda$19$Type",1452),b(1435,1,{},lpn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$2$Type",1435),b(1453,1,re,rkn),o.Cd=function(e){!function t1e(n,e){return Eo(),e.n.b+=n}(this.a,u(e,12))},o.a=0,w(mr,"NetworkSimplexPlacer/lambda$20$Type",1453),b(1454,1,{},apn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$21$Type",1454),b(1455,1,re,ckn),o.Cd=function(e){b1e(this.a,u(e,10))},w(mr,"NetworkSimplexPlacer/lambda$22$Type",1455),b(1456,1,Le,dpn),o.Mb=function(e){return LAn(e)},w(mr,"NetworkSimplexPlacer/lambda$23$Type",1456),b(1457,1,{},bpn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$24$Type",1457),b(1458,1,Le,ukn),o.Mb=function(e){return function Ele(n,e){return 2==n.j[e.p]}(this.a,u(e,10))},w(mr,"NetworkSimplexPlacer/lambda$25$Type",1458),b(1459,1,re,WCn),o.Cd=function(e){!function Ije(n,e,t){var i,r,c;for(r=new ie(ce(Nl(t).a.Kc(),new Vn));ve(r);)!or(i=u(fe(r),18))&&(or(i)||i.c.i.c!=i.d.i.c)&&(c=YHn(n,i,t,new tjn)).c.length>1&&Rn(e.c,c)}(this.a,this.b,u(e,10))},w(mr,"NetworkSimplexPlacer/lambda$26$Type",1459),b(1460,1,Le,wpn),o.Mb=function(e){return Eo(),!or(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$27$Type",1460),b(1461,1,Le,gpn),o.Mb=function(e){return Eo(),!or(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$28$Type",1461),b(1462,1,{},okn),o.Ve=function(e,t){return e1e(this.a,u(e,30),u(t,30))},w(mr,"NetworkSimplexPlacer/lambda$29$Type",1462),b(1436,1,{},vpn),o.Kb=function(e){return Eo(),new Mn(null,new L0(new ie(ce(Vt(u(e,10)).a.Kc(),new Vn))))},w(mr,"NetworkSimplexPlacer/lambda$3$Type",1436),b(1437,1,Le,ppn),o.Mb=function(e){return Eo(),function Ove(n){return Eo(),!(or(n)||!or(n)&&n.c.i.c==n.d.i.c)}(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$4$Type",1437),b(1438,1,re,skn),o.Cd=function(e){!function PPe(n,e){var t,i,s,f,h,a,d,g,p;t=M0(new od,n.f),f=(h=e.c).a.b,d=(g=e.d).a.b,n.i[e.c.i.p].b||(f+=h.n.b),n.i[e.d.i.p].b||(d+=g.n.b),a=di(y.Math.max(0,f-d)),s=di(y.Math.max(0,d-f)),p=y.Math.max(1,u(m(e,(cn(),Up)),17).a)*XJ(e.c.i.k,e.d.i.k),i=new zCn(Vs(Rs(Bs(xs(Ks(new ws,p),s),t),u(ee(n.k,e.c),125))),Vs(Rs(Bs(xs(Ks(new ws,p),a),t),u(ee(n.k,e.d),125)))),n.c[e.p]=i}(this.a,u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$5$Type",1438),b(1439,1,{},mpn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$6$Type",1439),b(1440,1,Le,kpn),o.Mb=function(e){return Eo(),u(e,10).k==(Xn(),Ut)},w(mr,"NetworkSimplexPlacer/lambda$7$Type",1440),b(1441,1,{},ypn),o.Kb=function(e){return Eo(),new Mn(null,new L0(new ie(ce(Nl(u(e,10)).a.Kc(),new Vn))))},w(mr,"NetworkSimplexPlacer/lambda$8$Type",1441),b(1442,1,Le,jpn),o.Mb=function(e){return Eo(),function pbe(n){return!or(n)&&n.c.i.c==n.d.i.c}(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$9$Type",1442),b(1424,1,pr,h8n),o.rg=function(e){return u(m(u(e,36),(V(),zc)),21).Hc((gr(),fs))?_ie:null},o.Kf=function(e,t){!function fIe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Simple node placement",1),d=u(m(n,(V(),B2)),312),f=0,c=new C(n.b);c.a0?(v=(p-1)*t,f&&(v+=i),a&&(v+=i),v0&&(O-=v),vtn(s,O),a=0,g=new C(s.a);g.a0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b"+this.b+" ("+function _1e(n){return null!=n.f?n.f:""+n.g}(this.c)+")"},o.d=0,w(Cf,"HyperEdgeSegmentDependency",132),b(528,22,{3:1,34:1,22:1,528:1},TX);var Fa,og,ure,ore,sre,fre,hre,lre,cre=we(Cf,"HyperEdgeSegmentDependency/DependencyType",528,ke,function Uge(){return pf(),S(T(cre,1),G,528,0,[og,Fa])},function Zde(n){return pf(),Ee((dDn(),ure),n)});b(1878,1,{},hkn),w(Cf,"HyperEdgeSegmentSplitter",1878),b(1879,1,{},tEn),o.a=0,o.b=0,w(Cf,"HyperEdgeSegmentSplitter/AreaRating",1879),b(339,1,{339:1},hN),o.a=0,o.b=0,o.c=0,w(Cf,"HyperEdgeSegmentSplitter/FreeArea",339),b(1880,1,Ne,Dpn),o.Ne=function(e,t){return function _ae(n,e){return at(n.c-n.s,e.c-e.s)}(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Cf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),b(1881,1,re,SIn),o.Cd=function(e){wpe(this.a,this.d,this.c,this.b,u(e,118))},o.b=0,w(Cf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),b(1882,1,{},Npn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).e,16))},w(Cf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),b(1883,1,{},$pn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).j,16))},w(Cf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),b(1884,1,{},Fpn),o.Ye=function(e){return F(R(e))},w(Cf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),b(664,1,{},$N),o.a=0,o.b=0,o.c=0,w(Cf,"OrthogonalRoutingGenerator",664),b(1703,1,{},xpn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).e,16))},w(Cf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),b(1704,1,{},Bpn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).j,16))},w(Cf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),b(670,1,{}),w(hK,"BaseRoutingDirectionStrategy",670),b(1870,670,{},cjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j;if(!e.r||e.q)for(d=t+e.o*i,a=new C(e.n);a.aMh&&(c=e,r=new W(g,s=d),xe(f.a,r),rb(this,f,c,r,!1),(v=e.r)&&(r=new W(p=F(R(is(v.e,0))),s),xe(f.a,r),rb(this,f,c,r,!1),c=v,r=new W(p,s=t+v.o*i),xe(f.a,r),rb(this,f,c,r,!1)),r=new W(j,s),xe(f.a,r),rb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),ae},o.Bg=function(){return en(),zn},w(hK,"NorthToSouthRoutingStrategy",1870),b(1871,670,{},ujn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j;if(!e.r||e.q)for(d=t-e.o*i,a=new C(e.n);a.aMh&&(c=e,r=new W(g,s=d),xe(f.a,r),rb(this,f,c,r,!1),(v=e.r)&&(r=new W(p=F(R(is(v.e,0))),s),xe(f.a,r),rb(this,f,c,r,!1),c=v,r=new W(p,s=t-v.o*i),xe(f.a,r),rb(this,f,c,r,!1)),r=new W(j,s),xe(f.a,r),rb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),zn},o.Bg=function(){return en(),ae},w(hK,"SouthToNorthRoutingStrategy",1871),b(1869,670,{},ojn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j;if(!e.r||e.q)for(d=t+e.o*i,a=new C(e.n);a.aMh&&(c=e,r=new W(s=d,g),xe(f.a,r),rb(this,f,c,r,!0),(v=e.r)&&(r=new W(s,p=F(R(is(v.e,0)))),xe(f.a,r),rb(this,f,c,r,!0),c=v,r=new W(s=t+v.o*i,p),xe(f.a,r),rb(this,f,c,r,!0)),r=new W(s,j),xe(f.a,r),rb(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return en(),Zn},o.Bg=function(){return en(),Wn},w(hK,"WestToEastRoutingStrategy",1869),b(828,1,{},htn),o.Ib=function(){return pa(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0,w(xw,"NubSpline",828),b(418,1,{418:1},gqn,uOn),w(xw,"NubSpline/PolarCP",418),b(1480,1,pr,YRn),o.rg=function(e){return function oye(n){var e,t;return So(e=new ei,ore),(t=u(m(n,(V(),zc)),21)).Hc((gr(),e9))&&So(e,lre),t.Hc(Om)&&So(e,sre),t.Hc(N2)&&So(e,hre),t.Hc(Lm)&&So(e,fre),e}(u(e,36))},o.Kf=function(e,t){!function rDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,I,O,$,_,X,tn,jn,kn,Bn,$n,te;if(t.Ug("Spline edge routing",1),0==e.b.c.length)return e.f.a=0,void t.Vg();I=F(R(m(e,(cn(),H2)))),f=F(R(m(e,Zd))),s=F(R(m(e,K2))),jn=u(m(e,QH),350)==(m4(),w9),tn=F(R(m(e,ghn))),n.d=e,n.j.c.length=0,n.a.c.length=0,qu(n.k),a=XC((h=u(sn(e.b,0),30)).a,(JA(),Wj)),d=XC((p=u(sn(e.b,e.b.c.length-1),30)).a,Wj),k=new C(e.b),j=null,te=0;do{for(BLe(n,j,O=k.a0?(l=0,j&&(l+=f),l+=(kn-1)*s,O&&(l+=f),jn&&O&&(l=y.Math.max(l,ETe(O,s,I,tn))),l("+this.c+") "+this.b},o.c=0,w(xw,"SplineEdgeRouter/Dependency",274),b(465,22,{3:1,34:1,22:1,465:1},AX);var xa,G2,dre,are=we(xw,"SplineEdgeRouter/SideToProcess",465,ke,function Jge(){return K0(),S(T(are,1),G,465,0,[xa,G2])},function n0e(n){return K0(),Ee((bDn(),dre),n)});b(1481,1,Le,Rpn),o.Mb=function(e){return e8(),!u(e,131).o},w(xw,"SplineEdgeRouter/lambda$0$Type",1481),b(1482,1,{},Kpn),o.Ze=function(e){return e8(),u(e,131).v+1},w(xw,"SplineEdgeRouter/lambda$1$Type",1482),b(1483,1,re,eMn),o.Cd=function(e){!function jbe(n,e,t){return Xe(n.b,u(t.b,18),e)}(this.a,this.b,u(e,42))},w(xw,"SplineEdgeRouter/lambda$2$Type",1483),b(1484,1,re,tMn),o.Cd=function(e){!function Ebe(n,e,t){return Xe(n.b,u(t.b,18),e)}(this.a,this.b,u(e,42))},w(xw,"SplineEdgeRouter/lambda$3$Type",1484),b(131,1,{34:1,131:1},I_n,gtn),o.Fd=function(e){return function Mhe(n,e){return n.s-e.s}(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0,w(xw,"SplineSegment",131),b(468,1,{468:1},_pn),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0,w(xw,"SplineSegment/EdgeInformation",468),b(1198,1,{},Hpn),w(ql,din,1198),b(1199,1,Ne,qpn),o.Ne=function(e,t){return function qEe(n,e){var t,i,r;return 0==(t=u(m(e,(bc(),tO)),17).a-u(m(n,tO),17).a)?(i=gi(Bi(u(m(n,(bt(),Jj)),8)),u(m(n,Um),8)),r=gi(Bi(u(m(e,Jj),8)),u(m(e,Um),8)),at(i.a*i.b,r.a*r.b)):t}(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ql,TXn,1199),b(1197,1,{},pEn),w(ql,"MrTree",1197),b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},FC),o.dg=function(){return Q_n(this)},o.qg=function(){return Q_n(this)};var YI,m9,k9,y9,bre,Mln=we(ql,"TreeLayoutPhases",405,ke,function Yve(){return lp(),S(T(Mln,1),G,405,0,[YI,m9,k9,y9])},function e0e(n){return lp(),Ee((_Nn(),bre),n)});b(1112,205,Fd,zAn),o.rf=function(e,t){var r,c,s,f,h,l,a;for(on(un(z(e,(bc(),Jln))))||lk(new o6((k0(),new a0(e)))),(f=t.eh(dK)).Ug("build tGraph",1),qr(l=new kk,e),U(l,(bt(),E9),e),function $Se(n,e,t){var i,r,c,s,f;for(c=0,r=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));r.e!=r.i.gc();)s="",0==(!(i=u(ue(r),27)).n&&(i.n=new q(Tr,i,1,7)),i.n).i||(s=u(D((!i.n&&(i.n=new q(Tr,i,1,7)),i.n),0),135).a),qr(f=new dF(c++,e,s),i),U(f,(bt(),E9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),xe(e.b,f),Yc(t.f,i,f)}(e,l,a=new de),function nPe(n,e,t){var i,r,c,s,f,h,l;for(s=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));s.e!=s.i.gc();)for(r=new ie(ce(xl(c=u(ue(s),27)).a.Kc(),new Vn));ve(r);)!Q5(i=u(fe(r),74))&&!Q5(i)&&!tb(i)&&(h=u(Rr(br(t.f,c)),40),l=u(ee(t,Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),40),h&&l&&(U(f=new pJ(h,l),(bt(),E9),i),qr(f,i),xe(h.d,f),xe(l.b,f),xe(e.a,f)))}(e,l,a),h=l,f.Vg(),(f=t.eh(dK)).Ug("Split graph",1),s=_Se(this.a,h),f.Vg(),c=new C(s);c.ad&&($n=0,te+=a+tn,a=0),bUn(_,s,$n,te),e=y.Math.max(e,$n+X.a),a=y.Math.max(a,X.b),$n+=X.a+tn;for($=new de,t=new de,kn=new C(n);kn.a"+vd(e.c):"e_"+wt(e),n.b&&n.c?vd(n.b)+"->"+vd(n.c):"e_"+wt(n))}(this.a,u(e,65))},w(ql,"TreeUtil/lambda$3$Type",1886),b(1887,1,Ne,Upn),o.Ne=function(e,t){return function Hae(n,e){return at(n.b.e.a,e.b.e.a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ql,"TreeUtil/lambda$4$Type",1887),b(1888,1,Le,bkn),o.Mb=function(e){return function F5e(n,e){return Tn(e.b&&e.c?vd(e.b)+"->"+vd(e.c):"e_"+wt(e),n.b&&n.c?vd(n.b)+"->"+vd(n.c):"e_"+wt(n))}(this.a,u(e,65))},w(ql,"TreeUtil/lambda$7$Type",1888),b(1889,1,Ne,Wpn),o.Ne=function(e,t){return function qae(n,e){return at(n.c.e.a,e.c.e.a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ql,"TreeUtil/lambda$8$Type",1889),b(1890,1,{},Vpn),o.Kb=function(e){return u(e,65).b},w(ql,"TreeUtil/lambda$9$Type",1890),b(508,137,{3:1,508:1,96:1,137:1}),o.g=0,w(A8,"TGraphElement",508),b(65,508,{3:1,65:1,508:1,96:1,137:1},pJ),o.Ib=function(){return this.b&&this.c?vd(this.b)+"->"+vd(this.c):"e_"+wt(this)},w(A8,"TEdge",65),b(121,137,{3:1,121:1,96:1,137:1},kk),o.Ib=function(){var e,t,i,r,c;for(c=null,r=ge(this.b,0);r.b!=r.d.c;)c+=(null==(i=u(be(r),40)).c||0==i.c.length?"n_"+i.g:"n_"+i.c)+"\n";for(t=ge(this.a,0);t.b!=t.d.c;)c+=((e=u(be(t),65)).b&&e.c?vd(e.b)+"->"+vd(e.c):"e_"+wt(e))+"\n";return c};var kNe=w(A8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1}),w(A8,"TShape",643),b(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},dF),o.Ib=function(){return vd(this)};var ZI=w(A8,"TNode",40);b(236,1,Qh,pl),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new Eg(ge(this.a.d,0))},w(A8,"TNode/2",236),b(329,1,Ti,Eg),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(be(this.a),65).c},o.Ob=function(){return w7(this.a)},o.Qb=function(){_$(this.a)},w(A8,"TNode/2/1",329),b(1923,1,gt,Jpn),o.Kf=function(e,t){NDe(this,u(e,121),t)},w(qc,"CompactionProcessor",1923),b(1924,1,Ne,wkn),o.Ne=function(e,t){return function yme(n,e,t){return at(Dv(P4(n),new W(e.e.a,e.e.b)),Dv(P4(n),new W(t.e.a,t.e.b)))}(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$0$Type",1924),b(1925,1,Le,rMn),o.Mb=function(e){return function Age(n,e,t){return F(R(t.a))<=n&&F(R(t.b))>=e}(this.b,this.a,u(e,42))},o.a=0,o.b=0,w(qc,"CompactionProcessor/lambda$1$Type",1925),b(1934,1,Ne,Qpn),o.Ne=function(e,t){return function pwe(n,e){return at(n.e.a+n.f.a,e.e.a+e.f.a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$10$Type",1934),b(1935,1,Ne,Ypn),o.Ne=function(e,t){return function L1e(n,e){return at(n.e.b,e.e.b)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$11$Type",1935),b(1936,1,Ne,Zpn),o.Ne=function(e,t){return function mwe(n,e){return at(n.e.b+n.f.b,e.e.b+e.f.b)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$12$Type",1936),b(1926,1,Le,gkn),o.Mb=function(e){return function w1e(n,e){return F(R(e.a))<=n}(this.a,u(e,42))},o.a=0,w(qc,"CompactionProcessor/lambda$2$Type",1926),b(1927,1,Le,vkn),o.Mb=function(e){return function g1e(n,e){return F(R(e.a))>=n}(this.a,u(e,42))},o.a=0,w(qc,"CompactionProcessor/lambda$3$Type",1927),b(1928,1,Le,n3n),o.Mb=function(e){return-1==u(e,40).c.indexOf(VS)},w(qc,"CompactionProcessor/lambda$4$Type",1928),b(1929,1,{},pkn),o.Kb=function(e){return function Pve(n,e){return new lN(e,W6(Bi(e.e),n,n),(Kn(),!0))}(this.a,u(e,40))},o.a=0,w(qc,"CompactionProcessor/lambda$5$Type",1929),b(1930,1,{},mkn),o.Kb=function(e){return function x3e(n,e){return new lN(e,A0(Bi(e.e),e.f.a+n,e.f.b+n),(Kn(),!1))}(this.a,u(e,40))},o.a=0,w(qc,"CompactionProcessor/lambda$6$Type",1930),b(1931,1,Ne,kkn),o.Ne=function(e,t){return function Wpe(n,e,t){return at(Dv(P4(n),Bi(e.b)),Dv(P4(n),Bi(t.b)))}(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$7$Type",1931),b(1932,1,Ne,ykn),o.Ne=function(e,t){return function Vpe(n,e,t){return at(Dv(P4(n),Bi(e.e)),Dv(P4(n),Bi(t.e)))}(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$8$Type",1932),b(1933,1,Ne,e3n),o.Ne=function(e,t){return function D1e(n,e){return at(n.e.a,e.e.a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$9$Type",1933),b(1921,1,gt,t3n),o.Kf=function(e,t){!function IAe(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),(t=u(m(n,(bc(),Nb)),88))!=(ii(),nh))for(r=ge(n.b,0);r.b!=r.d.c;){switch(i=u(be(r),40),f=u(m(i,(bt(),Qj)),17).a,h=u(m(i,Yj),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,Qj,Y(f)),U(i,Yj,Y(h))}e.Vg()}(u(e,121),t)},w(qc,"DirectionProcessor",1921),b(1913,1,gt,GAn),o.Kf=function(e,t){YSe(this,u(e,121),t)},w(qc,"FanProcessor",1913),b(1937,1,gt,i3n),o.Kf=function(e,t){!function pAe(n,e){e.Ug("Process graph bounds",1),U(n,(bt(),Iq),I7(eF(cw(new Mn(null,new Pn(n.b,16)),new r3n)))),U(n,Oq,I7(eF(cw(new Mn(null,new Pn(n.b,16)),new c3n)))),U(n,Kln,I7(nF(cw(new Mn(null,new Pn(n.b,16)),new u3n)))),U(n,_ln,I7(nF(cw(new Mn(null,new Pn(n.b,16)),new o3n)))),e.Vg()}(u(e,121),t)},w(qc,"GraphBoundsProcessor",1937),b(1938,1,{},r3n),o.Ye=function(e){return u(e,40).e.a},w(qc,"GraphBoundsProcessor/lambda$0$Type",1938),b(1939,1,{},c3n),o.Ye=function(e){return u(e,40).e.b},w(qc,"GraphBoundsProcessor/lambda$1$Type",1939),b(1940,1,{},u3n),o.Ye=function(e){return function Yhe(n){return n.e.a+n.f.a}(u(e,40))},w(qc,"GraphBoundsProcessor/lambda$2$Type",1940),b(1941,1,{},o3n),o.Ye=function(e){return function Qhe(n){return n.e.b+n.f.b}(u(e,40))},w(qc,"GraphBoundsProcessor/lambda$3$Type",1941),b(262,22,{3:1,34:1,22:1,262:1,196:1},y0),o.dg=function(){switch(this.g){case 0:return new yjn;case 1:return new GAn;case 2:return new kjn;case 3:return new a3n;case 4:return new f3n;case 8:return new s3n;case 5:return new t3n;case 6:return new b3n;case 7:return new Jpn;case 9:return new i3n;case 10:return new w3n;default:throw M(new Un(PR+(null!=this.f?this.f:""+this.g)))}};var Tln,Aln,Sln,Pln,Iln,Oln,Lln,Dln,Nln,$ln,Mq,wre,yNe=we(qc,IR,262,ke,RFn,function t0e(n){return i8(),Ee((QMn(),wre),n)});b(1920,1,gt,s3n),o.Kf=function(e,t){!function OLe(n,e){var t,i,r,c,s;for(e.Ug("Processor determine the coords for each level",1),i=new Z,s=ge(n.b,0);s.b!=s.d.c;){for(r=u(be(s),40);u(m(r,(bc(),Nh)),17).a>i.c.length-1;)nn(i,new ai(p2,Jrn));t=u(m(r,Nh),17).a,kl(u(m(n,Nb),88))?(r.e.aF(R((Ln(t,i.c.length),u(i.c[t],42)).b))&&jL((Ln(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.bF(R((Ln(t,i.c.length),u(i.c[t],42)).b))&&jL((Ln(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=ge(n.b,0);c.b!=c.d.c;)r=u(be(c),40),t=u(m(r,(bc(),Nh)),17).a,U(r,(bt(),Sf),R((Ln(t,i.c.length),u(i.c[t],42)).a)),U(r,tf,R((Ln(t,i.c.length),u(i.c[t],42)).b));e.Vg()}(u(e,121),t)},w(qc,"LevelCoordinatesProcessor",1920),b(1918,1,gt,f3n),o.Kf=function(e,t){YMe(this,u(e,121),t)},o.a=0,w(qc,"LevelHeightProcessor",1918),b(1919,1,Qh,h3n),o.Jc=function(e){_i(this,e)},o.Kc=function(){return On(),E3(),ym},w(qc,"LevelHeightProcessor/1",1919),b(1914,1,gt,kjn),o.Kf=function(e,t){aAe(this,u(e,121),t)},w(qc,"LevelProcessor",1914),b(1915,1,Le,l3n),o.Mb=function(e){return on(un(m(u(e,40),(bt(),Ba))))},w(qc,"LevelProcessor/lambda$0$Type",1915),b(1916,1,gt,a3n),o.Kf=function(e,t){Vje(this,u(e,121),t)},o.a=0,w(qc,"NeighborsProcessor",1916),b(1917,1,Qh,d3n),o.Jc=function(e){_i(this,e)},o.Kc=function(){return On(),E3(),ym},w(qc,"NeighborsProcessor/1",1917),b(1922,1,gt,b3n),o.Kf=function(e,t){!function QSe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Processor set coordinates",1),n.a=0==e.b.b?1:e.b.b,l=null,i=ge(e.b,0);!l&&i.b!=i.d.c;)on(un(m(d=u(be(i),40),(bt(),Ba))))&&(l=d,(h=d.e).a=u(m(d,Qj),17).a,h.b=u(m(d,Yj),17).a);f=oF(l),a=1;do{a=(f=nje((r=f,t.eh(a),r))).b/n.a|0}while(0!=f.b);for(s=ge(e.b,0);s.b!=s.d.c;)gi((c=u(be(s),40)).e,new W(c.f.a/2,c.f.b/2));t.Vg()}(this,u(e,121),t)},o.a=0,w(qc,"NodePositionProcessor",1922),b(1912,1,gt,yjn),o.Kf=function(e,t){!function DIe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=ge(e.b,0);r.b!=r.d.c;)0==(i=u(be(r),40)).b.b&&(U(i,(bt(),Ba),(Kn(),!0)),nn(n.a,i));switch(n.a.c.length){case 0:U(c=new dF(0,e,"DUMMY_ROOT"),(bt(),Ba),(Kn(),!0)),U(c,Sq,!0),xe(e.b,c);break;case 1:break;default:for(s=new dF(0,e,VS),h=new C(n.a);h.a=0}(this.a,u(e,40))},w(sm,"NodeOrderer/lambda$2$Type",1490),b(1491,1,Le,jkn),o.Mb=function(e){return function Lve(n,e){return ep(),u(m(e,(bc(),z2)),17).a>=n.gc()}(this.a,u(e,40))},w(sm,"NodeOrderer/lambda$3$Type",1491),b(1492,1,Ne,$3n),o.Ne=function(e,t){return function o4e(n,e){return ep(),-Tc(u(m(n,(bc(),z2)),17).a,u(m(e,z2),17).a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(sm,"NodeOrderer/lambda$4$Type",1492),b(1493,1,Le,F3n),o.Mb=function(e){return ep(),0!=u(m(u(e,40),(bt(),Pq)),17).a},w(sm,"NodeOrderer/lambda$5$Type",1493),b(1495,1,pr,b8n),o.rg=function(e){return u(e,121),qre},o.Kf=function(e,t){CSe(this,u(e,121),t)},o.b=0,w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),b(1496,1,pr,d8n),o.rg=function(e){return u(e,121),Ure},o.Kf=function(e,t){uSe(u(e,121),t)},w(ko,"EdgeRouter",1496),b(1498,1,Ne,O3n),o.Ne=function(e,t){return Tc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/0methodref$compare$Type",1498),b(1503,1,{},p3n),o.Ye=function(e){return F(R(e))},w(ko,"EdgeRouter/1methodref$doubleValue$Type",1503),b(1505,1,Ne,m3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/2methodref$compare$Type",1505),b(1507,1,Ne,k3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/3methodref$compare$Type",1507),b(1509,1,{},v3n),o.Ye=function(e){return F(R(e))},w(ko,"EdgeRouter/4methodref$doubleValue$Type",1509),b(1511,1,Ne,y3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/5methodref$compare$Type",1511),b(1513,1,Ne,j3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/6methodref$compare$Type",1513),b(1497,1,{},E3n),o.Kb=function(e){return Il(),u(m(u(e,40),(bc(),Nh)),17)},w(ko,"EdgeRouter/lambda$0$Type",1497),b(1508,1,{},C3n),o.Kb=function(e){return function z1e(n){return Il(),n.e.a+n.f.a/2}(u(e,40))},w(ko,"EdgeRouter/lambda$11$Type",1508),b(1510,1,{},cMn),o.Kb=function(e){return function kbe(n,e,t){return Il(),t.e.a+t.f.a+n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$13$Type",1510),b(1512,1,{},uMn),o.Kb=function(e){return function X1e(n,e,t){return Il(),t.e.a-n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$15$Type",1512),b(1514,1,Ne,M3n),o.Ne=function(e,t){return function c9e(n,e){return Il(),at((0==n.a.b?new W(n.c.e.a,n.c.e.b):u(P3(n.a),8)).b,(0==e.a.b?new W(e.c.e.a,e.c.e.b):u(P3(e.a),8)).b)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$17$Type",1514),b(1515,1,Ne,T3n),o.Ne=function(e,t){return function u9e(n,e){return Il(),at((0==n.a.b?new W(n.c.e.a,n.c.e.b):u(P3(n.a),8)).a,(0==e.a.b?new W(e.c.e.a,e.c.e.b):u(P3(e.a),8)).a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$18$Type",1515),b(1516,1,Ne,A3n),o.Ne=function(e,t){return function s9e(n,e){return Il(),at((0==n.a.b?new W(n.b.e.a,n.b.e.b):u(_s(n.a),8)).b,(0==e.a.b?new W(e.b.e.a,e.b.e.b):u(_s(e.a),8)).b)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$19$Type",1516),b(1499,1,Le,Ckn),o.Mb=function(e){return function f2e(n,e){return Il(),u(m(e,(bc(),Nh)),17).a==n}(this.a,u(e,40))},o.a=0,w(ko,"EdgeRouter/lambda$2$Type",1499),b(1517,1,Ne,S3n),o.Ne=function(e,t){return function o9e(n,e){return Il(),at((0==n.a.b?new W(n.b.e.a,n.b.e.b):u(_s(n.a),8)).a,(0==e.a.b?new W(e.b.e.a,e.b.e.b):u(_s(e.a),8)).a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$20$Type",1517),b(1500,1,Ne,P3n),o.Ne=function(e,t){return function ube(n,e){return Il(),at(n.e.b,e.e.b)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$3$Type",1500),b(1501,1,Ne,I3n),o.Ne=function(e,t){return function obe(n,e){return Il(),at(n.e.a,e.e.a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$4$Type",1501),b(1502,1,{},x3n),o.Kb=function(e){return function W1e(n){return Il(),n.e.b+n.f.b/2}(u(e,40))},w(ko,"EdgeRouter/lambda$5$Type",1502),b(1504,1,{},oMn),o.Kb=function(e){return function ybe(n,e,t){return Il(),t.e.b+t.f.b+n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$7$Type",1504),b(1506,1,{},sMn),o.Kb=function(e){return function V1e(n,e,t){return Il(),t.e.b-n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$9$Type",1506),b(675,1,{675:1},KRn),o.e=0,o.f=!1,o.g=!1,w(ko,"MultiLevelEdgeNodeNodeGap",675),b(1943,1,Ne,B3n),o.Ne=function(e,t){return function m2e(n,e){return at(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),b(1944,1,Ne,R3n),o.Ne=function(e,t){return function k2e(n,e){return at(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944),b(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},PX),o.dg=function(){return TBn(this)},o.qg=function(){return TBn(this)};var rO,W2,Gre,u1n=we(rcn,"RadialLayoutPhases",501,ke,function _ge(){return KT(),S(T(u1n,1),G,501,0,[rO,W2])},function u0e(n){return KT(),Ee((hDn(),Gre),n)});b(1113,205,Fd,vEn),o.rf=function(e,t){var i,c,f,h;if(i=lqn(this,e),t.Ug("Radial layout",i.c.length),on(un(z(e,(ka(),v1n))))||lk(new o6((k0(),new a0(e)))),h=function hye(n){var e,t;for(t=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));t.e!=t.i.gc();)if(!ve(new ie(ce(yy(e=u(ue(t),27)).a.Kc(),new Vn))))return e;return null}(e),ft(e,(_g(),X2),h),!h)throw M(new Un("The given graph is not a tree!"));for(0==(c=F(R(z(e,oO))))&&(c=G_n(e)),ft(e,oO,c),f=new C(lqn(this,e));f.aRd&&(r-=Rd),f=u(z(i,Wp),8),(c=y.Math.atan2(f.b+n,f.a))<0&&(c+=Rd),(c+=e)>Rd&&(c-=Rd),Of(),zs(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:E0(isNaN(r),isNaN(c))}(this.a,this.b,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},o.a=0,o.b=0,w(rcn,"RadialUtil/lambda$0$Type",556),b(1395,1,gt,K3n),o.Kf=function(e,t){!function xLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn;for(e.Ug("Calculate Graph Size",1),e.dh(n,ccn),d=p2,g=p2,l=ucn,a=ucn,k=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));k.e!=k.i.gc();)I=(v=u(ue(k),27)).i,O=v.j,kn=v.g,f=v.f,h=u(z(v,(Ue(),Wm)),140),d=y.Math.min(d,I-h.b),g=y.Math.min(g,O-h.d),l=y.Math.max(l,I+kn+h.c),a=y.Math.max(a,O+f+h.a);for(j=new W(d-(A=u(z(n,(Ue(),x1)),107)).b,g-A.d),jn=l-d+(A.b+A.c),s=a-g+(A.d+A.a),on(un(z(n,(ka(),g1n))))&&($=u(z(n,(_g(),X2)),27),_=u(z($,Wm),140),c=s-(tn=$.j+$.f/2+(_.d+_.a)/2-j.b),(r=jn-(X=$.i+$.g/2+(_.b+_.c)/2-j.a))=3)for(X=u(D($,0),27),tn=u(D($,1),27),s=0;s+2<$.i;){if(_=X,X=tn,tn=u(D($,s+2),27),_.f>=X.f+tn.f+d||tn.f>=_.f+X.f+d){kn=!0;break}++s}else kn=!0;if(!kn){for(v=$.i,h=new ne($);h.e!=h.i.gc();)ft(u(ue(h),27),(Ue(),aE),Y(v)),--v;return _Un(e,new yv),void t.Vg()}for(uk(this.a),gf(this.a,(aA(),nE),u(z(e,z1n),188)),gf(this.a,sO,u(z(e,K1n),188)),gf(this.a,Qq,u(z(e,q1n),188)),XX(this.a,(Ke($n=new ei,nE,(EA(),nU)),Ke($n,sO,Zq),on(un(z(e,B1n)))&&Ke($n,nE,Yq),$n)),a=1/(i=Ly(this.a,e)).c.length,k=new C(i);k.ai?1:0}(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ZS,"InteractiveNodeReorderer/lambda$0$Type",1519),b(456,22,{3:1,34:1,22:1,456:1,196:1},PD),o.dg=function(){switch(this.g){case 0:return new e4n;case 1:return new r4n;case 2:return new i4n}return null};var Yq,Zq,nU,mce,M9,zm,Gp,kce,yce,fO,eU,tU,T9,hO,sg,pce=we(ZS,IR,456,ke,function Y2e(){return EA(),S(T(pce,1),G,456,0,[Yq,nU,Zq])},function d0e(n){return EA(),Ee((oNn(),mce),n)});b(1521,1,gt,i4n),o.Kf=function(e,t){!function A8e(n,e){e.Ug("Min Size Postprocessing",1),ft(n,(Vh(),sg),y.Math.max(F(R(z(n,sg))),F(R(z(n,T9))))),e.Vg()}(u(e,27),t)},w(ZS,"MinSizePostProcessor",1521),b(1520,1,gt,r4n),o.Kf=function(e,t){!function M6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=Unn(n),ft(n,(Vh(),T9),t.a),ft(n,fO,t.b),e.Vg()}(u(e,27),t)},w(ZS,"MinSizePreProcessor",1520),b(394,22,{3:1,34:1,22:1,394:1},ID);var O1n,L1n,iU,jce,Ece,Cce,Mce,Tce,Ace,Sce,N1n,Pce,Ice,Oce,Lce,$1n,Dce,F1n,Nce,lO,$ce,x1n,eE,B1n,Fce,tE,xce,Bce,Rce,Kce,_ce,rU,R1n,cU,K1n,A9,_1n,Hce,S9,H1n,q1n,U1n,G1n,z1n,uU,D1n=we(kK,"OptimizationGoal",394,ke,function J2e(){return uA(),S(T(D1n,1),G,394,0,[L1n,iU,O1n])},function b0e(n){return uA(),Ee((sNn(),jce),n)});b(867,1,Es,k8n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,pcn),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(Kn(),!1)),(C1(),mi)),qt),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,mcn),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,kcn),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ycn),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,jcn),yK),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),F1n),Tt),V1n),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ecn),yK),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ccn),yK),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),$1n),Tt),D1n),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Mcn),yK),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Tcn),"packing"),SWn),"Strategy for finding an initial placement on nodes."),N1n),Tt),Y1n),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Acn),PWn),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Scn),PWn),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Y(1)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Pcn),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),Tt),ean),yn(Fn)))),vzn((new y8n,e))},w(kK,"RectPackingMetaDataProvider",867),b(1016,1,Es,y8n),o.hf=function(e){vzn(e)},w(kK,"RectPackingOptions",1016),b(1017,1,{},c4n),o.sf=function(){return new mEn},o.tf=function(e){},w(kK,"RectPackingOptions/RectpackingFactory",1017),b(1705,1,{},jSn),o.a=0,o.c=!1,w(fm,"AreaApproximation",1705);var X1n=Ot(fm,"BestCandidateFilter");b(673,1,{535:1},sL),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=Mt,h=new C(e);h.a1;){if(r=ZMe(e),d=c.g,p=u(z(e,A9),107),k=F(R(z(e,lO))),(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i>1&&F(R(z(e,(Vh(),tU))))!=Mt&&(c.c+(p.b+p.c))/(c.b+(p.d+p.a))1&&F(R(z(e,(Vh(),eU))))!=Mt&&(c.c+(p.b+p.c))/(c.b+(p.d+p.a))>k&&ft(r,(Vh(),sg),y.Math.max(F(R(z(e,T9))),F(R(z(r,sg)))-F(R(z(e,eU))))),(l=(h=jzn(v=new $X(i,a),r,g)).g)>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new q(Qe,r,10,11)),r.a).i;s++)V_n(n,u(D((!r.a&&(r.a=new q(Qe,r,10,11)),r.a),s),27),u(D((!e.a&&(e.a=new q(Qe,e,10,11)),e.a),s),27));P$n(e,v),i2e(c,h.c),t2e(c,h.b)}--f}ft(e,(Vh(),zm),c.b),ft(e,Gp,c.c),t.Vg()}(this,u(e,27),t)},w(nP,"Compactor",1471),b(1473,1,pr,f4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){MTe(u(e,27),t)},w(nP,"NoPlacement",1473),b(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},OD),o.dg=function(){return iBn(this)},o.qg=function(){return iBn(this)};var sU,J1n,Q1n,Uce,Y1n=we(nP,"PackingStrategy",439,ke,function V2e(){return mT(),S(T(Y1n,1),G,439,0,[sU,Q1n,J1n])},function p0e(n){return mT(),Ee((fNn(),Uce),n)});b(810,1,{},$X),o.a=0,o.b=0,o.c=0,o.d=Mt,o.e=0,o.f=Mt,w(nP,"RowFillingAndCompaction",810),b(1472,1,pr,h4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){!function fOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;for(e.Ug(IWn,1),v=F(R(z(n,(Vh(),sg)))),s=F(R(z(n,(Uf(),S9)))),f=u(z(n,A9),107),tY((!n.a&&(n.a=new q(Qe,n,10,11)),n.a)),a=aGn((!n.a&&(n.a=new q(Qe,n,10,11)),n.a),v,s),!n.a&&(n.a=new q(Qe,n,10,11)),l=new C(a);l.a1)for(r=new C(n.a);r.a>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[15&n]<<28}(Ov(this.b))},o.cg=function(e){var t,r,c;for(r=0;r0&&Jxn((Gn(t-1,e.length),e.charCodeAt(t-1)),")]}\"' \t\r\n");)--t;if(r>=t)throw M(new Un("The given string does not contain any numbers."));if(2!=(c=Iw(($i(r,t,e.length),e.substr(r,t-r)),",|;|\r|\n")).length)throw M(new Un("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=Ew(Cw(c[0])),this.b=Ew(Cw(c[1]))}catch(s){throw L(s=At(s),130)?M(new Un(xXn+s)):M(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var yi=w(tj,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Su,hC,wAn),o.Pc=function(){return function T6e(n){var e,t,i;for(e=0,i=K(yi,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}(this)},o.cg=function(e){var i,r,c,s,f;r=Iw(e,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),jo(this);try{for(i=0,s=0,c=0,f=0;i0&&(s%2==0?c=Ew(r[i]):f=Ew(r[i]),s>0&&s%2!=0&&xe(this,new W(c,f)),++s),++i}catch(h){throw L(h=At(h),130)?M(new Un("The given string does not match the expected format for vectors."+h)):M(h)}},o.Ib=function(){var e,t,i;for(e=new yo("("),t=ge(this,0);t.b!=t.d.c;)Re(e,(i=u(be(t),8)).a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var Pan=w(tj,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},N6);var kU,pO,mO,cE,uE,kO,Tue,Oan,yU,Aue,Lan,Dan,Sue,Nan,Pue,Iue,$an,Fan,Oue,Ian=we(oo,"Alignment",255,ke,function E3e(){return Xh(),S(T(Ian,1),G,255,0,[kU,cE,uE,kO,pO,mO])},function I0e(n){return Xh(),Ee((K$n(),Tue),n)});b(991,1,Es,T8n),o.hf=function(e){CUn(e)},w(oo,"BoxLayouterOptions",991),b(992,1,{},W4n),o.sf=function(){return new Q4n},o.tf=function(e){},w(oo,"BoxLayouterOptions/BoxFactory",992),b(298,22,{3:1,34:1,22:1,298:1},$6);var L9,jU,D9,N9,$9,EU,Lue,Xm,Due,xan,Q2,Nue,$ue,Ban,Y2,Z2,Fue,oE,Ran,sE,t0,Kan,MU,TU,_an,Han,qan,Uan,Gan,xue,nv,zan,Bue,fE,AU,hE,SU,$b,Xan,Wm,Wan,Van,Jan,ev,Qan,i0,Yan,fg,tv,Zan,Ra,ndn,yO,lE,x1,edn,Rue,tdn,Kue,_ue,idn,rdn,PU,IU,OU,LU,cdn,so,F9,udn,DU,NU,hg,odn,sdn,iv,fdn,Wp,aE,$U,rv,Hue,FU,que,Uue,hdn,Gue,ldn,adn,Vp,ddn,jO,bdn,wdn,r0,zue,gdn,vdn,pdn,EO,dE,Vm,Jp,Xue,Wue,CO,Vue,mdn,Jue,CU=we(oo,"ContentAlignment",298,ke,function C3e(){return Id(),S(T(CU,1),G,298,0,[EU,$9,N9,jU,L9,D9])},function O0e(n){return Id(),Ee((_$n(),Lue),n)});b(699,1,Es,AG),o.hf=function(e){mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,BWn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(C1(),J2)),fn),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,RWn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Zf),MNe),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Arn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),xan),Tt),Ian),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Mp),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Kcn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Zf),Pan),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,US),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Ran),Xp),CU),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,uj),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Kn(),!1)),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,uK),""),uin),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Kan),Tt),x9),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,cj),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),qan),Tt),BU),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Bcn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,qS),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),zan),Tt),Ldn),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,hb),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),edn),Zf),rsn),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,k8),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zS),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,y8),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,TR),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),udn),Tt),$dn),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,GS),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Zf),yi),pt(wi,S(T(ol,1),G,170,0,[e0,F1]))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Jy),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zr),qi),pt(wi,S(T(ol,1),G,170,0,[$h]))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,MS),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,m8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Brn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Xan),Zf),Pan),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_rn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Hrn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,KWn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Zf),INe),pt(Fn,S(T(ol,1),G,170,0,[F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Urn),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Wan),Zf),isn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Mrn),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),mi),qt),pt(wi,S(T(ol,1),G,170,0,[$h,e0,F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_Wn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Ji),ui),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,HWn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,qWn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Qy),""),DWn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),mi),qt),yn(Fn)))),ti(e,Qy,lb,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,UWn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,GWn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Y(100)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zWn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,XWn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Y(4e3)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,WWn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Y(400)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,VWn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,JWn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,QWn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,YWn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Rcn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Ban),Tt),Gdn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,brn),Wf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,wrn),Wf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,mR),Wf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,grn),Wf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,MR),Wf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,cK),Wf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,vrn),Wf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,krn),Wf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,prn),Wf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,mrn),Wf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Fw),Wf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,yrn),Wf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,jrn),Wf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Ern),Wf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Zf),moe),pt(wi,S(T(ol,1),G,170,0,[$h,e0,F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Grn),Wf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),vdn),Zf),isn),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,sK),tVn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Zr),qi),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),ti(e,sK,oK,_ue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,oK),tVn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),tdn),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Irn),iVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Jan),Zf),rsn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,cm),iVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Qan),Xp),kr),pt(wi,S(T(ol,1),G,170,0,[F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Drn),tP),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),rdn),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Nrn),tP),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,$rn),tP),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Frn),tP),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,xrn),tP),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,m2),IK),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Yan),Xp),U9),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Tp),IK),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),ndn),Xp),xdn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ap),IK),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Zan),Zf),yi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,rm),IK),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Rrn),rK),"Edge Label Placement"),"Gives a hint on where to put edge labels."),_an),Tt),kdn),yn(F1)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,TS),rK),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),mi),qt),yn(F1)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,ZWn),"font"),"Font Name"),"Font name used for a label."),J2),fn),yn(F1)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,nVn),"font"),"Font Size"),"Font size used for a label."),Zr),qi),yn(F1)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,qrn),OK),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Zf),yi),yn(e0)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Krn),OK),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Zr),qi),yn(e0)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Trn),OK),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),fdn),Tt),fr),yn(e0)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Crn),OK),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Ji),ui),yn(e0)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,um),qcn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),odn),Xp),TO),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Orn),qcn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Lrn),qcn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Yy),fj),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Ji),ui),yn(Fn)))),ti(e,Yy,lb,Vue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_cn),fj),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Tt),LO),yn(wi)))),ti(e,_cn,lb,Jue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Zy),fj),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),ti(e,Zy,lb,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,nj),fj),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),ti(e,nj,lb,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,lb),fj),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Tt),Rdn),yn(wi)))),ti(e,lb,rm,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Hcn),fj),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Ji),ui),yn(Fn)))),ti(e,Hcn,lb,Wue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Srn),rVn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Prn),rVn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),mi),qt),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,kR),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Ji),ui),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,eVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Gan),Tt),Tdn),yn($h)))),C6(e,new Wv(m6(p3(v3(new gv,Yn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),C6(e,new Wv(m6(p3(v3(new gv,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),C6(e,new Wv(m6(p3(v3(new gv,su),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),C6(e,new Wv(m6(p3(v3(new gv,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),C6(e,new Wv(m6(p3(v3(new gv,pWn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),C6(e,new Wv(m6(p3(v3(new gv,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),C6(e,new Wv(m6(p3(v3(new gv,cs),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),fUn((new A8n,e)),CUn((new T8n,e)),xqn((new S8n,e))},w(oo,"CoreOptions",699),b(88,22,{3:1,34:1,22:1,88:1},$7);var nh,$r,zr,eh,hs,Que,x9=we(oo,uin,88,ke,function Spe(){return ii(),S(T(x9,1),G,88,0,[eh,zr,$r,nh,hs])},function L0e(n){return ii(),Ee((v$n(),Que),n)});b(278,22,{3:1,34:1,22:1,278:1},DD);var Jm,lg,Qm,Yue,kdn=we(oo,"EdgeLabelPlacement",278,ke,function ive(){return Kf(),S(T(kdn,1),G,278,0,[Jm,lg,Qm])},function D0e(n){return Kf(),Ee((pNn(),Yue),n)});b(223,22,{3:1,34:1,22:1,223:1},RC);var Ym,bE,Qp,xU,Zue,BU=we(oo,"EdgeRouting",223,ke,function ipe(){return Dl(),S(T(BU,1),G,223,0,[xU,bE,Ym,Qp])},function N0e(n){return Dl(),Ee((HNn(),Zue),n)});b(321,22,{3:1,34:1,22:1,321:1},F6);var ydn,jdn,Edn,Cdn,RU,Mdn,noe,Adn,Sdn,Pdn,Idn,eoe,Odn,B9,Tdn=we(oo,"EdgeType",321,ke,function j3e(){return FA(),S(T(Tdn,1),G,321,0,[RU,Edn,Mdn,ydn,Cdn,jdn])},function $0e(n){return FA(),Ee((H$n(),noe),n)});b(989,1,Es,A8n),o.hf=function(e){fUn(e)},w(oo,"FixedLayouterOptions",989),b(990,1,{},V4n),o.sf=function(){return new umn},o.tf=function(e){},w(oo,"FixedLayouterOptions/FixedFactory",990),b(346,22,{3:1,34:1,22:1,346:1},ND);var B1,MO,R9,toe,Ldn=we(oo,"HierarchyHandling",346,ke,function eve(){return Ll(),S(T(Ldn,1),G,346,0,[MO,B1,R9])},function F0e(n){return Ll(),Ee((gNn(),toe),n)});b(291,22,{3:1,34:1,22:1,291:1},KC);var sl,Ka,wE,gE,roe,ioe=we(oo,"LabelSide",291,ke,function tpe(){return Po(),S(T(ioe,1),G,291,0,[gE,sl,Ka,wE])},function x0e(n){return Po(),Ee((qNn(),roe),n)});b(95,22,{3:1,34:1,22:1,95:1},Pg);var zl,rf,Ps,cf,Fo,uf,Is,fl,of,coe,kr=we(oo,"NodeLabelPlacement",95,ke,function E4e(){return Tw(),S(T(kr,1),G,95,0,[rf,zl,cf,of,fl,Is,Fo,uf,Ps])},function B0e(n){return Tw(),Ee((YFn(),coe),n)});b(256,22,{3:1,34:1,22:1,256:1},F7);var Ddn,K9,_a,Ndn,vE,uoe,_9=we(oo,"PortAlignment",256,ke,function qpe(){return Zg(),S(T(_9,1),G,256,0,[_a,vE,Ddn,K9,Ndn])},function R0e(n){return Zg(),Ee((m$n(),uoe),n)});b(101,22,{3:1,34:1,22:1,101:1},x6);var c0,Xc,hl,Zm,th,Ha,ooe,$dn=we(oo,"PortConstraints",101,ke,function y3e(){return Ii(),S(T($dn,1),G,101,0,[Ha,th,Zm,c0,hl,Xc])},function K0e(n){return Ii(),Ee((q$n(),ooe),n)});b(279,22,{3:1,34:1,22:1,279:1},B6);var H9,q9,Xl,pE,qa,Yp,soe,TO=we(oo,"PortLabelPlacement",279,ke,function k3e(){return Xu(),S(T(TO,1),G,279,0,[qa,Xl,pE,q9,H9,Yp])},function _0e(n){return Xu(),Ee((U$n(),soe),n)});b(64,22,{3:1,34:1,22:1,64:1},x7);var Zn,zn,ls,as,ju,lu,ih,sf,Ju,Ru,Wc,Qu,Eu,Cu,ff,xo,Bo,Os,ae,hc,Wn,foe,hoe,loe,Fdn,aoe,doe,fr=we(oo,"PortSide",64,ke,function Ppe(){return en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])},function H0e(n){return en(),Ee((k$n(),foe),n)});b(993,1,Es,S8n),o.hf=function(e){xqn(e)},w(oo,"RandomLayouterOptions",993),b(994,1,{},J4n),o.sf=function(){return new imn},o.tf=function(e){},w(oo,"RandomLayouterOptions/RandomFactory",994),b(386,22,{3:1,34:1,22:1,386:1},_C);var ag,mE,kE,u0,boe,U9=we(oo,"SizeConstraint",386,ke,function epe(){return mo(),S(T(U9,1),G,386,0,[kE,u0,mE,ag])},function q0e(n){return mo(),Ee((UNn(),boe),n)});b(264,22,{3:1,34:1,22:1,264:1},Ig);var yE,AO,n6,KU,jE,G9,SO,PO,IO,woe,xdn=we(oo,"SizeOptions",264,ke,function $4e(){return ro(),S(T(xdn,1),G,264,0,[n6,jE,AO,G9,SO,IO,PO,KU,yE])},function U0e(n){return ro(),Ee((QFn(),woe),n)});b(280,22,{3:1,34:1,22:1,280:1},$D);var dg,Bdn,OO,goe,Rdn=we(oo,"TopdownNodeTypes",280,ke,function rve(){return cp(),S(T(Rdn,1),G,280,0,[Bdn,dg,OO])},function G0e(n){return cp(),Ee((mNn(),goe),n)});b(347,22,Ucn);var Kdn,_dn,voe,LO=we(oo,"TopdownSizeApproximator",347,ke,function Zge(){return fN(),S(T(LO,1),G,347,0,[Kdn,_dn])},function X0e(n){return fN(),Ee((kDn(),voe),n)});b(987,347,Ucn,QSn),o.Tg=function(e){return ARn(e)},we(oo,"TopdownSizeApproximator/1",987,LO,null,null),b(988,347,Ucn,FPn),o.Tg=function(e){var t,i,r,c,s,f,a,d,j,A,O,$,_,X,tn,jn,kn,Bn;for(t=u(z(e,(Ue(),rv)),143),Q1(),jy(tn=new d6,e),jn=new de,s=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));s.e!=s.i.gc();)r=u(ue(s),27),XA(O=new d6,tn),jy(O,r),Bn=ARn(r),$g(O,y.Math.max(r.g,Bn.a),y.Math.max(r.f,Bn.b)),Yc(jn.f,r,O);for(c=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));c.e!=c.i.gc();)for(d=new ne((!(r=u(ue(c),27)).e&&(r.e=new Dn(Xt,r,7,4)),r.e));d.e!=d.i.gc();)a=u(ue(d),74),_=u(Rr(br(jn.f,r)),27),X=u(ee(jn,D((!a.c&&(a.c=new Dn(he,a,5,8)),a.c),0)),27),me((!($=new aL).b&&($.b=new Dn(he,$,4,7)),$.b),_),me((!$.c&&($.c=new Dn(he,$,5,8)),$.c),X),zA($,Ct(_)),jy($,a);j=u(hk(t.f),205);try{j.rf(tn,new fmn),dIn(t.f,j)}catch($n){throw L($n=At($n),103),M($n)}return Bf(tn,Z2)||Bf(tn,Y2)||Ptn(tn),f=F(R(z(tn,Z2)))/F(R(z(tn,Y2))),i=F(R(z(tn,dE)))*y.Math.sqrt((!tn.a&&(tn.a=new q(Qe,tn,10,11)),tn.a).i),A=(kn=u(z(tn,x1),107)).d+kn.a+1,new W(y.Math.max(kn.b+kn.c+1,i),y.Math.max(A,i/f))},we(oo,"TopdownSizeApproximator/2",988,LO,null,null),b(344,1,{871:1},yv),o.Ug=function(e,t){return KKn(this,e,t)},o.Vg=function(){f_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?JN(this.f):null},o.Yg=function(){return JN(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return null!=this.p&&!this.b},o.bh=function(e){this.n&&nn(this.f,e)},o.dh=function(e,t){var i,r;this.n&&e&&function mve(n,e,t){var i;n.n&&e&&t&&(i=new smn,nn(n.e,i))}(this,(r=nB(i=new WPn,e),function nLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;for(d=new rJ(new QG(n));d.c!=d.d.a.d;)for(f=u((a=YNn(d)).d,58),e=u(a.e,58),k=0,$=(null==(s=f.Dh()).i&&kh(s),s.i).length;k<$;++k)if(null==s.i&&kh(s),c=s.i,(l=k>=0&&k0?e-1:e,rEn(function Ihe(n,e){return n.j=e,n}(X$n(kV(new yv,t),n.n),n.j),n.k)}(this,this.g),xe(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&zQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0,w(gc,"BasicProgressMonitor",344),b(717,205,Fd,Q4n),o.rf=function(e,t){_Un(e,t)},w(gc,"BoxLayoutProvider",717),b(983,1,Ne,Fkn),o.Ne=function(e,t){return function nTe(n,e,t){var i,r,c;return!(r=u(z(e,(xA(),Fan)),17))&&(r=Y(0)),!(c=u(z(t,Fan),17))&&(c=Y(0)),r.a>c.a?-1:r.a0&&p.b>0&&ub(A,p.a,p.b,!0,!0)),g=y.Math.max(g,A.i+A.g),v=y.Math.max(v,A.j+A.f),a=new ne((!A.n&&(A.n=new q(Tr,A,1,7)),A.n));a.e!=a.i.gc();)h=u(ue(a),135),(kn=u(z(h,B9),8))&&qo(h,kn.a,kn.b),g=y.Math.max(g,A.i+h.i+h.g),v=y.Math.max(v,A.j+h.j+h.f);for(X=new ne((!A.c&&(A.c=new q(Yu,A,9,9)),A.c));X.e!=X.i.gc();)for(_=u(ue(X),123),(kn=u(z(_,B9),8))&&qo(_,kn.a,kn.b),jn=A.j+_.j,g=y.Math.max(g,(tn=A.i+_.i)+_.g),v=y.Math.max(v,jn+_.f),l=new ne((!_.n&&(_.n=new q(Tr,_,1,7)),_.n));l.e!=l.i.gc();)h=u(ue(l),135),(kn=u(z(h,B9),8))&&qo(h,kn.a,kn.b),g=y.Math.max(g,tn+h.i+h.g),v=y.Math.max(v,jn+h.j+h.f);for(c=new ie(ce(xl(A).a.Kc(),new Vn));ve(c);)d=ezn(i=u(fe(c),74)),g=y.Math.max(g,d.a),v=y.Math.max(v,d.b);for(r=new ie(ce(yy(A).a.Kc(),new Vn));ve(r);)Ct(Wh(i=u(fe(r),74)))!=e&&(d=ezn(i),g=y.Math.max(g,d.a),v=y.Math.max(v,d.b))}if(s==(Dl(),Ym))for(I=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));I.e!=I.i.gc();)for(r=new ie(ce(xl(A=u(ue(I),27)).a.Kc(),new Vn));ve(r);)f=cPe(i=u(fe(r),74)),ft(i,$b,0==f.b?null:f);on(un(z(e,(ZT(),Pdn))))||ub(e,g+($=u(z(e,eoe),107)).b+$.c,v+$.d+$.a,!0,!0),t.Vg()},w(gc,"FixedLayoutProvider",1119),b(385,137,{3:1,423:1,385:1,96:1,137:1},lL,ZNn),o.cg=function(e){var i,r,s,f,h,l,a;if(e)try{for(l=Iw(e,";,;"),f=0,h=(s=l).length;f>16&ri|t^(s&ri)<<16},o.Kc=function(){return new Kkn(this)},o.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+Jr(this.b)+")":null==this.b?"pair("+Jr(this.a)+",null)":"pair("+Jr(this.a)+","+Jr(this.b)+")"},w(gc,"Pair",42),b(995,1,Ti,Kkn),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},o.Pb=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw M(new tc)},o.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),M(new Au)},o.b=!1,o.c=!1,w(gc,"Pair/1",995),b(455,1,{455:1},PIn),o.Fb=function(e){return jc(this.a,u(e,455).a)&&jc(this.c,u(e,455).c)&&jc(this.d,u(e,455).d)&&jc(this.b,u(e,455).b)},o.Hb=function(){return Wk(S(T(pi,1),xn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+cr+this.c+cr+this.d+cr+this.b+")"},w(gc,"Quadruple",455),b(1108,205,Fd,imn),o.rf=function(e,t){var s;t.Ug("Random Layout",1),0!=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i?(function ELe(n,e,t,i,r){var c,f,h,l,a,d,g,v,p,k,j,A,I,O,_,X,tn,jn,kn,Bn;for(O=0,p=0,v=0,g=1,I=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));I.e!=I.i.gc();)g+=Ml(new ie(ce(xl(j=u(ue(I),27)).a.Kc(),new Vn))),p=y.Math.max(p,jn=j.g),v=y.Math.max(v,d=j.f),O+=jn*d;for(k=(!n.a&&(n.a=new q(Qe,n,10,11)),n.a).i,c=y.Math.sqrt(O+2*i*i*g*k),h=y.Math.max(c*t,p),f=y.Math.max(c/t,v),A=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));A.e!=A.i.gc();)j=u(ue(A),27),kn=r.b+(io(e,26)*d8+io(e,27)*b8)*(h-j.g),Bn=r.b+(io(e,26)*d8+io(e,27)*b8)*(f-j.f),ru(j,kn),cu(j,Bn);for(tn=h+(r.b+r.c),X=f+(r.d+r.a),_=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));_.e!=_.i.gc();)for(a=new ie(ce(xl(u(ue(_),27)).a.Kc(),new Vn));ve(a);)Q5(l=u(fe(a),74))||SDe(l,e,tn,X);ub(n,tn+=r.b+r.c,X+=r.d+r.a,!1,!0)}(e,(s=u(z(e,(kZ(),aoe)),17))&&0!=s.a?new sT(s.a):new xF,b7(R(z(e,hoe))),b7(R(z(e,doe))),u(z(e,loe),107)),t.Vg()):t.Vg()},w(gc,"RandomLayoutProvider",1108),b(240,1,{240:1},lN),o.Fb=function(e){return jc(this.a,u(e,240).a)&&jc(this.b,u(e,240).b)&&jc(this.c,u(e,240).c)},o.Hb=function(){return Wk(S(T(pi,1),xn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+cr+this.b+cr+this.c+")"},w(gc,"Triple",240),b(562,1,{}),o.Lf=function(){return new W(this.f.i,this.f.j)},o.of=function(e){return iOn(e,(Ue(),so))?z(this.f,Eoe):z(this.f,e)},o.Mf=function(){return new W(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return Bf(this.f,e)},o.Of=function(e){ru(this.f,e.a),cu(this.f,e.b)},o.Pf=function(e){G0(this.f,e.a),U0(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0,w(I8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),b(563,1,{853:1},QE),o.Rf=function(){var e,t;if(!this.b)for(this.b=rT(_M(this.a).i),t=new ne(_M(this.a));t.e!=t.i.gc();)e=u(ue(t),135),nn(this.b,new _L(e));return this.b},o.b=null,w(I8,"ElkGraphAdapters/ElkEdgeAdapter",563),b(289,562,{},a0),o.Sf=function(){return VRn(this)},o.a=null,w(I8,"ElkGraphAdapters/ElkGraphAdapter",289),b(640,562,{187:1},_L),w(I8,"ElkGraphAdapters/ElkLabelAdapter",640),b(639,562,{695:1},VD),o.Rf=function(){return function h7e(n){var e,t;if(!n.b)for(n.b=rT(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new _L(e));return n.b}(this)},o.Vf=function(){var e;return!(e=u(z(this.f,(Ue(),Wm)),140))&&(e=new a6),e},o.Xf=function(){return function l7e(n){var e,t;if(!n.e)for(n.e=rT(HN(u(n.f,27)).i),t=new ne(HN(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),123),nn(n.e,new _kn(e));return n.e}(this)},o.Zf=function(e){var t;t=new dN(e),ft(this.f,(Ue(),Wm),t)},o.$f=function(e){ft(this.f,(Ue(),x1),new hV(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new Z,t=new ie(ce(yy(u(this.f,27)).a.Kc(),new Vn));ve(t);)e=u(fe(t),74),nn(this.a,new QE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new Z,t=new ie(ce(xl(u(this.f,27)).a.Kc(),new Vn));ve(t);)e=u(fe(t),74),nn(this.c,new QE(e));return this.c},o.Yf=function(){return 0!=zM(u(this.f,27)).i||on(un(u(this.f,27).of((Ue(),fE))))},o._f=function(){q3e(this,(k0(),joe))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null,w(I8,"ElkGraphAdapters/ElkNodeAdapter",639),b(1284,562,{852:1},_kn),o.Rf=function(){return function m7e(n){var e,t;if(!n.b)for(n.b=rT(u(n.f,123).kh().i),t=new ne(u(n.f,123).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new _L(e));return n.b}(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Kh(u(this.f,123).hh().i),t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.a,new QE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Kh(u(this.f,123).ih().i),t=new ne(u(this.f,123).ih());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.c,new QE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((Ue(),iv)),64)},o.bg=function(){var e,t,i,r,s,f,h;for(r=Df(u(this.f,123)),i=new ne(u(this.f,123).ih());i.e!=i.i.gc();)for(h=new ne((!(e=u(ue(i),74)).c&&(e.c=new Dn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(dw(Ur(f=u(ue(h),84)),r))return!0;if(Ur(f)==r&&on(un(z(e,(Ue(),AU)))))return!0}for(t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)for(s=new ne((!(e=u(ue(t),74)).b&&(e.b=new Dn(he,e,4,7)),e.b));s.e!=s.i.gc();)if(dw(Ur(u(ue(s),84)),r))return!0;return!1},o.a=null,o.b=null,o.c=null,w(I8,"ElkGraphAdapters/ElkPortAdapter",1284),b(1285,1,Ne,tmn),o.Ne=function(e,t){return function QAe(n,e){var t,i,r,c;if(0!=(c=u(z(n,(Ue(),iv)),64).g-u(z(e,iv),64).g))return c;if(t=u(z(n,DU),17),i=u(z(e,DU),17),t&&i&&0!=(r=t.a-i.a))return r;switch(u(z(n,iv),64).g){case 1:return at(n.i,e.i);case 2:return at(n.j,e.j);case 3:return at(e.i,n.i);case 4:return at(e.j,n.j);default:throw M(new Sr(Tin))}}(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(I8,"ElkGraphAdapters/PortComparator",1285);var Coe,Ci,Moe,Toe,Vdn,DO,Aoe,Jdn,Qdn,Ydn,ll,Soe,Poe,Ioe,X9,Zdn,Ooe,Loe,Ua=Ot(us,"EObject"),e6=Ot(j2,oVn),Ro=Ot(j2,sVn),EE=Ot(j2,fVn),CE=Ot(j2,"ElkShape"),he=Ot(j2,hVn),Xt=Ot(j2,Gcn),jt=Ot(j2,lVn),ME=Ot(us,aVn),z9=Ot(us,"EFactory"),qU=Ot(us,dVn),Pf=Ot(us,"EPackage"),Tr=Ot(j2,zcn),Qe=Ot(j2,Xcn),Yu=Ot(j2,Wcn);b(93,1,bVn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){tt(this,e)},w(Ip,"BasicNotifierImpl",93),b(99,93,pVn),o.Yh=function(){return ao(this)},o.yh=function(e,t){return e},o.zh=function(){throw M(new Pe)},o.Ah=function(e){var t;return t=dr(u(Nn(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw M(new Pe)},o.Ch=function(e,t,i){return Oo(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk())?e:this.ii()},o.Eh=function(){return xx(this)},o.Fh=function(){throw M(new Pe)},o.Gh=function(){var e,t;return!(t=this.$h().Ok())&&this.zh().Tk((T6(),t=null==(e=EJ(kh(this.Dh())))?QU:new H7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){return e.pk()?e.Lj():St(this.Dh(),e)},o.Jh=function(){var e;return(e=this.zh())?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return yA(this,e,t,i)},o.Mh=function(e){return W3(this,e)},o.Nh=function(e,t){return j$(this,e,t)},o.Oh=function(){var e;return!!(e=this.zh())&&e.Rk()},o.Ph=function(){throw M(new Pe)},o.Qh=function(){return bA(this)},o.Rh=function(e,t,i,r){return fp(this,e,t,r)},o.Sh=function(e,t,i){return u(Nn(this.Dh(),t),69).wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return JM(this,e,t,r)},o.Uh=function(e,t,i){return u(Nn(this.Dh(),t),69).wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return WF(this,e)},o.Xh=function(e){return vOn(this,e)},o.Zh=function(e){return RGn(this,e)},o.$h=function(){throw M(new Pe)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return bA(this)},o.bi=function(e,t){Lx(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return(s=this.Jh())&&e&&(t=rr(s.El(),this,t),s.Il(this)),(r=this.Ph())&&(Qx(this,this.Ph(),this.Fh()).Bb&sr?(c=r.Qh())&&(e?!s&&c.Il(this):c.Hl(this)):(t=(i=this.Fh())>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,l;if((s=St(i=this.Dh(),e))>=(t=this.ji()))return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1){if(!(f=a2(($u(),Ui),i,e)))throw M(new Un(Aa+e.xe()+LK));if(ar(),u(f,69).xk()||(f=Vv(Ir(Ui,f))),c=u((r=this.Ih(f))>=0?this.Lh(r,!0,!0):ib(this,f,!0),160),(l=f.Ik())>1||-1==l)return u(u(c,220).Sl(e,!1),79)}else if(e.Jk())return u((r=this.Ih(e))>=0?this.Lh(r,!1,!0):ib(this,e,!1),79);return new $Mn(this,e)},o.hi=function(){return SQ(this)},o.ii=function(){return(ra(),_n).S},o.ji=function(){return se(this.ii())},o.ki=function(e){Px(this,e)},o.Ib=function(){return Ws(this)},w(Hn,"BasicEObjectImpl",99),b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){return AQ(this)[e]},o.mi=function(e,t){Dt(AQ(this),e,t)},o.ni=function(e){Dt(AQ(this),e,null)},o.th=function(){return u(qn(this,4),129)},o.uh=function(){throw M(new Pe)},o.vh=function(){return 0!=(4&this.Db)},o.zh=function(){throw M(new Pe)},o.oi=function(e){op(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|255&this.Db,this.oi(e)},o.Dh=function(){return vu(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var t;return T6(),null==(t=EJ(kh(u(qn(this,16),29)||this.ii())))?QU:new H7(this,t)},o.wh=function(){return 0==(1&this.Db)},o.Jh=function(){return u(qn(this,128),2034)},o.Kh=function(){return u(qn(this,16),29)},o.Oh=function(){return 0!=(32&this.Db)},o.Ph=function(){return u(qn(this,2),54)},o.Vh=function(){return 0!=(64&this.Db)},o.$h=function(){throw M(new Pe)},o._h=function(){return u(qn(this,64),288)},o.ci=function(e){op(this,16,e)},o.di=function(e){op(this,128,e)},o.ei=function(e){op(this,64,e)},o.hi=function(){return uu(this)},o.Db=0,w(Hn,"MinimalEObjectImpl",119),b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb},w(Hn,"MinimalEObjectImpl/Container",120),b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return qZ(this,e,t,i)},o.Uh=function(e,t,i){return Lnn(this,e,t,i)},o.Wh=function(e){return xJ(this,e)},o.bi=function(e,t){SY(this,e,t)},o.ii=function(){return Sc(),Poe},o.ki=function(e){vY(this,e)},o.nf=function(){return wRn(this)},o.gh=function(){return!this.o&&(this.o=new Du((Sc(),ll),R1,this,0)),this.o},o.of=function(e){return z(this,e)},o.pf=function(e){return Bf(this,e)},o.qf=function(e,t){return ft(this,e,t)},w(Kd,"EMapPropertyHolderImpl",2083),b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},KE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return yA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return 0!=this.a;case 1:return 0!=this.b}return WF(this,e)},o.bi=function(e,t){switch(e){case 0:return void OT(this,F(R(t)));case 1:return void IT(this,F(R(t)))}Lx(this,e,t)},o.ii=function(){return Sc(),Moe},o.ki=function(e){switch(e){case 0:return void OT(this,0);case 1:return void IT(this,0)}Px(this,e)},o.Ib=function(){var e;return 64&this.Db?Ws(this):((e=new gs(Ws(this))).a+=" (x: ",Mg(e,this.a),e.a+=", y: ",Mg(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0,w(Kd,"ElkBendPointImpl",572),b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return QY(this,e,t,i)},o.Sh=function(e,t,i){return jx(this,e,t,i)},o.Uh=function(e,t,i){return cF(this,e,t,i)},o.Wh=function(e){return lY(this,e)},o.bi=function(e,t){snn(this,e,t)},o.ii=function(){return Sc(),Aoe},o.ki=function(e){HY(this,e)},o.jh=function(){return this.k},o.kh=function(){return _M(this)},o.Ib=function(){return OF(this)},o.k=null,w(Kd,"ElkGraphElementImpl",739),b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return cZ(this,e,t,i)},o.Wh=function(e){return lZ(this,e)},o.bi=function(e,t){fnn(this,e,t)},o.ii=function(){return Sc(),Soe},o.ki=function(e){pZ(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){$g(this,e,t)},o.qh=function(e,t){qo(this,e,t)},o.rh=function(e){ru(this,e)},o.sh=function(e){cu(this,e)},o.Ib=function(){return Ax(this)},o.f=0,o.g=0,o.i=0,o.j=0,w(Kd,"ElkShapeImpl",740),b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return FZ(this,e,t,i)},o.Sh=function(e,t,i){return tnn(this,e,t,i)},o.Uh=function(e,t,i){return inn(this,e,t,i)},o.Wh=function(e){return AY(this,e)},o.bi=function(e,t){gen(this,e,t)},o.ii=function(){return Sc(),Toe},o.ki=function(e){OZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Dn(Xt,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Dn(Xt,this,7,4)),this.e},w(Kd,"ElkConnectableShapeImpl",741),b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},aL),o.Ah=function(e){return YZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return ak(this);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new q(jt,this,6,6)),this.a;case 7:return Kn(),!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return Kn(),!!Q5(this);case 9:return Kn(),!!tb(this);case 10:return Kn(),!this.b&&(this.b=new Dn(he,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new Dn(he,this,5,8)),0!=this.c.i)}return QY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16)>=0?YZ(this,i):this.Cb.Th(this,-1-r,null,i)),DW(this,u(e,27),i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),Qc(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),Qc(this.c,e,i);case 6:return!this.a&&(this.a=new q(jt,this,6,6)),Qc(this.a,e,i)}return jx(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return DW(this,null,i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),rr(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),rr(this.c,e,i);case 6:return!this.a&&(this.a=new q(jt,this,6,6)),rr(this.a,e,i)}return cF(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!ak(this);case 4:return!!this.b&&0!=this.b.i;case 5:return!!this.c&&0!=this.c.i;case 6:return!!this.a&&0!=this.a.i;case 7:return!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return Q5(this);case 9:return tb(this);case 10:return!this.b&&(this.b=new Dn(he,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new Dn(he,this,5,8)),0!=this.c.i)}return lY(this,e)},o.bi=function(e,t){switch(e){case 3:return void zA(this,u(t,27));case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),pe(this.b),!this.b&&(this.b=new Dn(he,this,4,7)),void Bt(this.b,u(t,16));case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),pe(this.c),!this.c&&(this.c=new Dn(he,this,5,8)),void Bt(this.c,u(t,16));case 6:return!this.a&&(this.a=new q(jt,this,6,6)),pe(this.a),!this.a&&(this.a=new q(jt,this,6,6)),void Bt(this.a,u(t,16))}snn(this,e,t)},o.ii=function(){return Sc(),Vdn},o.ki=function(e){switch(e){case 3:return void zA(this,null);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),void pe(this.b);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),void pe(this.c);case 6:return!this.a&&(this.a=new q(jt,this,6,6)),void pe(this.a)}HY(this,e)},o.Ib=function(){return iGn(this)},w(Kd,"ElkEdgeImpl",326),b(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},_E),o.Ah=function(e){return WZ(this,e)},o.Lh=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new ni(Ro,this,5)),this.a;case 6:return dOn(this);case 7:return t?ZF(this):this.i;case 8:return t?YF(this):this.f;case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),this.e;case 11:return this.d}return qZ(this,e,t,i)},o.Sh=function(e,t,i){var c;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16)>=0?WZ(this,i):this.Cb.Th(this,-1-c,null,i)),LW(this,u(e,74),i);case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),Qc(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),Qc(this.e,e,i)}return u(Nn(u(qn(this,16),29)||(Sc(),DO),t),69).wk().zk(this,uu(this),t-se((Sc(),DO)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new ni(Ro,this,5)),rr(this.a,e,i);case 6:return LW(this,null,i);case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),rr(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),rr(this.e,e,i)}return Lnn(this,e,t,i)},o.Wh=function(e){switch(e){case 1:return 0!=this.j;case 2:return 0!=this.k;case 3:return 0!=this.b;case 4:return 0!=this.c;case 5:return!!this.a&&0!=this.a.i;case 6:return!!dOn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&0!=this.g.i;case 10:return!!this.e&&0!=this.e.i;case 11:return null!=this.d}return xJ(this,e)},o.bi=function(e,t){switch(e){case 1:return void n4(this,F(R(t)));case 2:return void t4(this,F(R(t)));case 3:return void Z3(this,F(R(t)));case 4:return void e4(this,F(R(t)));case 5:return!this.a&&(this.a=new ni(Ro,this,5)),pe(this.a),!this.a&&(this.a=new ni(Ro,this,5)),void Bt(this.a,u(t,16));case 6:return void tqn(this,u(t,74));case 7:return void BT(this,u(t,84));case 8:return void xT(this,u(t,84));case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),pe(this.g),!this.g&&(this.g=new Dn(jt,this,9,10)),void Bt(this.g,u(t,16));case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),pe(this.e),!this.e&&(this.e=new Dn(jt,this,10,9)),void Bt(this.e,u(t,16));case 11:return void ZQ(this,Oe(t))}SY(this,e,t)},o.ii=function(){return Sc(),DO},o.ki=function(e){switch(e){case 1:return void n4(this,0);case 2:return void t4(this,0);case 3:return void Z3(this,0);case 4:return void e4(this,0);case 5:return!this.a&&(this.a=new ni(Ro,this,5)),void pe(this.a);case 6:return void tqn(this,null);case 7:return void BT(this,null);case 8:return void xT(this,null);case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),void pe(this.g);case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),void pe(this.e);case 11:return void ZQ(this,null)}vY(this,e)},o.Ib=function(){return gHn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0,w(Kd,"ElkEdgeSectionImpl",452),b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){return 0==e?(!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab):Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Sh=function(e,t,i){return 0==t?(!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i)):u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().zk(this,uu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){return 0==t?(!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i)):u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){return 0==e?!!this.Ab&&0!=this.Ab.i:Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.Zh=function(e){return Atn(this,e)},o.bi=function(e,t){if(0===e)return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.di=function(e){op(this,128,e)},o.ii=function(){return In(),Voe},o.ki=function(e){if(0===e)return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return r8(this,e)},o.Bb=0,w(Hn,"EModelElementImpl",158),b(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},PG),o.ri=function(e,t){return LGn(this,e,t)},o.si=function(e){var i,r,c,s;if(this.a!=Mo(e)||256&e.Bb)throw M(new Un(NK+e.zb+wb));for(r=_r(e);0!=Lc(r.a).i;){if(eb(i=u(Dy(r,0,L(s=u(D(Lc(r.a),0),89).c,90)?u(s,29):(In(),$s)),29)))return u(c=Mo(i).wi().si(i),54).ci(e),c;r=_r(i)}return"java.util.Map$Entry"==(null!=e.D?e.D:e.B)?new VSn(e):new yV(e)},o.ti=function(e,t){return ob(this,e,t)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.a}return Jo(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e),t,i)},o.Sh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Pf,i)),_Y(this,u(e,241),i)}return u(Nn(u(qn(this,16),29)||(In(),Wa),t),69).wk().zk(this,uu(this),t-se((In(),Wa)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 1:return _Y(this,null,i)}return u(Nn(u(qn(this,16),29)||(In(),Wa),t),69).wk().Ak(this,uu(this),t-se((In(),Wa)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return Wo(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void ZKn(this,u(t,241))}ns(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e),t)},o.ii=function(){return In(),Wa},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void ZKn(this,null)}Zo(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e))},w(Hn,"EFactoryImpl",720),b(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},lmn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return Jr(t);default:throw M(new Un(dm+e.xe()+wb))}},o.si=function(e){var t;switch(-1==e.G&&(e.G=(t=Mo(e))?j1(t.vi(),e):-1),e.G){case 4:return new EG;case 6:return new d6;case 7:return new Ez;case 8:return new aL;case 9:return new KE;case 10:return new _E;case 11:return new amn;default:throw M(new Un(NK+e.zb+wb))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw M(new Un(dm+e.xe()+wb))}},w(Kd,"ElkGraphFactoryImpl",1037),b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var t;return null==(t=EJ(kh(u(qn(this,16),29)||this.ii())))?(T6(),T6(),QU):new pAn(this,t)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.xe()}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void this.ui(Oe(t))}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),Joe},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void this.ui(null)}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.xe=function(){return this.zb},o.ui=function(e){Jc(this,e)},o.Ib=function(){return L5(this)},o.zb=null,w(Hn,"ENamedElementImpl",448),b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},GIn),o.Ah=function(e){return hKn(this,e)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new iw(this,If,this)),this.rb;case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:kOn(this)}return Jo(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,z9,i)),UY(this,u(e,480),i);case 5:return!this.rb&&(this.rb=new iw(this,If,this)),Qc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),Qc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16)>=0?hKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,7,i)}return u(Nn(u(qn(this,16),29)||(In(),q1),t),69).wk().zk(this,uu(this),t-se((In(),q1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 4:return UY(this,null,i);case 5:return!this.rb&&(this.rb=new iw(this,If,this)),rr(this.rb,e,i);case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),rr(this.vb,e,i);case 7:return Oo(this,null,7,i)}return u(Nn(u(qn(this,16),29)||(In(),q1),t),69).wk().Ak(this,uu(this),t-se((In(),q1)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.yb;case 3:return null!=this.xb;case 4:return!!this.sb;case 5:return!!this.rb&&0!=this.rb.i;case 6:return!!this.vb&&0!=this.vb.i;case 7:return!!kOn(this)}return Wo(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e))},o.Zh=function(e){return function aTe(n,e){var t,i,r,c,s,f;if(!n.tb){for(!n.rb&&(n.rb=new iw(n,If,n)),f=new Tv((c=n.rb).i),r=new ne(c);r.e!=r.i.gc();)i=u(ue(r),142),(t=u(null==(s=i.xe())?Yc(f.f,null,i):J0(f.i,s,i),142))&&(null==s?Yc(f.f,null,t):J0(f.i,s,t));n.tb=f}return u(Bc(n.tb,e),142)}(this,e)||Atn(this,e)},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return void UT(this,Oe(t));case 3:return void qT(this,Oe(t));case 4:return void Tx(this,u(t,480));case 5:return!this.rb&&(this.rb=new iw(this,If,this)),pe(this.rb),!this.rb&&(this.rb=new iw(this,If,this)),void Bt(this.rb,u(t,16));case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),pe(this.vb),!this.vb&&(this.vb=new Fv(Pf,this,6,7)),void Bt(this.vb,u(t,16))}ns(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new ne(this.rb);i.e!=i.i.gc();)L(t=ue(i),364)&&(u(t,364).w=null);op(this,64,e)},o.ii=function(){return In(),q1},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return void UT(this,null);case 3:return void qT(this,null);case 4:return void Tx(this,null);case 5:return!this.rb&&(this.rb=new iw(this,If,this)),void pe(this.rb);case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),void pe(this.vb)}Zo(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e))},o.pi=function(){ax(this)},o.vi=function(){return!this.rb&&(this.rb=new iw(this,If,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return 64&this.Db?L5(this):((e=new gs(L5(this))).a+=" (nsURI: ",jr(e,this.yb),e.a+=", nsPrefix: ",jr(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null,w(Hn,"EPackageImpl",184),b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},MHn),o.q=!1,o.r=!1;var Doe=!1;w(Kd,"ElkGraphPackageImpl",569),b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},EG),o.Ah=function(e){return VZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return yOn(this);case 8:return this.a}return cZ(this,e,t,i)},o.Sh=function(e,t,i){var r;return 7===t?(this.Cb&&(i=(r=this.Db>>16)>=0?VZ(this,i):this.Cb.Th(this,-1-r,null,i)),FV(this,u(e,167),i)):jx(this,e,t,i)},o.Uh=function(e,t,i){return 7==t?FV(this,null,i):cF(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!yOn(this);case 8:return!Tn("",this.a)}return lZ(this,e)},o.bi=function(e,t){switch(e){case 7:return void Pen(this,u(t,167));case 8:return void WQ(this,Oe(t))}fnn(this,e,t)},o.ii=function(){return Sc(),Jdn},o.ki=function(e){switch(e){case 7:return void Pen(this,null);case 8:return void WQ(this,"")}pZ(this,e)},o.Ib=function(){return d_n(this)},o.a="",w(Kd,"ElkLabelImpl",366),b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},d6),o.Ah=function(e){return ZZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),this.a;case 11:return Ct(this);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),this.b;case 13:return Kn(),!this.a&&(this.a=new q(Qe,this,10,11)),this.a.i>0}return FZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),Qc(this.c,e,i);case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),Qc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16)>=0?ZZ(this,i):this.Cb.Th(this,-1-r,null,i)),qW(this,u(e,27),i);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),Qc(this.b,e,i)}return tnn(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),rr(this.c,e,i);case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),rr(this.a,e,i);case 11:return qW(this,null,i);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),rr(this.b,e,i)}return inn(this,e,t,i)},o.Wh=function(e){switch(e){case 9:return!!this.c&&0!=this.c.i;case 10:return!!this.a&&0!=this.a.i;case 11:return!!Ct(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new q(Qe,this,10,11)),this.a.i>0}return AY(this,e)},o.bi=function(e,t){switch(e){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),pe(this.c),!this.c&&(this.c=new q(Yu,this,9,9)),void Bt(this.c,u(t,16));case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),pe(this.a),!this.a&&(this.a=new q(Qe,this,10,11)),void Bt(this.a,u(t,16));case 11:return void XA(this,u(t,27));case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),pe(this.b),!this.b&&(this.b=new q(Xt,this,12,3)),void Bt(this.b,u(t,16))}gen(this,e,t)},o.ii=function(){return Sc(),Qdn},o.ki=function(e){switch(e){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),void pe(this.c);case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),void pe(this.a);case 11:return void XA(this,null);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),void pe(this.b)}OZ(this,e)},o.Ib=function(){return Gen(this)},w(Kd,"ElkNodeImpl",207),b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Ez),o.Ah=function(e){return JZ(this,e)},o.Lh=function(e,t,i){return 9==e?Df(this):FZ(this,e,t,i)},o.Sh=function(e,t,i){var r;return 9===t?(this.Cb&&(i=(r=this.Db>>16)>=0?JZ(this,i):this.Cb.Th(this,-1-r,null,i)),NW(this,u(e,27),i)):tnn(this,e,t,i)},o.Uh=function(e,t,i){return 9==t?NW(this,null,i):inn(this,e,t,i)},o.Wh=function(e){return 9==e?!!Df(this):AY(this,e)},o.bi=function(e,t){9!==e?gen(this,e,t):Men(this,u(t,27))},o.ii=function(){return Sc(),Ydn},o.ki=function(e){9!==e?OZ(this,e):Men(this,null)},o.Ib=function(){return eUn(this)},w(Kd,"ElkPortImpl",193);var Noe=Ot(ur,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},amn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return T0(this)},o.Di=function(e){VQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return yA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return null!=this.c}return WF(this,e)},o.bi=function(e,t){switch(e){case 0:return void VQ(this,u(t,149));case 1:return void XQ(this,t)}Lx(this,e,t)},o.ii=function(){return Sc(),ll},o.ki=function(e){switch(e){case 0:return void VQ(this,null);case 1:return void XQ(this,null)}Px(this,e)},o.Bi=function(){var e;return-1==this.a&&(this.a=(e=this.b)?wt(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,XQ(this,e),t},o.Ib=function(){var e;return 64&this.Db?Ws(this):(Re(Re(Re(e=new V1,this.b?this.b.Pg():yu),AR),z6(this.c)),e.a)},o.a=-1,o.c=null;var R1=w(Kd,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},wmn),w(Hi,"JsonAdapter",996),b(216,63,Rl,oh),w(Hi,"JsonImportException",216),b(868,1,{},lKn),w(Hi,"JsonImporter",868),b(903,1,{},pMn),w(Hi,"JsonImporter/lambda$0$Type",903),b(904,1,{},mMn),w(Hi,"JsonImporter/lambda$1$Type",904),b(912,1,{},Hkn),w(Hi,"JsonImporter/lambda$10$Type",912),b(914,1,{},kMn),w(Hi,"JsonImporter/lambda$11$Type",914),b(915,1,{},yMn),w(Hi,"JsonImporter/lambda$12$Type",915),b(921,1,{},DIn),w(Hi,"JsonImporter/lambda$13$Type",921),b(920,1,{},NIn),w(Hi,"JsonImporter/lambda$14$Type",920),b(916,1,{},jMn),w(Hi,"JsonImporter/lambda$15$Type",916),b(917,1,{},EMn),w(Hi,"JsonImporter/lambda$16$Type",917),b(918,1,{},CMn),w(Hi,"JsonImporter/lambda$17$Type",918),b(919,1,{},MMn),w(Hi,"JsonImporter/lambda$18$Type",919),b(924,1,{},qkn),w(Hi,"JsonImporter/lambda$19$Type",924),b(905,1,{},Ukn),w(Hi,"JsonImporter/lambda$2$Type",905),b(922,1,{},Gkn),w(Hi,"JsonImporter/lambda$20$Type",922),b(923,1,{},zkn),w(Hi,"JsonImporter/lambda$21$Type",923),b(927,1,{},Xkn),w(Hi,"JsonImporter/lambda$22$Type",927),b(925,1,{},Wkn),w(Hi,"JsonImporter/lambda$23$Type",925),b(926,1,{},Vkn),w(Hi,"JsonImporter/lambda$24$Type",926),b(929,1,{},Jkn),w(Hi,"JsonImporter/lambda$25$Type",929),b(928,1,{},Qkn),w(Hi,"JsonImporter/lambda$26$Type",928),b(930,1,re,TMn),o.Cd=function(e){!function T3e(n,e,t){var i,r;r=null,(i=El(n,t))&&(r=Bnn(i)),fRn(e,t,r)}(this.b,this.a,Oe(e))},w(Hi,"JsonImporter/lambda$27$Type",930),b(931,1,re,AMn),o.Cd=function(e){!function A3e(n,e,t){var i,r;r=null,(i=El(n,t))&&(r=Bnn(i)),fRn(e,t,r)}(this.b,this.a,Oe(e))},w(Hi,"JsonImporter/lambda$28$Type",931),b(932,1,{},SMn),w(Hi,"JsonImporter/lambda$29$Type",932),b(908,1,{},Ykn),w(Hi,"JsonImporter/lambda$3$Type",908),b(933,1,{},PMn),w(Hi,"JsonImporter/lambda$30$Type",933),b(934,1,{},Zkn),w(Hi,"JsonImporter/lambda$31$Type",934),b(935,1,{},nyn),w(Hi,"JsonImporter/lambda$32$Type",935),b(936,1,{},eyn),w(Hi,"JsonImporter/lambda$33$Type",936),b(937,1,{},tyn),w(Hi,"JsonImporter/lambda$34$Type",937),b(870,1,{},iyn),w(Hi,"JsonImporter/lambda$35$Type",870),b(941,1,{},ESn),w(Hi,"JsonImporter/lambda$36$Type",941),b(938,1,re,ryn),o.Cd=function(e){!function Lpe(n,e){var t;wd(t=new jv,"x",e.a),wd(t,"y",e.b),Uv(n,t)}(this.a,u(e,377))},w(Hi,"JsonImporter/lambda$37$Type",938),b(939,1,re,IMn),o.Cd=function(e){!function dle(n,e,t){CKn(e,Ox(n,t))}(this.a,this.b,u(e,166))},w(Hi,"JsonImporter/lambda$38$Type",939),b(940,1,re,OMn),o.Cd=function(e){!function ble(n,e,t){CKn(e,Ox(n,t))}(this.a,this.b,u(e,166))},w(Hi,"JsonImporter/lambda$39$Type",940),b(906,1,{},cyn),w(Hi,"JsonImporter/lambda$4$Type",906),b(942,1,re,uyn),o.Cd=function(e){!function Dpe(n,e){var t;wd(t=new jv,"x",e.a),wd(t,"y",e.b),Uv(n,t)}(this.a,u(e,8))},w(Hi,"JsonImporter/lambda$40$Type",942),b(907,1,{},oyn),w(Hi,"JsonImporter/lambda$5$Type",907),b(911,1,{},syn),w(Hi,"JsonImporter/lambda$6$Type",911),b(909,1,{},fyn),w(Hi,"JsonImporter/lambda$7$Type",909),b(910,1,{},hyn),w(Hi,"JsonImporter/lambda$8$Type",910),b(913,1,{},lyn),w(Hi,"JsonImporter/lambda$9$Type",913),b(961,1,re,ayn),o.Cd=function(e){Uv(this.a,new rw(Oe(e)))},w(Hi,"JsonMetaDataConverter/lambda$0$Type",961),b(962,1,re,dyn),o.Cd=function(e){!function Cwe(n,e){Uv(n,new rw(null!=e.f?e.f:""+e.g))}(this.a,u(e,245))},w(Hi,"JsonMetaDataConverter/lambda$1$Type",962),b(963,1,re,byn),o.Cd=function(e){!function E2e(n,e){null!=e.c&&Uv(n,new rw(e.c))}(this.a,u(e,143))},w(Hi,"JsonMetaDataConverter/lambda$2$Type",963),b(964,1,re,wyn),o.Cd=function(e){!function Mwe(n,e){Uv(n,new rw(null!=e.f?e.f:""+e.g))}(this.a,u(e,170))},w(Hi,"JsonMetaDataConverter/lambda$3$Type",964),b(245,22,{3:1,34:1,22:1,245:1},Iv);var NO,$O,UU,FO,xO,BO,GU,zU,$oe,RO=we(Wy,"GraphFeature",245,ke,function s4e(){return F4(),S(T(RO,1),G,245,0,[zU,xO,BO,FO,GU,$O,NO,UU])},function Q0e(n){return F4(),Ee((xFn(),$oe),n)});b(11,1,{34:1,149:1},ct,Pt,Cn,Li),o.Fd=function(e){return function m1e(n,e){return oQ(n.b,e.Pg())}(this,u(e,149))},o.Fb=function(e){return iOn(this,e)},o.Sg=function(){return rn(this)},o.Pg=function(){return this.b},o.Hb=function(){return w1(this.b)},o.Ib=function(){return this.b},w(Wy,"Property",11),b(671,1,Ne,TL),o.Ne=function(e,t){return function P5e(n,e,t){var i,r;return i=u(e.of(n.a),34),r=u(t.of(n.a),34),null!=i&&null!=r?Fk(i,r):null!=i?-1:null!=r?1:0}(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Wy,"PropertyHolderComparator",671),b(709,1,Ti,rz),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return function I3e(n){var e;if(!n.a)throw M(new LIn);return e=n.a,n.a=Ct(n.a),e}(this)},o.Qb=function(){lEn()},o.Ob=function(){return!!this.a},w(uP,"ElkGraphUtil/AncestorIterator",709);var n0n=Ot(ur,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){N5(this,e,t)},o.Fc=function(e){return me(this,e)},o.cd=function(e,t){return pY(this,e,t)},o.Gc=function(e){return Bt(this,e)},o.Ii=function(){return new $v(this)},o.Ji=function(){return new q7(this)},o.Ki=function(e){return $k(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){T$(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return Rqn(this,e)},o.Hb=function(){return bY(this)},o.Si=function(){return!1},o.Kc=function(){return new ne(this)},o.ed=function(){return new Nv(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw M(new ew(e,t));return new ON(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return ET(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return n2(this,e,t)},o.Ib=function(){return sZ(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return g4(this,t)},w(ur,"AbstractEList",70),b(66,70,Ih,HE,q0,sY),o.Ei=function(e,t){return Ex(this,e,t)},o.Fi=function(e){return FRn(this,e)},o.Gi=function(e,t){Jk(this,e,t)},o.Hi=function(e){mk(this,e)},o.$i=function(e){return jQ(this,e)},o.$b=function(){g5(this)},o.Hc=function(e){return L4(this,e)},o.Xb=function(e){return D(this,e)},o._i=function(e){var t,i,r;++this.j,e>(i=null==this.g?0:this.g.length)&&(r=this.g,(t=i+(i/2|0)+4)=0&&(this.gd(t),!0)},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()},w(ur,"DelegatingEList",2093),b(2094,2093,tJn),o.Ei=function(e,t){return itn(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){THn(this,e,t)},o.Hi=function(e){bHn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){h8(this)},o.Ij=function(e,t,i,r,c){return new tOn(this,e,t,i,r,c)},o.Jj=function(e){tt(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=Pnn(this,e,t),this.Jj(this.Ij(7,Y(t),i,e,r)),i):Pnn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=yM(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i))?(i.nj(t),i.oj()):this.Jj(t):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=yM(this,e),this.Mj()&&c&&(i=this.Oj(c,null))&&i.oj(),c)},o.Xi=function(e,t){return DUn(this,e,t)},w(Ip,"DelegatingNotifyingListImpl",2094),b(152,1,lj),o.nj=function(e){return bnn(this,e)},o.oj=function(){N$(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return kqn(this)},o.jj=function(){return null},o.kj=function(){return Nen(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,r,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(e.gj()){case 1:case 2:if(x(e.jj())===x(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),1==e.gj()&&(this.d=1),!0}case 4:if(4===e.gj()&&x(e.jj())===x(this.jj())&&this.hj(null)==e.hj(null))return a=ktn(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new q0(2),l<=f?(me(g,this.n),me(g,e.kj()),this.g=S(T(ye,1),_e,28,15,[this.o=l,f+1])):(me(g,e.kj()),me(g,this.n),this.g=S(T(ye,1),_e,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break;case 6:if(4===e.gj()&&x(e.jj())===x(this.jj())&&this.hj(null)==e.hj(null)){for(a=ktn(this),f=e.lj(),d=u(this.g,53),r=K(ye,_e,28,d.length+1,15,1),t=0;t>>0).toString(16))).a+=" (eventType: ",this.d){case 1:r.a+="SET";break;case 2:r.a+="UNSET";break;case 3:r.a+="ADD";break;case 5:r.a+="ADD_MANY";break;case 4:r.a+="REMOVE";break;case 6:r.a+="REMOVE_MANY";break;case 7:r.a+="MOVE";break;case 8:r.a+="REMOVING_ADAPTER";break;case 9:r.a+="RESOLVE";break;default:JL(r,this.d)}if(oUn(this)&&(r.a+=", touch: true"),r.a+=", position: ",JL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",K6(r,this.jj()),r.a+=", feature: ",K6(r,this.Kj()),r.a+=", oldValue: ",K6(r,Nen(this)),r.a+=", newValue: ",6==this.d&&L(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new Y6(this),this.a=this.j),bf(this.b,e)):L4(this,e)},o.Yi=function(){return!0},o.a=0,w(ur,"AbstractEList/1",966),b(302,77,QB,ew),w(ur,"AbstractEList/BasicIndexOutOfBoundsException",302),b(37,1,Ti,ne),o.Nb=function(e){Ri(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw M(new Ho)},o.Yj=function(){return ue(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){z5(this)},o.e=0,o.f=0,o.g=-1,w(ur,"AbstractEList/EIterator",37),b(286,37,Jh,Nv,ON),o.Qb=function(){z5(this)},o.Rb=function(e){NBn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw L(t=At(t),77)?(this.Xj(),M(new tc)):M(t)}},o.$j=function(e){RRn(this,e)},o.Sb=function(){return 0!=this.e},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)},w(ur,"AbstractEList/EListIterator",286),b(355,37,Ti,$v),o.Yj=function(){return VF(this)},o.Qb=function(){throw M(new Pe)},w(ur,"AbstractEList/NonResolvingEIterator",355),b(398,286,Jh,q7,JW),o.Rb=function(e){throw M(new Pe)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw L(t=At(t),77)?(this.Xj(),M(new tc)):M(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw L(t=At(t),77)?(this.Xj(),M(new tc)):M(t)}},o.Qb=function(){throw M(new Pe)},o.Wb=function(e){throw M(new Pe)},w(ur,"AbstractEList/NonResolvingEListIterator",398),b(2080,70,iJn),o.Ei=function(e,t){var r,c,s,f,l,a,d,g;if(0!=(c=t.gc())){for(r=pF(this,(d=null==(a=u(qn(this.a,4),129))?0:a.length)+c),(g=d-e)>0&&Nc(a,e,r,e+c,g),l=t.Kc(),f=0;fi)throw M(new ew(e,i));return new CIn(this,e)},o.$b=function(){var e,t;++this.j,t=null==(e=u(qn(this.a,4),129))?0:e.length,S4(this,null),T$(this,t,e)},o.Hc=function(e){var t,r,c,s;if(null!=(t=u(qn(this.a,4),129)))if(null!=e){for(c=0,s=(r=t).length;c=(i=null==(t=u(qn(this.a,4),129))?0:t.length))throw M(new ew(e,i));return t[e]},o.dd=function(e){var t,i,r;if(null!=(t=u(qn(this.a,4),129)))if(null!=e){for(i=0,r=t.length;ii)throw M(new ew(e,i));return new EIn(this,e)},o.Ti=function(e,t){var i,r,c;if(e>=(c=null==(i=UBn(this))?0:i.length))throw M(new Ar(qK+e+_d+c));if(t>=c)throw M(new Ar(UK+t+_d+c));return r=i[t],e!=t&&(e=(s=null==(t=u(qn(n.a,4),129))?0:t.length))throw M(new ew(e,s));return r=t[e],1==s?i=null:(Nc(t,0,i=K(WU,VK,424,s-1,0,1),0,e),(c=s-e-1)>0&&Nc(t,e+1,i,e,c)),S4(n,i),O_n(n,e,r),r}(this,e)},o.Xi=function(e,t){var i,r;return r=(i=UBn(this))[e],HD(i,e,g4(this,t)),S4(this,i),r},o.gc=function(){var e;return null==(e=u(qn(this.a,4),129))?0:e.length},o.Pc=function(){var e,t,i;return e=u(qn(this.a,4),129),t=K(WU,VK,424,i=null==e?0:e.length,0,1),i>0&&Nc(e,0,t,0,i),t},o.Qc=function(e){var t,r;return(r=null==(t=u(qn(this.a,4),129))?0:t.length)>0&&(e.lengthr&&Dt(e,r,null),e},w(ur,"ArrayDelegatingEList",2080),b(1051,37,Ti,MDn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},o.Qb=function(){z5(this),this.a=u(qn(this.b.a,4),129)},w(ur,"ArrayDelegatingEList/EIterator",1051),b(722,286,Jh,xPn,EIn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},o.$j=function(e){RRn(this,e),this.a=u(qn(this.b.a,4),129)},o.Qb=function(){z5(this),this.a=u(qn(this.b.a,4),129)},w(ur,"ArrayDelegatingEList/EListIterator",722),b(1052,355,Ti,TDn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},w(ur,"ArrayDelegatingEList/NonResolvingEIterator",1052),b(723,398,Jh,BPn,CIn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},w(ur,"ArrayDelegatingEList/NonResolvingEListIterator",723),b(615,302,QB,FD),w(ur,"BasicEList/BasicIndexOutOfBoundsException",615),b(710,66,Ih,BX),o.bd=function(e,t){throw M(new Pe)},o.Fc=function(e){throw M(new Pe)},o.cd=function(e,t){throw M(new Pe)},o.Gc=function(e){throw M(new Pe)},o.$b=function(){throw M(new Pe)},o._i=function(e){throw M(new Pe)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw M(new Pe)},o.Ui=function(e,t){throw M(new Pe)},o.gd=function(e){throw M(new Pe)},o.Mc=function(e){throw M(new Pe)},o.hd=function(e,t){throw M(new Pe)},w(ur,"BasicEList/UnmodifiableEList",710),b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){!function o1e(n,e,t){n.c.bd(e,u(t,136))}(this,e,u(t,44))},o.Fc=function(e){return function nae(n,e){return n.c.Fc(u(e,136))}(this,u(e,44))},o.Jc=function(e){_i(this,e)},o.Xb=function(e){return u(D(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){!function s1e(n,e,t){n.c.Ui(e,u(t,136))}(this,e,u(t,44))},o.Lc=function(){return new Mn(null,new Pn(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return function Ewe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}(this,e,u(t,44))},o.jd=function(e){yd(this,e)},o.Nc=function(){return new Pn(this,16)},o.Oc=function(){return new Mn(null,new Pn(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return _k(this.c,e)},o._j=function(){var t,i;if(null==this.d){for(this.d=K(e0n,aun,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)MA(this,u(t.Yj(),136));this.e=i}},o.Fb=function(e){return lSn(this,e)},o.Hb=function(){return bY(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new gyn(this)},o.dc=function(){return 0==this.f},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return jk(this)},o.ck=function(e,t,i){return new CSn(e,t,i)},o.dk=function(){return new mmn},o.Mc=function(e){return Q$n(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new f1(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return sZ(this.c)},o.e=0,o.f=0,w(ur,"BasicEMap",721),b(1046,66,Ih,gyn),o.Mi=function(e,t){!function Rfe(n,e){MA(n.a,e)}(this,u(t,136))},o.Pi=function(e,t,i){++(this,u(t,136),this).a.e},o.Qi=function(e,t){!function Kfe(n,e){PF(n.a,e)}(this,u(t,136))},o.Ri=function(e,t,i){!function R1e(n,e,t){PF(n.a,t),MA(n.a,e)}(this,u(t,136),u(i,136))},o.Oi=function(e,t){UFn(this.a)},w(ur,"BasicEMap/1",1046),b(1047,66,Ih,mmn),o.aj=function(e){return K(ANe,rJn,621,e,0,1)},w(ur,"BasicEMap/2",1047),b(1048,Gf,Fu,vyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return RF(this.a,e)},o.Kc=function(){return 0==this.a.f?(I3(),SE.a):new Zjn(this.a)},o.Mc=function(e){var t;return t=this.a.f,dA(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f},w(ur,"BasicEMap/3",1048),b(1049,31,Lw,pyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return Kqn(this.a,e)},o.Kc=function(){return 0==this.a.f?(I3(),SE.a):new nEn(this.a)},o.gc=function(){return this.a.f},w(ur,"BasicEMap/4",1049),b(1050,Gf,Fu,myn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&L(e,44)&&(this.a._j(),c=null==(h=(l=u(e,44)).ld())?0:wt(h),s=$W(this.a,c),t=this.a.d[s]))for(i=u(t.g,379),a=t.i,f=0;f"+this.c},o.a=0;var SE,ANe=w(ur,"BasicEMap/EntryImpl",621);b(546,1,{},qE),w(ur,"BasicEMap/View",546),b(783,1,{}),o.Fb=function(e){return ven((On(),Vi),e)},o.Hb=function(){return TY((On(),Vi))},o.Ib=function(){return pa((On(),Vi))},w(ur,"ECollections/BasicEmptyUnmodifiableEList",783),b(1348,1,Jh,kmn),o.Nb=function(e){Ri(this,e)},o.Rb=function(e){throw M(new Pe)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw M(new tc)},o.Tb=function(){return 0},o.Ub=function(){throw M(new tc)},o.Vb=function(){return-1},o.Qb=function(){throw M(new Pe)},o.Wb=function(e){throw M(new Pe)},w(ur,"ECollections/BasicEmptyUnmodifiableEList/1",1348),b(1346,783,{20:1,16:1,15:1,61:1},fjn),o.bd=function(e,t){CEn()},o.Fc=function(e){return MEn()},o.cd=function(e,t){return TEn()},o.Gc=function(e){return AEn()},o.$b=function(){SEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){_i(this,e)},o.Xb=function(e){return _X((On(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return PEn()},o.Ui=function(e,t){IEn()},o.Lc=function(){return new Mn(null,new Pn(this,16))},o.gd=function(e){return OEn()},o.Mc=function(e){return LEn()},o.hd=function(e,t){return DEn()},o.gc=function(){return 0},o.jd=function(e){yd(this,e)},o.Nc=function(){return new Pn(this,16)},o.Oc=function(){return new Mn(null,new Pn(this,16))},o.kd=function(e,t){return On(),new f1(Vi,e,t)},o.Pc=function(){return BV((On(),Vi))},o.Qc=function(e){return On(),H5(Vi,e)},w(ur,"ECollections/EmptyUnmodifiableEList",1346),b(1347,783,{20:1,16:1,15:1,61:1,597:1},hjn),o.bd=function(e,t){CEn()},o.Fc=function(e){return MEn()},o.cd=function(e,t){return TEn()},o.Gc=function(e){return AEn()},o.$b=function(){SEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){_i(this,e)},o.Xb=function(e){return _X((On(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return PEn()},o.Ui=function(e,t){IEn()},o.Lc=function(){return new Mn(null,new Pn(this,16))},o.gd=function(e){return OEn()},o.Mc=function(e){return LEn()},o.hd=function(e,t){return DEn()},o.gc=function(){return 0},o.jd=function(e){yd(this,e)},o.Nc=function(){return new Pn(this,16)},o.Oc=function(){return new Mn(null,new Pn(this,16))},o.kd=function(e,t){return On(),new f1(Vi,e,t)},o.Pc=function(){return BV((On(),Vi))},o.Qc=function(e){return On(),H5(Vi,e)},o.bk=function(){return On(),On(),il},w(ur,"ECollections/EmptyUnmodifiableEMap",1347);var KO,i0n=Ot(ur,"Enumerator");b(288,1,{288:1},zx),o.Fb=function(e){var t;return this===e||!!L(e,288)&&(t=u(e,288),this.f==t.f&&function Rbe(n,e){return null==n?null==e:wA(n,e)}(this.i,t.i)&&mN(this.a,256&this.f?256&t.f?t.a:null:256&t.f?null:t.a)&&mN(this.d,t.d)&&mN(this.g,t.g)&&mN(this.e,t.e)&&function f9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t=0?n.ki(t):Qnn(n,e)}(this.a,this.b)},w(Hn,"BasicEObjectImpl/4",1040),b(2081,1,{114:1}),o.Mk=function(e){this.e=0==e?nse:K(pi,xn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw M(new Pe)},o.Pk=function(){throw M(new Pe)},o.Qk=function(){return this.d},o.Rk=function(){return null!=this.e},o.Sk=function(e){this.c=e},o.Tk=function(e){throw M(new Pe)},o.Uk=function(e){throw M(new Pe)},o.Vk=function(e){this.d=e},w(Hn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),b(192,2081,{114:1},af),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},w(Hn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(516,99,pVn,UE),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return 2&this.j?this.$h().Nk():this.ii()},o.Fh=function(){return this.i},o.wh=function(){return 0!=(1&this.j)},o.Ph=function(){return this.g},o.Vh=function(){return 0!=(4&this.j)},o.$h=function(){return!this.k&&(this.k=new af),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(ra(),_n).S},o.i=0,o.j=1,w(Hn,"EObjectImpl",516),b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},yV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return St(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return null!=this.e},o.$h=function(){return!this.k&&(this.k=new ymn),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return null==this.e&&(e=se(this.d),this.e=0==e?ese:K(pi,xn,1,e,5,1)),this},o.ji=function(){return 0},w(Hn,"DynamicEObjectImpl",798),b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},VSn),o.Fb=function(e){return this===e},o.Hb=function(){return T0(this)},o.ci=function(e){this.d=e,this.b=Ey(e,"key"),this.c=Ey(e,D8)},o.Bi=function(){var e;return-1==this.a&&(e=$$(this,this.b),this.a=null==e?0:wt(e)),this.a},o.ld=function(){return $$(this,this.b)},o.md=function(){return $$(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){TJ(this,this.b,e)},o.nd=function(e){var t;return t=$$(this,this.c),TJ(this,this.c,e),t},o.a=0,w(Hn,"DynamicEObjectImpl/BasicEMapEntry",1522),b(1523,1,{114:1},ymn),o.Mk=function(e){throw M(new Pe)},o.li=function(e){throw M(new Pe)},o.mi=function(e,t){throw M(new Pe)},o.ni=function(e){throw M(new Pe)},o.Nk=function(){throw M(new Pe)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw M(new Pe)},o.Sk=function(e){throw M(new Pe)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e},w(Hn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},CG),o.Ah=function(e){return QZ(this,e)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new wo((In(),hr),kc,this)),this.b):(!this.b&&(this.b=new wo((In(),hr),kc,this)),jk(this.b));case 3:return jOn(this);case 4:return!this.a&&(this.a=new ni(Ua,this,4)),this.a;case 5:return!this.c&&(this.c=new Bg(Ua,this,5)),this.c}return Jo(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16)>=0?QZ(this,i):this.Cb.Th(this,-1-c,null,i)),xV(this,u(e,155),i)}return u(Nn(u(qn(this,16),29)||(In(),K1),t),69).wk().zk(this,uu(this),t-se((In(),K1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 2:return!this.b&&(this.b=new wo((In(),hr),kc,this)),fM(this.b,e,i);case 3:return xV(this,null,i);case 4:return!this.a&&(this.a=new ni(Ua,this,4)),rr(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),K1),t),69).wk().Ak(this,uu(this),t-se((In(),K1)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.d;case 2:return!!this.b&&0!=this.b.f;case 3:return!!jOn(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return Wo(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void function Tbe(n,e){YQ(n,null==e?null:(Jn(e),e))}(this,Oe(t));case 2:return!this.b&&(this.b=new wo((In(),hr),kc,this)),void GT(this.b,t);case 3:return void oqn(this,u(t,155));case 4:return!this.a&&(this.a=new ni(Ua,this,4)),pe(this.a),!this.a&&(this.a=new ni(Ua,this,4)),void Bt(this.a,u(t,16));case 5:return!this.c&&(this.c=new Bg(Ua,this,5)),pe(this.c),!this.c&&(this.c=new Bg(Ua,this,5)),void Bt(this.c,u(t,16))}ns(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e),t)},o.ii=function(){return In(),K1},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void YQ(this,null);case 2:return!this.b&&(this.b=new wo((In(),hr),kc,this)),void this.b.c.$b();case 3:return void oqn(this,null);case 4:return!this.a&&(this.a=new ni(Ua,this,4)),void pe(this.a);case 5:return!this.c&&(this.c=new Bg(Ua,this,5)),void pe(this.c)}Zo(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e))},o.Ib=function(){return lBn(this)},o.d=null,w(Hn,"EAnnotationImpl",519),b(141,721,dun,Du),o.Gi=function(e,t){!function Ule(n,e,t){u(n.c,71).Gi(e,t)}(this,e,u(t,44))},o.Wk=function(e,t){return function zae(n,e,t){return u(n.c,71).Wk(e,t)}(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return fM(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return(r=u(Mo(this.b).wi().si(this.b),136)).Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new uz(this)},o.Wb=function(e){GT(this,e)},o.Gk=function(){u(this.c,79).Gk()},w(Et,"EcoreEMap",141),b(165,141,dun,wo),o._j=function(){var e,t,i,c,s;if(null==this.d){for(s=K(e0n,aun,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)!(e=s[c=((t=u(i.Yj(),136)).Bi()&nt)%s.length])&&(e=s[c]=new uz(this)),e.Fc(t);this.d=s}},w(Hn,"EAnnotationImpl/1",165),b(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),!!this.Jk();case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.Jk();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i)}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void this.ui(Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void this.Zk(u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj())}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),Zoe},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void this.ui(null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void this.Zk(1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj())}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.pi=function(){ys(this),this.Bb|=1},o.Hk=function(){return ys(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return(e=this.t)>1||-1==e},o.Si=function(){return 0!=(512&this.Bb)},o.Yk=function(e,t){return GY(this,e,t)},o.Zk=function(e){bw(this,e)},o.Ib=function(){return sen(this)},o.s=0,o.t=1,w(Hn,"ETypedElementImpl",292),b(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),o.Ah=function(e){return nKn(this,e)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),!!this.Jk();case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return Kn(),!!(this.Bb&Qs);case 11:return Kn(),!!(this.Bb&_w);case 12:return Kn(),!!(this.Bb&Nw);case 13:return this.j;case 14:return B4(this);case 15:return Kn(),!!(this.Bb&Bu);case 16:return Kn(),!!(this.Bb&yh);case 17:return uw(this)}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16)>=0?nKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,17,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().zk(this,uu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i);case 17:return Oo(this,null,17,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.Jk();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return 0==(this.Bb&Qs);case 11:return 0!=(this.Bb&_w);case 12:return 0!=(this.Bb&Nw);case 13:return null!=this.j;case 14:return null!=B4(this);case 15:return 0!=(this.Bb&Bu);case 16:return 0!=(this.Bb&yh);case 17:return!!uw(this)}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void o$(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void this.Zk(u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 10:return void y4(this,on(un(t)));case 11:return void C4(this,on(un(t)));case 12:return void j4(this,on(un(t)));case 13:return void xX(this,Oe(t));case 15:return void E4(this,on(un(t)));case 16:return void M4(this,on(un(t)))}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),Yoe},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,90)&&Mw(no(u(this.Cb,90)),4),void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void this.Zk(1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 10:return void y4(this,!0);case 11:return void C4(this,!1);case 12:return void j4(this,!1);case 13:return this.i=null,void RT(this,null);case 15:return void E4(this,!1);case 16:return void M4(this,!1)}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.pi=function(){_3(Ir(($u(),Ui),this)),ys(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return B4(this)},o.qk=function(){return uw(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return DA(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(null==(i=uw(this)).i&&kh(i),(r=this.uk())&&se(uw(r)),e=(f=(c=ys(this)).kk())?1&f.i?f==fo?qt:f==ye?qi:f==kg?km:f==Ai?ui:f==Ja?vb:f==fv?pb:f==Ku?Op:U8:f:null,t=B4(this),h=c.ik(),K5e(this),this.p=this.Bb&yh&&((s=rnn(($u(),Ui),i))&&s!=this||(s=Vv(Ir(Ui,this))))?new xMn(this,s):this.Jk()?this.al()?r?this.Bb&Bu?e?this.bl()?new bd(47,e,this,r):new bd(5,e,this,r):this.bl()?new md(46,this,r):new md(4,this,r):e?this.bl()?new bd(49,e,this,r):new bd(7,e,this,r):this.bl()?new md(48,this,r):new md(6,this,r):this.Bb&Bu?e?e==Ud?new u1(50,Noe,this):this.bl()?new u1(43,e,this):new u1(1,e,this):this.bl()?new s1(42,this):new s1(0,this):e?e==Ud?new u1(41,Noe,this):this.bl()?new u1(45,e,this):new u1(3,e,this):this.bl()?new s1(44,this):new s1(2,this):L(c,156)?e==qO?new s1(40,this):512&this.Bb?this.Bb&Bu?e?new u1(9,e,this):new s1(8,this):e?new u1(11,e,this):new s1(10,this):this.Bb&Bu?e?new u1(13,e,this):new s1(12,this):e?new u1(15,e,this):new s1(14,this):r?(l=r.t)>1||-1==l?this.bl()?this.Bb&Bu?e?new bd(25,e,this,r):new md(24,this,r):e?new bd(27,e,this,r):new md(26,this,r):this.Bb&Bu?e?new bd(29,e,this,r):new md(28,this,r):e?new bd(31,e,this,r):new md(30,this,r):this.bl()?this.Bb&Bu?e?new bd(33,e,this,r):new md(32,this,r):e?new bd(35,e,this,r):new md(34,this,r):this.Bb&Bu?e?new bd(37,e,this,r):new md(36,this,r):e?new bd(39,e,this,r):new md(38,this,r):this.bl()?this.Bb&Bu?e?new u1(17,e,this):new s1(16,this):e?new u1(19,e,this):new s1(18,this):this.Bb&Bu?e?new u1(21,e,this):new s1(20,this):e?new u1(23,e,this):new s1(22,this):this._k()?this.bl()?new MSn(u(c,29),this,r):new CJ(u(c,29),this,r):L(c,156)?e==qO?new s1(40,this):this.Bb&Bu?e?new CPn(t,h,this,(KF(),f==ye?p0n:f==fo?d0n:f==Ja?m0n:f==kg?v0n:f==Ai?g0n:f==fv?k0n:f==Ku?b0n:f==ds?w0n:YU)):new xIn(u(c,156),t,h,this):e?new EPn(t,h,this,(KF(),f==ye?p0n:f==fo?d0n:f==Ja?m0n:f==kg?v0n:f==Ai?g0n:f==fv?k0n:f==Ku?b0n:f==ds?w0n:YU)):new FIn(u(c,156),t,h,this):this.al()?r?this.Bb&Bu?this.bl()?new ASn(u(c,29),this,r):new fV(u(c,29),this,r):this.bl()?new TSn(u(c,29),this,r):new aN(u(c,29),this,r):this.Bb&Bu?this.bl()?new EAn(u(c,29),this):new EW(u(c,29),this):this.bl()?new jAn(u(c,29),this):new ZD(u(c,29),this):this.bl()?r?this.Bb&Bu?new SSn(u(c,29),this,r):new oV(u(c,29),this,r):this.Bb&Bu?new CAn(u(c,29),this):new CW(u(c,29),this):r?this.Bb&Bu?new PSn(u(c,29),this,r):new sV(u(c,29),this,r):this.Bb&Bu?new MAn(u(c,29),this):new TM(u(c,29),this)),this.p},o.rk=function(){return 0!=(this.Bb&Qs)},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return 0!=(this.Bb&yh)},o.xk=function(){return F$(this)},o.bl=function(){return!1},o.tk=function(){return 0!=(this.Bb&Bu)},o.cl=function(e){this.k=e},o.ui=function(e){o$(this,e)},o.Ib=function(){return nS(this)},o.e=!1,o.n=0,w(Hn,"EStructuralFeatureImpl",462),b(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},DL),o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),!!ten(this);case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return Kn(),!!(this.Bb&Qs);case 11:return Kn(),!!(this.Bb&_w);case 12:return Kn(),!!(this.Bb&Nw);case 13:return this.j;case 14:return B4(this);case 15:return Kn(),!!(this.Bb&Bu);case 16:return Kn(),!!(this.Bb&yh);case 17:return uw(this);case 18:return Kn(),!!(this.Bb&Cc);case 19:return t?uF(this):KDn(this)}return Jo(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return ten(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return 0==(this.Bb&Qs);case 11:return 0!=(this.Bb&_w);case 12:return 0!=(this.Bb&Nw);case 13:return null!=this.j;case 14:return null!=B4(this);case 15:return 0!=(this.Bb&Bu);case 16:return 0!=(this.Bb&yh);case 17:return!!uw(this);case 18:return 0!=(this.Bb&Cc);case 19:return!!KDn(this)}return Wo(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void o$(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void iEn(this,u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 10:return void y4(this,on(un(t)));case 11:return void C4(this,on(un(t)));case 12:return void j4(this,on(un(t)));case 13:return void xX(this,Oe(t));case 15:return void E4(this,on(un(t)));case 16:return void M4(this,on(un(t)));case 18:return void LF(this,on(un(t)))}ns(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e),t)},o.ii=function(){return In(),vg},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,90)&&Mw(no(u(this.Cb,90)),4),void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return this.b=0,void bw(this,1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 10:return void y4(this,!0);case 11:return void C4(this,!1);case 12:return void j4(this,!1);case 13:return this.i=null,void RT(this,null);case 15:return void E4(this,!1);case 16:return void M4(this,!1);case 18:return void LF(this,!1)}Zo(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e))},o.pi=function(){uF(this),_3(Ir(($u(),Ui),this)),ys(this),this.Bb|=1},o.Jk=function(){return ten(this)},o.Yk=function(e,t){return this.b=0,this.a=null,GY(this,e,t)},o.Zk=function(e){iEn(this,e)},o.Ib=function(){var e;return 64&this.Db?nS(this):((e=new gs(nS(this))).a+=" (iD: ",t1(e,0!=(this.Bb&Cc)),e.a+=")",e.a)},o.b=0,w(Hn,"EAttributeImpl",331),b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return lx(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|255&this.Db,this.Cb=e},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return eb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?Mo(this):U3(this);case 7:return!this.A&&(this.A=new Pu(au,this,7)),this.A}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16)>=0?lx(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,6,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().zk(this,uu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 6:return Oo(this,null,6,i);case 7:return!this.A&&(this.A=new Pu(au,this,7)),rr(this.A,e,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!eb(this);case 4:return null!=this.ik();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!U3(this);case 7:return!!this.A&&0!=this.A.i}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void eT(this,Oe(t));case 2:return void RD(this,Oe(t));case 5:return void G4(this,Oe(t));case 7:return!this.A&&(this.A=new Pu(au,this,7)),pe(this.A),!this.A&&(this.A=new Pu(au,this,7)),void Bt(this.A,u(t,16))}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),zoe},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,184)&&(u(this.Cb,184).tb=null),void Jc(this,null);case 2:return p4(this,null),void i4(this,this.D);case 5:return void G4(this,null);case 7:return!this.A&&(this.A=new Pu(au,this,7)),void pe(this.A)}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.hk=function(){var e;return-1==this.G&&(this.G=(e=Mo(this))?j1(e.vi(),this):-1),this.G},o.ik=function(){return null},o.jk=function(){return Mo(this)},o.el=function(){return this.v},o.kk=function(){return eb(this)},o.lk=function(){return null!=this.D?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return eB(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){CFn(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){eT(this,e)},o.Ib=function(){return fA(this)},o.C=null,o.D=null,o.G=-1,w(Hn,"EClassifierImpl",364),b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},SG),o.dl=function(e){return function Pae(n,e){return e==n||L4(GA(e),n)}(this,e.Dh())},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return eb(this);case 4:return null;case 5:return this.F;case 6:return t?Mo(this):U3(this);case 7:return!this.A&&(this.A=new Pu(au,this,7)),this.A;case 8:return Kn(),!!(256&this.Bb);case 9:return Kn(),!!(512&this.Bb);case 10:return _r(this);case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),this.q;case 12:return l2(this);case 13:return o8(this);case 14:return o8(this),this.r;case 15:return l2(this),this.k;case 16:return Gnn(this);case 17:return cB(this);case 18:return kh(this);case 19:return GA(this);case 20:return l2(this),this.o;case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),this.s;case 22:return Lc(this);case 23:return Gx(this)}return Jo(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16)>=0?lx(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,6,i);case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),Qc(this.q,e,i);case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),Qc(this.s,e,i)}return u(Nn(u(qn(this,16),29)||(In(),za),t),69).wk().zk(this,uu(this),t-se((In(),za)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 6:return Oo(this,null,6,i);case 7:return!this.A&&(this.A=new Pu(au,this,7)),rr(this.A,e,i);case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),rr(this.q,e,i);case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),rr(this.s,e,i);case 22:return rr(Lc(this),e,i)}return u(Nn(u(qn(this,16),29)||(In(),za),t),69).wk().Ak(this,uu(this),t-se((In(),za)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!eb(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!U3(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0!=(256&this.Bb);case 9:return 0!=(512&this.Bb);case 10:return!(!this.u||0==Lc(this.u.a).i||this.n&&nx(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=l2(this).i;case 13:return 0!=o8(this).i;case 14:return o8(this),0!=this.r.i;case 15:return l2(this),0!=this.k.i;case 16:return 0!=Gnn(this).i;case 17:return 0!=cB(this).i;case 18:return 0!=kh(this).i;case 19:return 0!=GA(this).i;case 20:return l2(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&nx(this.n);case 23:return 0!=Gx(this).i}return Wo(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e))},o.Zh=function(e){return(null==this.i||this.q&&0!=this.q.i?null:Ey(this,e))||Atn(this,e)},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void eT(this,Oe(t));case 2:return void RD(this,Oe(t));case 5:return void G4(this,Oe(t));case 7:return!this.A&&(this.A=new Pu(au,this,7)),pe(this.A),!this.A&&(this.A=new Pu(au,this,7)),void Bt(this.A,u(t,16));case 8:return void zY(this,on(un(t)));case 9:return void XY(this,on(un(t)));case 10:return h8(_r(this)),void Bt(_r(this),u(t,16));case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),pe(this.q),!this.q&&(this.q=new q(Ds,this,11,10)),void Bt(this.q,u(t,16));case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),pe(this.s),!this.s&&(this.s=new q(Mu,this,21,17)),void Bt(this.s,u(t,16));case 22:return pe(Lc(this)),void Bt(Lc(this),u(t,16))}ns(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e),t)},o.ii=function(){return In(),za},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,184)&&(u(this.Cb,184).tb=null),void Jc(this,null);case 2:return p4(this,null),void i4(this,this.D);case 5:return void G4(this,null);case 7:return!this.A&&(this.A=new Pu(au,this,7)),void pe(this.A);case 8:return void zY(this,!1);case 9:return void XY(this,!1);case 10:return void(this.u&&h8(this.u));case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),void pe(this.q);case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),void pe(this.s);case 22:return void(this.n&&pe(this.n))}Zo(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e))},o.pi=function(){var e,t;if(l2(this),o8(this),Gnn(this),cB(this),kh(this),GA(this),Gx(this),g5(function ebe(n){return!n.c&&(n.c=new o3),n.c}(no(this))),this.s)for(e=0,t=this.s.i;e=0;--t)D(this,t);return vZ(this,e)},o.Gk=function(){pe(this)},o.Zi=function(e,t){return z$n(this,0,t)},w(Et,"EcoreEList",632),b(505,632,Qr,ek),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0,w(Et,"EObjectEList",505),b(83,505,Qr,ni),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0},w(Et,"EObjectContainmentEList",83),b(555,83,Qr,nM),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.b,this.b=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1,w(Et,"EObjectContainmentEList/Unsettable",555),b(1161,555,Qr,yPn),o.Ti=function(e,t){var i,r;return i=u($5(this,e,t),89),ao(this.e)&&b3(this,new Ek(this.a,7,(In(),Xoe),Y(t),L(r=i.c,90)?u(r,29):$s,e)),i},o.Uj=function(e,t){return function j8e(n,e,t){var i,r;return i=new Sl(n.e,3,10,null,L(r=e.c,90)?u(r,29):(In(),$s),j1(n,e),!1),t?t.nj(i):t=i,t}(this,u(e,89),t)},o.Vj=function(e,t){return function y8e(n,e,t){var i,r;return i=new Sl(n.e,4,10,L(r=e.c,90)?u(r,29):(In(),$s),null,j1(n,e),!1),t?t.nj(i):t=i,t}(this,u(e,89),t)},o.Wj=function(e,t,i){return function Mke(n,e,t,i){var r,c,s;return r=new Sl(n.e,1,10,L(s=e.c,90)?u(s,29):(In(),$s),L(c=t.c,90)?u(c,29):(In(),$s),j1(n,e),!1),i?i.nj(r):i=r,i}(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return h5(this,e,t,i,r,this.i>1);case 5:return h5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Sl(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return nx(this)},o.Gk=function(){pe(this)},w(Hn,"EClassImpl/1",1161),b(1175,1174,lun),o.dj=function(e){var t,i,r,c,s,f,h;if(8!=(i=e.gj())){if(0==(r=function i9e(n){switch(n.hj(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}(e)))switch(i){case 1:case 9:null!=(h=e.kj())&&(!(t=no(u(h,482))).c&&(t.c=new o3),ET(t.c,e.jj())),null!=(f=e.ij())&&(1&(c=u(f,482)).Bb||(!(t=no(c)).c&&(t.c=new o3),me(t.c,u(e.jj(),29))));break;case 3:null!=(f=e.ij())&&(1&(c=u(f,482)).Bb||(!(t=no(c)).c&&(t.c=new o3),me(t.c,u(e.jj(),29))));break;case 5:if(null!=(f=e.ij()))for(s=u(f,16).Kc();s.Ob();)1&(c=u(s.Pb(),482)).Bb||(!(t=no(c)).c&&(t.c=new o3),me(t.c,u(e.jj(),29)));break;case 4:null!=(h=e.kj())&&(1&(c=u(h,482)).Bb||(!(t=no(c)).c&&(t.c=new o3),ET(t.c,e.jj())));break;case 6:if(null!=(h=e.kj()))for(s=u(h,16).Kc();s.Ob();)1&(c=u(s.Pb(),482)).Bb||(!(t=no(c)).c&&(t.c=new o3),ET(t.c,e.jj()))}this.ql(r)}},o.ql=function(e){Xqn(this,e)},o.b=63,w(Hn,"ESuperAdapter",1175),b(1176,1175,lun,yyn),o.ql=function(e){Mw(this,e)},w(Hn,"EClassImpl/10",1176),b(1165,710,Qr),o.Ei=function(e,t){return Ex(this,e,t)},o.Fi=function(e){return FRn(this,e)},o.Gi=function(e,t){Jk(this,e,t)},o.Hi=function(e){mk(this,e)},o.$i=function(e){return jQ(this,e)},o.Xi=function(e,t){return x$(this,e,t)},o.Wk=function(e,t){throw M(new Pe)},o.Ii=function(){return new $v(this)},o.Ji=function(){return new q7(this)},o.Ki=function(e){return $k(this,e)},o.Xk=function(e,t){throw M(new Pe)},o.Fk=function(e){return this},o.Qj=function(){return 0!=this.i},o.Wb=function(e){throw M(new Pe)},o.Gk=function(){throw M(new Pe)},w(Et,"EcoreEList/UnmodifiableEList",1165),b(328,1165,Qr,Lg),o.Yi=function(){return!1},w(Et,"EcoreEList/UnmodifiableEList/FastCompare",328),b(1168,328,Qr,vxn),o.dd=function(e){var i,r;if(L(e,179)&&-1!=(i=u(e,179).Lj()))for(r=this.i;i4){if(!this.fk(e))return!1;if(this.al()){if(h=(i=(r=u(e,54)).Eh())==this.b&&(this.ml()?r.yh(r.Fh(),u(Nn(vu(this.b),this.Lj()).Hk(),29).kk())==dr(u(Nn(vu(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh())for(c=0;c1||-1==r)},o.ml=function(){var t;return!!L(t=Nn(vu(this.b),this.Lj()),102)&&!!dr(u(t,19))},o.nl=function(){var t;return!!L(t=Nn(vu(this.b),this.Lj()),102)&&0!=(u(t,19).Bb&sr)},o.dd=function(e){var i,r,c;if((r=this.zj(e))>=0)return r;if(this.ol())for(i=0,c=this.Ej();i=0;--e)Dy(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)Dy(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){h8(this)},o.Zi=function(e,t){return ENn(this,0,t)},w(Et,"DelegatingEcoreEList",756),b(1171,756,wun,xAn),o.qj=function(e,t){!function Z1e(n,e,t){N5(Lc(n.a),e,$On(t))}(this,e,u(t,29))},o.rj=function(e){!function _le(n,e){me(Lc(n.a),$On(e))}(this,u(e,29))},o.xj=function(e){var i;return L(i=u(D(Lc(this.a),e),89).c,90)?u(i,29):(In(),$s)},o.Cj=function(e){var i;return L(i=u(Sw(Lc(this.a),e),89).c,90)?u(i,29):(In(),$s)},o.Dj=function(e,t){return function J9e(n,e,t){var i,r,c;return(64&(c=L(r=(i=u(D(Lc(n.a),e),89)).c,90)?u(r,29):(In(),$s)).Db?ba(n.b,c):c)==t?iS(i):Y3(i,t),c}(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new Cyn(this)},o.tj=function(){pe(Lc(this.a))},o.uj=function(e){return dBn(this,e)},o.vj=function(e){var i;for(i=e.Kc();i.Ob();)if(!dBn(this,i.Pb()))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15)).gc()==Lc(this.a).i){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var t,i,r,c;for(i=1,t=new ne(Lc(this.a));t.e!=t.i.gc();)i=31*i+((r=L(c=u(ue(t),89).c,90)?u(c,29):(In(),$s))?T0(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(Lc(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x(L(c=t.c,90)?u(c,29):(In(),$s)))return r;++r}return-1},o.Aj=function(){return 0==Lc(this.a).i},o.Bj=function(){return null},o.Ej=function(){return Lc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Lc(this.a).i,c=K(pi,xn,1,s,5,1),i=0,t=new ne(Lc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=L(r=e.c,90)?u(r,29):(In(),$s);return c},o.Gj=function(e){var i,r,f,h;for(h=Lc(this.a).i,e.lengthh&&Dt(e,h,null),r=0,i=new ne(Lc(this.a));i.e!=i.i.gc();)Dt(e,r++,L(f=u(ue(i),89).c,90)?u(f,29):(In(),$s));return e},o.Hj=function(){var e,t,i,r,c;for((c=new e1).a+="[",e=Lc(this.a),t=0,r=Lc(this.a).i;t>16)>=0?lx(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,6,i);case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),Qc(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),Xa),t),69).wk().zk(this,uu(this),t-se((In(),Xa)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 6:return Oo(this,null,6,i);case 7:return!this.A&&(this.A=new Pu(au,this,7)),rr(this.A,e,i);case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),rr(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),Xa),t),69).wk().Ak(this,uu(this),t-se((In(),Xa)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!eb(this);case 4:return!!NY(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!U3(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0==(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return Wo(this,e-se((In(),Xa)),Nn(u(qn(this,16),29)||Xa,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void eT(this,Oe(t));case 2:return void RD(this,Oe(t));case 5:return void G4(this,Oe(t));case 7:return!this.A&&(this.A=new Pu(au,this,7)),pe(this.A),!this.A&&(this.A=new Pu(au,this,7)),void Bt(this.A,u(t,16));case 8:return void iA(this,on(un(t)));case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),pe(this.a),!this.a&&(this.a=new q(Wl,this,9,5)),void Bt(this.a,u(t,16))}ns(this,e-se((In(),Xa)),Nn(u(qn(this,16),29)||Xa,e),t)},o.ii=function(){return In(),Xa},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,184)&&(u(this.Cb,184).tb=null),void Jc(this,null);case 2:return p4(this,null),void i4(this,this.D);case 5:return void G4(this,null);case 7:return!this.A&&(this.A=new Pu(au,this,7)),void pe(this.A);case 8:return void iA(this,!0);case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),void pe(this.a)}Zo(this,e-se((In(),Xa)),Nn(u(qn(this,16),29)||Xa,e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?u(this.Cb,685):null}return Jo(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16)>=0?fKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,5,i)}return u(Nn(u(qn(this,16),29)||(In(),_1),t),69).wk().zk(this,uu(this),t-se((In(),_1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 5:return Oo(this,null,5,i)}return u(Nn(u(qn(this,16),29)||(In(),_1),t),69).wk().Ak(this,uu(this),t-se((In(),_1)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0!=this.d;case 3:return!!this.b;case 4:return null!=this.c;case 5:return!(this.Db>>16!=5||!u(this.Cb,685))}return Wo(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return void q$(this,u(t,17).a);case 3:return void uHn(this,u(t,2039));case 4:return void G$(this,Oe(t))}ns(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e),t)},o.ii=function(){return In(),_1},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return void q$(this,0);case 3:return void uHn(this,null);case 4:return void G$(this,null)}Zo(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e))},o.Ib=function(){return this.c??this.zb},o.b=null,o.c=null,o.d=0,w(Hn,"EEnumLiteralImpl",582);var a0n,QU,PE,SNe=Ot(Hn,"EFactoryImpl/InternalEDateTimeFormat");b(499,1,{2114:1},l7),w(Hn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},l0),o.Ch=function(e,t,i){var r;return i=Oo(this,e,t,i),this.e&&L(e,179)&&(r=UA(this,this.e))!=this.c&&(i=z4(this,r,i)),i},o.Lh=function(e,t,i){switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new ni(yr,this,1)),this.d;case 2:return t?iS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?ix(this):this.a}return Jo(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e),t,i)},o.Uh=function(e,t,i){switch(t){case 0:return nBn(this,null,i);case 1:return!this.d&&(this.d=new ni(yr,this,1)),rr(this.d,e,i);case 3:return eBn(this,null,i)}return u(Nn(u(qn(this,16),29)||(In(),xb),t),69).wk().Ak(this,uu(this),t-se((In(),xb)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.f;case 1:return!!this.d&&0!=this.d.i;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Wo(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e))},o.bi=function(e,t){switch(e){case 0:return void SKn(this,u(t,89));case 1:return!this.d&&(this.d=new ni(yr,this,1)),pe(this.d),!this.d&&(this.d=new ni(yr,this,1)),void Bt(this.d,u(t,16));case 3:return void ann(this,u(t,89));case 4:return void Onn(this,u(t,850));case 5:return void Y3(this,u(t,142))}ns(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e),t)},o.ii=function(){return In(),xb},o.ki=function(e){switch(e){case 0:return void SKn(this,null);case 1:return!this.d&&(this.d=new ni(yr,this,1)),void pe(this.d);case 3:return void ann(this,null);case 4:return void Onn(this,null);case 5:return void Y3(this,null)}Zo(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e))},o.Ib=function(){var e;return(e=new yo(Ws(this))).a+=" (expression: ",lB(this,e),e.a+=")",e.a},w(Hn,"EGenericTypeImpl",248),b(2067,2062,lP),o.Gi=function(e,t){NAn(this,e,t)},o.Wk=function(e,t){return NAn(this,this.gc(),e),t},o.$i=function(e){return is(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new Syn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return pw(this,e,!0),t},o.Ti=function(e,t){var r;return r=bx(this,t),this.fd(e).Rb(r),r},o.Ui=function(e,t){pw(this,t,!0),this.fd(e).Rb(t)},w(Et,"AbstractSequentialInternalEList",2067),b(496,2067,lP,H7),o.$i=function(e){return is(this.pj(),e)},o.Ii=function(){return null==this.b?(r1(),r1(),PE):this.sl()},o.pj=function(){return new ZMn(this.a,this.b)},o.Ji=function(){return null==this.b?(r1(),r1(),PE):this.sl()},o.Ki=function(e){var t,i;if(null==this.b){if(e<0||e>1)throw M(new Ar(N8+e+", size=0"));return r1(),r1(),PE}for(i=this.sl(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.pk()!=e6||0!=t.Lj())&&(!this.vl()||this.b.Xh(t)))if(s=this.b.Nh(t,this.ul()),this.f=(ar(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?j_n(this,this.p):D_n(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?((e=u(c,76)).Lk(),i=e.md(),this.i=i):this.i=i=c,this.g=-3,!0}else if(null!=s)return this.k=null,this.p=null,this.i=i=s,this.g=-2,!0;return this.k=null,this.p=null,this.g=-1,!1}},o.Pb=function(){return WT(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw M(new tc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw M(new Pe)},o.ul=function(){return!1},o.Wb=function(e){throw M(new Pe)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0,w(Et,"EContentsEList/FeatureIteratorImpl",287),b(711,287,aP,jW),o.ul=function(){return!0},w(Et,"EContentsEList/ResolvingFeatureIteratorImpl",711),b(1178,711,aP,mAn),o.vl=function(){return!1},w(Hn,"ENamedElementImpl/1/1",1178),b(1179,287,aP,kAn),o.vl=function(){return!1},w(Hn,"ENamedElementImpl/1/2",1179),b(39,152,lj,fw,b$,ji,P$,Sl,Gs,$Q,ZOn,FQ,nLn,ZJ,eLn,RQ,tLn,nQ,iLn,xQ,rLn,i5,Ek,VN,BQ,cLn,eQ,uLn),o.Kj=function(){return pQ(this)},o.Rj=function(){var e;return(e=pQ(this))?e.ik():null},o.hj=function(e){return-1==this.b&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return!!(e=pQ(this))&&e.tk()},o.b=-1,w(Hn,"ENotificationImpl",39),b(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},NL),o.Ah=function(e){return aKn(this,e)},o.Lh=function(e,t,i){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),(s=this.t)>1||-1==s;case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Pu(au,this,11)),this.d;case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),this.c;case 13:return!this.a&&(this.a=new X7(this,this)),this.a;case 14:return eo(this)}return Jo(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16)>=0?aKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,10,i);case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),Qc(this.c,e,i)}return u(Nn(u(qn(this,16),29)||(In(),H1),t),69).wk().zk(this,uu(this),t-se((In(),H1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i);case 10:return Oo(this,null,10,i);case 11:return!this.d&&(this.d=new Pu(au,this,11)),rr(this.d,e,i);case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),rr(this.c,e,i);case 14:return rr(eo(this),e,i)}return u(Nn(u(qn(this,16),29)||(In(),H1),t),69).wk().Ak(this,uu(this),t-se((In(),H1)),e,i)},o.Wh=function(e){var r;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(r=this.t)>1||-1==r;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return!(this.Db>>16!=10||!u(this.Cb,29));case 11:return!!this.d&&0!=this.d.i;case 12:return!!this.c&&0!=this.c.i;case 13:return!(!this.a||0==eo(this.a.a).i||this.b&&ex(this.b));case 14:return!!this.b&&ex(this.b)}return Wo(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void bw(this,u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 11:return!this.d&&(this.d=new Pu(au,this,11)),pe(this.d),!this.d&&(this.d=new Pu(au,this,11)),void Bt(this.d,u(t,16));case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),pe(this.c),!this.c&&(this.c=new q(Fb,this,12,10)),void Bt(this.c,u(t,16));case 13:return!this.a&&(this.a=new X7(this,this)),h8(this.a),!this.a&&(this.a=new X7(this,this)),void Bt(this.a,u(t,16));case 14:return pe(eo(this)),void Bt(eo(this),u(t,16))}ns(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e),t)},o.ii=function(){return In(),H1},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void bw(this,1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 11:return!this.d&&(this.d=new Pu(au,this,11)),void pe(this.d);case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),void pe(this.c);case 13:return void(this.a&&h8(this.a));case 14:return void(this.b&&pe(this.b))}Zo(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;eh&&Dt(e,h,null),r=0,i=new ne(eo(this.a));i.e!=i.i.gc();)Dt(e,r++,u(ue(i),89).c||(In(),rh));return e},o.Hj=function(){var e,t,r,c;for((c=new e1).a+="[",e=eo(this.a),t=0,r=eo(this.a).i;t1);case 5:return h5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Sl(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return ex(this)},o.Gk=function(){pe(this)},w(Hn,"EOperationImpl/2",1377),b(507,1,{2037:1,507:1},FMn),w(Hn,"EPackageImpl/1",507),b(14,83,Qr,q),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0,w(Et,"EObjectContainmentWithInverseEList",14),b(365,14,Qr,Fv),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentWithInverseEList/Resolving",365),b(308,365,Qr,iw),o.Ni=function(){this.a.tb=null},w(Hn,"EPackageImpl/2",308),b(1278,1,{},Amn),w(Hn,"EPackageImpl/3",1278),b(733,45,w2,Cz),o._b=function(e){return Mi(e)?QN(this,e):!!br(this.f,e)},w(Hn,"EPackageRegistryImpl",733),b(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},$L),o.Ah=function(e){return dKn(this,e)},o.Lh=function(e,t,i){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),(s=this.t)>1||-1==s;case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return Jo(this,e-se((In(),pg)),Nn(u(qn(this,16),29)||pg,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16)>=0?dKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,10,i)}return u(Nn(u(qn(this,16),29)||(In(),pg),t),69).wk().zk(this,uu(this),t-se((In(),pg)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i);case 10:return Oo(this,null,10,i)}return u(Nn(u(qn(this,16),29)||(In(),pg),t),69).wk().Ak(this,uu(this),t-se((In(),pg)),e,i)},o.Wh=function(e){var r;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(r=this.t)>1||-1==r;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return!(this.Db>>16!=10||!u(this.Cb,62))}return Wo(this,e-se((In(),pg)),Nn(u(qn(this,16),29)||pg,e))},o.ii=function(){return In(),pg},w(Hn,"EParameterImpl",518),b(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},AW),o.Lh=function(e,t,i){var s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),(f=this.t)>1||-1==f;case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return Kn(),!!(this.Bb&Qs);case 11:return Kn(),!!(this.Bb&_w);case 12:return Kn(),!!(this.Bb&Nw);case 13:return this.j;case 14:return B4(this);case 15:return Kn(),!!(this.Bb&Bu);case 16:return Kn(),!!(this.Bb&yh);case 17:return uw(this);case 18:return Kn(),!!(this.Bb&Cc);case 19:return Kn(),!!((s=dr(this))&&s.Bb&Cc);case 20:return Kn(),!!(this.Bb&sr);case 21:return t?dr(this):this.b;case 22:return t?CY(this):IDn(this);case 23:return!this.a&&(this.a=new Bg(wg,this,23)),this.a}return Jo(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e),t,i)},o.Wh=function(e){var r,c;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(c=this.t)>1||-1==c;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return 0==(this.Bb&Qs);case 11:return 0!=(this.Bb&_w);case 12:return 0!=(this.Bb&Nw);case 13:return null!=this.j;case 14:return null!=B4(this);case 15:return 0!=(this.Bb&Bu);case 16:return 0!=(this.Bb&yh);case 17:return!!uw(this);case 18:return 0!=(this.Bb&Cc);case 19:return!!(r=dr(this))&&0!=(r.Bb&Cc);case 20:return 0==(this.Bb&sr);case 21:return!!this.b;case 22:return!!IDn(this);case 23:return!!this.a&&0!=this.a.i}return Wo(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void o$(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void bw(this,u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 10:return void y4(this,on(un(t)));case 11:return void C4(this,on(un(t)));case 12:return void j4(this,on(un(t)));case 13:return void xX(this,Oe(t));case 15:return void E4(this,on(un(t)));case 16:return void M4(this,on(un(t)));case 18:return void function j2e(n,e){eZ(n,e),L(n.Cb,90)&&Mw(no(u(n.Cb,90)),2)}(this,on(un(t)));case 20:return void tZ(this,on(un(t)));case 21:return void nY(this,u(t,19));case 23:return!this.a&&(this.a=new Bg(wg,this,23)),pe(this.a),!this.a&&(this.a=new Bg(wg,this,23)),void Bt(this.a,u(t,16))}ns(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e),t)},o.ii=function(){return In(),cv},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,90)&&Mw(no(u(this.Cb,90)),4),void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void bw(this,1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 10:return void y4(this,!0);case 11:return void C4(this,!1);case 12:return void j4(this,!1);case 13:return this.i=null,void RT(this,null);case 15:return void E4(this,!1);case 16:return void M4(this,!1);case 18:return eZ(this,!1),void(L(this.Cb,90)&&Mw(no(u(this.Cb,90)),2));case 20:return void tZ(this,!0);case 21:return void nY(this,null);case 23:return!this.a&&(this.a=new Bg(wg,this,23)),void pe(this.a)}Zo(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e))},o.pi=function(){CY(this),_3(Ir(($u(),Ui),this)),ys(this),this.Bb|=1},o.uk=function(){return dr(this)},o._k=function(){var e;return!!(e=dr(this))&&0!=(e.Bb&Cc)},o.al=function(){return 0!=(this.Bb&Cc)},o.bl=function(){return 0!=(this.Bb&sr)},o.Yk=function(e,t){return this.c=null,GY(this,e,t)},o.Ib=function(){var e;return 64&this.Db?nS(this):((e=new gs(nS(this))).a+=" (containment: ",t1(e,0!=(this.Bb&Cc)),e.a+=", resolveProxies: ",t1(e,0!=(this.Bb&sr)),e.a+=")",e.a)},w(Hn,"EReferenceImpl",102),b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Smn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return T0(this)},o.Di=function(e){!function Abe(n,e){JQ(n,null==e?null:(Jn(e),e))}(this,Oe(e))},o.nd=function(e){return function abe(n,e){var t;return t=n.c,QQ(n,e),t}(this,Oe(e))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return Jo(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e),t,i)},o.Wh=function(e){switch(e){case 0:return null!=this.b;case 1:return null!=this.c}return Wo(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e))},o.bi=function(e,t){switch(e){case 0:return void function Sbe(n,e){JQ(n,null==e?null:(Jn(e),e))}(this,Oe(t));case 1:return void QQ(this,Oe(t))}ns(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e),t)},o.ii=function(){return In(),hr},o.ki=function(e){switch(e){case 0:return void JQ(this,null);case 1:return void QQ(this,null)}Zo(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e))},o.Bi=function(){var e;return-1==this.a&&(this.a=null==(e=this.b)?0:w1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return 64&this.Db?Ws(this):((e=new gs(Ws(this))).a+=" (key: ",jr(e,this.b),e.a+=", value: ",jr(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var al,d0n,b0n,w0n,g0n,v0n,p0n,m0n,YU,k0n,kc=w(Hn,"EStringToStringMapEntryImpl",561),ise=Ot(Et,"FeatureMap/Entry/Internal");b(576,1,dP),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e||!!L(e,76)&&(t=u(e,76)).Lk()==this.c&&(null==(i=this.md())?null==t.md():it(i,t.md()))},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),wt(this.c)^(null==e?0:wt(e))},o.Ib=function(){var e,t;return t=Mo((e=this.c).qk()).yi(),e.xe(),(null!=t&&0!=t.length?t+":"+e.xe():e.xe())+"="+this.md()},w(Hn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),b(791,576,dP,FW),o.yl=function(e){return new FW(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return function lme(n,e,t,i,r){var c;return t&&(c=St(e.Dh(),n.c),r=t.Rh(e,-1-(-1==c?i:c),null,r)),r}(this,e,this.a,t,i)},o.Al=function(e,t,i){return function ame(n,e,t,i,r){var c;return t&&(c=St(e.Dh(),n.c),r=t.Th(e,-1-(-1==c?i:c),null,r)),r}(this,e,this.a,t,i)},w(Hn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),b(1350,1,{},xMn),o.yk=function(e,t,i,r,c){return u(W3(e,this.b),220).Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){return u(W3(e,this.b),220).Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){return u(W3(e,this.b),220).Ql(this.a,r,c)},o.Bk=function(e,t,i){return u(W3(e,this.b),220).Yl(this.a).Qj()},o.Ck=function(e,t,i,r){u(W3(e,this.b),220).Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u(W3(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){u(W3(e,this.b),220).Yl(this.a).Gk()},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),b(91,1,{},u1,bd,s1,md),o.yk=function(e,t,i,r,c){var s;if(null==(s=t.li(i))&&t.mi(i,s=aS(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var f;return null==(f=t.li(i))&&t.mi(i,f=aS(this,e)),u(f,71).Wk(r,c)},o.Ak=function(e,t,i,r,c){var s;return null!=(s=t.li(i))&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return null!=(r=t.li(i))&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;!(c=u(t.li(i),79))&&t.mi(i,c=aS(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var c;return null==(c=t.li(i))&&t.mi(i,c=aS(this,e)),L(c,79)?u(c,79):new Tyn(u(t.li(i),15))},o.Ek=function(e,t,i){var r;!(r=u(t.li(i),79))&&t.mi(i,r=aS(this,e)),r.Gk()},o.b=0,o.e=0,w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),b(512,1,{}),o.zk=function(e,t,i,r,c){throw M(new Pe)},o.Ak=function(e,t,i,r,c){throw M(new Pe)},o.Dk=function(e,t,i){return new $In(this,e,t,i)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),b(1367,1,JK,$In),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0,w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),b(784,512,{},CJ),o.yk=function(e,t,i,r,c){return Qx(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?xx(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh())>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c)),f=St(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=St(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=St(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(null!=r&&!eB(this.a,r))throw M(new w3(bP+(L(r,58)?lnn(u(r,58).Dh()):OQ(po(r)))+wP+this.a+"'"));if(c=e.Ph(),f=St(e.Dh(),this.e),x(r)!==x(c)||e.Fh()!=f&&null!=r){if(I4(e,u(r,58)))throw M(new Un(L8+e.Ib()));l=null,c&&(l=(s=e.Fh())>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l)),(h=u(r,54))&&(l=h.Rh(e,St(h.Dh(),this.b),null,l)),(l=e.Ch(h,f,l))&&l.oj()}else e.vh()&&e.wh()&&tt(e,new ji(e,1,f,r,r))},o.Ek=function(e,t,i){var c,s,f;e.Ph()?(f=(c=e.Fh())>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null),s=St(e.Dh(),this.e),(f=e.Ch(null,s,f))&&f.oj()):e.vh()&&e.wh()&&tt(e,new i5(e,1,this.e,null,null))},o.bl=function(){return!1},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),b(1351,784,{},MSn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return null==(s=t.li(i))?this.b:x(s)===x(al)?null:s},o.Bk=function(e,t,i){var r;return null!=(r=t.li(i))&&(x(r)===x(al)||!it(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=null==(s=t.li(i))?this.b:x(s)===x(al)?null:s,null==r?null!=this.c?(t.mi(i,null),r=this.b):t.mi(i,null!=this.b?al:null):(this.Bl(r),t.mi(i,r)),tt(e,this.d.Cl(e,1,this.e,c,r))):null==r?t.mi(i,null!=this.c?null:null!=this.b?al:null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=null==(c=t.li(i))?this.b:x(c)===x(al)?null:c,t.ni(i),tt(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw M(new xyn)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),b(M2,1,{},Pmn),o.Cl=function(e,t,i,r,c){return new i5(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new VN(e,t,i,r,c,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",M2),b(1368,M2,{},Imn),o.Cl=function(e,t,i,r,c){return new eQ(e,t,i,on(un(r)),on(un(c)))},o.Dl=function(e,t,i,r,c,s){return new uLn(e,t,i,on(un(r)),on(un(c)),s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),b(1369,M2,{},Omn),o.Cl=function(e,t,i,r,c){return new $Q(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new ZOn(e,t,i,u(r,222).a,u(c,222).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),b(1370,M2,{},Lmn),o.Cl=function(e,t,i,r,c){return new FQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new nLn(e,t,i,u(r,180).a,u(c,180).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),b(1371,M2,{},Dmn),o.Cl=function(e,t,i,r,c){return new ZJ(e,t,i,F(R(r)),F(R(c)))},o.Dl=function(e,t,i,r,c,s){return new eLn(e,t,i,F(R(r)),F(R(c)),s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),b(1372,M2,{},Nmn),o.Cl=function(e,t,i,r,c){return new RQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new tLn(e,t,i,u(r,161).a,u(c,161).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),b(1373,M2,{},$mn),o.Cl=function(e,t,i,r,c){return new nQ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new iLn(e,t,i,u(r,17).a,u(c,17).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),b(1374,M2,{},Fmn),o.Cl=function(e,t,i,r,c){return new xQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new rLn(e,t,i,u(r,168).a,u(c,168).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),b(1375,M2,{},xmn),o.Cl=function(e,t,i,r,c){return new BQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new cLn(e,t,i,u(r,191).a,u(c,191).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),b(1353,574,{},FIn),o.Bl=function(e){if(!this.a.fk(e))throw M(new w3(bP+po(e)+wP+this.a+"'"))},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),b(1354,574,{},EPn),o.Bl=function(e){},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),b(785,574,{}),o.Bk=function(e,t,i){return null!=t.li(i)},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,null==(s=t.li(i))?(c=!1,s=this.b):x(s)===x(al)&&(s=null),null==r?null!=this.c?(t.mi(i,null),r=this.b):t.mi(i,al):(this.Bl(r),t.mi(i,r)),tt(e,this.d.Dl(e,1,this.e,s,r,!c))):null==r?t.mi(i,null!=this.c?null:al):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,null==(c=t.li(i))?(r=!1,c=this.b):x(c)===x(al)&&(c=null),t.ni(i),tt(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),b(1355,785,{},xIn),o.Bl=function(e){if(!this.a.fk(e))throw M(new w3(bP+po(e)+wP+this.a+"'"))},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),b(1356,785,{},CPn),o.Bl=function(e){},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),b(410,512,{},TM),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&x(a)===x(al))return null;if(this.bl()&&r&&null!=a){if((h=u(a,54)).Vh()&&h!=(l=ba(e,h))){if(!eB(this.a,l))throw M(new w3(bP+po(l)+wP+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?St(h.Dh(),this.b):-1-St(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?St(s.Dh(),this.b):-1-St(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&tt(e,new i5(e,9,this.e,h,l))}return a}return a},o.zk=function(e,t,i,r,c){var s,f;return x(f=t.li(i))===x(al)&&(f=null),t.mi(i,r),this.Mj()?x(f)!==x(r)&&null!=f&&(c=(s=u(f,54)).Th(e,St(s.Dh(),this.b),null,c)):this.al()&&null!=f&&(c=u(f,54).Th(e,-1-St(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new J1(4)),c.nj(new i5(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return x(s=t.li(i))===x(al)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new J1(4)),this.tk()?c.nj(new i5(e,2,this.e,s,null)):c.nj(new i5(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){return null!=t.li(i)},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(null!=r&&!eB(this.a,r))throw M(new w3(bP+(L(r,58)?lnn(u(r,58).Dh()):OQ(po(r)))+wP+this.a+"'"));h=null!=(l=t.li(i)),this.tk()&&x(l)===x(al)&&(l=null),f=null,this.Mj()?x(l)!==x(r)&&(null!=l&&(f=(c=u(l,54)).Th(e,St(c.Dh(),this.b),null,f)),null!=r&&(f=(c=u(r,54)).Rh(e,St(c.Dh(),this.b),null,f))):this.al()&&x(l)!==x(r)&&(null!=l&&(f=u(l,54).Th(e,-1-St(e.Dh(),this.e),null,f)),null!=r&&(f=u(r,54).Rh(e,-1-St(e.Dh(),this.e),null,f))),null==r&&this.tk()?t.mi(i,al):t.mi(i,r),e.vh()&&e.wh()?(s=new VN(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):tt(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;f=null!=(h=t.li(i)),this.tk()&&x(h)===x(al)&&(h=null),s=null,null!=h&&(this.Mj()?s=(r=u(h,54)).Th(e,St(r.Dh(),this.b),null,s):this.al()&&(s=u(h,54).Th(e,-1-St(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new VN(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):tt(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),b(575,410,{},ZD),o.al=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),b(1359,575,{},jAn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),b(787,575,{},EW),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),b(1361,787,{},EAn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),b(650,575,{},aN),o.Mj=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),b(1360,650,{},TSn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),b(788,650,{},fV),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),b(1362,788,{},ASn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),b(651,410,{},CW),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),b(1363,651,{},CAn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),b(789,651,{},oV),o.Mj=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),b(1364,789,{},SSn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),b(1357,410,{},MAn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),b(786,410,{},sV),o.Mj=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),b(1358,786,{},PSn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),b(790,576,dP,cJ),o.yl=function(e){return new cJ(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return function f3e(n,e,t,i){return t&&(i=t.Rh(e,St(t.Dh(),n.c.uk()),null,i)),i}(this,e,this.b,i)},o.Al=function(e,t,i){return function h3e(n,e,t,i){return t&&(i=t.Th(e,St(t.Dh(),n.c.uk()),null,i)),i}(this,e,this.b,i)},w(Hn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),b(1365,1,JK,Tyn),o.Fk=function(e){return this.a},o.Qj=function(){return L(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){L(this.a,97)?u(this.a,97).Gk():this.a.$b()},w(Hn,"EStructuralFeatureImpl/SettingMany",1365),b(1366,576,dP,QLn),o.xl=function(e){return new tN((ht(),Z9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(Hn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),b(652,576,dP,tN),o.xl=function(e){return new tN(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(Hn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),b(403,506,Ih,o3),o.aj=function(e){return K(Ls,xn,29,e,0,1)},o.Yi=function(){return!1},w(Hn,"ESuperAdapter/1",403),b(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},bL),o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new Z6(this,yr,this)),this.a}return Jo(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e),t,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 2:return!this.a&&(this.a=new Z6(this,yr,this)),rr(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),Bb),t),69).wk().Ak(this,uu(this),t-se((In(),Bb)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!!this.a&&0!=this.a.i}return Wo(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return!this.a&&(this.a=new Z6(this,yr,this)),pe(this.a),!this.a&&(this.a=new Z6(this,yr,this)),void Bt(this.a,u(t,16))}ns(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e),t)},o.ii=function(){return In(),Bb},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return!this.a&&(this.a=new Z6(this,yr,this)),void pe(this.a)}Zo(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e))},w(Hn,"ETypeParameterImpl",457),b(458,83,Qr,Z6),o.Nj=function(e,t){return function Cye(n,e,t){var r,c;for(t=fp(e,n.e,-1-n.c,t),c=new nC(new Ed(new cd(fJ(n.a).a).a));c.a.b;)t=z4(r=u(W0(c.a).ld(),89),UA(r,n.a),t);return t}(this,u(e,89),t)},o.Oj=function(e,t){return function Mye(n,e,t){var r,c;for(t=JM(e,n.e,-1-n.c,t),c=new nC(new Ed(new cd(fJ(n.a).a).a));c.a.b;)t=z4(r=u(W0(c.a).ld(),89),UA(r,n.a),t);return t}(this,u(e,89),t)},w(Hn,"ETypeParameterImpl/1",458),b(647,45,w2,FL),o.ec=function(){return new ZE(this)},w(Hn,"ETypeParameterImpl/2",647),b(570,Gf,Fu,ZE),o.Fc=function(e){return QAn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),null==Xe(this.a,t,"")&&(r=!0);return r},o.$b=function(){qu(this.a)},o.Hc=function(e){return tu(this.a,e)},o.Kc=function(){return new nC(new Ed(new cd(this.a).a))},o.Mc=function(e){return _Dn(this,e)},o.gc=function(){return k6(this.a)},w(Hn,"ETypeParameterImpl/2/1",570),b(571,1,Ti,nC),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(W0(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){JNn(this.a)},w(Hn,"ETypeParameterImpl/2/1/1",571),b(1329,45,w2,gjn),o._b=function(e){return Mi(e)?QN(this,e):!!br(this.f,e)},o.xc=function(e){var t;return L(t=Mi(e)?Bc(this,e):Rr(br(this.f,e)),851)?(t=u(t,851).Kk(),Xe(this,u(e,241),t),t):t??(null==e?(eD(),cse):null)},w(Hn,"EValidatorRegistryImpl",1329),b(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},Bmn),o.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==t?null:Jr(t);case 25:return y4e(t);case 27:return function $3e(n){return L(n,180)?""+u(n,180).a:null==n?null:Jr(n)}(t);case 28:return function F3e(n){return L(n,180)?""+u(n,180).a:null==n?null:Jr(n)}(t);case 29:return null==t?null:STn(X9[0],u(t,206));case 41:return null==t?"":sd(u(t,297));case 42:return Jr(t);case 50:return Oe(t);default:throw M(new Un(dm+e.xe()+wb))}},o.si=function(e){var v;switch(-1==e.G&&(e.G=(v=Mo(e))?j1(v.vi(),e):-1),e.G){case 0:return new DL;case 1:return new CG;case 2:return new SG;case 4:return new eC;case 5:return new wjn;case 6:return new Kyn;case 7:return new PG;case 10:return new UE;case 11:return new NL;case 12:return new GIn;case 13:return new $L;case 14:return new AW;case 17:return new Smn;case 18:return new l0;case 19:return new bL;default:throw M(new Un(NK+e.zb+wb))}},o.ti=function(e,t){switch(e.hk()){case 20:return null==t?null:new Vz(t);case 21:return null==t?null:new ea(t);case 23:case 22:return null==t?null:function N8e(n){if(wA(am,n))return Kn(),mm;if(wA(PK,n))return Kn(),Pa;throw M(new Un("Expecting true or false"))}(t);case 26:case 24:return null==t?null:Ik(Io(t,-128,127)<<24>>24);case 25:return function ZCe(n){var e,t,i,r,c,s,f;if(null==n)return null;for(s=K(Ku,E2,28,r=((f=n.length)+1)/2|0,15,1),f%2!=0&&(s[--r]=Ken((Gn(f-1,n.length),n.charCodeAt(f-1)))),t=0,i=0;t>24;return s}(t);case 27:return function y7e(n){var t;if(null==n)return null;t=0;try{t=Io(n,Xi,nt)&ri}catch(i){if(!L(i=At(i),130))throw M(i);t=jT(n)[0]}return xk(t)}(t);case 28:return function j7e(n){var t;if(null==n)return null;t=0;try{t=Io(n,Xi,nt)&ri}catch(i){if(!L(i=At(i),130))throw M(i);t=jT(n)[0]}return xk(t)}(t);case 29:return function Gye(n){var e,t;if(null==n)return null;for(e=null,t=0;t>16);case 50:return t;default:throw M(new Un(dm+e.xe()+wb))}},w(Hn,"EcoreFactoryImpl",1349),b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},wIn),o.gb=!1,o.hb=!1;var y0n,rse=!1;w(Hn,"EcorePackageImpl",560),b(1234,1,{851:1},Rmn),o.Kk=function(){return _Tn(),use},w(Hn,"EcorePackageImpl/1",1234),b(1243,1,ze,Kmn),o.fk=function(e){return L(e,155)},o.gk=function(e){return K(ME,xn,155,e,0,1)},w(Hn,"EcorePackageImpl/10",1243),b(1244,1,ze,_mn),o.fk=function(e){return L(e,197)},o.gk=function(e){return K(qU,xn,197,e,0,1)},w(Hn,"EcorePackageImpl/11",1244),b(1245,1,ze,Hmn),o.fk=function(e){return L(e,58)},o.gk=function(e){return K(Ua,xn,58,e,0,1)},w(Hn,"EcorePackageImpl/12",1245),b(1246,1,ze,qmn),o.fk=function(e){return L(e,411)},o.gk=function(e){return K(Ds,bun,62,e,0,1)},w(Hn,"EcorePackageImpl/13",1246),b(1247,1,ze,Umn),o.fk=function(e){return L(e,241)},o.gk=function(e){return K(Pf,xn,241,e,0,1)},w(Hn,"EcorePackageImpl/14",1247),b(1248,1,ze,Gmn),o.fk=function(e){return L(e,518)},o.gk=function(e){return K(Fb,xn,2116,e,0,1)},w(Hn,"EcorePackageImpl/15",1248),b(1249,1,ze,zmn),o.fk=function(e){return L(e,102)},o.gk=function(e){return K(gg,C2,19,e,0,1)},w(Hn,"EcorePackageImpl/16",1249),b(1250,1,ze,Xmn),o.fk=function(e){return L(e,179)},o.gk=function(e){return K(Mu,C2,179,e,0,1)},w(Hn,"EcorePackageImpl/17",1250),b(1251,1,ze,Wmn),o.fk=function(e){return L(e,481)},o.gk=function(e){return K(bg,xn,481,e,0,1)},w(Hn,"EcorePackageImpl/18",1251),b(1252,1,ze,Vmn),o.fk=function(e){return L(e,561)},o.gk=function(e){return K(kc,rJn,561,e,0,1)},w(Hn,"EcorePackageImpl/19",1252),b(1235,1,ze,Jmn),o.fk=function(e){return L(e,331)},o.gk=function(e){return K(wg,C2,35,e,0,1)},w(Hn,"EcorePackageImpl/2",1235),b(1253,1,ze,Qmn),o.fk=function(e){return L(e,248)},o.gk=function(e){return K(yr,yJn,89,e,0,1)},w(Hn,"EcorePackageImpl/20",1253),b(1254,1,ze,Ymn),o.fk=function(e){return L(e,457)},o.gk=function(e){return K(au,xn,850,e,0,1)},w(Hn,"EcorePackageImpl/21",1254),b(1255,1,ze,Zmn),o.fk=function(e){return Vb(e)},o.gk=function(e){return K(qt,J,485,e,8,1)},w(Hn,"EcorePackageImpl/22",1255),b(1256,1,ze,n6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return K(Ku,J,195,e,0,2)},w(Hn,"EcorePackageImpl/23",1256),b(1257,1,ze,e6n),o.fk=function(e){return L(e,222)},o.gk=function(e){return K(Op,J,222,e,0,1)},w(Hn,"EcorePackageImpl/24",1257),b(1258,1,ze,t6n),o.fk=function(e){return L(e,180)},o.gk=function(e){return K(U8,J,180,e,0,1)},w(Hn,"EcorePackageImpl/25",1258),b(1259,1,ze,i6n),o.fk=function(e){return L(e,206)},o.gk=function(e){return K(TP,J,206,e,0,1)},w(Hn,"EcorePackageImpl/26",1259),b(1260,1,ze,r6n),o.fk=function(e){return!1},o.gk=function(e){return K(R0n,xn,2215,e,0,1)},w(Hn,"EcorePackageImpl/27",1260),b(1261,1,ze,c6n),o.fk=function(e){return Jb(e)},o.gk=function(e){return K(ui,J,345,e,7,1)},w(Hn,"EcorePackageImpl/28",1261),b(1262,1,ze,u6n),o.fk=function(e){return L(e,61)},o.gk=function(e){return K(n0n,$w,61,e,0,1)},w(Hn,"EcorePackageImpl/29",1262),b(1236,1,ze,o6n),o.fk=function(e){return L(e,519)},o.gk=function(e){return K(qe,{3:1,4:1,5:1,2033:1},598,e,0,1)},w(Hn,"EcorePackageImpl/3",1236),b(1263,1,ze,s6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return K(i0n,xn,2039,e,0,1)},w(Hn,"EcorePackageImpl/30",1263),b(1264,1,ze,f6n),o.fk=function(e){return L(e,160)},o.gk=function(e){return K(T0n,$w,160,e,0,1)},w(Hn,"EcorePackageImpl/31",1264),b(1265,1,ze,h6n),o.fk=function(e){return L(e,76)},o.gk=function(e){return K(qO,IJn,76,e,0,1)},w(Hn,"EcorePackageImpl/32",1265),b(1266,1,ze,l6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return K(km,J,161,e,0,1)},w(Hn,"EcorePackageImpl/33",1266),b(1267,1,ze,a6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return K(qi,J,17,e,0,1)},w(Hn,"EcorePackageImpl/34",1267),b(1268,1,ze,d6n),o.fk=function(e){return L(e,297)},o.gk=function(e){return K(Aun,xn,297,e,0,1)},w(Hn,"EcorePackageImpl/35",1268),b(1269,1,ze,b6n),o.fk=function(e){return L(e,168)},o.gk=function(e){return K(vb,J,168,e,0,1)},w(Hn,"EcorePackageImpl/36",1269),b(1270,1,ze,w6n),o.fk=function(e){return L(e,85)},o.gk=function(e){return K(Sun,xn,85,e,0,1)},w(Hn,"EcorePackageImpl/37",1270),b(1271,1,ze,g6n),o.fk=function(e){return L(e,599)},o.gk=function(e){return K(j0n,xn,599,e,0,1)},w(Hn,"EcorePackageImpl/38",1271),b(1272,1,ze,v6n),o.fk=function(e){return!1},o.gk=function(e){return K(K0n,xn,2216,e,0,1)},w(Hn,"EcorePackageImpl/39",1272),b(1237,1,ze,p6n),o.fk=function(e){return L(e,90)},o.gk=function(e){return K(Ls,xn,29,e,0,1)},w(Hn,"EcorePackageImpl/4",1237),b(1273,1,ze,m6n),o.fk=function(e){return L(e,191)},o.gk=function(e){return K(pb,J,191,e,0,1)},w(Hn,"EcorePackageImpl/40",1273),b(1274,1,ze,k6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(Hn,"EcorePackageImpl/41",1274),b(1275,1,ze,y6n),o.fk=function(e){return L(e,596)},o.gk=function(e){return K(t0n,xn,596,e,0,1)},w(Hn,"EcorePackageImpl/42",1275),b(1276,1,ze,j6n),o.fk=function(e){return!1},o.gk=function(e){return K(_0n,J,2217,e,0,1)},w(Hn,"EcorePackageImpl/43",1276),b(1277,1,ze,E6n),o.fk=function(e){return L(e,44)},o.gk=function(e){return K(Ud,bS,44,e,0,1)},w(Hn,"EcorePackageImpl/44",1277),b(1238,1,ze,C6n),o.fk=function(e){return L(e,142)},o.gk=function(e){return K(If,xn,142,e,0,1)},w(Hn,"EcorePackageImpl/5",1238),b(1239,1,ze,M6n),o.fk=function(e){return L(e,156)},o.gk=function(e){return K(VU,xn,156,e,0,1)},w(Hn,"EcorePackageImpl/6",1239),b(1240,1,ze,T6n),o.fk=function(e){return L(e,469)},o.gk=function(e){return K(HO,xn,685,e,0,1)},w(Hn,"EcorePackageImpl/7",1240),b(1241,1,ze,A6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return K(Wl,xn,694,e,0,1)},w(Hn,"EcorePackageImpl/8",1241),b(1242,1,ze,S6n),o.fk=function(e){return L(e,480)},o.gk=function(e){return K(z9,xn,480,e,0,1)},w(Hn,"EcorePackageImpl/9",1242),b(1038,2080,iJn,xjn),o.Mi=function(e,t){!function f5e(n,e){var i,r,c;if(e.ej(n.a),null!=(c=u(qn(n.a,8),2035)))for(i=0,r=c.length;i0){if(Gn(0,e.length),47==e.charCodeAt(0)){for(s=new Vc(4),c=1,t=1;t0&&($i(0,i,e.length),e=e.substr(0,i))}return function BEe(n,e){var t,i,r,c,s,f;for(c=null,r=new $Pn((!n.a&&(n.a=new AL(n)),n.a));cen(r);)if(l2(s=(t=u(qA(r),58)).Dh()),null!=(i=(f=s.o)&&t.Xh(f)?XW(uF(f),t.Mh(f)):null)&&Tn(i,e)){c=t;break}return c}(this,e)},o.Gl=function(){return this.c},o.Ib=function(){return sd(this.Rm)+"@"+(wt(this)>>>0).toString(16)+" uri='"+this.d+"'"},o.b=!1,w(QK,"ResourceImpl",799),b(1525,799,LJn,Ayn),w(QK,"BinaryResourceImpl",1525),b(1190,708,GK),o.bj=function(e){return L(e,58)?function Pge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}(this,u(e,58)):L(e,599)?new ne(u(e,599).El()):x(e)===x(this.f)?u(e,16).Kc():(I3(),SE.a)},o.Ob=function(){return cen(this)},o.a=!1,w(Et,"EcoreUtil/ContentTreeIterator",1190),b(1526,1190,GK,$Pn),o.bj=function(e){return x(e)===x(this.f)?u(e,15).Kc():new LLn(u(e,58))},w(QK,"ResourceImpl/5",1526),b(658,2092,kJn,AL),o.Hc=function(e){return this.i<=4?L4(this,e):L(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){0==e?this.a.b||(this.a.b=!0):T$(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){return u(e,54).fi(this.a,t)},o.Oj=function(e,t){return u(e,54).fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return K(Ua,xn,58,e,0,1)},o.Yi=function(){return!1},w(QK,"ResourceImpl/ContentsEList",658),b(970,2062,Q4,Syn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()},w(Et,"AbstractSequentialInternalEList/1",970),b(634,1,{},xSn),w(Et,"BasicExtendedMetaData",634),b(1181,1,{},RMn),o.Jl=function(){return null},o.Kl=function(){return-2==this.a&&function ffe(n,e){n.a=e}(this,function Bye(n,e){var t,i,r;if((t=e.qi(n.a))&&null!=(r=jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),Cs)))for(i=1;i<($u(),E0n).length;++i)if(Tn(E0n[i],r))return i;return 0}(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return On(),On(),Vi},o.xe=function(){return this.c==gm&&function hfe(n,e){n.c=e}(this,eRn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=gm,w(Et,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),b(1182,1,{},sLn),o.Jl=function(){return this.a==(X3(),UO)&&function dfe(n,e){n.a=e}(this,function xAe(n,e){var t,r,c,s;return(r=e.qi(n.a))&&(!r.b&&(r.b=new wo((In(),hr),kc,r)),null!=(t=Oe(jf(r.b,Wi)))&&L(s=-1==(c=t.lastIndexOf("#"))?MW(n,e.jk(),t):0==c?Mk(n,null,(Gn(1,t.length+1),t.substr(1))):Mk(n,($i(0,c,t.length),t.substr(0,c)),(Gn(c+1,t.length+1),t.substr(c+1))),156))?u(s,156):null}(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==(X3(),UO)&&function lfe(n,e){n.c=e}(this,function BAe(n,e){var i,r,c,s;return(i=e.qi(n.a))&&(!i.b&&(i.b=new wo((In(),hr),kc,i)),null!=(c=Oe(jf(i.b,ZK)))&&L(s=-1==(r=c.lastIndexOf("#"))?MW(n,e.jk(),c):0==r?Mk(n,null,(Gn(1,c.length+1),c.substr(1))):Mk(n,($i(0,r,c.length),c.substr(0,r)),(Gn(r+1,c.length+1),c.substr(r+1))),156))?u(s,156):null}(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&function wfe(n,e){n.d=e}(this,function jPe(n,e){var t,i,r,c,s,f,h,l,a;if((t=e.qi(n.a))&&null!=(h=Oe(jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),"memberTypes")))){for(l=new Z,s=0,f=(c=Iw(h,"\\w")).length;st?e:t;l<=d;++l)l==t?f=i++:(a=p.am(r[l].Lk()),l==e&&(h=l!=d||a?i:i-1),a&&++i);return g=u($5(n,e,t),76),f!=h&&b3(n,new Ek(n.e,7,s,Y(f),v.md(),h)),g}return u($5(n,e,t),76)}(this,e,t)},o.Wi=function(e,t){return function bOe(n,e,t){var i,c,s,f,h,l,a,d,g,v,p,k,j;if(L(s=t.Lk(),102)&&u(s,19).Bb&sr&&(g=u(t.md(),54),(k=ba(n.e,g))!=g)){if(G6(n,e,kx(n,0,a=Gh(s,k))),d=null,ao(n.e)&&(i=a2(($u(),Ui),n.e.Dh(),s))!=Nn(n.e.Dh(),n.c)){for(j=ou(n.e.Dh(),s),f=0,c=u(n.g,124),h=0;h=0;)if(this.k.am((t=e[this.c]).Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(Et,"BasicFeatureMap/FeatureEIterator",420),b(676,420,Jh,xD),o.ul=function(){return!0},w(Et,"BasicFeatureMap/ResolvingFeatureEIterator",676),b(968,496,lP,PTn),o.pj=function(){return this},w(Et,"EContentsEList/1",968),b(969,496,lP,ZMn),o.ul=function(){return!1},w(Et,"EContentsEList/2",969),b(967,287,aP,ITn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1},w(Et,"EContentsEList/FeatureIteratorImpl/1",967),b(840,593,Qr,rW),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EDataTypeEList/Unsettable",840),b(1958,593,Qr,xTn),o.Si=function(){return!0},w(Et,"EDataTypeUniqueEList",1958),b(1959,840,Qr,BTn),o.Si=function(){return!0},w(Et,"EDataTypeUniqueEList/Unsettable",1959),b(147,83,Qr,Pu),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentEList/Resolving",147),b(1184,555,Qr,RTn),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentEList/Unsettable/Resolving",1184),b(766,14,Qr,UW),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EObjectContainmentWithInverseEList/Unsettable",766),b(1222,766,Qr,YAn),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),b(757,505,Qr,cW),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EObjectEList/Unsettable",757),b(338,505,Qr,Bg),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectResolvingEList",338),b(1844,757,Qr,KTn),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectResolvingEList/Unsettable",1844),b(1527,1,{},P6n),w(Et,"EObjectValidator",1527),b(559,505,Qr,DM),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0,w(Et,"EObjectWithInverseEList",559),b(1225,559,Qr,ZAn),o.ll=function(){return!0},w(Et,"EObjectWithInverseEList/ManyInverse",1225),b(635,559,Qr,rN),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EObjectWithInverseEList/Unsettable",635),b(1224,635,Qr,nSn),o.ll=function(){return!0},w(Et,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),b(767,559,Qr,GW),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectWithInverseResolvingEList",767),b(32,767,Qr,Dn),o.ll=function(){return!0},w(Et,"EObjectWithInverseResolvingEList/ManyInverse",32),b(768,635,Qr,zW),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectWithInverseResolvingEList/Unsettable",768),b(1223,768,Qr,eSn),o.ll=function(){return!0},w(Et,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),b(1185,632,Qr),o.Li=function(){return 0==(1792&this.b)},o.Ni=function(){this.b|=1},o.kl=function(){return 0!=(4&this.b)},o.Mj=function(){return 0!=(40&this.b)},o.ll=function(){return 0!=(16&this.b)},o.ml=function(){return 0!=(8&this.b)},o.nl=function(){return 0!=(this.b&_w)},o.al=function(){return 0!=(32&this.b)},o.ol=function(){return 0!=(this.b&Qs)},o.fk=function(e){return this.d?_Ln(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return 2&this.b?0!=(1&this.b):0!=this.i},o.Si=function(){return 0!=(128&this.b)},o.Gk=function(){var e;pe(this),2&this.b&&(ao(this.e)?(e=0!=(1&this.b),this.b&=-2,b3(this,new Gs(this.e,2,St(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return 0==(1536&this.b)},o.b=0,w(Et,"EcoreEList/Generic",1185),b(1186,1185,Qr,XIn),o.Lk=function(){return this.a},w(Et,"EcoreEList/Dynamic",1186),b(765,66,Ih,uz),o.aj=function(e){return Nk(this.a.a,e)},w(Et,"EcoreEMap/1",765),b(764,83,Qr,UV),o.Mi=function(e,t){MA(this.b,u(t,136))},o.Oi=function(e,t){UFn(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){PF(this.b,u(t,136))},o.Ri=function(e,t,i){PF(this.b,u(i,136)),x(i)===x(t)&&u(i,136).Ci(function Gle(n){return null==n?0:wt(n)}(u(t,136).ld())),MA(this.b,u(t,136))},w(Et,"EcoreEMap/DelegateEObjectContainmentEList",764),b(1220,141,dun,oFn),w(Et,"EcoreEMap/Unsettable",1220),b(1221,764,Qr,tSn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),b(1189,215,w2,WPn),o.a=!1,o.b=!1,w(Et,"EcoreUtil/Copier",1189),b(759,1,Ti,LLn),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return KBn(this)},o.Pb=function(){var e;return KBn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()},w(Et,"EcoreUtil/ProperContentIterator",759),b(1528,1527,{},P8n),w(Et,"EcoreValidator",1528),Ot(Et,"FeatureMapUtil/Validator"),b(1295,1,{2041:1},I6n),o.am=function(e){return!0},w(Et,"FeatureMapUtil/1",1295),b(773,1,{2041:1},Mtn),o.am=function(e){var t;return this.c==e||(null==(t=un(ee(this.a,e)))?function UAe(n,e){var t;return n.f==ZU?(t=F0(Ir(($u(),Ui),e)),n.e?4==t&&e!=(bp(),e3)&&e!=(bp(),n3)&&e!=(bp(),nG)&&e!=(bp(),eG):2==t):!(!n.d||!(n.d.Hc(e)||n.d.Hc(Vv(Ir(($u(),Ui),e)))||n.d.Hc(a2(($u(),Ui),n.b,e))))||!(!n.f||!Ten(($u(),n.f),ok(Ir(Ui,e))))&&(t=F0(Ir(Ui,e)),n.e?4==t:2==t)}(this,e)?(LDn(this.a,e,(Kn(),mm)),!0):(LDn(this.a,e,(Kn(),Pa)),!1):t==(Kn(),mm))},o.e=!1,w(Et,"FeatureMapUtil/BasicValidator",773),b(774,45,w2,tW),w(Et,"FeatureMapUtil/BasicValidator/Cache",774),b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},B7),o.bd=function(e,t){yqn(this.c,this.b,e,t)},o.Fc=function(e){return Jen(this.c,this.b,e)},o.cd=function(e,t){return function lIe(n,e,t,i){var r,c,s,f,h,l,a,d;if(0==i.gc())return!1;if(ar(),s=(h=u(e,69).xk())?i:new q0(i.gc()),Bl(n.e,e)){if(e.Si())for(a=i.Kc();a.Ob();)rS(n,e,l=a.Pb(),L(e,102)&&0!=(u(e,19).Bb&sr))||(c=Gh(e,l),s.Fc(c));else if(!h)for(a=i.Kc();a.Ob();)c=Gh(e,l=a.Pb()),s.Fc(c)}else{for(d=ou(n.e.Dh(),e),r=u(n.g,124),f=0;f1)throw M(new Un(wj));h||(c=Gh(e,i.Kc().Pb()),s.Fc(c))}return pY(n,Rnn(n,e,t),s)}(this.c,this.b,e,t)},o.Gc=function(e){return U6(this,e)},o.Gi=function(e,t){!function u4e(n,e,t,i){n.j=-1,oen(n,Rnn(n,e,t),(ar(),u(e,69).vk().xl(i)))}(this.c,this.b,e,t)},o.Wk=function(e,t){return Hen(this.c,this.b,e,t)},o.$i=function(e){return uS(this.c,this.b,e,!1)},o.Ii=function(){return lTn(this.c,this.b)},o.Ji=function(){return function Lle(n,e){return new h4(e,n)}(this.c,this.b)},o.Ki=function(e){return function l3e(n,e,t){var i,r;for(r=new h4(e,n),i=0;i0)if((t-=i.length-e)>=0){for(r.a+="0.";t>Gd.length;t-=Gd.length)nPn(r,Gd);BAn(r,Gd,di(t)),Re(r,(Gn(e,i.length+1),i.substr(e)))}else Re(r,Xo(i,e,di(t=e-t))),r.a+=".",Re(r,iJ(i,di(t)));else{for(Re(r,(Gn(e,i.length+1),i.substr(e)));t<-Gd.length;t+=Gd.length)nPn(r,Gd);BAn(r,Gd,di(-t))}return r.a}(u(t,247));case 15:case 14:return null==t?null:function kwe(n){return n==Mt?gj:n==fi?"-INF":""+n}(F(R(t)));case 17:return PKn((ht(),t));case 18:return PKn(t);case 21:case 20:return null==t?null:function ywe(n){return n==Mt?gj:n==fi?"-INF":""+n}(u(t,161).a);case 27:return cae(u(t,195));case 30:return qRn((ht(),u(t,15)));case 31:return qRn(u(t,15));case 40:return function oae(n){return null==n?null:Jr(n)}((ht(),t));case 42:return IKn((ht(),t));case 43:return IKn(t);case 59:case 48:return function uae(n){return null==n?null:Jr(n)}((ht(),t));default:throw M(new Un(dm+e.xe()+wb))}},o.si=function(e){var i;switch(-1==e.G&&(e.G=(i=Mo(e))?j1(i.vi(),e):-1),e.G){case 0:return new Mz;case 1:return new _6n;case 2:return new vjn;case 3:return new pjn;default:throw M(new Un(NK+e.zb+wb))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return d9e(t);case 8:case 7:return null==t?null:function Zke(n){if(n=_c(n,!0),Tn(am,n)||Tn("1",n))return Kn(),mm;if(Tn(PK,n)||Tn("0",n))return Kn(),Pa;throw M(new UL("Invalid boolean value: '"+n+"'"))}(t);case 9:return null==t?null:Ik(Io((r=_c(t,!0)).length>0&&(Gn(0,r.length),43==r.charCodeAt(0))?(Gn(1,r.length+1),r.substr(1)):r,-128,127)<<24>>24);case 10:return null==t?null:Ik(Io((c=_c(t,!0)).length>0&&(Gn(0,c.length),43==c.charCodeAt(0))?(Gn(1,c.length+1),c.substr(1)):c,-128,127)<<24>>24);case 11:return Oe(ob(this,(ht(),ase),t));case 12:return Oe(ob(this,(ht(),dse),t));case 13:return null==t?null:new Vz(_c(t,!0));case 15:case 14:return function jMe(n){var e,t,i,r;if(null==n)return null;if(Tn((i=_c(n,!0)).substr(i.length-(r=gj.length),r),gj))if(4==(t=i.length)){if(Gn(0,i.length),43==(e=i.charCodeAt(0)))return P0n;if(45==e)return Cse}else if(3==t)return P0n;return Ew(i)}(t);case 16:return Oe(ob(this,(ht(),bse),t));case 17:return GBn((ht(),t));case 18:return GBn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return _c(t,!0);case 21:case 20:return function LMe(n){var e,t,i,r;if(null==n)return null;if(Tn((i=_c(n,!0)).substr(i.length-(r=gj.length),r),gj))if(4==(t=i.length)){if(Gn(0,i.length),43==(e=i.charCodeAt(0)))return I0n;if(45==e)return Mse}else if(3==t)return I0n;return new az(i)}(t);case 22:return Oe(ob(this,(ht(),wse),t));case 23:return Oe(ob(this,(ht(),gse),t));case 24:return Oe(ob(this,(ht(),vse),t));case 25:return Oe(ob(this,(ht(),pse),t));case 26:return Oe(ob(this,(ht(),mse),t));case 27:return e9e(t);case 30:return zBn((ht(),t));case 31:return zBn(t);case 32:return null==t?null:Y(Io((d=_c(t,!0)).length>0&&(Gn(0,d.length),43==d.charCodeAt(0))?(Gn(1,d.length+1),d.substr(1)):d,Xi,nt));case 33:return null==t?null:new ea((g=_c(t,!0)).length>0&&(Gn(0,g.length),43==g.charCodeAt(0))?(Gn(1,g.length+1),g.substr(1)):g);case 34:return null==t?null:Y(Io((v=_c(t,!0)).length>0&&(Gn(0,v.length),43==v.charCodeAt(0))?(Gn(1,v.length+1),v.substr(1)):v,Xi,nt));case 36:return null==t?null:$l(lS((p=_c(t,!0)).length>0&&(Gn(0,p.length),43==p.charCodeAt(0))?(Gn(1,p.length+1),p.substr(1)):p));case 37:return null==t?null:$l(lS((k=_c(t,!0)).length>0&&(Gn(0,k.length),43==k.charCodeAt(0))?(Gn(1,k.length+1),k.substr(1)):k));case 40:return function Y9e(n){var e;return null==n?null:new ea((e=_c(n,!0)).length>0&&(Gn(0,e.length),43==e.charCodeAt(0))?(Gn(1,e.length+1),e.substr(1)):e)}((ht(),t));case 42:return XBn((ht(),t));case 43:return XBn(t);case 44:return null==t?null:new ea((j=_c(t,!0)).length>0&&(Gn(0,j.length),43==j.charCodeAt(0))?(Gn(1,j.length+1),j.substr(1)):j);case 45:return null==t?null:new ea((A=_c(t,!0)).length>0&&(Gn(0,A.length),43==A.charCodeAt(0))?(Gn(1,A.length+1),A.substr(1)):A);case 46:return _c(t,!1);case 47:return Oe(ob(this,(ht(),kse),t));case 59:case 48:return function Q9e(n){var e;return null==n?null:new ea((e=_c(n,!0)).length>0&&(Gn(0,e.length),43==e.charCodeAt(0))?(Gn(1,e.length+1),e.substr(1)):e)}((ht(),t));case 49:return Oe(ob(this,(ht(),yse),t));case 50:return null==t?null:k4(Io((I=_c(t,!0)).length>0&&(Gn(0,I.length),43==I.charCodeAt(0))?(Gn(1,I.length+1),I.substr(1)):I,gP,32767)<<16>>16);case 51:return null==t?null:k4(Io((s=_c(t,!0)).length>0&&(Gn(0,s.length),43==s.charCodeAt(0))?(Gn(1,s.length+1),s.substr(1)):s,gP,32767)<<16>>16);case 53:return Oe(ob(this,(ht(),jse),t));case 55:return null==t?null:k4(Io((f=_c(t,!0)).length>0&&(Gn(0,f.length),43==f.charCodeAt(0))?(Gn(1,f.length+1),f.substr(1)):f,gP,32767)<<16>>16);case 56:return null==t?null:k4(Io((h=_c(t,!0)).length>0&&(Gn(0,h.length),43==h.charCodeAt(0))?(Gn(1,h.length+1),h.substr(1)):h,gP,32767)<<16>>16);case 57:return null==t?null:$l(lS((l=_c(t,!0)).length>0&&(Gn(0,l.length),43==l.charCodeAt(0))?(Gn(1,l.length+1),l.substr(1)):l));case 58:return null==t?null:$l(lS((a=_c(t,!0)).length>0&&(Gn(0,a.length),43==a.charCodeAt(0))?(Gn(1,a.length+1),a.substr(1)):a));case 60:return null==t?null:Y(Io((i=_c(t,!0)).length>0&&(Gn(0,i.length),43==i.charCodeAt(0))?(Gn(1,i.length+1),i.substr(1)):i,Xi,nt));case 61:return null==t?null:Y(Io(_c(t,!0),Xi,nt));default:throw M(new Un(dm+e.xe()+wb))}},w(ci,"XMLTypeFactoryImpl",2028),b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},gIn),o.N=!1,o.O=!1;var ch,U1,n7,XO,P,Tse=!1;w(ci,"XMLTypePackageImpl",594),b(1961,1,{851:1},L6n),o.Kk=function(){return ctn(),$se},w(ci,"XMLTypePackageImpl/1",1961),b(1970,1,ze,D6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/10",1970),b(1971,1,ze,N6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/11",1971),b(1972,1,ze,$6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/12",1972),b(1973,1,ze,F6n),o.fk=function(e){return Jb(e)},o.gk=function(e){return K(ui,J,345,e,7,1)},w(ci,"XMLTypePackageImpl/13",1973),b(1974,1,ze,x6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/14",1974),b(1975,1,ze,B6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/15",1975),b(1976,1,ze,R6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/16",1976),b(1977,1,ze,K6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/17",1977),b(1978,1,ze,H6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return K(km,J,161,e,0,1)},w(ci,"XMLTypePackageImpl/18",1978),b(1979,1,ze,q6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/19",1979),b(1962,1,ze,U6n),o.fk=function(e){return L(e,857)},o.gk=function(e){return K(IE,xn,857,e,0,1)},w(ci,"XMLTypePackageImpl/2",1962),b(1980,1,ze,G6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/20",1980),b(1981,1,ze,z6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/21",1981),b(1982,1,ze,X6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/22",1982),b(1983,1,ze,W6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/23",1983),b(1984,1,ze,V6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return K(Ku,J,195,e,0,2)},w(ci,"XMLTypePackageImpl/24",1984),b(1985,1,ze,J6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/25",1985),b(1986,1,ze,Q6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/26",1986),b(1987,1,ze,Y6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/27",1987),b(1988,1,ze,Z6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/28",1988),b(1989,1,ze,n5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/29",1989),b(1963,1,ze,e5n),o.fk=function(e){return L(e,681)},o.gk=function(e){return K(zO,xn,2119,e,0,1)},w(ci,"XMLTypePackageImpl/3",1963),b(1990,1,ze,t5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return K(qi,J,17,e,0,1)},w(ci,"XMLTypePackageImpl/30",1990),b(1991,1,ze,i5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/31",1991),b(1992,1,ze,r5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return K(vb,J,168,e,0,1)},w(ci,"XMLTypePackageImpl/32",1992),b(1993,1,ze,c5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/33",1993),b(1994,1,ze,u5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/34",1994),b(1995,1,ze,o5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/35",1995),b(1996,1,ze,s5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/36",1996),b(1997,1,ze,f5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/37",1997),b(1998,1,ze,h5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/38",1998),b(1999,1,ze,l5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/39",1999),b(1964,1,ze,a5n),o.fk=function(e){return L(e,682)},o.gk=function(e){return K(OE,xn,2120,e,0,1)},w(ci,"XMLTypePackageImpl/4",1964),b(2e3,1,ze,d5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/40",2e3),b(2001,1,ze,b5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/41",2001),b(2002,1,ze,w5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/42",2002),b(2003,1,ze,g5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/43",2003),b(2004,1,ze,v5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/44",2004),b(2005,1,ze,p5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return K(pb,J,191,e,0,1)},w(ci,"XMLTypePackageImpl/45",2005),b(2006,1,ze,m5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/46",2006),b(2007,1,ze,k5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/47",2007),b(2008,1,ze,y5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/48",2008),b(2009,1,ze,j5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return K(pb,J,191,e,0,1)},w(ci,"XMLTypePackageImpl/49",2009),b(1965,1,ze,E5n),o.fk=function(e){return L(e,683)},o.gk=function(e){return K(A0n,xn,2121,e,0,1)},w(ci,"XMLTypePackageImpl/5",1965),b(2010,1,ze,C5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return K(vb,J,168,e,0,1)},w(ci,"XMLTypePackageImpl/50",2010),b(2011,1,ze,M5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/51",2011),b(2012,1,ze,T5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return K(qi,J,17,e,0,1)},w(ci,"XMLTypePackageImpl/52",2012),b(1966,1,ze,A5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/6",1966),b(1967,1,ze,S5n),o.fk=function(e){return L(e,195)},o.gk=function(e){return K(Ku,J,195,e,0,2)},w(ci,"XMLTypePackageImpl/7",1967),b(1968,1,ze,P5n),o.fk=function(e){return Vb(e)},o.gk=function(e){return K(qt,J,485,e,8,1)},w(ci,"XMLTypePackageImpl/8",1968),b(1969,1,ze,I5n),o.fk=function(e){return L(e,222)},o.gk=function(e){return K(Op,J,222,e,0,1)},w(ci,"XMLTypePackageImpl/9",1969),b(55,63,Rl,De),w(I1,"RegEx/ParseException",55),b(836,1,{},TG),o.bm=function(e){return e16*i)throw M(new De($e((Ie(),XVn))));i=16*i+c}if(125!=this.a)throw M(new De($e((Ie(),WVn))));if(i>vm)throw M(new De($e((Ie(),VVn))));e=i}else{if(c=0,0!=this.c||(c=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(i=c,Ye(this),0!=this.c||(c=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));e=i=16*i+c}break;case 117:if(r=0,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));e=t=16*t+r;break;case 118:if(Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if((t=16*t+r)>vm)throw M(new De($e((Ie(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw M(new De($e((Ie(),JVn))))}return e},o.dm=function(e){var i;switch(e){case 100:i=32==(32&this.e)?ya("Nd",!0):(Ze(),WO);break;case 68:i=32==(32&this.e)?ya("Nd",!1):(Ze(),F0n);break;case 119:i=32==(32&this.e)?ya("IsWord",!0):(Ze(),r6);break;case 87:i=32==(32&this.e)?ya("IsWord",!1):(Ze(),B0n);break;case 115:i=32==(32&this.e)?ya("IsSpace",!0):(Ze(),t3);break;case 83:i=32==(32&this.e)?ya("IsSpace",!1):(Ze(),x0n);break;default:throw M(new ic(JJn+e.toString(16)))}return i},o.em=function(e){var t,i,r,c,f,h,l,a,d,g,v;for(this.b=1,Ye(this),t=null,0==this.c&&94==this.a?(Ye(this),e?(Ze(),Ze(),d=new Co(5)):(Ze(),Ze(),Kc(t=new Co(4),0,vm),d=new Co(4))):(Ze(),Ze(),d=new Co(4)),c=!0;1!=(v=this.c)&&(0!=v||93!=this.a||c);){if(c=!1,i=this.a,r=!1,10==v)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:Ow(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:(i=this.um(d,i))<0&&(r=!0);break;case 112:case 80:if(!(g=ien(this,i)))throw M(new De($e((Ie(),XK))));Ow(d,g),r=!0;break;default:i=this.cm()}else if(20==v){if((f=A3(this.i,58,this.d))<0)throw M(new De($e((Ie(),oun))));if(h=!0,94==Gi(this.i,this.d)&&(++this.d,h=!1),!(l=yNn(Xo(this.i,this.d,f),h,512==(512&this.e))))throw M(new De($e((Ie(),HVn))));if(Ow(d,l),r=!0,f+1>=this.j||93!=Gi(this.i,f+1))throw M(new De($e((Ie(),oun))));this.d=f+2}if(Ye(this),!r)if(0!=this.c||45!=this.a)Kc(d,i,i);else{if(Ye(this),1==(v=this.c))throw M(new De($e((Ie(),fP))));0==v&&93==this.a?(Kc(d,i,i),Kc(d,45,45)):(a=this.a,10==v&&(a=this.cm()),Ye(this),Kc(d,i,a))}(this.e&Qs)==Qs&&0==this.c&&44==this.a&&Ye(this)}if(1==this.c)throw M(new De($e((Ie(),fP))));return t&&(l8(t,d),d=t),u2(d),f8(d),this.b=0,Ye(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);7!=(r=this.c);){if(e=this.a,(0!=r||45!=e&&38!=e)&&4!=r)throw M(new De($e((Ie(),GVn))));if(Ye(this),9!=this.c)throw M(new De($e((Ie(),UVn))));if(t=this.em(!1),4==r)Ow(i,t);else if(45==e)l8(i,t);else{if(38!=e)throw M(new ic("ASSERT"));SGn(i,t)}}return Ye(this),i},o.gm=function(){var e,t;return e=this.a-48,Ze(),Ze(),t=new n$(12,null,e),!this.g&&(this.g=new iC),tC(this.g,new oz(e)),Ye(this),t},o.hm=function(){return Ye(this),Ze(),Pse},o.im=function(){return Ye(this),Ze(),Sse},o.jm=function(){throw M(new De($e((Ie(),os))))},o.km=function(){throw M(new De($e((Ie(),os))))},o.lm=function(){return Ye(this),g6e()},o.mm=function(){return Ye(this),Ze(),Ose},o.nm=function(){return Ye(this),Ze(),Dse},o.om=function(){var e;if(this.d>=this.j||64!=(65504&(e=Gi(this.i,this.d++))))throw M(new De($e((Ie(),RVn))));return Ye(this),Ze(),Ze(),new Hh(0,e-64)},o.pm=function(){return Ye(this),function mPe(){var n,e,t,i,r,c;if(Ze(),iG)return iG;for(Ow(n=new Co(4),ya(o_,!0)),l8(n,ya("M",!0)),l8(n,ya("C",!0)),c=new Co(4),i=0;i<11;i++)Kc(c,i,i);return Ow(e=new Co(4),ya("M",!0)),Kc(e,4448,4607),Kc(e,65438,65439),Ld(r=new q6(2),n),Ld(r,t7),(t=new q6(2)).Jm(MM(c,ya("L",!0))),t.Jm(e),t=new JV(r,t=new sw(3,t)),iG=t}()},o.qm=function(){return Ye(this),Ze(),Nse},o.rm=function(){var e;return Ze(),Ze(),e=new Hh(0,105),Ye(this),e},o.sm=function(){return Ye(this),Ze(),Lse},o.tm=function(){return Ye(this),Ze(),Ise},o.um=function(e,t){return this.cm()},o.vm=function(){return Ye(this),Ze(),N0n},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw M(new De($e((Ie(),FVn))));if(r=-1,t=null,49<=(e=Gi(this.i,this.d))&&e<=57){if(r=e-48,!this.g&&(this.g=new iC),tC(this.g,new oz(r)),++this.d,41!=Gi(this.i,this.d))throw M(new De($e((Ie(),Hd))));++this.d}else switch(63==e&&--this.d,Ye(this),t=Itn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw M(new De($e((Ie(),Hd))));break;default:throw M(new De($e((Ie(),xVn))))}if(Ye(this),i=null,2==(c=Z0(this)).e){if(2!=c.Pm())throw M(new De($e((Ie(),BVn))));i=c.Lm(1),c=c.Lm(0)}if(7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),Ze(),Ze(),new t$n(r,t,c,i)},o.xm=function(){return Ye(this),Ze(),$0n},o.ym=function(){var e;if(Ye(this),e=NM(24,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.zm=function(){var e;if(Ye(this),e=NM(20,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Am=function(){var e;if(Ye(this),e=NM(22,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d=this.j)throw M(new De($e((Ie(),cun))));if(45==t){for(++this.d;this.d=this.j)throw M(new De($e((Ie(),cun))))}if(58==t){if(++this.d,Ye(this),r=QPn(Z0(this),e,i),7!=this.c)throw M(new De($e((Ie(),Hd))));Ye(this)}else{if(41!=t)throw M(new De($e((Ie(),$Vn))));++this.d,Ye(this),r=QPn(Z0(this),e,i)}return r},o.Cm=function(){var e;if(Ye(this),e=NM(21,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Dm=function(){var e;if(Ye(this),e=NM(23,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Em=function(){var e,t;if(Ye(this),e=this.f++,t=SN(Z0(this),e),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),t},o.Fm=function(){var e;if(Ye(this),e=SN(Z0(this),0),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Gm=function(e){return Ye(this),5==this.c?(Ye(this),MM(e,(Ze(),Ze(),new sw(9,e)))):MM(e,(Ze(),Ze(),new sw(3,e)))},o.Hm=function(e){var t;return Ye(this),Ze(),Ze(),t=new q6(2),5==this.c?(Ye(this),Ld(t,t7),Ld(t,e)):(Ld(t,e),Ld(t,t7)),t},o.Im=function(e){return Ye(this),5==this.c?(Ye(this),Ze(),Ze(),new sw(9,e)):(Ze(),Ze(),new sw(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0,w(I1,"RegEx/RegexParser",836),b(1947,836,{},mjn),o.bm=function(e){return!1},o.cm=function(){return Ben(this)},o.dm=function(e){return H4(e)},o.em=function(e){return Ezn(this)},o.fm=function(){throw M(new De($e((Ie(),os))))},o.gm=function(){throw M(new De($e((Ie(),os))))},o.hm=function(){throw M(new De($e((Ie(),os))))},o.im=function(){throw M(new De($e((Ie(),os))))},o.jm=function(){return Ye(this),H4(67)},o.km=function(){return Ye(this),H4(73)},o.lm=function(){throw M(new De($e((Ie(),os))))},o.mm=function(){throw M(new De($e((Ie(),os))))},o.nm=function(){throw M(new De($e((Ie(),os))))},o.om=function(){return Ye(this),H4(99)},o.pm=function(){throw M(new De($e((Ie(),os))))},o.qm=function(){throw M(new De($e((Ie(),os))))},o.rm=function(){return Ye(this),H4(105)},o.sm=function(){throw M(new De($e((Ie(),os))))},o.tm=function(){throw M(new De($e((Ie(),os))))},o.um=function(e,t){return Ow(e,H4(t)),-1},o.vm=function(){return Ye(this),Ze(),Ze(),new Hh(0,94)},o.wm=function(){throw M(new De($e((Ie(),os))))},o.xm=function(){return Ye(this),Ze(),Ze(),new Hh(0,36)},o.ym=function(){throw M(new De($e((Ie(),os))))},o.zm=function(){throw M(new De($e((Ie(),os))))},o.Am=function(){throw M(new De($e((Ie(),os))))},o.Bm=function(){throw M(new De($e((Ie(),os))))},o.Cm=function(){throw M(new De($e((Ie(),os))))},o.Dm=function(){throw M(new De($e((Ie(),os))))},o.Em=function(){var e;if(Ye(this),e=SN(Z0(this),0),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Fm=function(){throw M(new De($e((Ie(),os))))},o.Gm=function(e){return Ye(this),MM(e,(Ze(),Ze(),new sw(3,e)))},o.Hm=function(e){var t;return Ye(this),Ze(),Ze(),Ld(t=new q6(2),e),Ld(t,t7),t},o.Im=function(e){return Ye(this),Ze(),Ze(),new sw(3,e)};var sv=null,t6=null;w(I1,"RegEx/ParserForXMLSchema",1947),b(122,1,pm,h0),o.Jm=function(e){throw M(new ic("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return 11==this.e?".":""},o.e=0;var O0n,i6,e7,Ase,L0n,WO,D0n,t7,N0n,$0n,F0n,x0n,B0n,Sse,t3,Pse,Ise,Ose,Lse,r6,Dse,Nse,$se,Va,mg=null,tG=null,iG=null,PNe=w(I1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},Co),o.Qm=function(e){var t,i,r;if(4==this.e)if(this==D0n)i=".";else if(this==WO)i="\\d";else if(this==r6)i="\\w";else if(this==t3)i="\\s";else{for((r=new e1).a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?jr(r,Iy(this.b[t])):(jr(r,Iy(this.b[t])),r.a+="-",jr(r,Iy(this.b[t+1])));r.a+="]",i=r.a}else if(this==F0n)i="\\D";else if(this==B0n)i="\\W";else if(this==x0n)i="\\S";else{for((r=new e1).a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?jr(r,Iy(this.b[t])):(jr(r,Iy(this.b[t])),r.a+="-",jr(r,Iy(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1,w(I1,"RegEx/RangeToken",138),b(592,1,{592:1},oz),o.a=0,w(I1,"RegEx/RegexParser/ReferencePosition",592),b(591,1,{3:1,591:1},NEn),o.Fb=function(e){var t;return!(null==e||!L(e,591))&&(t=u(e,591),Tn(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return w1(this.b+"/"+Oen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0,w(I1,"RegEx/RegularExpression",591),b(228,122,pm,Hh),o.Km=function(){return this.a},o.Qm=function(e){var i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+iN(this.a&ri);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:r=this.a>=sr?"\\v"+Xo(i="0"+(this.a>>>0).toString(16),i.length-6,i.length):""+iN(this.a&ri)}break;case 8:r=this==N0n||this==$0n?""+iN(this.a&ri):"\\"+iN(this.a&ri);break;default:r=null}return r},o.a=0,w(I1,"RegEx/Token/CharToken",228),b(318,122,pm,sw),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(3==this.e)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else{if(!(this.c>=0&&this.b<0))throw M(new ic("Token#toString(): CLOSURE "+this.c+cr+this.b));t=this.a.Qm(e)+"{"+this.c+",}"}else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else{if(!(this.c>=0&&this.b<0))throw M(new ic("Token#toString(): NONGREEDYCLOSURE "+this.c+cr+this.b));t=this.a.Qm(e)+"{"+this.c+",}?"}return t},o.b=0,o.c=0,w(I1,"RegEx/Token/ClosureToken",318),b(837,122,pm,JV),o.Lm=function(e){return 0==e?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){return 3==this.b.e&&this.b.Lm(0)==this.a?this.a.Qm(e)+"+":9==this.b.e&&this.b.Lm(0)==this.a?this.a.Qm(e)+"+?":this.a.Qm(e)+""+this.b.Qm(e)},w(I1,"RegEx/Token/ConcatToken",837),b(1945,122,pm,t$n),o.Lm=function(e){if(0==e)return this.d;if(1==e)return this.b;throw M(new ic("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){return(this.c>0?"(?("+this.c+")":8==this.a.e?"(?("+this.a+")":"(?"+this.a)+(this.b?this.d+"|"+this.b+")":this.d+")")},o.c=0,w(I1,"RegEx/Token/ConditionToken",1945),b(1946,122,pm,zOn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(0==this.a?"":Oen(this.a))+(0==this.c?"":Oen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0,w(I1,"RegEx/Token/ModifierToken",1946),b(838,122,pm,uJ),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:t=0==this.b?"(?:"+this.a.Qm(e)+")":"("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?"+this.a.Qm(e)+")"}return t},o.b=0,w(I1,"RegEx/Token/ParenToken",838),b(530,122,{3:1,122:1,530:1},n$),o.Mm=function(){return this.b},o.Qm=function(e){return 12==this.e?"\\"+this.a:function lMe(n){var e,t,i,r;for(r=n.length,e=null,i=0;i=0?(e||(e=new p6,i>0&&jr(e,($i(0,i,n.length),n.substr(0,i)))),e.a+="\\",B3(e,t&ri)):e&&B3(e,t&ri);return e?e.a:n}(this.b)},o.a=0,w(I1,"RegEx/Token/StringToken",530),b(477,122,pm,q6),o.Jm=function(e){Ld(this,e)},o.Lm=function(e){return u($0(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(1==this.e){if(2==this.a.a.c.length)t=u($0(this.a,0),122),c=3==(i=u($0(this.a,1),122)).e&&i.Lm(0)==t?t.Qm(e)+"+":9==i.e&&i.Lm(0)==t?t.Qm(e)+"+?":t.Qm(e)+""+i.Qm(e);else{for(s=new e1,r=0;r=n.c.b:n.a<=n.c.b))throw M(new tc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}(this)},o.Ub=function(){return function P3e(n){if(n.b<=0)throw M(new tc);return--n.b,n.a-=n.c.c,Y(n.a)}(this)},o.Wb=function(e){u(e,17),function Vle(){throw M(new Zl(tQn))}()},o.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw M(new Zl(iQn))},o.a=0,o.b=0,w(Tun,"ExclusiveRange/RangeIterator",258);var ds=R3(hP,"C"),ye=R3(B8,"I"),fo=R3(vp,"Z"),Ja=R3(R8,"J"),Ku=R3($8,"B"),Ai=R3(F8,"D"),kg=R3(x8,"F"),fv=R3(K8,"S"),INe=Ot("org.eclipse.elk.core.labels","ILabelManager"),R0n=Ot(ur,"DiagnosticChain"),K0n=Ot(OJn,"ResourceSet"),_0n=w(ur,"InvocationTargetException",null),Fse=(oC(),function Upe(n){return oC(),function(){return $ve(n,this,arguments)}}),xse=xse=function $ke(n,e,t,i){$En();var r=f_;function c(){for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function Xr(xr,Lt){if(!(xr instanceof Lt))throw new TypeError("Cannot call a class as a function")}(this,Lt);var lc=Object.assign({},xi),bu=!1;try{Za.resolve("web-worker"),bu=!0}catch{}if(xi.workerUrl)if(bu){var Jl=Za("web-worker");lc.workerFactory=function(Vn){return new Jl(Vn)}}else console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.");if(!lc.workerFactory){var bl=Za("./elk-worker.min.js").Worker;lc.workerFactory=function(Vn){return new bl(Vn)}}return function y(xr,Lt){if(!xr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Lt||"object"!=typeof Lt&&"function"!=typeof Lt?xr:Lt}(this,(Lt.__proto__||Object.getPrototypeOf(Lt)).call(this,lc))}return function av(xr,Lt){if("function"!=typeof Lt&&null!==Lt)throw new TypeError("Super expression must either be null or a function, not "+typeof Lt);xr.prototype=Object.create(Lt&&Lt.prototype,{constructor:{value:xr,enumerable:!1,writable:!0,configurable:!0}}),Lt&&(Object.setPrototypeOf?Object.setPrototypeOf(xr,Lt):xr.__proto__=Lt)}(Lt,xr),Lt}(Za("./elk-api.js").default);Object.defineProperty(ho.exports,"__esModule",{value:!0}),ho.exports=du,du.default=du},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(Za,ho,uh){ho.exports=Worker},{}]},{},[3])(3)},5690:(q0n,NE,Ya)=>{"use strict";Ya.r(NE),Ya.d(NE,{diagram:()=>Hb});var VO=Ya(5861),Za=Ya(5609),ho=Ya(8586),uh=Ya(9038),Xr=Ya(9037),y=Ya(7942);Ya(1764),Ya(6780),Ya(2735);const Lt=new y;let xi={};const lc={};let bu={};const Jl=function(){var N=(0,VO.Z)(function*(xt,Gt,Si,lr,er,lo,Wt){const nc=Si.select(`[id="${Gt}"]`).insert("g").attr("class","nodes"),_o=Object.keys(xt);return yield Promise.all(_o.map(function(){var nd=(0,VO.Z)(function*(z1){const ec=xt[z1];let zt="default";ec.classes.length>0&&(zt=ec.classes.join(" ")),zt+=" flowchart-label";const X1=(0,Xr.k)(ec.styles);let gl=void 0!==ec.text?ec.text:ec.id;const bs={width:0,height:0},W1=[{id:ec.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:ec.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:ec.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:ec.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Ql=0,wu="",dv={};switch(ec.type){case"round":Ql=5,wu="rect";break;case"square":case"group":default:wu="rect";break;case"diamond":wu="question",dv={portConstraints:"FIXED_SIDE"};break;case"hexagon":wu="hexagon";break;case"odd":case"odd_right":wu="rect_left_inv_arrow";break;case"lean_right":wu="lean_right";break;case"lean_left":wu="lean_left";break;case"trapezoid":wu="trapezoid";break;case"inv_trapezoid":wu="inv_trapezoid";break;case"circle":wu="circle";break;case"ellipse":wu="ellipse";break;case"stadium":wu="stadium";break;case"subroutine":wu="subroutine";break;case"cylinder":wu="cylinder";break;case"doublecircle":wu="doublecircle"}const Br={labelStyle:X1.labelStyle,shape:wu,labelText:gl,labelType:ec.labelType,rx:Ql,ry:Ql,class:zt,style:X1.style,id:ec.id,link:ec.link,linkTarget:ec.linkTarget,tooltip:er.db.getTooltip(ec.id)||"",domId:er.db.lookUpDomId(ec.id),haveCallback:ec.haveCallback,width:"group"===ec.type?500:void 0,dir:ec.dir,type:ec.type,props:ec.props,padding:(0,Xr.F)().flowchart.padding};let yc,Rh;if("group"!==Br.type)Rh=yield(0,uh.e)(nc,Br,ec.dir),yc=Rh.node().getBBox();else{lr.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:Yl,bbox:xE}=yield(0,uh.l)(nc,Br,void 0,!0);bs.width=xE.width,bs.wrappingWidth=(0,Xr.F)().flowchart.wrappingWidth,bs.height=xE.height,bs.labelNode=Yl.node(),Br.labelData=bs}const Fs={id:ec.id,ports:"diamond"===ec.type?W1:[],layoutOptions:dv,labelText:gl,labelData:bs,domId:er.db.lookUpDomId(ec.id),width:yc?.width,height:yc?.height,type:ec.type,el:Rh,parent:lo.parentById[ec.id]};bu[Br.id]=Fs});return function(z1){return nd.apply(this,arguments)}}())),Wt});return function(Gt,Si,lr,er,lo,Wt,wl){return N.apply(this,arguments)}}(),Bh=(N,xt,Gt)=>{const Si={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return Si.TD=Si.TB,Si[Gt][xt][N]},bl=(N,xt,Gt)=>{if(Xr.l.info("getNextPort",{node:N,edgeDirection:xt,graphDirection:Gt}),!xi[N])switch(Gt){case"TB":case"TD":xi[N]={inPosition:"north",outPosition:"south"};break;case"BT":xi[N]={inPosition:"south",outPosition:"north"};break;case"RL":xi[N]={inPosition:"east",outPosition:"west"};break;case"LR":xi[N]={inPosition:"west",outPosition:"east"}}const Si="in"===xt?xi[N].inPosition:xi[N].outPosition;return"in"===xt?xi[N].inPosition=Bh(xi[N].inPosition,xt,Gt):xi[N].outPosition=Bh(xi[N].outPosition,xt,Gt),Si},YO=function(N,xt,Gt,Si,lr,er){const lo=function(N,xt,Gt){const Si=((N,xt,Gt)=>{const{parentById:Si}=Gt,lr=new Set;let er=N;for(;er;){if(lr.add(er),er===xt)return er;er=Si[er]}for(er=xt;er;){if(lr.has(er))return er;er=Si[er]}return"root"})(N,xt,Gt);if(void 0===Si||"root"===Si)return{x:0,y:0};const lr=bu[Si].offset;return{x:lr.posX,y:lr.posY}}(xt.sourceId,xt.targetId,lr),Wt=xt.sections[0].startPoint,wl=xt.sections[0].endPoint,_o=(xt.sections[0].bendPoints?xt.sections[0].bendPoints:[]).map(Ql=>[Ql.x+lo.x,Ql.y+lo.y]),nd=[[Wt.x+lo.x,Wt.y+lo.y],..._o,[wl.x+lo.x,wl.y+lo.y]],{x:z1,y:ec}=(0,uh.k)(xt.edgeData),zt=(0,ho.jvg)().x(z1).y(ec).curve(ho.c_6),X1=N.insert("path").attr("d",zt(nd)).attr("class","path "+Gt.classes).attr("fill","none"),gl=N.insert("g").attr("class","edgeLabel"),bs=(0,ho.Ys)(gl.node().appendChild(xt.labelEl)),W1=bs.node().firstChild.getBoundingClientRect();bs.attr("width",W1.width),bs.attr("height",W1.height),gl.attr("transform",`translate(${xt.labels[0].x+lo.x}, ${xt.labels[0].y+lo.y})`),function(N,xt,Gt,Si,lr){let er="";Si&&(er=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,er=er.replace(/\(/g,"\\("),er=er.replace(/\)/g,"\\)")),(0,uh.m)(N,xt,er,lr,Gt)}(X1,Gt,Si.type,Si.arrowMarkerAbsolute,er)},$E=(N,xt)=>{N.forEach(Gt=>{Gt.children||(Gt.children=[]);const Si=xt.childrenById[Gt.id];Si&&Si.forEach(lr=>{Gt.children.push(bu[lr])}),$E(Gt.children,xt)})},ZO=function(){var N=(0,VO.Z)(function*(xt,Gt,Si,lr){var er;lr.db.clear(),bu={},xi={},lr.db.setGen("gen-2"),lr.parser.parse(xt);const lo=(0,ho.Ys)("body").append("div").attr("style","height:400px").attr("id","cy");let Wt={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Xr.l.info("Drawing flowchart using v3 renderer",Lt),lr.db.getDirection()){case"BT":Wt.layoutOptions["elk.direction"]="UP";break;case"TB":Wt.layoutOptions["elk.direction"]="DOWN";break;case"LR":Wt.layoutOptions["elk.direction"]="RIGHT";break;case"RL":Wt.layoutOptions["elk.direction"]="LEFT"}const{securityLevel:nc,flowchart:_o}=(0,Xr.F)();let nd;"sandbox"===nc&&(nd=(0,ho.Ys)("#i"+Gt));const z1=(0,ho.Ys)("sandbox"===nc?nd.nodes()[0].contentDocument.body:"body"),ec="sandbox"===nc?nd.nodes()[0].contentDocument:document,zt=z1.select(`[id="${Gt}"]`);(0,uh.a)(zt,["point","circle","cross"],lr.type,Gt);const gl=lr.db.getVertices();let bs;const W1=lr.db.getSubGraphs();Xr.l.info("Subgraphs - ",W1);for(let Fs=W1.length-1;Fs>=0;Fs--)bs=W1[Fs],lr.db.addVertex(bs.id,{text:bs.title,type:bs.labelType},"group",void 0,bs.classes,bs.dir);const Ql=zt.insert("g").attr("class","subgraphs"),wu=function(N){const xt={parentById:{},childrenById:{}},Gt=N.getSubGraphs();return Xr.l.info("Subgraphs - ",Gt),Gt.forEach(function(Si){Si.nodes.forEach(function(lr){xt.parentById[lr]=Si.id,void 0===xt.childrenById[Si.id]&&(xt.childrenById[Si.id]=[]),xt.childrenById[Si.id].push(lr)})}),Gt.forEach(function(Si){}),xt}(lr.db);Wt=yield Jl(gl,Gt,z1,ec,lr,wu,Wt);const dv=zt.insert("g").attr("class","edges edgePath"),Br=lr.db.getEdges();Wt=function(N,xt,Gt,Si){Xr.l.info("abc78 edges = ",N);const lr=Si.insert("g").attr("class","edgeLabels");let Wt,wl,er={},lo=xt.db.getDirection();if(void 0!==N.defaultStyle){const nc=(0,Xr.k)(N.defaultStyle);Wt=nc.style,wl=nc.labelStyle}return N.forEach(function(nc){const _o="L-"+nc.start+"-"+nc.end;void 0===er[_o]?(er[_o]=0,Xr.l.info("abc78 new entry",_o,er[_o])):(er[_o]++,Xr.l.info("abc78 new entry",_o,er[_o]));let nd=_o+"-"+er[_o];Xr.l.info("abc78 new link id to be used is",_o,nd,er[_o]);const z1="LS-"+nc.start,ec="LE-"+nc.end,zt={style:"",labelStyle:""};switch(zt.minlen=nc.length||1,zt.arrowhead="arrow_open"===nc.type?"none":"normal",zt.arrowTypeStart="arrow_open",zt.arrowTypeEnd="arrow_open",nc.type){case"double_arrow_cross":zt.arrowTypeStart="arrow_cross";case"arrow_cross":zt.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":zt.arrowTypeStart="arrow_point";case"arrow_point":zt.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":zt.arrowTypeStart="arrow_circle";case"arrow_circle":zt.arrowTypeEnd="arrow_circle"}let X1="",gl="";switch(nc.stroke){case"normal":X1="fill:none;",void 0!==Wt&&(X1=Wt),void 0!==wl&&(gl=wl),zt.thickness="normal",zt.pattern="solid";break;case"dotted":zt.thickness="normal",zt.pattern="dotted",zt.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":zt.thickness="thick",zt.pattern="solid",zt.style="stroke-width: 3.5px;fill:none;"}if(void 0!==nc.style){const Br=(0,Xr.k)(nc.style);X1=Br.style,gl=Br.labelStyle}zt.style=zt.style+=X1,zt.labelStyle=zt.labelStyle+=gl,zt.curve=(0,Xr.n)(void 0!==nc.interpolate?nc.interpolate:void 0!==N.defaultInterpolate?N.defaultInterpolate:lc.curve,ho.c_6),void 0===nc.text?void 0!==nc.style&&(zt.arrowheadStyle="fill: #333"):(zt.arrowheadStyle="fill: #333",zt.labelpos="c"),zt.labelType=nc.labelType,zt.label=nc.text.replace(Xr.e.lineBreakRegex,"\n"),void 0===nc.style&&(zt.style=zt.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),zt.labelStyle=zt.labelStyle.replace("color:","fill:"),zt.id=nd,zt.classes="flowchart-link "+z1+" "+ec;const bs=(0,uh.f)(lr,zt),{source:W1,target:Ql,sourceId:wu,targetId:dv}=((N,xt)=>{let Gt=N.start,Si=N.end;const lr=Gt,er=Si,lo=bu[Gt],Wt=bu[Si];return lo&&Wt?("diamond"===lo.type&&(Gt=`${Gt}-${bl(Gt,"out",xt)}`),"diamond"===Wt.type&&(Si=`${Si}-${bl(Si,"in",xt)}`),{source:Gt,target:Si,sourceId:lr,targetId:er}):{source:Gt,target:Si}})(nc,lo);Xr.l.debug("abc78 source and target",W1,Ql),Gt.edges.push({id:"e"+nc.start+nc.end,sources:[W1],targets:[Ql],sourceId:wu,targetId:dv,labelEl:bs,labels:[{width:zt.width,height:zt.height,orgWidth:zt.width,orgHeight:zt.height,text:zt.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:zt})}),Gt}(Br,lr,Wt,zt),Object.keys(bu).forEach(Fs=>{const Yl=bu[Fs];Yl.parent||Wt.children.push(Yl),void 0!==wu.childrenById[Fs]&&(Yl.labels=[{text:Yl.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:Yl.labelData.width,height:Yl.labelData.height}],delete Yl.x,delete Yl.y,delete Yl.width,delete Yl.height)}),$E(Wt.children,wu),Xr.l.info("after layout",JSON.stringify(Wt,null,2));const Rh=yield Lt.layout(Wt);FE(0,0,Rh.children,zt,Ql,lr,0),Xr.l.info("after layout",Rh),null==(er=Rh.edges)||er.map(Fs=>{YO(dv,Fs,Fs.edgeData,lr,wu,Gt)}),(0,Xr.o)({},zt,_o.diagramPadding,_o.useMaxWidth),lo.remove()});return function(Gt,Si,lr,er){return N.apply(this,arguments)}}(),FE=(N,xt,Gt,Si,lr,er,lo)=>{Gt.forEach(function(Wt){if(Wt)if(bu[Wt.id].offset={posX:Wt.x+N,posY:Wt.y+xt,x:N,y:xt,depth:lo,width:Wt.width,height:Wt.height},"group"===Wt.type){const wl=lr.insert("g").attr("class","subgraph");wl.insert("rect").attr("class","subgraph subgraph-lvl-"+lo%5+" node").attr("x",Wt.x+N).attr("y",Wt.y+xt).attr("width",Wt.width).attr("height",Wt.height);const nc=wl.insert("g").attr("class","label"),_o=(0,Xr.F)().flowchart.htmlLabels?Wt.labelData.width/2:0;nc.attr("transform",`translate(${Wt.labels[0].x+N+Wt.x+_o}, ${Wt.labels[0].y+xt+Wt.y+3})`),nc.node().appendChild(Wt.labelData.labelNode),Xr.l.info("Id (UGH)= ",Wt.type,Wt.labels)}else Xr.l.info("Id (UGH)= ",Wt.id),Wt.el.attr("transform",`translate(${Wt.x+N+Wt.width/2}, ${Wt.y+xt+Wt.height/2})`)}),Gt.forEach(function(Wt){Wt&&"group"===Wt.type&&FE(N+Wt.x,xt+Wt.y,Wt.children,Si,lr,er,lo+1)})},Hb={db:Za.d,renderer:{getClasses:function(N,xt){return Xr.l.info("Extracting classes"),xt.db.getClasses()},draw:ZO},parser:Za.p,styles:N=>`.label {\n font-family: ${N.fontFamily};\n color: ${N.nodeTextColor||N.textColor};\n }\n .cluster-label text {\n fill: ${N.titleColor};\n }\n .cluster-label span {\n color: ${N.titleColor};\n }\n\n .label text,span {\n fill: ${N.nodeTextColor||N.textColor};\n color: ${N.nodeTextColor||N.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${N.mainBkg};\n stroke: ${N.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${N.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${N.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${N.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${N.edgeLabelBackground};\n rect {\n opacity: 0.85;\n background-color: ${N.edgeLabelBackground};\n fill: ${N.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${N.clusterBkg};\n stroke: ${N.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${N.titleColor};\n }\n\n .cluster span {\n color: ${N.titleColor};\n }\n /* .cluster div {\n color: ${N.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${N.fontFamily};\n font-size: 12px;\n background: ${N.tertiaryColor};\n border: 1px solid ${N.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${N.textColor};\n }\n .subgraph {\n stroke-width:2;\n rx:3;\n }\n // .subgraph-lvl-1 {\n // fill:#ccc;\n // // stroke:black;\n // }\n\n .flowchart-label text {\n text-anchor: middle;\n }\n\n ${(N=>{let xt="";for(let Gt=0;Gt<5;Gt++)xt+=`\n .subgraph-lvl-${Gt} {\n fill: ${N[`surface${Gt}`]};\n stroke: ${N[`surfacePeer${Gt}`]};\n }\n `;return xt})(N)}\n`}}}]); \ No newline at end of file +(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[687],{7942:q0n=>{q0n.exports=function Za(ho,uh,Xr){function y(du,xr){if(!uh[du]){if(!ho[du]){if(av)return av(du,!0);var xi=new Error("Cannot find module '"+du+"'");throw xi.code="MODULE_NOT_FOUND",xi}var lc=uh[du]={exports:{}};ho[du][0].call(lc.exports,function(bu){return y(ho[du][1][bu]||bu)},lc,lc.exports,Za,ho,uh,Xr)}return uh[du].exports}for(var av=void 0,jg=0;jg0&&void 0!==arguments[0]?arguments[0]:{},xi=Lt.defaultLayoutOptions,lc=void 0===xi?{}:xi,bu=Lt.algorithms,Jl=void 0===bu?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:bu,Bh=Lt.workerFactory,bl=Lt.workerUrl;if(y(this,du),this.defaultLayoutOptions=lc,this.initialized=!1,typeof bl>"u"&&typeof Bh>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Vn=Bh;typeof bl<"u"&&typeof Bh>"u"&&(Vn=function(o7){return new Worker(o7)});var c6=Vn(bl);if("function"!=typeof c6.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new jg(c6),this.worker.postMessage({cmd:"register",algorithms:Jl}).then(function(u7){return xr.initialized=!0}).catch(console.err)}return Xr(du,[{key:"layout",value:function(Lt){var xi=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},lc=xi.layoutOptions,Jl=xi.logging,bl=xi.measureExecutionTime;return Lt?this.worker.postMessage({cmd:"layout",graph:Lt,layoutOptions:void 0===lc?this.defaultLayoutOptions:lc,options:{logging:void 0!==Jl&&Jl,measureExecutionTime:void 0!==bl&&bl}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),du}();uh.default=av;var jg=function(){function du(xr){var Lt=this;if(y(this,du),void 0===xr)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=xr,this.worker.onmessage=function(xi){setTimeout(function(){Lt.receive(Lt,xi)},0)}}return Xr(du,[{key:"postMessage",value:function(Lt){var xi=this.id||0;this.id=xi+1,Lt.id=xi;var lc=this;return new Promise(function(bu,Jl){lc.resolvers[xi]=function(Bh,bl){Bh?(lc.convertGwtStyleError(Bh),Jl(Bh)):bu(bl)},lc.worker.postMessage(Lt)})}},{key:"receive",value:function(Lt,xi){var lc=xi.data,bu=Lt.resolvers[lc.id];bu&&(delete Lt.resolvers[lc.id],lc.error?bu(lc.error):bu(null,lc.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Lt){if(Lt){var xi=Lt.__java$exception;xi&&(xi.cause&&xi.cause.backingJsObject&&(Lt.cause=xi.cause.backingJsObject,this.convertGwtStyleError(Lt.cause)),delete Lt.__java$exception)}}}]),du}()},{}],2:[function(Za,ho,uh){(function(Xr){(function(){"use strict";var y;function xi(){}function lc(){}function bu(){}function Jl(){}function Bh(){}function bl(){}function Vn(){}function c6(){}function u7(){}function o7(){}function JO(){}function QO(){}function YO(){}function $E(){}function ZO(){}function FE(){}function nL(){}function eL(){}function uG(){}function tL(){}function Hb(){}function N(){}function xt(){}function Gt(){}function Si(){}function lr(){}function er(){}function lo(){}function Wt(){}function wl(){}function nc(){}function _o(){}function nd(){}function z1(){}function ec(){}function zt(){}function X1(){}function gl(){}function bs(){}function W1(){}function Ql(){}function wu(){}function dv(){}function Br(){}function yc(){}function Rh(){}function Fs(){}function Yl(){}function xE(){}function U0n(){}function G0n(){}function oG(){}function Tu(){}function bv(){}function wv(){}function z0n(){}function X0n(){}function iL(){}function W0n(){}function V0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function vbn(){}function pbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function sG(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function rL(){}function cL(){}function BE(){}function Obn(){}function Lbn(){}function uL(){}function Dbn(){}function Nbn(){}function $bn(){}function RE(){}function Fbn(){}function xbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function fG(){}function Gbn(){}function zbn(){}function hG(){}function Xbn(){}function Wbn(){}function Vbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function oL(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function lG(){}function aG(){}function wwn(){}function gwn(){}function vwn(){}function pwn(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Lwn(){}function Dwn(){}function Nwn(){}function $wn(){}function Fwn(){}function xwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Wwn(){}function Vwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function vgn(){}function pgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Lgn(){}function Dgn(){}function Ngn(){}function $gn(){}function Fgn(){}function xgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Wgn(){}function Vgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function dG(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function v2n(){}function p2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function L2n(){}function D2n(){}function N2n(){}function $2n(){}function F2n(){}function x2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function W2n(){}function V2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function cvn(){}function uvn(){}function ovn(){}function svn(){}function fvn(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function gvn(){}function vvn(){}function pvn(){}function mvn(){}function kvn(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function Mvn(){}function bG(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Lvn(){}function Dvn(){}function Nvn(){}function $vn(){}function wG(){}function Fvn(){}function xvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function gG(){}function vG(){}function Hvn(){}function pG(){}function mG(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Wvn(){}function Vvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function kG(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function vpn(){}function ppn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Lpn(){}function Dpn(){}function Npn(){}function $pn(){}function Fpn(){}function xpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function Hpn(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Wpn(){}function Vpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function v3n(){}function p3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function L3n(){}function D3n(){}function N3n(){}function $3n(){}function F3n(){}function x3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function W3n(){}function V3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function sL(){}function fL(){}function u4n(){}function hL(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function yG(){}function v4n(){}function p4n(){}function m4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function ed(){}function S4n(){}function gv(){}function jG(){}function P4n(){}function I4n(){}function O4n(){}function L4n(){}function D4n(){}function N4n(){}function $4n(){}function F4n(){}function x4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function hn(){}function W4n(){}function V4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function cmn(){}function umn(){}function lL(){}function omn(){}function smn(){}function fmn(){}function KE(){}function hmn(){}function aL(){}function _E(){}function lmn(){}function EG(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function gmn(){}function vmn(){}function HE(){}function pmn(){}function mmn(){}function qE(){}function kmn(){}function UE(){}function ymn(){}function CG(){}function jmn(){}function dL(){}function MG(){}function Emn(){}function Cmn(){}function Mmn(){}function Tmn(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Lmn(){}function Dmn(){}function Nmn(){}function $mn(){}function Fmn(){}function xmn(){}function o3(){}function bL(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function zmn(){}function Xmn(){}function Wmn(){}function Vmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function v6n(){}function p6n(){}function m6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function L6n(){}function D6n(){}function N6n(){}function $6n(){}function F6n(){}function x6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function W6n(){}function V6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function v5n(){}function p5n(){}function m5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function S5n(){}function P5n(){}function I5n(){}function TG(){}function O5n(){}function L5n(){}function wL(){b6()}function D5n(){j7()}function N5n(){OA()}function $5n(){yF()}function F5n(){R5()}function x5n(){Nnn()}function B5n(){Js()}function R5n(){UZ()}function K5n(){sy()}function _5n(){E7()}function H5n(){Q7()}function q5n(){wCn()}function U5n(){tp()}function G5n(){qDn()}function z5n(){qQ()}function X5n(){OOn()}function W5n(){UQ()}function V5n(){kNn()}function J5n(){IOn()}function Q5n(){v4()}function Y5n(){iFn()}function Z5n(){tFn()}function n8n(){TLn()}function e8n(){rFn()}function t8n(){ma()}function i8n(){pC()}function r8n(){Dtn()}function c8n(){cn()}function u8n(){cFn()}function o8n(){LFn()}function s8n(){LOn()}function f8n(){iKn()}function h8n(){DOn()}function l8n(){vUn()}function a8n(){len()}function d8n(){Il()}function b8n(){pBn()}function w8n(){bc()}function g8n(){HOn()}function v8n(){ep()}function p8n(){Xen()}function m8n(){ka()}function k8n(){Wen()}function y8n(){Uf()}function j8n(){dy()}function E8n(){Xx()}function C8n(){tx()}function af(){pSn()}function M8n(){vT()}function T8n(){xA()}function AG(){Ue()}function A8n(){ZT()}function S8n(){kZ()}function SG(){tF()}function PG(){cS()}function P8n(){ctn()}function IG(n){Jn(n)}function I8n(n){this.a=n}function GE(n){this.a=n}function O8n(n){this.a=n}function L8n(n){this.a=n}function D8n(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function F8n(n){this.a=n}function OG(n){this.a=n}function LG(n){this.a=n}function x8n(n){this.a=n}function B8n(n){this.a=n}function gL(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function vL(n){this.a=n}function pL(n){this.a=n}function _8n(n){this.a=n}function mL(n){this.a=n}function H8n(n){this.a=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function DG(n){this.b=n}function G8n(n){this.c=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function W8n(n){this.a=n}function V8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function t9n(n){this.a=n}function i9n(n){this.a=n}function r9n(n){this.a=n}function NG(n){this.a=n}function $G(n){this.a=n}function zE(n){this.a=n}function s7(n){this.a=n}function td(){this.a=[]}function c9n(n,e){n.a=e}function FG(n,e){n.j=e}function zse(n,e){n.c=e}function Vse(n,e){n.d=e}function id(n,e){n.k=e}function xG(n,e){n.c=e}function BG(n,e){n.a=e}function Qse(n,e){n.a=e}function Yse(n,e){n.f=e}function Zse(n,e){n.a=e}function nfe(n,e){n.b=e}function kL(n,e){n.d=e}function XE(n,e){n.i=e}function RG(n,e){n.o=e}function u9n(n,e){n.e=e}function KG(n,e){n.g=e}function cfe(n,e){n.e=e}function ufe(n,e){n.f=e}function ofe(n,e){n.f=e}function yL(n,e){n.a=e}function jL(n,e){n.b=e}function sfe(n,e){n.n=e}function o9n(n){n.b=n.a}function s9n(n){n.c=n.d.d}function _G(n){this.a=n}function HG(n){this.a=n}function qG(n){this.a=n}function rd(n){this.a=n}function cd(n){this.a=n}function f7(n){this.a=n}function f9n(n){this.a=n}function UG(n){this.a=n}function h7(n){this.a=n}function WE(n){this.a=n}function vl(n){this.a=n}function qb(n){this.a=n}function h9n(n){this.a=n}function l9n(n){this.a=n}function EL(n){this.b=n}function s3(n){this.b=n}function f3(n){this.b=n}function CL(n){this.a=n}function a9n(n){this.a=n}function ML(n){this.c=n}function C(n){this.c=n}function d9n(n){this.c=n}function u6(n){this.d=n}function GG(n){this.a=n}function Te(n){this.a=n}function b9n(n){this.a=n}function zG(n){this.a=n}function XG(n){this.a=n}function WG(n){this.a=n}function VG(n){this.a=n}function JG(n){this.a=n}function QG(n){this.a=n}function h3(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function l3(n){this.a=n}function v9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function o6(n){this.a=n}function L9n(n){this.a=n}function D9n(n){this.a=n}function N9n(n){this.a=n}function $9n(n){this.a=n}function VE(n){this.a=n}function F9n(n){this.a=n}function x9n(n){this.a=n}function a3(n){this.a=n}function YG(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function _9n(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function ZG(n){this.a=n}function nz(n){this.a=n}function ez(n){this.a=n}function s6(n){this.a=n}function JE(n){this.e=n}function d3(n){this.a=n}function U9n(n){this.a=n}function vv(n){this.a=n}function tz(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function W9n(n){this.a=n}function V9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function iz(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function v7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function L7n(n){this.a=n}function D7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function F7n(n){this.a=n}function x7n(n){this.a=n}function B7n(n){this.a=n}function R7n(n){this.a=n}function K7n(n){this.c=n}function _7n(n){this.b=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function W7n(n){this.a=n}function V7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function pl(n){this.a=n}function Eg(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function vkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Lkn(n){this.a=n}function Dkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function Fkn(n){this.a=n}function xkn(n){this.a=n}function Bkn(n){this.a=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function QE(n){this.a=n}function _kn(n){this.f=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Wkn(n){this.a=n}function Vkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function TL(n){this.a=n}function rz(n){this.a=n}function ct(n){this.b=n}function gyn(n){this.a=n}function vyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function kyn(n){this.a=n}function yyn(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.b=n}function Cyn(n){this.a=n}function l7(n){this.a=n}function Myn(n){this.a=n}function Tyn(n){this.a=n}function cz(n){this.c=n}function YE(n){this.e=n}function ZE(n){this.a=n}function nC(n){this.a=n}function AL(n){this.a=n}function Ayn(n){this.d=n}function Syn(n){this.a=n}function uz(n){this.a=n}function oz(n){this.a=n}function h0(n){this.e=n}function f6(){this.a=0}function de(){qu(this)}function Z(){_D(this)}function SL(){lIn(this)}function Pyn(){}function l0(){this.c=a0n}function Iyn(n,e){n.b+=e}function Tfe(n){return n.a}function Afe(n){return n.a}function Sfe(n){return n.a}function Pfe(n){return n.a}function Ife(n){return n.a}function M(n){return n.e}function Ofe(){return null}function Lfe(){return null}function Oyn(n){n.b=new WL}function h6(n,e){n.b=e-n.b}function l6(n,e){n.a=e-n.a}function Rn(n,e){n.push(e)}function Lyn(n,e){n.sort(e)}function Dyn(n,e){e.jd(n.a)}function a7(n,e){n.e=e,e.b=n}function sz(n){dh(),this.a=n}function Nyn(n){dh(),this.a=n}function $yn(n){dh(),this.a=n}function PL(n){D0(),this.a=n}function Fyn(n){q3(),p_.le(n)}function fz(){fz=N,new de}function ud(){eAn.call(this)}function hz(){eAn.call(this)}function lz(){ud.call(this)}function IL(){ud.call(this)}function xyn(){ud.call(this)}function d7(){ud.call(this)}function Au(){ud.call(this)}function pv(){ud.call(this)}function Pe(){ud.call(this)}function Ho(){ud.call(this)}function Byn(){ud.call(this)}function tc(){ud.call(this)}function Ryn(){ud.call(this)}function Kyn(){this.a=this}function eC(){this.Bb|=256}function _yn(){this.b=new WMn}function Ub(n,e){n.length=e}function tC(n,e){nn(n.a,e)}function b3(n,e){tt(n.e,e)}function mv(n){_A(n.c,n.b)}function az(n){this.a=function D5e(n){var e;return(e=Ew(n))>34028234663852886e22?Mt:e<-34028234663852886e22?fi:e}(n)}function Yt(){this.a=new de}function Hyn(){this.a=new de}function dz(){this.a=new oCn}function iC(){this.a=new Z}function OL(){this.a=new Z}function bz(){this.a=new Z}function ws(){this.a=new cbn}function od(){this.a=new xDn}function wz(){this.a=new fG}function gz(){this.a=new POn}function vz(){this.a=new _An}function qyn(){this.a=new Z}function Uyn(){this.a=new Z}function Gyn(){this.a=new Z}function pz(){this.a=new Z}function zyn(){this.d=new Z}function Xyn(){this.a=new VOn}function Wyn(){this.a=new Yt}function Vyn(){this.a=new de}function Jyn(){this.b=new de}function Qyn(){this.b=new Z}function mz(){this.e=new Z}function Yyn(){this.a=new t8n}function Zyn(){this.d=new Z}function njn(){nOn.call(this)}function ejn(){nOn.call(this)}function tjn(){Z.call(this)}function kz(){lz.call(this)}function yz(){iC.call(this)}function ijn(){sM.call(this)}function rjn(){pz.call(this)}function a6(){Pyn.call(this)}function LL(){a6.call(this)}function kv(){Pyn.call(this)}function jz(){kv.call(this)}function cjn(){Tz.call(this)}function ujn(){Tz.call(this)}function ojn(){Tz.call(this)}function sjn(){Az.call(this)}function d6(){hmn.call(this)}function Ez(){hmn.call(this)}function Su(){yt.call(this)}function fjn(){Cjn.call(this)}function hjn(){Cjn.call(this)}function ljn(){de.call(this)}function ajn(){de.call(this)}function djn(){de.call(this)}function DL(){sFn.call(this)}function bjn(){Yt.call(this)}function wjn(){eC.call(this)}function NL(){uW.call(this)}function Cz(){de.call(this)}function $L(){uW.call(this)}function FL(){de.call(this)}function gjn(){de.call(this)}function Mz(){UE.call(this)}function vjn(){Mz.call(this)}function pjn(){UE.call(this)}function mjn(){TG.call(this)}function Tz(){this.a=new Yt}function kjn(){this.a=new de}function yjn(){this.a=new Z}function Az(){this.a=new de}function yv(){this.a=new yt}function jjn(){this.j=new Z}function Ejn(){this.a=new yEn}function Cjn(){this.a=new kmn}function Sz(){this.a=new n4n}function b6(){b6=N,h_=new lc}function xL(){xL=N,l_=new Tjn}function BL(){BL=N,a_=new Mjn}function Mjn(){vL.call(this,"")}function Tjn(){vL.call(this,"")}function Ajn(n){O$n.call(this,n)}function Sjn(n){O$n.call(this,n)}function Pz(n){OG.call(this,n)}function Iz(n){JEn.call(this,n)}function Hfe(n){JEn.call(this,n)}function qfe(n){Iz.call(this,n)}function Ufe(n){Iz.call(this,n)}function Gfe(n){Iz.call(this,n)}function Pjn(n){g$.call(this,n)}function Ijn(n){g$.call(this,n)}function Ojn(n){fSn.call(this,n)}function Ljn(n){Zz.call(this,n)}function w6(n){bC.call(this,n)}function Oz(n){bC.call(this,n)}function Djn(n){bC.call(this,n)}function Lz(n){dje.call(this,n)}function Dz(n){Lz.call(this,n)}function ic(n){IPn.call(this,n)}function Njn(n){ic.call(this,n)}function jv(){s7.call(this,{})}function $jn(){$jn=N,vQn=new tL}function rC(){rC=N,w_=new OTn}function Fjn(){Fjn=N,Iun=new xi}function Nz(){Nz=N,Oun=new $E}function cC(){cC=N,q8=new nL}function RL(n){T3(),this.a=n}function KL(n){oY(),this.a=n}function a0(n){CN(),this.f=n}function _L(n){CN(),this.f=n}function xjn(n){vSn(),this.a=n}function Bjn(n){n.b=null,n.c=0}function Xfe(n,e){n.a=e,function nEe(n){var e,t,i;for(function aMe(n){var e,t,i;for(t=new C(n.a.a.b);t.a0&&(!(kl(n.a.c)&&e.n.d)&&!(Ng(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),(!kl(n.a.c)||!e.n.a)&&(!Ng(n.a.c)||!e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}(n),i=new Z,t=new C(n.a.a.b);t.a0&&(!(kl(n.a.c)&&e.n.d)&&!(Ng(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),(!kl(n.a.c)||!e.n.a)&&(!Ng(n.a.c)||!e.n.c)&&(e.g.a-=i-1))}(n)}(n)}function HL(n,e,t){n.a[e.g]=t}function Wfe(n,e,t){!function wke(n,e,t){var i,r;for(K7(n,n.j+e,n.k+t),r=new ne((!n.a&&(n.a=new ni(Ro,n,5)),n.a));r.e!=r.i.gc();)KD(i=u(ue(r),377),i.a+e,i.b+t);R7(n,n.b+e,n.c+t)}(t,n,e)}function Vfe(n,e){!function Uae(n,e){kl(n.f)?function zCe(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new C(n.d);i.a=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},function jAe(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);return void 0===e[n]&&!(0!=Object.getOwnPropertyNames(e).length||(e[n]=42,42!==e[n])||0==Object.getOwnPropertyNames(e).length)}()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[tR]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)58==t.charCodeAt(0)&&e.push(t.substring(1));return e}),n}()}()}function Q1(){Q1=N,Coe=function Z7e(){var n,e;cS();try{if(e=u(hnn((Y1(),Ns),bm),2113))return e}catch(t){if(!L(t=At(t),103))throw M(t);n=t,ZV((Ie(),n))}return new lmn}()}function uEn(){uEn=N,Ci=function lye(){var n;return Doe?u(x4((Y1(),Ns),bm),2115):(n=u(L(Bc((Y1(),Ns),bm),569)?Bc(Ns,bm):new MHn,569),Doe=!0,function DOe(n){n.q||(n.q=!0,n.p=dc(n,0),n.a=dc(n,1),mt(n.a,0),n.f=dc(n,2),mt(n.f,1),$t(n.f,2),n.n=dc(n,3),$t(n.n,3),$t(n.n,4),$t(n.n,5),$t(n.n,6),n.g=dc(n,4),mt(n.g,7),$t(n.g,8),n.c=dc(n,5),mt(n.c,7),mt(n.c,8),n.i=dc(n,6),mt(n.i,9),mt(n.i,10),mt(n.i,11),mt(n.i,12),$t(n.i,13),n.j=dc(n,7),mt(n.j,9),n.d=dc(n,8),mt(n.d,3),mt(n.d,4),mt(n.d,5),mt(n.d,6),$t(n.d,7),$t(n.d,8),$t(n.d,9),$t(n.d,10),n.b=dc(n,9),$t(n.b,0),$t(n.b,1),n.e=dc(n,10),$t(n.e,1),$t(n.e,2),$t(n.e,3),$t(n.e,4),mt(n.e,5),mt(n.e,6),mt(n.e,7),mt(n.e,8),mt(n.e,9),mt(n.e,10),$t(n.e,11),n.k=dc(n,11),$t(n.k,0),$t(n.k,1),n.o=Ve(n,12),n.s=Ve(n,13))}(n),function JDe(n){var l,a,d,g,v,p,k;n.r||(n.r=!0,Jc(n,"graph"),qT(n,"graph"),UT(n,bm),Kk(n.o,"T"),me(_r(n.a),n.p),me(_r(n.f),n.a),me(_r(n.n),n.f),me(_r(n.g),n.n),me(_r(n.c),n.n),me(_r(n.i),n.c),me(_r(n.j),n.c),me(_r(n.d),n.f),me(_r(n.e),n.a),ac(n.p,aNe,kXn,!0,!0,!1),k=oxn(p=Jg(n.p,n.p,"setProperty")),l=jl(n.o),a=new l0,me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),ann(a,d=XN(k)),LA(p,l,Vcn),LA(p,l=XN(k),D8),k=oxn(p=Jg(n.p,null,"getProperty")),l=jl(n.o),a=XN(k),me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),LA(p,l,Vcn),(v=qf(p,l=XN(k),null))&&v.oj(),p=Jg(n.p,n.wb.e,"hasProperty"),l=jl(n.o),a=new l0,me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),LA(p,l,Vcn),Lr(p=Jg(n.p,n.p,"copyProperties"),n.p,$K),p=Jg(n.p,null,"getAllProperties"),l=jl(n.wb.P),a=jl(n.o),me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),d=new l0,me((!a.d&&(a.d=new ni(yr,a,1)),a.d),d),a=jl(n.wb.M),me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),(g=qf(p,l,null))&&g.oj(),ac(n.a,e6,oVn,!0,!1,!0),kt(u(D(H(n.a),0),19),n.k,null,mVn,0,-1,e6,!1,!1,!0,!0,!1,!1,!1),ac(n.f,EE,fVn,!0,!1,!0),kt(u(D(H(n.f),0),19),n.g,u(D(H(n.g),0),19),"labels",0,-1,EE,!1,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.f),1),35),n.wb._,kVn,null,0,1,EE,!1,!1,!0,!1,!0,!1),ac(n.n,CE,"ElkShape",!0,!1,!0),Ht(u(D(H(n.n),0),35),n.wb.t,FK,Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.n),1),35),n.wb.t,xK,Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.n),2),35),n.wb.t,"x",Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.n),3),35),n.wb.t,"y",Y4,1,1,CE,!1,!1,!0,!1,!0,!1),Lr(p=Jg(n.n,null,"setDimensions"),n.wb.t,xK),Lr(p,n.wb.t,FK),Lr(p=Jg(n.n,null,"setLocation"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),ac(n.g,Tr,zcn,!1,!1,!0),kt(u(D(H(n.g),0),19),n.f,u(D(H(n.f),0),19),BK,0,1,Tr,!1,!1,!0,!1,!1,!1,!1),Ht(u(D(H(n.g),1),35),n.wb._,RK,"",0,1,Tr,!1,!1,!0,!1,!0,!1),ac(n.c,he,hVn,!0,!1,!0),kt(u(D(H(n.c),0),19),n.d,u(D(H(n.d),1),19),"outgoingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.c),1),19),n.d,u(D(H(n.d),2),19),"incomingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),ac(n.i,Qe,Xcn,!1,!1,!0),kt(u(D(H(n.i),0),19),n.j,u(D(H(n.j),0),19),"ports",0,-1,Qe,!1,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.i),1),19),n.i,u(D(H(n.i),2),19),KK,0,-1,Qe,!1,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.i),2),19),n.i,u(D(H(n.i),1),19),BK,0,1,Qe,!1,!1,!0,!1,!1,!1,!1),kt(u(D(H(n.i),3),19),n.d,u(D(H(n.d),0),19),"containedEdges",0,-1,Qe,!1,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.i),4),35),n.wb.e,yVn,null,0,1,Qe,!0,!0,!1,!1,!0,!0),ac(n.j,Yu,Wcn,!1,!1,!0),kt(u(D(H(n.j),0),19),n.i,u(D(H(n.i),0),19),BK,0,1,Yu,!1,!1,!0,!1,!1,!1,!1),ac(n.d,Xt,Gcn,!1,!1,!0),kt(u(D(H(n.d),0),19),n.i,u(D(H(n.i),3),19),"containingNode",0,1,Xt,!1,!1,!0,!1,!1,!1,!1),kt(u(D(H(n.d),1),19),n.c,u(D(H(n.c),0),19),Jcn,0,-1,Xt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.d),2),19),n.c,u(D(H(n.c),1),19),_K,0,-1,Xt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.d),3),19),n.e,u(D(H(n.e),5),19),Qcn,0,-1,Xt,!1,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.d),4),35),n.wb.e,"hyperedge",null,0,1,Xt,!0,!0,!1,!1,!0,!0),Ht(u(D(H(n.d),5),35),n.wb.e,yVn,null,0,1,Xt,!0,!0,!1,!1,!0,!0),Ht(u(D(H(n.d),6),35),n.wb.e,"selfloop",null,0,1,Xt,!0,!0,!1,!1,!0,!0),Ht(u(D(H(n.d),7),35),n.wb.e,"connected",null,0,1,Xt,!0,!0,!1,!1,!0,!0),ac(n.b,Ro,sVn,!1,!1,!0),Ht(u(D(H(n.b),0),35),n.wb.t,"x",Y4,1,1,Ro,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.b),1),35),n.wb.t,"y",Y4,1,1,Ro,!1,!1,!0,!1,!0,!1),Lr(p=Jg(n.b,null,"set"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),ac(n.e,jt,lVn,!1,!1,!0),Ht(u(D(H(n.e),0),35),n.wb.t,"startX",null,0,1,jt,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.e),1),35),n.wb.t,"startY",null,0,1,jt,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.e),2),35),n.wb.t,"endX",null,0,1,jt,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.e),3),35),n.wb.t,"endY",null,0,1,jt,!1,!1,!0,!1,!0,!1),kt(u(D(H(n.e),4),19),n.b,null,rP,0,-1,jt,!1,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.e),5),19),n.d,u(D(H(n.d),3),19),BK,0,1,jt,!1,!1,!0,!1,!1,!1,!1),kt(u(D(H(n.e),6),19),n.c,null,Ycn,0,1,jt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.e),7),19),n.c,null,Zcn,0,1,jt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.e),8),19),n.e,u(D(H(n.e),9),19),nun,0,-1,jt,!1,!1,!0,!1,!0,!1,!1),kt(u(D(H(n.e),9),19),n.e,u(D(H(n.e),8),19),eun,0,-1,jt,!1,!1,!0,!1,!0,!1,!1),Ht(u(D(H(n.e),10),35),n.wb._,kVn,null,0,1,jt,!1,!1,!0,!1,!0,!1),Lr(p=Jg(n.e,null,"setStartLocation"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),Lr(p=Jg(n.e,null,"setEndLocation"),n.wb.t,"x"),Lr(p,n.wb.t,"y"),ac(n.k,Ud,"ElkPropertyToValueMapEntry",!1,!1,!1),l=jl(n.o),a=new l0,me((!l.d&&(l.d=new ni(yr,l,1)),l.d),a),vHn(u(D(H(n.k),0),35),l,"key",Ud,!1,!1,!0,!1),Ht(u(D(H(n.k),1),35),n.s,D8,null,0,1,Ud,!1,!1,!0,!1,!0,!1),We(n.o,mU,"IProperty",!0),We(n.s,pi,"PropertyValue",!0),RY(n,bm))}(n),ax(n),Pr(Ns,bm,n),n)}()}function zz(){zz=N,Ga=r4()}function m3(){m3=N,l0n=function nke(){var n,e;cS();try{if(e=u(hnn((Y1(),Ns),Ms),2040))return e}catch(t){if(!L(t=At(t),103))throw M(t);n=t,ZV((Ie(),n))}return new Bmn}()}function oEn(){oEn=N,fse=function eke(){var n,e;MNn();try{if(e=u(hnn((Y1(),Ns),qd),2122))return e}catch(t){if(!L(t=At(t),103))throw M(t);n=t,ZV((Ie(),n))}return new O6n}()}function Xz(){Xz=N,Mc=function Qje(){var n;return Tse?u(x4((Y1(),Ns),qd),2044):(function ALe(){Ge(IE,new U6n),Ge(zO,new e5n),Ge(OE,new a5n),Ge(A0n,new E5n),Ge(fn,new A5n),Ge(T(Ku,1),new S5n),Ge(qt,new P5n),Ge(Op,new I5n),Ge(fn,new D6n),Ge(fn,new N6n),Ge(fn,new $6n),Ge(ui,new F6n),Ge(fn,new x6n),Ge(ss,new B6n),Ge(ss,new R6n),Ge(fn,new K6n),Ge(km,new H6n),Ge(fn,new q6n),Ge(fn,new G6n),Ge(fn,new z6n),Ge(fn,new X6n),Ge(fn,new W6n),Ge(T(Ku,1),new V6n),Ge(fn,new J6n),Ge(fn,new Q6n),Ge(ss,new Y6n),Ge(ss,new Z6n),Ge(fn,new n5n),Ge(qi,new t5n),Ge(fn,new i5n),Ge(vb,new r5n),Ge(fn,new c5n),Ge(fn,new u5n),Ge(fn,new o5n),Ge(fn,new s5n),Ge(ss,new f5n),Ge(ss,new h5n),Ge(fn,new l5n),Ge(fn,new d5n),Ge(fn,new b5n),Ge(fn,new w5n),Ge(fn,new g5n),Ge(fn,new v5n),Ge(pb,new p5n),Ge(fn,new m5n),Ge(fn,new k5n),Ge(fn,new y5n),Ge(pb,new j5n),Ge(vb,new C5n),Ge(fn,new M5n),Ge(qi,new T5n)}(),n=u(L(Bc((Y1(),Ns),qd),594)?Bc(Ns,qd):new gIn,594),Tse=!0,function dDe(n){n.N||(n.N=!0,n.b=dc(n,0),$t(n.b,0),$t(n.b,1),$t(n.b,2),n.bb=dc(n,1),$t(n.bb,0),$t(n.bb,1),n.fb=dc(n,2),$t(n.fb,3),$t(n.fb,4),mt(n.fb,5),n.qb=dc(n,3),$t(n.qb,0),mt(n.qb,1),mt(n.qb,2),$t(n.qb,3),$t(n.qb,4),mt(n.qb,5),$t(n.qb,6),n.a=Ve(n,4),n.c=Ve(n,5),n.d=Ve(n,6),n.e=Ve(n,7),n.f=Ve(n,8),n.g=Ve(n,9),n.i=Ve(n,10),n.j=Ve(n,11),n.k=Ve(n,12),n.n=Ve(n,13),n.o=Ve(n,14),n.p=Ve(n,15),n.q=Ve(n,16),n.s=Ve(n,17),n.r=Ve(n,18),n.t=Ve(n,19),n.u=Ve(n,20),n.v=Ve(n,21),n.w=Ve(n,22),n.B=Ve(n,23),n.A=Ve(n,24),n.C=Ve(n,25),n.D=Ve(n,26),n.F=Ve(n,27),n.G=Ve(n,28),n.H=Ve(n,29),n.J=Ve(n,30),n.I=Ve(n,31),n.K=Ve(n,32),n.M=Ve(n,33),n.L=Ve(n,34),n.P=Ve(n,35),n.Q=Ve(n,36),n.R=Ve(n,37),n.S=Ve(n,38),n.T=Ve(n,39),n.U=Ve(n,40),n.V=Ve(n,41),n.X=Ve(n,42),n.W=Ve(n,43),n.Y=Ve(n,44),n.Z=Ve(n,45),n.$=Ve(n,46),n._=Ve(n,47),n.ab=Ve(n,48),n.cb=Ve(n,49),n.db=Ve(n,50),n.eb=Ve(n,51),n.gb=Ve(n,52),n.hb=Ve(n,53),n.ib=Ve(n,54),n.jb=Ve(n,55),n.kb=Ve(n,56),n.lb=Ve(n,57),n.mb=Ve(n,58),n.nb=Ve(n,59),n.ob=Ve(n,60),n.pb=Ve(n,61))}(n),function WDe(n){var e;n.O||(n.O=!0,Jc(n,"type"),qT(n,"ecore.xml.type"),UT(n,qd),e=u(x4((Y1(),Ns),qd),2044),me(_r(n.fb),n.b),ac(n.b,IE,"AnyType",!1,!1,!0),Ht(u(D(H(n.b),0),35),n.wb.D,aj,null,0,-1,IE,!1,!1,!0,!1,!1,!1),Ht(u(D(H(n.b),1),35),n.wb.D,"any",null,0,-1,IE,!0,!0,!0,!1,!1,!0),Ht(u(D(H(n.b),2),35),n.wb.D,"anyAttribute",null,0,-1,IE,!1,!1,!0,!1,!1,!1),ac(n.bb,zO,NJn,!1,!1,!0),Ht(u(D(H(n.bb),0),35),n.gb,"data",null,0,1,zO,!1,!1,!0,!1,!0,!1),Ht(u(D(H(n.bb),1),35),n.gb,run,null,1,1,zO,!1,!1,!0,!1,!0,!1),ac(n.fb,OE,$Jn,!1,!1,!0),Ht(u(D(H(n.fb),0),35),e.gb,"rawValue",null,0,1,OE,!0,!0,!0,!1,!0,!0),Ht(u(D(H(n.fb),1),35),e.a,D8,null,0,1,OE,!0,!0,!0,!1,!0,!0),kt(u(D(H(n.fb),2),19),n.wb.q,null,"instanceType",1,1,OE,!1,!1,!0,!1,!1,!1,!1),ac(n.qb,A0n,FJn,!1,!1,!0),Ht(u(D(H(n.qb),0),35),n.wb.D,aj,null,0,-1,null,!1,!1,!0,!1,!1,!1),kt(u(D(H(n.qb),1),19),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),kt(u(D(H(n.qb),2),19),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Ht(u(D(H(n.qb),3),35),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),Ht(u(D(H(n.qb),4),35),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),kt(u(D(H(n.qb),5),19),n.bb,null,VJn,0,-2,null,!0,!0,!0,!0,!1,!1,!0),Ht(u(D(H(n.qb),6),35),n.gb,RK,null,0,-2,null,!0,!0,!0,!1,!1,!0),We(n.a,pi,"AnySimpleType",!0),We(n.c,fn,"AnyURI",!0),We(n.d,T(Ku,1),"Base64Binary",!0),We(n.e,fo,"Boolean",!0),We(n.f,qt,"BooleanObject",!0),We(n.g,Ku,"Byte",!0),We(n.i,Op,"ByteObject",!0),We(n.j,fn,"Date",!0),We(n.k,fn,"DateTime",!0),We(n.n,y_,"Decimal",!0),We(n.o,Ai,"Double",!0),We(n.p,ui,"DoubleObject",!0),We(n.q,fn,"Duration",!0),We(n.s,ss,"ENTITIES",!0),We(n.r,ss,"ENTITIESBase",!0),We(n.t,fn,kun,!0),We(n.u,kg,"Float",!0),We(n.v,km,"FloatObject",!0),We(n.w,fn,"GDay",!0),We(n.B,fn,"GMonth",!0),We(n.A,fn,"GMonthDay",!0),We(n.C,fn,"GYear",!0),We(n.D,fn,"GYearMonth",!0),We(n.F,T(Ku,1),"HexBinary",!0),We(n.G,fn,"ID",!0),We(n.H,fn,"IDREF",!0),We(n.J,ss,"IDREFS",!0),We(n.I,ss,"IDREFSBase",!0),We(n.K,ye,"Int",!0),We(n.M,T2,"Integer",!0),We(n.L,qi,"IntObject",!0),We(n.P,fn,"Language",!0),We(n.Q,Ja,"Long",!0),We(n.R,vb,"LongObject",!0),We(n.S,fn,"Name",!0),We(n.T,fn,yP,!0),We(n.U,T2,"NegativeInteger",!0),We(n.V,fn,Eun,!0),We(n.X,ss,"NMTOKENS",!0),We(n.W,ss,"NMTOKENSBase",!0),We(n.Y,T2,"NonNegativeInteger",!0),We(n.Z,T2,"NonPositiveInteger",!0),We(n.$,fn,"NormalizedString",!0),We(n._,fn,"NOTATION",!0),We(n.ab,fn,"PositiveInteger",!0),We(n.cb,fn,"QName",!0),We(n.db,fv,"Short",!0),We(n.eb,pb,"ShortObject",!0),We(n.gb,fn,Ktn,!0),We(n.hb,fn,"Time",!0),We(n.ib,fn,"Token",!0),We(n.jb,fv,"UnsignedByte",!0),We(n.kb,pb,"UnsignedByteObject",!0),We(n.lb,Ja,"UnsignedInt",!0),We(n.mb,vb,"UnsignedIntObject",!0),We(n.nb,T2,"UnsignedLong",!0),We(n.ob,ye,"UnsignedShort",!0),We(n.pb,qi,"UnsignedShortObject",!0),RY(n,qd),function VDe(n){Me(n.a,Be,S(T(fn,1),J,2,6,[Je,"anySimpleType"])),Me(n.b,Be,S(T(fn,1),J,2,6,[Je,"anyType",Cs,aj])),Me(u(D(H(n.b),0),35),Be,S(T(fn,1),J,2,6,[Cs,YK,Je,":mixed"])),Me(u(D(H(n.b),1),35),Be,S(T(fn,1),J,2,6,[Cs,YK,pun,n_,Je,":1",xJn,"lax"])),Me(u(D(H(n.b),2),35),Be,S(T(fn,1),J,2,6,[Cs,DJn,pun,n_,Je,":2",xJn,"lax"])),Me(n.c,Be,S(T(fn,1),J,2,6,[Je,"anyURI",Ts,Mf])),Me(n.d,Be,S(T(fn,1),J,2,6,[Je,"base64Binary",Ts,Mf])),Me(n.e,Be,S(T(fn,1),J,2,6,[Je,vp,Ts,Mf])),Me(n.f,Be,S(T(fn,1),J,2,6,[Je,"boolean:Object",Wi,vp])),Me(n.g,Be,S(T(fn,1),J,2,6,[Je,$8])),Me(n.i,Be,S(T(fn,1),J,2,6,[Je,"byte:Object",Wi,$8])),Me(n.j,Be,S(T(fn,1),J,2,6,[Je,"date",Ts,Mf])),Me(n.k,Be,S(T(fn,1),J,2,6,[Je,"dateTime",Ts,Mf])),Me(n.n,Be,S(T(fn,1),J,2,6,[Je,"decimal",Ts,Mf])),Me(n.o,Be,S(T(fn,1),J,2,6,[Je,F8,Ts,Mf])),Me(n.p,Be,S(T(fn,1),J,2,6,[Je,"double:Object",Wi,F8])),Me(n.q,Be,S(T(fn,1),J,2,6,[Je,"duration",Ts,Mf])),Me(n.s,Be,S(T(fn,1),J,2,6,[Je,"ENTITIES",Wi,BJn,mun,"1"])),Me(n.r,Be,S(T(fn,1),J,2,6,[Je,BJn,ZK,kun])),Me(n.t,Be,S(T(fn,1),J,2,6,[Je,kun,Wi,yP])),Me(n.u,Be,S(T(fn,1),J,2,6,[Je,x8,Ts,Mf])),Me(n.v,Be,S(T(fn,1),J,2,6,[Je,"float:Object",Wi,x8])),Me(n.w,Be,S(T(fn,1),J,2,6,[Je,"gDay",Ts,Mf])),Me(n.B,Be,S(T(fn,1),J,2,6,[Je,"gMonth",Ts,Mf])),Me(n.A,Be,S(T(fn,1),J,2,6,[Je,"gMonthDay",Ts,Mf])),Me(n.C,Be,S(T(fn,1),J,2,6,[Je,"gYear",Ts,Mf])),Me(n.D,Be,S(T(fn,1),J,2,6,[Je,"gYearMonth",Ts,Mf])),Me(n.F,Be,S(T(fn,1),J,2,6,[Je,"hexBinary",Ts,Mf])),Me(n.G,Be,S(T(fn,1),J,2,6,[Je,"ID",Wi,yP])),Me(n.H,Be,S(T(fn,1),J,2,6,[Je,"IDREF",Wi,yP])),Me(n.J,Be,S(T(fn,1),J,2,6,[Je,"IDREFS",Wi,RJn,mun,"1"])),Me(n.I,Be,S(T(fn,1),J,2,6,[Je,RJn,ZK,"IDREF"])),Me(n.K,Be,S(T(fn,1),J,2,6,[Je,B8])),Me(n.M,Be,S(T(fn,1),J,2,6,[Je,yun])),Me(n.L,Be,S(T(fn,1),J,2,6,[Je,"int:Object",Wi,B8])),Me(n.P,Be,S(T(fn,1),J,2,6,[Je,"language",Wi,e_,t_,KJn])),Me(n.Q,Be,S(T(fn,1),J,2,6,[Je,R8])),Me(n.R,Be,S(T(fn,1),J,2,6,[Je,"long:Object",Wi,R8])),Me(n.S,Be,S(T(fn,1),J,2,6,[Je,"Name",Wi,e_,t_,jun])),Me(n.T,Be,S(T(fn,1),J,2,6,[Je,yP,Wi,"Name",t_,_Jn])),Me(n.U,Be,S(T(fn,1),J,2,6,[Je,"negativeInteger",Wi,HJn,vj,"-1"])),Me(n.V,Be,S(T(fn,1),J,2,6,[Je,Eun,Wi,e_,t_,"\\c+"])),Me(n.X,Be,S(T(fn,1),J,2,6,[Je,"NMTOKENS",Wi,qJn,mun,"1"])),Me(n.W,Be,S(T(fn,1),J,2,6,[Je,qJn,ZK,Eun])),Me(n.Y,Be,S(T(fn,1),J,2,6,[Je,Cun,Wi,yun,pj,"0"])),Me(n.Z,Be,S(T(fn,1),J,2,6,[Je,HJn,Wi,yun,vj,"0"])),Me(n.$,Be,S(T(fn,1),J,2,6,[Je,UJn,Wi,CB,Ts,"replace"])),Me(n._,Be,S(T(fn,1),J,2,6,[Je,"NOTATION",Ts,Mf])),Me(n.ab,Be,S(T(fn,1),J,2,6,[Je,"positiveInteger",Wi,Cun,pj,"1"])),Me(n.bb,Be,S(T(fn,1),J,2,6,[Je,"processingInstruction_._type",Cs,"empty"])),Me(u(D(H(n.bb),0),35),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,"data"])),Me(u(D(H(n.bb),1),35),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,run])),Me(n.cb,Be,S(T(fn,1),J,2,6,[Je,"QName",Ts,Mf])),Me(n.db,Be,S(T(fn,1),J,2,6,[Je,K8])),Me(n.eb,Be,S(T(fn,1),J,2,6,[Je,"short:Object",Wi,K8])),Me(n.fb,Be,S(T(fn,1),J,2,6,[Je,"simpleAnyType",Cs,dj])),Me(u(D(H(n.fb),0),35),Be,S(T(fn,1),J,2,6,[Je,":3",Cs,dj])),Me(u(D(H(n.fb),1),35),Be,S(T(fn,1),J,2,6,[Je,":4",Cs,dj])),Me(u(D(H(n.fb),2),19),Be,S(T(fn,1),J,2,6,[Je,":5",Cs,dj])),Me(n.gb,Be,S(T(fn,1),J,2,6,[Je,CB,Ts,"preserve"])),Me(n.hb,Be,S(T(fn,1),J,2,6,[Je,"time",Ts,Mf])),Me(n.ib,Be,S(T(fn,1),J,2,6,[Je,e_,Wi,UJn,Ts,Mf])),Me(n.jb,Be,S(T(fn,1),J,2,6,[Je,GJn,vj,"255",pj,"0"])),Me(n.kb,Be,S(T(fn,1),J,2,6,[Je,"unsignedByte:Object",Wi,GJn])),Me(n.lb,Be,S(T(fn,1),J,2,6,[Je,zJn,vj,"4294967295",pj,"0"])),Me(n.mb,Be,S(T(fn,1),J,2,6,[Je,"unsignedInt:Object",Wi,zJn])),Me(n.nb,Be,S(T(fn,1),J,2,6,[Je,"unsignedLong",Wi,Cun,vj,XJn,pj,"0"])),Me(n.ob,Be,S(T(fn,1),J,2,6,[Je,WJn,vj,"65535",pj,"0"])),Me(n.pb,Be,S(T(fn,1),J,2,6,[Je,"unsignedShort:Object",Wi,WJn])),Me(n.qb,Be,S(T(fn,1),J,2,6,[Je,"",Cs,aj])),Me(u(D(H(n.qb),0),35),Be,S(T(fn,1),J,2,6,[Cs,YK,Je,":mixed"])),Me(u(D(H(n.qb),1),19),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,"xmlns:prefix"])),Me(u(D(H(n.qb),2),19),Be,S(T(fn,1),J,2,6,[Cs,vP,Je,"xsi:schemaLocation"])),Me(u(D(H(n.qb),3),35),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,"cDATA",mP,bj])),Me(u(D(H(n.qb),4),35),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,"comment",mP,bj])),Me(u(D(H(n.qb),5),19),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,VJn,mP,bj])),Me(u(D(H(n.qb),6),35),Be,S(T(fn,1),J,2,6,[Cs,pP,Je,RK,mP,bj]))}(n))}(n),Xe((rX(),h0n),n,new L6n),ax(n),Pr(Ns,qd,n),n)}()}function df(n){return n.e&&n.e()}function sEn(n){return n.l|n.m<<22}function fEn(n,e){return n.c._b(e)}function hEn(n,e){return oBn(n.b,e)}function VL(n){return n?n.d:null}function sd(n){return yl(n),n.o}function Mg(n,e){return n.a+=e,n}function JL(n,e){return n.a+=e,n}function t1(n,e){return n.a+=e,n}function v0(n,e){return n.a+=e,n}function Wz(n,e){for(;n.Bd(e););}function lC(n){this.a=new Tv(n)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function bEn(){throw M(new Pe)}function wEn(){throw M(new Pe)}function gEn(){throw M(new Pe)}function i1(n){this.a=new AN(n)}function vEn(){this.a=new n8(u1n)}function pEn(){this.b=new n8(Mln)}function mEn(){this.a=new n8(I1n)}function kEn(){this.b=new n8(fU)}function yEn(){this.b=new n8(fU)}function aC(n){this.a=0,this.b=n}function Vz(n){VGn(),function MDe(n,e){var t,i,r,c,s,f,h,l;if(t=0,s=0,c=e.length,f=null,l=new Cg,s1?e.a[1]:0),pd(e.e>0?t:d1(t))))}(n,new ea(h));for(n.d=l.a.length,r=0;r0}(u(n,27))?Iu(i,(Ef(),wi))||Iu(i,Fn):Iu(i,(Ef(),wi));if(L(n,326))return Iu(i,(Ef(),$h));if(L(n,193))return Iu(i,(Ef(),e0));if(L(n,366))return Iu(i,(Ef(),F1))}return!0}(n,e)}function Qz(n,e,t){n.splice(e,t)}function Tg(n,e){for(;n.Re(e););}function EEn(n){n.c?$qn(n):Fqn(n)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function OEn(){throw M(new Pe)}function LEn(){throw M(new Pe)}function DEn(){throw M(new Pe)}function g7(n){this.a=new NEn(n)}function NEn(n){!function R4e(n,e,t){var i;n.b=e,n.a=t,i=512==(512&n.a)?new mjn:new TG,n.c=function ZTe(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,16==(16&n.e)&&(n.i=function fSe(n){var e,t,i,r,c;for(i=n.length,e=new p6,c=0;ce&&e0)){if(r=-1,32==Gi(a.c,0)){if(d=l[0],i$n(e,l),l[0]>d)continue}else if(Sge(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&0==(f-=i++))return 0;if(!tzn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!tzn(e,l,a,0,s))return 0}return function ILe(n,e){var t,i,r,c,s,f;if(0==n.e&&n.p>0&&(n.p=-(n.p-1)),n.p>Xi&&zJ(e,n.p-Ea),s=e.q.getDate(),dk(e,1),n.k>=0&&function p2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),c8(n,t)}(e,n.k),n.c>=0?dk(e,n.c):n.k>=0?(i=35-new jY(e.q.getFullYear()-Ea,e.q.getMonth(),35).q.getDate(),dk(e,y.Math.min(i,s))):dk(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),function f1e(n,e){n.q.setHours(e),c8(n,e)}(e,24==n.f&&n.g?0:n.f),n.j>=0&&function n3e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),c8(n,t)}(e,n.j),n.n>=0&&function a3e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),c8(n,t)}(e,n.n),n.i>=0&&nTn(e,Yi(Zi(ly(Ec(e.q.getTime()),T1),T1),n.i)),n.a&&(zJ(r=new wC,r.q.getFullYear()-Ea-80),rD(Ec(e.q.getTime()),Ec(r.q.getTime()))&&zJ(e,r.q.getFullYear()-Ea+100)),n.d>=0)if(-1==n.c)(t=(7+n.d-e.q.getDay())%7)>3&&(t-=7),f=e.q.getMonth(),dk(e,e.q.getDate()+t),e.q.getMonth()!=f&&dk(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1;return n.o>Xi&&(c=e.q.getTimezoneOffset(),nTn(e,Yi(Ec(e.q.getTime()),60*(n.o-c)*T1))),!0}(s,t)?l[0]:0}(n,e,r=new jY((i=new wC).q.getFullYear()-Ea,i.q.getMonth(),i.q.getDate())))||t0}function rD(n,e){return Ac(n,e)<0}function jCn(n,e){return kN(n.a,e)}function tle(n,e){COn.call(this,n,e)}function uX(n){RN(),fSn.call(this,n)}function oX(n,e){vPn(n,n.length,e)}function C7(n,e){GPn(n,n.length,e)}function A6(n,e){return n.a.get(e)}function ECn(n,e){return tu(n.e,e)}function sX(n){return Jn(n),!1}function fX(n){this.a=u(Se(n),229)}function CC(n){Pn.call(this,n,21)}function MC(n,e){je.call(this,n,e)}function cD(n,e){je.call(this,n,e)}function CCn(n,e){this.b=n,this.a=e}function TC(n,e){this.d=n,this.e=e}function MCn(n,e){this.a=n,this.b=e}function TCn(n,e){this.a=n,this.b=e}function ACn(n,e){this.a=n,this.b=e}function SCn(n,e){this.a=n,this.b=e}function Sv(n,e){this.a=n,this.b=e}function PCn(n,e){this.b=n,this.a=e}function hX(n,e){this.b=n,this.a=e}function lX(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function Ag(n,e){je.call(this,n,e)}function uD(n,e){je.call(this,n,e)}function oD(n,e){je.call(this,n,e)}function sD(n,e){je.call(this,n,e)}function AC(n,e){je.call(this,n,e)}function dX(n,e){this.b=n,this.a=e}function SC(n,e){je.call(this,n,e)}function bX(n,e){this.b=n,this.a=e}function PC(n,e){je.call(this,n,e)}function ICn(n,e){this.b=n,this.a=e}function wX(n,e){je.call(this,n,e)}function fD(n,e){je.call(this,n,e)}function M7(n,e){je.call(this,n,e)}function S6(n,e,t){n.splice(e,0,t)}function IC(n,e){je.call(this,n,e)}function OC(n,e){je.call(this,n,e)}function P6(n,e){je.call(this,n,e)}function gX(n,e){je.call(this,n,e)}function Zt(n,e){je.call(this,n,e)}function LC(n,e){je.call(this,n,e)}function OCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.a=n,this.b=e}function $Cn(n,e){this.a=n,this.b=e}function FCn(n,e){this.a=n,this.b=e}function xCn(n,e){this.b=n,this.a=e}function BCn(n,e){this.b=n,this.a=e}function vX(n,e){this.b=n,this.a=e}function M3(n,e){this.c=n,this.d=e}function RCn(n,e){this.e=n,this.d=e}function KCn(n,e){this.a=n,this.b=e}function _Cn(n,e){this.a=n,this.b=e}function HCn(n,e){this.a=n,this.b=e}function qCn(n,e){this.b=n,this.a=e}function UCn(n,e){this.b=e,this.c=n}function DC(n,e){je.call(this,n,e)}function T7(n,e){je.call(this,n,e)}function hD(n,e){je.call(this,n,e)}function pX(n,e){je.call(this,n,e)}function I6(n,e){je.call(this,n,e)}function lD(n,e){je.call(this,n,e)}function aD(n,e){je.call(this,n,e)}function A7(n,e){je.call(this,n,e)}function mX(n,e){je.call(this,n,e)}function dD(n,e){je.call(this,n,e)}function O6(n,e){je.call(this,n,e)}function kX(n,e){je.call(this,n,e)}function L6(n,e){je.call(this,n,e)}function D6(n,e){je.call(this,n,e)}function Xb(n,e){je.call(this,n,e)}function bD(n,e){je.call(this,n,e)}function wD(n,e){je.call(this,n,e)}function yX(n,e){je.call(this,n,e)}function S7(n,e){je.call(this,n,e)}function Sg(n,e){je.call(this,n,e)}function gD(n,e){je.call(this,n,e)}function NC(n,e){je.call(this,n,e)}function P7(n,e){je.call(this,n,e)}function Wb(n,e){je.call(this,n,e)}function $C(n,e){je.call(this,n,e)}function jX(n,e){je.call(this,n,e)}function vD(n,e){je.call(this,n,e)}function pD(n,e){je.call(this,n,e)}function mD(n,e){je.call(this,n,e)}function kD(n,e){je.call(this,n,e)}function yD(n,e){je.call(this,n,e)}function jD(n,e){je.call(this,n,e)}function ED(n,e){je.call(this,n,e)}function GCn(n,e){this.b=n,this.a=e}function EX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function XCn(n,e){this.a=n,this.b=e}function WCn(n,e){this.a=n,this.b=e}function CX(n,e){je.call(this,n,e)}function MX(n,e){je.call(this,n,e)}function VCn(n,e){this.a=n,this.b=e}function I7(n){return oe(n.a),n.b}function CD(n){return function gCe(n,e){var i,r,c;for(i=new C(n.a.a);i.a=0}function R6(n,e){return 0!=Ac(n,e)}function XC(n,e){return function vme(n,e){for(Se(e);n.Ob();)if(!aY(u(n.Pb(),10)))return!1;return!0}(n.Kc(),e)}function na(n,e){return n.Rd().Xb(e)}function _Mn(n){return to(n),n.d.gc()}function WC(n){return Q6(null==n),n}function K6(n,e){return n.a+=""+e,n}function jr(n,e){return n.a+=""+e,n}function _6(n,e){return n.a+=""+e,n}function Fc(n,e){return n.a+=""+e,n}function Re(n,e){return n.a+=""+e,n}function KX(n,e){return n.a+=""+e,n}function HMn(n){qu(this),E5(this,n)}function qMn(){PJ(),$V.call(this)}function UMn(n,e){KV.call(this,n,e)}function GMn(n,e){KV.call(this,n,e)}function VC(n,e){KV.call(this,n,e)}function tr(n,e){Nt(n,e,n.c.b,n.c)}function Og(n,e){Nt(n,e,n.a,n.a.a)}function _X(n){return Ln(n,0),null}function zMn(){this.b=0,this.a=!1}function XMn(){this.b=0,this.a=!1}function WMn(){this.b=new Tv(aw(12))}function VMn(){VMn=N,CYn=Ce(zF())}function JMn(){JMn=N,zZn=Ce(uqn())}function QMn(){QMn=N,wre=Ce(RFn())}function HX(){HX=N,fz(),Lun=new de}function wf(n){return n.a=0,n.b=0,n}function YMn(n,e){return n.a=e.g+1,n}function FD(n,e){ew.call(this,n,e)}function Cn(n,e){Pt.call(this,n,e)}function Lg(n,e){BX.call(this,n,e)}function ZMn(n,e){H7.call(this,n,e)}function xD(n,e){h4.call(this,n,e)}function Ge(n,e){jC(),Xe(KO,n,e)}function nTn(n,e){n.q.setTime(pd(e))}function eTn(n,e){return x(n)===x(e)}function tTn(n,e){return n.a.a.a.cc(e)}function BD(n,e){return Xo(n.a,0,e)}function qX(n){return function jwe(n){return Xv(),Ct(Wh(n))==Ct(va(n))}(u(n,74))}function Ov(n){return di((Jn(n),n))}function iTn(n){return eu(n.l,n.m,n.h)}function UX(n,e){return Tc(n.a,e.a)}function fh(n,e){return n.indexOf(e)}function E0(n,e){return n==e?0:n?1:-1}function JC(n){return n<10?"0"+n:""+n}function Wr(n){return typeof n===$tn}function rTn(n,e){return Tc(n.g,e.g)}function GX(n){return Hr(n.b.b,n,0)}function cTn(){EM.call(this,0,0,0,0)}function hh(){zG.call(this,new h1)}function zX(n,e){V3(n,0,n.length,e)}function Tle(n,e){return nn(n.a,e),e}function XX(n,e){return So(n.a,e),n}function uTn(n){this.a=JCn(),this.b=n}function oTn(n){this.a=JCn(),this.b=n}function ir(n){this.a=n.a,this.b=n.b}function H6(n){this.a=n,wL.call(this)}function sTn(n){this.a=n,wL.call(this)}function Lv(){zo.call(this,0,0,0,0)}function QC(n){return So(new ei,n)}function fTn(n){return _M(u(n,123))}function ao(n){return n.vh()&&n.wh()}function Dg(n){return n!=th&&n!=Ha}function kl(n){return n==$r||n==zr}function Ng(n){return n==hs||n==nh}function hTn(n){return n==U2||n==q2}function lTn(n,e){return new h4(e,n)}function WX(n){return function Z0e(n,e){return Se(n),Se(e),new zEn(n,e)}(n.b.Kc(),n.a)}function RD(n,e){p4(n,e),i4(n,n.D)}function KD(n,e,t){OT(n,e),IT(n,t)}function $g(n,e,t){G0(n,e),U0(n,t)}function qo(n,e,t){ru(n,e),cu(n,t)}function R7(n,e,t){Z3(n,e),e4(n,t)}function K7(n,e,t){n4(n,e),t4(n,t)}function aTn(n,e,t){IW.call(this,n,e,t)}function VX(n){LMn.call(this,n,!0)}function dTn(){MC.call(this,"Tail",3)}function bTn(){MC.call(this,"Head",1)}function ea(n){mh(),dme.call(this,n)}function C0(n){EM.call(this,n,n,n,n)}function _D(n){n.c=K(pi,xn,1,0,5,1)}function JX(n){return n.b&&uB(n),n.a}function QX(n){return n.b&&uB(n),n.c}function Li(n,e){Pt.call(this,n.b,e)}function wTn(n,e,t){Dt(n.c[e.g],e.g,t)}function HD(n,e,t){return Dt(n,e,t),t}function gTn(n){iu(n.Sf(),new $9n(n))}function Fg(n){return null!=n?wt(n):0}function q6(n){Ze(),h0.call(this,n)}function vTn(n){this.a=n,lV.call(this,n)}function Of(){Of=N,y.Math.log(2)}function Uo(){Uo=N,kCn(),al=Ioe}function pTn(){pTn=N,Cq=new F5(BU)}function Ie(){Ie=N,new mTn,new Z}function mTn(){new de,new de,new de}function qD(n){this.a=n,dC.call(this,n)}function UD(n){this.a=n,dC.call(this,n)}function kTn(n,e){D0(),this.a=n,this.b=e}function Jt(n,e){yN(n.c,n.c.length,e)}function rc(n){return n.ae?1:0}function ZX(n,e){return Ac(n,e)>0?n:e}function eu(n,e,t){return{l:n,m:e,h:t}}function Qle(n,e){null!=n.a&&NMn(e,n.a)}function xg(n,e,t){return jZ(e,t,n.c)}function e1e(n,e,t){return function KOe(n,e,t){var i,r,c,f,h,l,a,g;for(l=new Z,h=new C(e.a);h.a0),c=u(a.a.Xb(a.c=--a.b),18);c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,oe(a.b>0),c=u(a.a.Xb(a.c=--a.b),18);a.b>0&&vo(a)}}(n,e,t),t}function jTn(n){jJ.call(this),this.b=n}function nW(n){_W.call(this),this.a=n}function ETn(){MC.call(this,"Range",2)}function YC(n){this.b=n,this.a=new Z}function CTn(n){this.b=new $bn,this.a=n}function MTn(n){n.a=new z1,n.c=new z1}function TTn(n){n.a=new de,n.d=new de}function ATn(n){c$(n,null),u$(n,null)}function STn(n,e){return function HOe(n,e,t){var i,r,c,s,f,h,l,a,d;for(!t&&(t=function Qme(n){var e;return(e=new eL).a=n,e.b=function o6e(n){var e;return 0==n?"Etc/GMT":(n<0?(n=-n,e="Etc/GMT-"):e="Etc/GMT+",e+e$n(n))}(n),e.c=K(fn,J,2,2,6,1),e.c[0]=EFn(n),e.c[1]=EFn(n),e}(e.q.getTimezoneOffset())),r=6e4*(e.q.getTimezoneOffset()-t.a),h=f=new OW(Yi(Ec(e.q.getTime()),r)),f.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,h=new OW(Yi(Ec(e.q.getTime()),r))),a=new Cg,l=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(s=c+1;s=l)throw M(new Un("Missing trailing '"));s+11)throw M(new Un(wj));for(a=ou(n.e.Dh(),e),i=u(n.g,124),s=0;s1||t>1)return 2;return e+t==1?2:0}(e)}function XD(n,e){return null!=n.a.Bc(e)}function Dv(n,e){return n.a*e.a+n.b*e.b}function FTn(n,e,t){n.a=1502^e,n.b=t^iR}function lh(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Rn(n.c,e),!0}function G6(n,e,t){return Dt(n.g,e,t),t}function ni(n,e,t){ek.call(this,n,e,t)}function nM(n,e,t){ni.call(this,n,e,t)}function rW(n,e,t){gM.call(this,n,e,t)}function xTn(n,e,t){gM.call(this,n,e,t)}function BTn(n,e,t){rW.call(this,n,e,t)}function Pu(n,e,t){ni.call(this,n,e,t)}function RTn(n,e,t){nM.call(this,n,e,t)}function cW(n,e,t){ek.call(this,n,e,t)}function Bg(n,e,t){ek.call(this,n,e,t)}function KTn(n,e,t){cW.call(this,n,e,t)}function eM(n){n.j=K(Gun,J,319,0,0,1)}function Rg(){this.a=K(pi,xn,1,8,5,1)}function uW(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function ta(n){this.c=n,this.a=this.c.a}function Kg(n,e){this.a=n,dC.call(this,e)}function oW(n,e){return function x5e(n,e,t){try{!function u6e(n,e,t){if(Se(e),t.Ob())for(KX(e,fIn(t.Pb()));t.Ob();)KX(e,n.a),KX(e,fIn(t.Pb()));return e}(n,e,t)}catch(r){throw L(r=At(r),606)?M(new iQ(r)):M(r)}return e}(n,new V1,e).a}function sW(n){if(!n)throw M(new d7)}function fW(n){if(!n)throw M(new Au)}function hW(){(hW=N)(),DQn=new X1}function _Tn(){_Tn=N,eD(),use=new P8n}function T3(){T3=N,eon=new RL(null)}function j1e(n){fk(n,PVn),zA(n,function KLe(n){var e,t,i,r,c;switch(fk(n,PVn),(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i+(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){case 0:throw M(new Un("The edge must have at least one source or target."));case 1:return 0==(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i?Ct(Ur(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))):Ct(Ur(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)))}if(1==(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i&&1==(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){if(r=Ur(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),c=Ur(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),Ct(r)==Ct(c))return Ct(r);if(r==Ct(c))return r;if(c==Ct(r))return c}for(e=Ur(u(fe(i=qh(To(S(T(No,1),xn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])))),84));ve(i);)if((t=Ur(u(fe(i),84)))!=e&&!dw(t,e))if(Ct(t)==Ct(e))e=Ct(t);else if(!(e=dMe(e,t)))return null;return e}(n))}function HTn(n){n.a=u(qn(n.b.a,4),129)}function qTn(n){n.a=u(qn(n.b.a,4),129)}function UTn(n){n.b.Qb(),--n.d.f.d,SM(n.d)}function lW(n){this.a=n,G8n.call(this,n.d)}function GTn(n,e){this.a=n,XL.call(this,e)}function zTn(n,e){this.a=n,XL.call(this,e)}function XTn(n,e){this.a=n,XL.call(this,e)}function aW(n,e){this.a=e,XL.call(this,n)}function WTn(n,e){this.a=e,g$.call(this,n)}function VTn(n,e){this.a=n,g$.call(this,e)}function JTn(n,e){this.a=e,bC.call(this,n)}function QTn(n,e){this.a=e,bC.call(this,n)}function ce(n,e){return Se(e),new JTn(n,e)}function YTn(n,e){return new E_n(n.a,n.b,e)}function dW(n,e,t){return n.indexOf(e,t)}function tM(n,e){return n.lastIndexOf(e)}function z6(n){return null==n?yu:Jr(n)}function gs(n){f7.call(this,(Jn(n),n))}function yo(n){f7.call(this,(Jn(n),n))}function ZTn(n){vL.call(this,u(Se(n),34))}function nAn(n){vL.call(this,u(Se(n),34))}function WD(n){zG.call(this,new gQ(n))}function iM(n){f3.call(this,n),this.a=n}function bW(n){s3.call(this,n),this.a=n}function wW(n){g3.call(this,n),this.a=n}function eAn(){eM(this),UM(this),this.je()}function tAn(n){this.a=n,EL.call(this,n)}function bo(n){return oe(null!=n.a),n.a}function iAn(n,e){return nn(e.a,n.a),n.a}function rAn(n,e){return nn(e.b,n.a),n.a}function M0(n,e){return nn(e.a,n.a),n.a}function _7(n,e,t){return iF(n,e,e,t),n}function rM(n,e){return++n.b,nn(n.a,e)}function gW(n,e){return++n.b,pu(n.a,e)}function gu(n,e){return u(ut(n.b,e),15)}function Iu(n,e){return!!e&&n.b[e.g]==e}function X6(n){return rc(n.a)||rc(n.b)}function T0(n){return n.$H||(n.$H=++fNe)}function vW(n,e,t){return KLn(n,e,t,n.c)}function cAn(){j6(),this.b=new p7n(this)}function cM(){cM=N,DP=new Pt(mXn,0)}function Kn(){Kn=N,Pa=!1,mm=!0}function c1(n){var e;e=n.a,n.a=n.b,n.b=e}function H7(n,e){T6(),this.a=n,this.b=e}function uM(n,e){r1(),this.b=n,this.c=e}function VD(n,e){CN(),this.f=e,this.d=n}function pW(n,e){uQ(e,n),this.d=n,this.c=e}function mW(n,e){PZ.call(this,n,e,null)}function uAn(n,e,t,i){_V.call(this,n,e,t,i)}function Nv(n){this.d=n,ne.call(this,n)}function $v(n){this.c=n,ne.call(this,n)}function q7(n){this.c=n,Nv.call(this,n)}function Kh(n){return Ao(n,Dw),new Vc(n)}function oAn(n){return q3(),parseInt(n)||-1}function A3(n,e,t){return dW(n,ku(e),t)}function JD(n,e){return new uSn(n,n.gc(),e)}function S3(n,e,t){n.fd(e).Rb(t)}function kW(n,e,t){u(Pk(n,e),21).Fc(t)}function U7(n){L(n,158)&&u(n,158).pi()}function sAn(n){aV.call(this,n,null,null)}function QD(n){zb(),this.b=n,this.a=!0}function fAn(n){gC(),this.b=n,this.a=!0}function P3(n){return oe(0!=n.b),n.a.a.c}function _s(n){return oe(0!=n.b),n.c.b.c}function K1e(n,e){return iF(n,e,e+1,""),n}function vt(n,e){return!!n.q&&tu(n.q,e)}function hAn(n){return n.b=u(gJ(n.a),44)}function YD(n){return null!=n.f?n.f:""+n.g}function Qb(n,e){return u(Rf(n.a,e),34)}function lAn(n){n.d=new sAn(n),n.e=new de}function aAn(){this.a=new R0,this.b=new R0}function dAn(n){this.c=n,this.a=1,this.b=1}function bAn(n){jB(),Oyn(this),this.Ff(n)}function A0(n,e,t){return n.a+=e,n.b+=t,n}function Y1e(n,e,t){return n.a*=e,n.b*=t,n}function yW(n,e){return n.a=e.a,n.b=e.b,n}function oM(n){return n.a=-n.a,n.b=-n.b,n}function W6(n,e,t){return n.a-=e,n.b-=t,n}function wAn(n){yt.call(this),m5(this,n)}function gAn(){je.call(this,"GROW_TREE",0)}function vAn(){je.call(this,"POLYOMINO",0)}function wo(n,e,t){Du.call(this,n,e,t,2)}function pAn(n,e){T6(),H7.call(this,n,e)}function jW(n,e){r1(),uM.call(this,n,e)}function mAn(n,e){r1(),jW.call(this,n,e)}function kAn(n,e){r1(),uM.call(this,n,e)}function yAn(n){this.c=n,ru(n,0),cu(n,0)}function ZD(n,e){Uo(),TM.call(this,n,e)}function jAn(n,e){Uo(),ZD.call(this,n,e)}function EW(n,e){Uo(),ZD.call(this,n,e)}function CW(n,e){Uo(),TM.call(this,n,e)}function EAn(n,e){Uo(),EW.call(this,n,e)}function CAn(n,e){Uo(),CW.call(this,n,e)}function MAn(n,e){Uo(),TM.call(this,n,e)}function MW(n,e,t){return sS(Sk(n,e),t)}function nN(n,e){return ba(n.e,u(e,54))}function rae(n){return null==n?null:function PLe(n){var e,t,i,r,c,s,f,h,l,a,d,v,k,j;if(utn(),null==n)return null;if(0==(d=8*n.length))return"";for(v=d/24|0,c=null,c=K(ds,jh,28,4*(0!=(f=d%24)?v+1:v),15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h>24,l=(3&e)<<24>>24,k=-128&t?(t>>4^240)<<24>>24:t>>4<<24>>24,j=-128&(i=n[r++])?(i>>6^252)<<24>>24:i>>6<<24>>24,c[s++]=U1[-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24],c[s++]=U1[k|l<<4],c[s++]=U1[a<<2|j],c[s++]=U1[63&i];return 8==f?(l=(3&(e=n[r]))<<24>>24,c[s++]=U1[-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24],c[s++]=U1[l<<4],c[s++]=61,c[s++]=61):16==f&&(a=(15&(t=n[r+1]))<<24>>24,l=(3&(e=n[r]))<<24>>24,k=-128&t?(t>>4^240)<<24>>24:t>>4<<24>>24,c[s++]=U1[-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24],c[s++]=U1[k|l<<4],c[s++]=U1[a<<2],c[s++]=61),ks(c,0,c.length)}(n)}function cae(n){return null==n?null:function jje(n){var e,t,i,c;if(xen(),null==n)return null;for(e=K(ds,jh,28,2*(i=n.length),15,1),t=0;t>4],e[2*t+1]=XO[15&c];return ks(e,0,e.length)}(n)}function un(n){return Q6(null==n||Vb(n)),n}function R(n){return Q6(null==n||Jb(n)),n}function Oe(n){return Q6(null==n||Mi(n)),n}function yl(n){null==n.o&&function nMe(n){if(n.ze()){var e=n.c;return n.o=e.Ae()?"["+e.n:e.ze()?"["+e.xe():"[L"+e.xe()+";",n.b=e.we()+"[]",void(n.k=e.ye()+"[]")}var t=n.j,i=n.d;i=i.split("/"),n.o=HF(".",[t,HF("$",i)]),n.b=HF(".",[t,HF(".",i)]),n.k=i[i.length-1]}(n)}function TW(n){if(!n)throw M(new d7)}function oe(n){if(!n)throw M(new tc)}function Yb(n){if(!n)throw M(new Au)}function TAn(n){if(!n)throw M(new Ho)}function I3(){I3=N,SE=new fjn,new hjn}function _g(){_g=N,X2=new ct("root")}function AW(){sFn.call(this),this.Bb|=sr}function fae(n,e){this.d=n,s9n(this),this.b=e}function SW(n,e){A$.call(this,n),this.a=e}function PW(n,e){A$.call(this,n),this.a=e}function IW(n,e,t){dT.call(this,n,e,t,null)}function AAn(n,e,t){dT.call(this,n,e,t,null)}function G7(n,e){this.c=n,j3.call(this,n,e)}function V6(n,e){this.a=n,G7.call(this,n,e)}function OW(n){this.q=new y.Date(pd(n))}function SAn(n){return n>8?0:n+1}function PAn(n,e){Vf||nn(n.a,e)}function bae(n,e){return u(Rf(n.b,e),143)}function wae(n,e){return u(Rf(n.c,e),233)}function eN(n){return u(sn(n.a,n.b),294)}function IAn(n){return new W(n.c,n.d+n.a)}function OAn(n){return Jn(n),n?1231:1237}function LAn(n){return Eo(),hTn(u(n,203))}function Zb(){Zb=N,Aon=yn((mo(),u0))}function gae(n,e){e.a?function kCe(n,e){var t,i,r;if(!ik(n.a,e.b))throw M(new Sr("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=n.a.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),68),Yme(e.b,t))Phe(n.b.a,e.b,t),r=!0;else if(r)break}(n,e):XD(n.a,e.b)}function z7(n,e,t){++n.j,n.tj(),T$(n,e,t)}function DAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function NAn(n,e,t){n.fd(e).Rb(t)}function LW(n,e,t){return Oo(n,e,6,t)}function DW(n,e,t){return Oo(n,e,3,t)}function NW(n,e,t){return Oo(n,e,9,t)}function ah(n,e){return fk(e,rin),n.f=e,n}function $W(n,e){return(e&nt)%n.d.length}function $An(n,e,t){return btn(n.c,n.b,e,t)}function FAn(n,e){this.c=n,q0.call(this,e)}function xAn(n,e){this.a=n,Eyn.call(this,e)}function X7(n,e){this.a=n,Eyn.call(this,e)}function Pt(n,e){ct.call(this,n),this.a=e}function FW(n,e){cz.call(this,n),this.a=e}function tN(n,e){cz.call(this,n),this.a=e}function vae(n){gZ.call(this,0,0),this.f=n}function BAn(n,e,t){return n.a+=ks(e,0,t),n}function W7(n){return!n.a&&(n.a=new uG),n.a}function xW(n,e){var t;return t=n.e,n.e=e,t}function BW(n,e){return!!n.Fe(e)}function nw(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function V7(n){n.b?V7(n.b):n.f.c.zc(n.e,n.d)}function RAn(n){qu(n.e),n.d.b=n.d,n.d.a=n.d}function RW(n,e,t){return qv(n,u(e,22),t)}function Hs(n,e){return sC(new Array(e),n)}function iN(n){return String.fromCharCode(n)}function Eae(n,e){n[tR].call(n,e)}function KW(n,e,t,i){EM.call(this,n,e,t,i)}function KAn(){sM.call(this),this.a=new Oi}function _W(){this.n=new Oi,this.o=new Oi}function _An(){this.b=new Oi,this.c=new Z}function HAn(){this.a=new Z,this.b=new Z}function qAn(){this.a=new fG,this.b=new _yn}function HW(){this.b=new h1,this.a=new h1}function UAn(){this.b=new Yt,this.a=new Yt}function GAn(){this.b=new de,this.a=new de}function zAn(){this.b=new pEn,this.a=new Hpn}function XAn(){this.a=new i8n,this.b=new Dvn}function WAn(){this.a=new Z,this.d=new Z}function sM(){this.n=new kv,this.i=new Lv}function VAn(n){this.a=(Ao(n,Dw),new Vc(n))}function JAn(n){this.a=(Ao(n,Dw),new Vc(n))}function QAn(n,e){return null==Xe(n.a,e,"")}function et(n,e){return n.a+=e.a,n.b+=e.b,n}function gi(n,e){return n.a-=e.a,n.b-=e.b,n}function qW(n,e,t){return Oo(n,e,11,t)}function Fv(n,e,t,i){q.call(this,n,e,t,i)}function UW(n,e,t,i){q.call(this,n,e,t,i)}function YAn(n,e,t,i){UW.call(this,n,e,t,i)}function ZAn(n,e,t,i){DM.call(this,n,e,t,i)}function rN(n,e,t,i){DM.call(this,n,e,t,i)}function GW(n,e,t,i){DM.call(this,n,e,t,i)}function nSn(n,e,t,i){rN.call(this,n,e,t,i)}function zW(n,e,t,i){rN.call(this,n,e,t,i)}function Dn(n,e,t,i){GW.call(this,n,e,t,i)}function eSn(n,e,t,i){zW.call(this,n,e,t,i)}function tSn(n,e,t,i){UV.call(this,n,e,t,i)}function ew(n,e){Ar.call(this,N8+n+_d+e)}function XW(n,e){return n.jk().wi().ri(n,e)}function WW(n,e){return n.jk().wi().ti(n,e)}function iSn(n,e){return Jn(n),x(n)===x(e)}function Tn(n,e){return Jn(n),x(n)===x(e)}function rSn(n,e){return n.b.Bd(new SCn(n,e))}function VW(n,e,t){return n.lastIndexOf(e,t)}function cSn(n){return n.c?Hr(n.c.a,n,0):-1}function xv(n){return n==c0||n==hl||n==Xc}function JW(n,e){this.c=n,ON.call(this,n,e)}function uSn(n,e,t){this.a=n,pW.call(this,e,t)}function oSn(n){this.c=n,VC.call(this,Ry,0)}function sSn(n,e,t){this.c=e,this.b=t,this.a=n}function J7(n){L3(),this.d=n,this.a=new Rg}function fSn(n){dh(),this.a=(On(),new g3(n))}function hSn(n,e){ibe.call(this,n,n.length,e)}function lSn(n,e){return L(e,15)&&Rqn(n.c,e)}function fM(n,e,t){return u(n.c,71).Xk(e,t)}function QW(n,e,t){return function iae(n,e,t){return e.Al(n.e,n.c,t)}(n,u(e,343),t)}function aSn(n,e,t){return function Fye(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?oa(n,4,i,c,null,q4(n,i,c,L(i,102)&&0!=(u(i,19).Bb&sr)),!0):oa(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}(n,u(e,343),t)}function J6(n,e){return null==e?null:vw(n.b,e)}function YW(n){return Jb(n)?(Jn(n),n):n.ue()}function hM(n){return!isNaN(n)&&!isFinite(n)}function cN(n){MTn(this),jo(this),Fi(this,n)}function Hu(n){_D(this),bV(this.c,0,n.Pc())}function Go(n,e,t){this.a=n,this.b=e,this.c=t}function dSn(n,e,t){this.a=n,this.b=e,this.c=t}function bSn(n,e,t){this.d=n,this.b=t,this.a=e}function wSn(n){this.a=n,ml(),Ec(Date.now())}function gSn(n){vo(n.a),dQ(n.c,n.b),n.b=null}function uN(){uN=N,non=new ec,OQn=new zt}function vSn(){vSn=N,Foe=K(pi,xn,1,0,5,1)}function pSn(){pSn=N,nse=K(pi,xn,1,0,5,1)}function ZW(){ZW=N,ese=K(pi,xn,1,0,5,1)}function dh(){dh=N,new sz((On(),On(),Vi))}function nV(n,e){if(!n)throw M(new Un(e))}function O3(n){if(!n)throw M(new Sr(Ftn))}function oN(n,e){if(n!=e)throw M(new Ho)}function mSn(n,e,t){this.a=n,this.b=e,this.c=t}function eV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function lM(n,e,t){this.b=n,this.a=e,this.c=t}function tV(n,e,t){this.b=n,this.c=e,this.a=t}function iV(n,e,t){this.a=n,this.b=e,this.c=t}function aM(n,e,t){this.e=e,this.b=n,this.d=t}function ySn(n,e,t){this.b=n,this.a=e,this.c=t}function sN(n){var e;return(e=new ubn).e=n,e}function rV(n){var e;return(e=new zyn).b=n,e}function Q7(){Q7=N,qP=new sgn,UP=new fgn}function dM(){dM=N,QZn=new Fgn,JZn=new xgn}function qs(){qs=N,tne=new G2n,ine=new z2n}function L3(){L3=N,en(),Eln=Wn,VI=Zn}function fN(){fN=N,Kdn=new QSn,_dn=new FPn}function J0e(n){return!n.e&&(n.e=new Z),n.e}function hN(n,e){this.c=n,this.a=e,this.b=e-n}function jSn(n,e,t){this.a=n,this.b=e,this.c=t}function lN(n,e,t){this.a=n,this.b=e,this.c=t}function cV(n,e,t){this.a=n,this.b=e,this.c=t}function uV(n,e,t){this.a=n,this.b=e,this.c=t}function ESn(n,e,t){this.a=n,this.b=e,this.c=t}function CSn(n,e,t){this.a=n,this.b=e,this.c=t}function u1(n,e,t){this.e=n,this.a=e,this.c=t}function MSn(n,e,t){Uo(),CJ.call(this,n,e,t)}function aN(n,e,t){Uo(),oJ.call(this,n,e,t)}function oV(n,e,t){Uo(),oJ.call(this,n,e,t)}function sV(n,e,t){Uo(),oJ.call(this,n,e,t)}function TSn(n,e,t){Uo(),aN.call(this,n,e,t)}function fV(n,e,t){Uo(),aN.call(this,n,e,t)}function ASn(n,e,t){Uo(),fV.call(this,n,e,t)}function SSn(n,e,t){Uo(),oV.call(this,n,e,t)}function PSn(n,e,t){Uo(),sV.call(this,n,e,t)}function dN(n){EM.call(this,n.d,n.c,n.a,n.b)}function hV(n){EM.call(this,n.d,n.c,n.a,n.b)}function lV(n){this.d=n,s9n(this),this.b=function Vbe(n){return L(n,15)?u(n,15).ed():n.Kc()}(n.d)}function Y7(n,e){return Se(n),Se(e),new xEn(n,e)}function Bv(n,e){return Se(n),Se(e),new HSn(n,e)}function bN(n){return oe(0!=n.b),Qo(n,n.a.a)}function nbe(n){return oe(0!=n.b),Qo(n,n.c.b)}function D3(n){var e;return B$(e=new Z,n),e}function ISn(n){var e;return Q$(e=new dz,n),e}function Z7(n){var e;return Q$(e=new yt,n),e}function u(n,e){return Q6(null==n||JF(n,e)),n}function ibe(n,e,t){PPn.call(this,e,t),this.a=n}function OSn(n,e){this.c=n,this.b=e,this.a=!1}function LSn(){this.a=";,;",this.b="",this.c=""}function DSn(n,e,t){this.b=n,UMn.call(this,e,t)}function aV(n,e,t){this.c=n,TC.call(this,e,t)}function dV(n,e,t){M3.call(this,n,e),this.b=t}function bV(n,e,t){uen(t,0,n,e,t.length,!1)}function _h(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function wV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function nk(n,e){if(!n)throw M(new Un(e))}function Rv(n,e){if(!n)throw M(new Sr(e))}function gV(n,e){if(!n)throw M(new _jn(e))}function bM(n,e){return e&&BM(n,e.d)?e:null}function vV(n){return la(function swe(n){return eu(~n.l&co,~n.m&co,~n.h&Kl)}(Wr(n)?ps(n):n))}function hbe(n){return new W(n.c+n.b,n.d+n.a)}function NSn(n){return null!=n&&!$F(n,W9,V9)}function lbe(n,e){return(aBn(n)<<4|aBn(e))&ri}function $Sn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function pV(n){var e;e=n.b,n.b=n.c,n.c=e}function mV(n){var t;t=n.d,n.d=n.a,n.a=t}function kV(n,e){return n.g=e<0?-1:e,n}function wM(n,e){return function k4e(n){var e;return(e=y.Math.sqrt(n.a*n.a+n.b*n.b))>0&&(n.a/=e,n.b/=e),n}(n),n.a*=e,n.b*=e,n}function FSn(n,e,t){I$n.call(this,e,t),this.d=n}function ek(n,e,t){RX.call(this,n,e),this.c=t}function gM(n,e,t){RX.call(this,n,e),this.c=t}function yV(n){ZW(),UE.call(this),this.ci(n)}function xSn(){X3(),Dwe.call(this,(Y1(),Ns))}function BSn(n){return Ze(),new Hh(0,n)}function RSn(){RSn=N,On(),ZU=new CL(n_)}function vM(){vM=N,new LZ((BL(),a_),(xL(),l_))}function KSn(){KSn=N,Kun=K(qi,J,17,256,0,1)}function _Sn(){this.b=F(R(rn((Js(),G_))))}function wN(n){this.b=n,this.a=ld(this.b.a).Od()}function HSn(n,e){this.b=n,this.a=e,wL.call(this)}function qSn(n,e){this.a=n,this.b=e,wL.call(this)}function USn(n,e,t){this.a=n,Lg.call(this,e,t)}function GSn(n,e,t){this.a=n,Lg.call(this,e,t)}function N3(n,e,t){kf(n,e,new rw(t))}function jV(n,e,t){var i;return i=n[e],n[e]=t,i}function pM(n){return O$(n.slice(),n)}function mM(n){var e;return n.a.b+(e=n.n).d+e.a}function zSn(n){var e;return n.e.b+(e=n.n).d+e.a}function EV(n){var e;return n.e.a+(e=n.n).b+e.c}function CV(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return Nt(n,e,n.c.b,n.c),!0}function S0(n,e){return G5(n,new M3(e.a,e.b))}function XSn(n){return n.b.c.length-n.e.c.length}function WSn(n){return n.e.c.length-n.g.c.length}function gN(n){return n.e.c.length+n.g.c.length}function tk(n){return 0==n||isNaN(n)?n:n<0?-1:1}function Cbe(n,e,t){!function hLe(n,e,t,i,r){var c,s,f,g,v,X,tn,jn,kn,Bn,$n,te;null==(Bn=ee(n.e,i))&&(v=u(Bn=new jv,190),g=new rw(e+"_s"+r),kf(v,Ph,g)),Uv(t,kn=u(Bn,190)),wd(te=new jv,"x",i.j),wd(te,"y",i.k),kf(kn,jVn,te),wd(tn=new jv,"x",i.b),wd(tn,"y",i.c),kf(kn,"endPoint",tn),!v7((!i.a&&(i.a=new ni(Ro,i,5)),i.a))&&(c=new ryn(X=new td),_i((!i.a&&(i.a=new ni(Ro,i,5)),i.a),c),kf(kn,rP,X)),!!YF(i)&&Tnn(n.a,kn,Zcn,Ox(n,YF(i))),!!ZF(i)&&Tnn(n.a,kn,Ycn,Ox(n,ZF(i))),!(0==(!i.e&&(i.e=new Dn(jt,i,10,9)),i.e).i)&&(s=new IMn(n,jn=new td),_i((!i.e&&(i.e=new Dn(jt,i,10,9)),i.e),s),kf(kn,eun,jn)),0!=(!i.g&&(i.g=new Dn(jt,i,9,10)),i.g).i&&(f=new OMn(n,$n=new td),_i((!i.g&&(i.g=new Dn(jt,i,9,10)),i.g),f),kf(kn,nun,$n))}(n.a,n.b,n.c,u(e,166),t)}function MV(n,e,t,i){MZ.call(this,n,e,t,i,0,0)}function VSn(n){ZW(),yV.call(this,n),this.a=-1}function JSn(n,e){PPn.call(this,e,1040),this.a=n}function QSn(){lMn.call(this,"COUNT_CHILDREN",0)}function kM(n,e){B7.call(this,n,e),this.a=this}function Ot(n,e){var t;return(t=BN(n,e)).i=2,t}function yM(n,e){return++n.j,n.Cj(e)}function Ke(n,e,t){return n.a=-1,kW(n,e.g,t),n}function YSn(n){return ep(),K(ZI,JS,40,n,0,1)}function ZSn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function vN(n,e,t){return new sSn(function $we(n){return 0>=n?new nX:function K4e(n){return 0>n?new nX:new PW(null,new jDn(n+1,n))}(n-1)}(n)._e(),t,e)}function Q6(n){if(!n)throw M(new w3(null))}function TV(n){if(n.c.e!=n.a)throw M(new Ho)}function AV(n){if(n.e.c!=n.b)throw M(new Ho)}function jM(n){for(Se(n);n.Ob();)n.Pb(),n.Qb()}function pN(n){D0(),this.a=(On(),new CL(Se(n)))}function SV(n){this.c=n,this.b=this.c.d.vc().Kc()}function nPn(n,e){return n.a+=ks(e,0,e.length),n}function sn(n,e){return Ln(e,n.c.length),n.c[e]}function ePn(n,e){return Ln(e,n.a.length),n.a[e]}function hd(n,e,t,i,r,c){return MKn(n,e,t,i,r,0,c)}function PV(n,e){return function Dbe(n,e){return $l(Yi($l(n.a).a,e.a))}(u(n,168),u(e,168))}function tPn(){tPn=N,_un=K(vb,J,168,256,0,1)}function iPn(){iPn=N,Uun=K(pb,J,191,256,0,1)}function rPn(){rPn=N,xun=K(Op,J,222,256,0,1)}function cPn(){cPn=N,Run=K(U8,J,180,128,0,1)}function IV(){_h(this,!1,!1,!1,!1)}function OV(n){zG.call(this,new h1),Fi(this,n)}function Y6(n){this.a=new Tv(n.gc()),Fi(this,n)}function uPn(n){this.c=n,this.a=new Av(this.c.a)}function oPn(n){this.a=n,this.c=new de,function t6e(n){var e,t,i,r;for(i=0,r=(t=n.a).length;i>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),eu(i&co,r&co,c&Kl)}(Wr(n)?ps(n):n,e))}function Zbe(n,e){return function pae(n,e){return Kn(),n==e?0:n?1:-1}((Jn(n),n),(Jn(e),e))}function TN(n,e){return at((Jn(n),n),(Jn(e),e))}function LM(n){this.b=new Vc(11),this.a=(x0(),n)}function ie(n){this.a=(kPn(),fQn),this.d=u(Se(n),51)}function PPn(n,e){this.c=0,this.d=n,this.b=64|e|yh}function KV(n,e){this.e=n,this.d=64&e?e|yh:e}function AN(n){this.b=null,this.a=(x0(),n||Yun)}function IPn(n){eM(this),this.g=n,UM(this),this.je()}function ad(n){Z1(),this.a=0,this.b=n-1,this.c=1}function _V(n,e,t,i){this.a=n,dT.call(this,n,e,t,i)}function HV(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function $3(n,e){if(n<0||n>=e)throw M(new kz)}function tw(n,e){return Qk(n,(Jn(e),new w9n(e)))}function _v(n,e){return Qk(n,(Jn(e),new g9n(e)))}function OPn(n,e,t){return function qDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I;if(i=e,h=t,n.b&&i.j==(en(),Wn)&&h.j==(en(),Wn)&&(I=i,i=h,h=I),tu(n.a,i)){if(bf(u(ee(n.a,i),49),h))return 1}else Xe(n.a,i,new Yt);if(tu(n.a,h)){if(bf(u(ee(n.a,h),49),i))return-1}else Xe(n.a,h,new Yt);if(tu(n.d,i)){if(bf(u(ee(n.d,i),49),h))return-1}else Xe(n.d,i,new Yt);if(tu(n.d,h)){if(bf(u(ee(n.a,h),49),i))return 1}else Xe(n.d,h,new Yt);if(i.j!=h.j)return-1==(A=function Ole(n,e){return Tc(n.g,e.g)}(i.j,h.j))?rs(n,h,i):rs(n,i,h),A;if(0!=i.e.c.length&&0!=h.e.c.length){if(n.b&&0!=(A=Hxn(i,h)))return-1==A?rs(n,h,i):1==A&&rs(n,i,h),A;if((c=u(sn(i.e,0),18).c.i)==(a=u(sn(h.e,0),18).c.i))return(r=u(m(u(sn(i.e,0),18),(V(),lt)),17).a)>(l=u(m(u(sn(h.e,0),18),lt),17).a)?rs(n,i,h):rs(n,h,i),rl?1:0;for(k=0,j=(p=n.c).length;k(l=u(m(g,lt),17).a)?rs(n,i,h):rs(n,h,i),rl?1:0):n.b&&0!=(A=Hxn(i,h))?(-1==A?rs(n,h,i):1==A&&rs(n,i,h),A):(s=0,d=0,vt(u(sn(i.g,0),18),lt)&&(s=u(m(u(sn(i.g,0),18),lt),17).a),vt(u(sn(h.g,0),18),lt)&&(d=u(m(u(sn(i.g,0),18),lt),17).a),f&&f==g?on(un(m(u(sn(i.g,0),18),Qf)))&&!on(un(m(u(sn(h.g,0),18),Qf)))?(rs(n,i,h),1):!on(un(m(u(sn(i.g,0),18),Qf)))&&on(un(m(u(sn(h.g,0),18),Qf)))?(rs(n,h,i),-1):(s>d?rs(n,i,h):rs(n,h,i),sd?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?rs(n,i,h):rs(n,h,i),sd?1:0))):0!=i.e.c.length&&0!=h.g.c.length?(rs(n,i,h),1):0!=i.g.c.length&&0!=h.e.c.length?(rs(n,h,i),-1):vt(i,(V(),lt))&&vt(h,lt)?((r=u(m(i,lt),17).a)>(l=u(m(h,lt),17).a)?rs(n,i,h):rs(n,h,i),rl?1:0):(rs(n,h,i),-1)}(n,u(e,12),u(t,12))}function LPn(n){return Nu(),0!=u(n,12).g.c.length}function DPn(n){return Nu(),0!=u(n,12).e.c.length}function iwe(n,e){e.Ug("General 'Rotator",1),function vLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,v;for(d=F(R(z(n,(ka(),Wq)))),on(un(z(n,k1n)))&&(a=u(z(n,(_g(),X2)),27),c=u(D(aJ(u(D((!a.e&&(a.e=new Dn(Xt,a,7,4)),a.e),(!a.e&&(a.e=new Dn(Xt,a,7,4)),a.e).i-1),74)),0),27),i=u(D(aJ(u(D((!a.e&&(a.e=new Dn(Xt,a,7,4)),a.e),0),74)),0),27),s=new W(c.i+c.g/2,c.j+c.f/2),r=new W(i.i+i.g/2,i.j+i.f/2),(t=d)<=0&&(t+=Rd),(g=y.Math.acos((s.a*r.a+s.b*r.b)/(y.Math.sqrt(s.a*s.a+s.b*s.b)*y.Math.sqrt(r.a*r.a+r.b*r.b))))<=0&&(g+=Rd),(e=y.Math.atan2(s.b,s.a))<=0&&(e+=Rd),d=Vrn-(e-t+g/2)),h=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));h.e!=h.i.gc();)v=(l=new W((f=u(ue(h),27)).i+f.g/2,f.j+f.f/2)).a*y.Math.cos(d)-l.b*y.Math.sin(d),l.b=l.a*y.Math.sin(d)+l.b*y.Math.cos(d),l.a=v,qo(f,l.a-f.g/2,l.b-f.f/2)}(n)}function NPn(n,e,t){return f2(),o4(n,e)&&o4(n,t)}function e5(n){return Xu(),!n.Hc(Xl)&&!n.Hc(qa)}function cwe(n){return n.e?lQ(n.e):null}function t5(n){return Wr(n)?""+n:Bqn(n)}function qV(n){var e;for(e=n;e.f;)e=e.f;return e}function o1(n,e,t,i){var r;(r=n.i).i=e,r.a=t,r.b=i}function q(n,e,t,i){ni.call(this,n,e,t),this.b=i}function ji(n,e,t,i,r){P$.call(this,n,e,t,i,r,-1)}function i5(n,e,t,i,r){Ek.call(this,n,e,t,i,r,-1)}function DM(n,e,t,i){ek.call(this,n,e,t),this.b=i}function $Pn(n){LMn.call(this,n,!1),this.a=!1}function FPn(){lMn.call(this,"LOOKAHEAD_LAYOUT",1)}function xPn(n){this.b=n,Nv.call(this,n),HTn(this)}function BPn(n){this.b=n,q7.call(this,n),qTn(this)}function iw(n,e,t){this.a=n,Fv.call(this,e,t,5,6)}function UV(n,e,t,i){this.b=n,ni.call(this,e,t,i)}function RPn(n,e){this.b=n,G8n.call(this,n.b),this.a=e}function KPn(n){this.a=ERn(n.a),this.b=new Hu(n.b)}function GV(n,e){D0(),xhe.call(this,n,tA(new _u(e)))}function NM(n,e){return Ze(),new uJ(n,e,0)}function SN(n,e){return Ze(),new uJ(6,n,e)}function Ri(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function tu(n,e){return Mi(e)?QN(n,e):!!br(n.f,e)}function PN(n,e){return e.Vh()?ba(n.b,u(e,54)):e}function owe(n,e){return Tn(n.substr(0,e.length),e)}function qh(n){return new ie(new aW(n.a.length,n.a))}function $M(n){return new W(n.c+n.b/2,n.d+n.a/2)}function IN(n){return typeof n===$y||typeof n===MB}function qu(n){n.f=new uTn(n),n.i=new oTn(n),++n.g}function _Pn(n){if(!n)throw M(new tc);return n.d}function Hv(n){var e;return oe(null!=(e=T5(n))),e}function fwe(n){var e;return oe(null!=(e=function M5e(n){var e;return null==(e=n.a[n.c-1&n.a.length-1])?null:(n.c=n.c-1&n.a.length-1,Dt(n.a,n.c,null),e)}(n))),e}function F3(n,e){var t;return uQ(e,t=n.a.gc()),t-e}function oi(n,e){return null==n.a.zc(e,n)}function ik(n,e){return null==n.a.zc(e,(Kn(),Pa))}function zV(n){return new Mn(null,function bwe(n,e){return function g4e(n,e){if(0>n||n>e)throw M(new Rz("fromIndex: 0, toIndex: "+n+Xtn+e))}(e,n.length),new JSn(n,e)}(n,n.length))}function XV(n,e,t){return sGn(n,u(e,42),u(t,176))}function qv(n,e,t){return Xs(n.a,e),jV(n.b,e.g,t)}function B(n,e,t,i){Rxn(e,t,n.length),function lwe(n,e,t,i){var r;for(r=e;r0?1:0}function rk(n,e){NTn(n,L(e,160)?e:u(e,2036).Rl())}function QV(n,e){if(null==n)throw M(new Ev(e))}function YV(n,e){return!!e&&Fi(n,e)}function c5(n){return 0==n.e?n:new dd(-n.e,n.d,n.a)}function ck(n,e){Nt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function UPn(n,e){return n.c?UPn(n.c,e):nn(n.b,e),n}function vwe(n,e,t){var i;return i=lw(n,e),d$(n,e,t),i}function GPn(n,e,t){var i;for(i=0;i0?(gA(n,t,0),t.a+=String.fromCharCode(i),gA(n,t,r=R8e(e,c)),c+=r-1):39==i?c+1=n.g}function Dt(n,e,t){return function sae(n){if(!n)throw M(new IL)}(null==t||function tPe(n,e){var t;switch(Lk(n)){case 6:return Mi(e);case 7:return Jb(e);case 8:return Vb(e);case 3:return Array.isArray(e)&&!((t=Lk(e))>=14&&t<=16);case 11:return null!=e&&typeof e===MB;case 12:return null!=e&&(typeof e===$y||typeof e==MB);case 0:return JF(e,n.__elementTypeId$);case 2:return IN(e)&&e.Tm!==Hb;case 1:return IN(e)&&e.Tm!==Hb||JF(e,n.__elementTypeId$);default:return!0}}(n,t)),n[e]=t}function iJ(n,e){return Gn(e,n.length+1),n.substr(e)}function KN(n,e){for(Jn(e);n.c0;)n=n<<1|(n<0?1:0);return n}function yIn(n,e){var t;return t=new xc(n),Rn(e.c,t),t}function jIn(n,e){n.u.Hc((Xu(),Xl))&&function _Ee(n,e){var t,i,r,c;for(t=(c=u(Er(n.b,e),127)).a,r=u(u(ut(n.r,e),21),87).Kc();r.Ob();)(i=u(r.Pb(),117)).c&&(t.a=y.Math.max(t.a,EV(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}(n,e),function c3e(n,e){var t;n.C&&((t=u(Er(n.b,e),127).n).d=n.C.d,t.a=n.C.a)}(n,e)}function jc(n,e){return x(n)===x(e)||null!=n&&it(n,e)}function Er(n,e){return kN(n.a,e)?n.b[u(e,22).g]:null}function _M(n){return!n.n&&(n.n=new q(Tr,n,1,7)),n.n}function HN(n){return!n.c&&(n.c=new q(Yu,n,9,9)),n.c}function aJ(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function uk(n){return n.j.c.length=0,bJ(n.c),function Oae(n){return Ub(n.j.c,0),n.a=-1,n}(n.a),n}function _3(n){return n.e==gm&&function pfe(n,e){n.e=e}(n,function X8e(n,e){var t,i;return(t=e.qi(n.a))&&null!=(i=Oe(jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),Je)))?i:e.xe()}(n.g,n.b)),n.e}function ok(n){return n.f==gm&&function kfe(n,e){n.f=e}(n,function B7e(n,e){var t,i;return(t=e.qi(n.a))?(i=Oe(jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),mP)),Tn(bj,i)?n5(n,Mo(e.qk())):i):null}(n.g,n.b)),n.f}function We(n,e,t,i){return GFn(n,e,t,!1),iA(n,i),n}function EIn(n,e){this.b=n,ON.call(this,n,e),HTn(this)}function CIn(n,e){this.b=n,JW.call(this,n,e),qTn(this)}function f5(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function dJ(n,e){this.b=n,this.c=e,this.a=new Av(this.b)}function Gi(n,e){return Gn(e,n.length),n.charCodeAt(e)}function nge(n,e){nZ(n,F(Ol(e,"x")),F(Ol(e,"y")))}function ege(n,e){nZ(n,F(Ol(e,"x")),F(Ol(e,"y")))}function rt(n,e){return wa(n),new Mn(n,new CQ(e,n.a))}function Kr(n,e){return wa(n),new Mn(n,new fQ(e,n.a))}function cw(n,e){return wa(n),new SW(n,new DDn(e,n.a))}function HM(n,e){return wa(n),new PW(n,new NDn(e,n.a))}function MIn(n,e,t){t.a?cu(n,e.b-n.f/2):ru(n,e.a-n.g/2)}function bJ(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Hg(n){var e;return!(e=n.b)&&(n.b=e=new x8n(n)),e}function qN(n){return function U4e(n){var e;return L(e=m(n,(V(),ot)),167)?SBn(u(e,167)):null}(n)||null}function TIn(n,e){var t,i;return(t=n/e)>(i=di(t))&&++i,i}function sge(n,e,t){(function hIe(n,e){var t,i,r,c;for(function p4e(n){var e;for(e=0;e0&&vKn(this)}function KIn(n,e){this.a=n,fae.call(this,n,u(n.d,15).fd(e))}function vJ(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function _In(n,e,t,i){this.b=n,this.c=i,VC.call(this,e,t)}function zv(n){return n.f||(n.f=new j3(n,n.c))}function HIn(n,e){return Yg(n.j,e.s,e.c)+Yg(e.e,n.s,n.c)}function qIn(n,e){n.e&&!n.e.a&&(Iyn(n.e,e),qIn(n.e,e))}function UIn(n,e){n.d&&!n.d.a&&(Iyn(n.d,e),UIn(n.d,e))}function GIn(){Tx(this,new PG),this.wb=(ra(),_n),m3()}function zIn(n){this.b=new Z,si(this.b,this.b),this.a=n}function pJ(n,e){new yt,this.a=new Su,this.b=n,this.c=e}function x0(){x0=N,Yun=new wl,E_=new wl,Zun=new nc}function On(){On=N,Vi=new Si,il=new er,PP=new lo}function mJ(){mJ=N,qQn=new nbn,GQn=new NV,UQn=new ebn}function Xv(){Xv=N,xP=new Z,H_=new de,__=new Z}function GM(n,e){if(null==n)throw M(new Ev(e));return n}function zM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function st(n){return!n.q&&(n.q=new q(Ds,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(Mu,n,21,17)),n.s}function yge(n){return Se(n),DRn(new ie(ce(n.a.Kc(),new Vn)))}function wd(n,e,t){kf(n,e,new zE(YW(t)))}function VN(n,e,t,i,r,c){Ek.call(this,n,e,t,i,r,c?-2:-1)}function XIn(n,e,t,i){RX.call(this,e,t),this.b=n,this.a=i}function WIn(n,e){qfe.call(this,new AN(n)),this.a=n,this.b=e}function kJ(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function q3(){var n,e;q3=N,e=!function I8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}(),n=new FE,p_=e?new ZO:n}function JN(n){return On(),L(n,59)?new zL(n):new iM(n)}function XM(n){return L(n,16)?new Y6(u(n,16)):function tbe(n){var e;return B$(e=new Yt,n),e}(n.Kc())}function yJ(n){return n&&n.hashCode?n.hashCode():T0(n)}function QN(n,e){return null==e?!!br(n.f,null):function _be(n,e){return void 0!==n.a.get(e)}(n.i,e)}function Tge(n,e){var t;return(t=iW(n.a,e))&&(e.d=null),t}function VIn(n,e,t){return!!n.f&&n.f.ef(e,t)}function sk(n,e,t,i){Dt(n.c[e.g],t.g,i),Dt(n.c[t.g],e.g,i)}function YN(n,e,t,i){Dt(n.c[e.g],e.g,t),Dt(n.b[e.g],e.g,i)}function JIn(n,e){this.g=n,this.d=S(T(cl,1),A1,10,0,[e])}function QIn(n){this.c=n,this.b=new i1(u(Se(new tbn),50))}function YIn(n){this.c=n,this.b=new i1(u(Se(new ewn),50))}function ZIn(n){this.b=n,this.a=new i1(u(Se(new Nbn),50))}function nOn(){this.b=new Yt,this.d=new yt,this.e=new yz}function jJ(){this.c=new Oi,this.d=new Oi,this.e=new Oi}function B0(){this.a=new Su,this.b=(Ao(3,Dw),new Vc(3))}function s1(n,e){this.e=n,this.a=pi,this.b=nUn(e),this.c=e}function WM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function eOn(n,e,t,i,r,c){this.a=n,U$.call(this,e,t,i,r,c)}function tOn(n,e,t,i,r,c){this.a=n,U$.call(this,e,t,i,r,c)}function oa(n,e,t,i,r,c,s){return new w$(n.e,e,t,i,r,c,s)}function Sge(n,e,t){return t>=0&&Tn(n.substr(t,e.length),e)}function iOn(n,e){return L(e,149)&&Tn(n.b,u(e,149).Pg())}function rOn(n,e){var t;return YLn(t=n.b.Qc(e),n.b.gc()),t}function fk(n,e){if(null==n)throw M(new Ev(e));return n}function _r(n){return n.u||(no(n),n.u=new xAn(n,n)),n.u}function ZN(n){this.a=(On(),L(n,59)?new zL(n):new iM(n))}function vu(n){return u(qn(n,16),29)||n.ii()}function VM(n,e){var t;return t=sd(n.Rm),null==e?t:t+": "+e}function Xo(n,e,t){return $i(e,t,n.length),n.substr(e,t-e)}function cOn(n,e){sM.call(this),DQ(this),this.a=n,this.c=e}function Oge(n){oC(),y.setTimeout(function(){throw n},0)}function JM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function hk(n){return 0==n.b.b?n.a.sf():bN(n.b)}function EJ(n){return x(n.a)===x((tF(),JU))&&function ZIe(n){var e,t,i,r,c,s,f,h,l,a;for(e=new dL,t=new dL,l=Tn(aj,(r=r8(n.b,Be))?Oe(jf((!r.b&&(r.b=new wo((In(),hr),kc,r)),r.b),Cs)):null),h=0;h0&&n.b>0&&(n.g=CM(n.c,n.b,n.a))}function i2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=CM(n.c,n.b,n.a))}function uOn(n,e){(function tfe(n,e){n.a=e})(this,new W(n.a,n.b)),function ife(n,e){n.b=e}(this,Z7(e))}function R0(){Ufe.call(this,new Tv(aw(12))),sW(!0),this.a=2}function n$(n,e,t){Ze(),h0.call(this,n),this.b=e,this.a=t}function CJ(n,e,t){Uo(),YE.call(this,e),this.a=n,this.b=t}function oOn(n){var e;n.b=e=n.c.d.b,n.a=n.c.d,e.a=n.c.d.b=n}function Bc(n,e){return null==e?Rr(br(n.f,null)):A6(n.i,e)}function sOn(n,e,t,i,r){return new Sx(n,(J3(),A_),e,t,i,r)}function QM(n,e){return VLn(e),function S4e(n,e,t){return uen(n,0,e,0,y.Math.min(t,n.length),!0),e}(n,K(ye,_e,28,e,15,1),e)}function YM(n,e){return GM(n,"set1"),GM(e,"set2"),new QEn(n,e)}function fOn(n,e){var i;return FGn(n,e,i=new gl),i.d}function e$(n,e,t,i){var r;r=new KAn,e.a[t.g]=r,qv(n.b,i,r)}function u2e(n,e){return et(oM(function M4e(n,e){return gi(Bi(u(ee(n.g,e),8)),eW(u(ee(n.f,e),470).b))}(n.f,e)),n.f.d)}function lk(n){(function F4e(n){var t;for(t=new C(VRn(n));t.a>16!=3?null:u(n.Cb,27)}function Df(n){return n.Db>>16!=9?null:u(n.Cb,27)}function dOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function K0(){K0=N,xa=new AX(jp,0),G2=new AX(Ep,1)}function wh(){wh=N,Db=new CX(Ep,0),N1=new CX(jp,1)}function Nf(){Nf=N,n0=new MX(lR,0),Yf=new MX("UP",1)}function bOn(){bOn=N,lQn=Ce((rC(),S(T(hQn,1),G,549,0,[w_])))}function wOn(n){var e;return EY(e=new lC(aw(n.length)),n),e}function gOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function El(n,e){if(null==e)throw M(new pv);return function L8e(n,e){var i,t=n.a;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(hF(),m_)[typeof i];return r?r(i):xY(typeof i)}(n,e)}function dk(n,e){var t;t=n.q.getHours(),n.q.setDate(e),c8(n,t)}function TJ(n,e,t){var i;(i=n.Ih(e))>=0?n.bi(i,t):Cen(n,e,t)}function vOn(n,e){var t;return(t=n.Ih(e))>=0?n.Wh(t):Nx(n,e)}function pOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function t$(n,e,t){var i;i=jxn(n,e,t),n.b=new HT(i.c.length)}function qg(n,e,t){nT(),n&&Xe(XU,n,e),n&&Xe(TE,n,t)}function i$(n,e){return y.Math.abs(n)>16!=7?null:u(n.Cb,241)}function U3(n){return n.Db>>16!=6?null:u(n.Cb,241)}function yOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function Ct(n){return n.Db>>16!=11?null:u(n.Cb,27)}function uw(n){return n.Db>>16!=17?null:u(n.Cb,29)}function jOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function SJ(n){return wa(n),rt(n,new S9n(new Yt))}function EOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function COn(n,e){eM(this),this.f=e,this.g=n,UM(this),this.je()}function MOn(n,e){this.a=n,this.c=Bi(this.a),this.b=new WM(e)}function TOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new Hu(t))}function AOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new Hu(t))}function SOn(n){this.a=n,this.b=K(Lie,J,2043,n.e.length,0,2)}function POn(){this.a=new hh,this.e=new Yt,this.g=0,this.i=0}function nT(){nT=N,XU=new de,TE=new de,function ale(n,e){n&&Xe(TE,n,e)}(PQn,new vmn)}function IOn(){IOn=N,gie=Lu(new ei,(zi(),Gr),(nr(),Ij))}function PJ(){PJ=N,vie=Lu(new ei,(zi(),Gr),(nr(),Ij))}function OOn(){OOn=N,mie=Lu(new ei,(zi(),Gr),(nr(),Ij))}function LOn(){LOn=N,xie=Ke(new ei,(zi(),Gr),(nr(),J8))}function Eo(){Eo=N,Kie=Ke(new ei,(zi(),Gr),(nr(),J8))}function DOn(){DOn=N,_ie=Ke(new ei,(zi(),Gr),(nr(),J8))}function r$(){r$=N,zie=Ke(new ei,(zi(),Gr),(nr(),J8))}function h5(n,e,t,i,r,c){return new Sl(n.e,e,n.Lj(),t,i,r,c)}function Pr(n,e,t){return null==e?Yc(n.f,null,t):J0(n.i,e,t)}function Qi(n,e){n.c&&pu(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function Di(n,e){n.c&&pu(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function cc(n,e){n.i&&pu(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Pi(n,e){n.d&&pu(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function c$(n,e){n.a&&pu(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function u$(n,e){n.b&&pu(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function NOn(n,e){(function Iwe(n,e,t){u(e.b,68),iu(e.a,new cV(n,t,e))})(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68)}function eT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),Jc(n,e)}function o$(n,e){L(n.Cb,90)&&Mw(no(u(n.Cb,90)),4),Jc(n,e)}function $On(n){var t;return m3(),Y3(t=new l0,n),t}function FOn(n){var t;return m3(),Y3(t=new l0,n),t}function xOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function C2e(n,e,t){return nn(n.a,(KM(),rx(e,t),new p0(e,t))),n}function Rc(n,e){return ar(),F$(e)?new kM(e,n):new B7(e,n)}function bk(n){return mh(),Ac(n,0)>=0?ga(n):c5(ga(d1(n)))}function BOn(n,e){var t;return(t=u(vw(zv(n.a),e),16))?t.gc():0}function ROn(n,e,t){hBn(e,t,n.c.length),Qz(n.c,e,t-e)}function f1(n,e,t){hBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Wv(n){this.c=new yt,this.b=n.b,this.d=n.c,this.a=n.a}function s$(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function gd(n,e,t,i){this.c=n,this.d=i,c$(this,e),u$(this,t)}function IJ(n,e){Hfe.call(this,new Tv(aw(n))),Ao(e,Nzn),this.a=e}function KOn(n,e,t){return new Sx(n,(J3(),T_),null,!1,e,t)}function _On(n,e,t){return new Sx(n,(J3(),S_),e,t,null,!1)}function $f(n){return oc(S(T(yi,1),J,8,0,[n.i.n,n.n,n.a]))}function HOn(){HOn=N,_re=Lu(new ei,(lp(),k9),(i8(),Aln))}function tT(){tT=N,Rq=new SX("DFS",0),r1n=new SX("BFS",1)}function qOn(n,e,t){var i;(i=new Epn).b=e,i.a=t,++e.b,nn(n.d,i)}function ow(n,e){if(n<0||n>e)throw M(new Ar(Qtn+n+Ytn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ar(Qtn+n+Ytn+e))}function Gn(n,e){if(n<0||n>=e)throw M(new Bz(Qtn+n+Ytn+e))}function Pn(n,e){this.b=(Jn(n),n),this.a=e&Nw?e:64|e|yh}function OJ(n){return wa(n),x0(),x0(),ST(n,E_)}function _0(n){return Se(n),L(n,16)?new Hu(u(n,16)):D3(n.Kc())}function LJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return la(function Jbe(n,e){return eu(n.l&e.l,n.m&e.m,n.h&e.h)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function vf(n,e){return la(function Qbe(n,e){return eu(n.l|e.l,n.m|e.m,n.h|e.h)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function f$(n,e){return la(function Ybe(n,e){return eu(n.l^e.l,n.m^e.m,n.h^e.h)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function UOn(n,e){var t,i;return i=F3(n,e),t=n.a.fd(i),new VEn(n,t)}function E(n){return oe(n.a0&&0==n.a[--n.d];);0==n.a[n.d++]&&(n.e=0)}function pLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function mLn(n,e){var t;n.e=new Sz,Jt(t=Aw(e),n.c),Dqn(n,t,0)}function ti(n,e,t,i){var r;(r=new jG).a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;(r=new jG).a=e,r.b=t,r.c=i,xe(n.b,r)}function kLn(n,e,t){if(n<0||et)throw M(new Ar(function Bje(n,e,t){return n<0||n>t?Xnn(n,t,"start index"):e<0||e>t?Xnn(e,t,"end index"):t8("end index (%s) must not be less than start index (%s)",S(T(pi,1),xn,1,5,[Y(e),Y(n)]))}(n,e,t)))}function vk(n,e){if(n<0||n>=e)throw M(new Ar(function wEe(n,e){if(n<0)return t8(Pzn,S(T(pi,1),xn,1,5,["index",Y(n)]));if(e<0)throw M(new Un(Izn+e));return t8("%s (%s) must be less than size (%s)",S(T(pi,1),xn,1,5,["index",Y(n),Y(e)]))}(n,e)));return n}function Ug(n){return j6(),L(n.g,10)?u(n.g,10):null}function Ave(n){return!Hg(n).dc()&&(function Jle(n,e){Se(e),Hg(n).Jc(new o7)}(n,new JO),!0)}function pd(n){var e;return Wr(n)?-0==(e=n)?0:e:function H3e(n){return nnn(n,(Q3(),$un))<0?-function C1e(n){return n.l+n.m*yp+n.h*Nd}(b4(n)):n.l+n.m*yp+n.h*Nd}(n)}function yLn(n,e){return!!L(e,44)&&ux(n.a,u(e,44))}function jLn(n,e){return!!L(e,44)&&ux(n.a,u(e,44))}function ELn(n,e){return!!L(e,44)&&ux(n.a,u(e,44))}function BJ(n){var e;return ua(n),e=new _o,Tg(n.a,new M9n(e)),e}function RJ(){var n,e;return n=new l0,nn(y0n,e=n),e}function iT(n){var e;return ua(n),e=new nd,Tg(n.a,new T9n(e)),e}function CLn(n){Z$.call(this,n,(J3(),M_),null,!1,null,!1)}function MLn(){MLn=N,LYn=Ce((vC(),S(T(Ion,1),G,489,0,[B_])))}function TLn(){TLn=N,jln=pIn(Y(1),Y(4)),yln=pIn(Y(1),Y(2))}function rT(n){return new Vc((Ao(n,PB),TT(Yi(Yi(5,n),n/10|0))))}function ALn(n){return u(Hf(n,K(_Zn,NXn,12,n.c.length,0,1)),2042)}function a5(n,e){(function bDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$;if(I=0,0==e.f.a)for(j=new C(n);j.a2e3&&(bQn=n,MP=y.setTimeout(Fhe,10)),0==CP++&&(function Y3e(n){var e,t;if(n.a){t=null;do{e=n.a,n.a=null,t=g_n(e,t)}while(n.a);n.a=t}}((Nz(),Oun)),!0)}();try{return function jae(n,e,t){return n.apply(e,t)}(n,e,t)}finally{!function Ape(n){n&&function Z3e(n){var e,t;if(n.b){t=null;do{e=n.b,n.b=null,t=g_n(e,t)}while(n.b);n.b=t}}((Nz(),Oun)),--CP,n&&-1!=MP&&(function ple(n){y.clearTimeout(n)}(MP),MP=-1)}(i)}}function H0(n,e){var t,i;return i=null,(t=El(n,e))&&(i=t.pe()),i}function d5(n,e){var t,i;return i=null,(t=El(n,e))&&(i=t.se()),i}function G3(n,e){var t,i;return i=null,(t=lw(n,e))&&(i=t.se()),i}function Cl(n,e){var t,i;return i=null,(t=El(n,e))&&(i=Bnn(t)),i}function KJ(n,e,t){this.d=new B7n(this),this.e=n,this.i=e,this.f=t}function SLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function PLn(n,e,t,i){TTn(this),this.c=n,this.e=e,this.f=t,this.b=i}function _J(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ILn(n,e,t,i){return L(t,59)?new uAn(n,e,t,i):new _V(n,e,t,i)}function z3(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function OLn(n){if(n.e.g!=n.b)throw M(new Ho);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function HJ(n,e){Jn(e),Dt(n.a,n.c,e),n.c=n.c+1&n.a.length-1,ZRn(n)}function sa(n,e){Jn(e),n.b=n.b-1&n.a.length-1,Dt(n.a,n.b,e),ZRn(n)}function LLn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function xve(n){return new Pn(function j4e(n,e){var t,i;for(On(),i=new Z,t=0;t0&&Nc(n.g,0,e,0,n.i),e}function RLn(n,e){var t;for(t=n.j.c.length;tn.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(h=function nle(n){return(n.c+n.a)/2}((Ln(i=function tSe(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p;if(c=t,t=t&&(i=e,h.c<=(l=(h.c+h.a)/2)-t&&P0(n,i++,new hN(h.c,l-t)),(f=l+t)<=h.a&&(c=new hN(f,h.a),ow(i,n.c.length),S6(n.c,i,c)))}(e,i,t)),h}(r,t,i))),function Zye(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new gd((pf(),Fa),e,c,1),new gd(Fa,c,s,1),r=new C(t);r.a"+NJ(n.d):"e_"+T0(n)}function _i(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function yDn(n,e){var t;for(t=e;t;)A0(n,-t.i,-t.j),t=Ct(t);return n}function JJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Vo(n,e,t){var i;return Ln(e,n.c.length),i=n.c[e],n.c[e]=t,i}function QJ(n,e,t){n.a.c.length=0,function rOe(n,e,t){var i,r,s,f,l,a,d,g,v;n.c=0,n.b=0,i=2*e.c.a.c.length+1;n:for(d=t.Kc();d.Ob();){if(v=0,f=(a=u(d.Pb(),12)).j==(en(),zn)||a.j==ae){if(!(g=u(m(a,(V(),Wu)),10)))continue;v+=AAe(n,i,a,g)}else{for(l=new C(a.g);l.a0?(n.f[a.p]=v/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=v)}}(n,e,t),0==n.a.c.length||function OSe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new C(n.a);f.a0?pqn(n,e):HBn(n,-e)}function Qv(n,e){return 0==e||0==n.e?n:e>0?HBn(n,e):pqn(n,-e)}function iQ(n){tle.call(this,null==n?yu:Jr(n),L(n,82)?u(n,82):null)}function IDn(n){var e;return n.c||L(e=n.r,90)&&(n.c=u(e,29)),n.c}function k$(n){var e;return qr(e=new B0,n),U(e,(cn(),Nr),null),e}function ODn(n){var t;return t=n.d.i,n.c.i.k==(Xn(),Qt)&&t.k==Qt}function y$(n){return eu(n&co,n>>22&co,n<0?Kl:0)}function Xpe(n,e){var t,i;(t=u(function t5e(n,e){Se(n);try{return n.Bc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return null;throw M(t)}}(n.c,e),16))&&(i=t.gc(),t.$b(),n.d-=i)}function j$(n,e,t){var i;return(i=n.Ih(e))>=0?n.Lh(i,t,!0):ib(n,e,t)}function mk(n,e){n._i(n.i+1),G6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function g5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function LDn(n,e,t){var i;E5(i=new tW(n.a),n.a.a),Yc(i.f,e,t),n.a.a=i}function rQ(n,e,t,i){var r;for(r=0;re)throw M(new Ar(Xnn(n,e,"index")));return n}function l1(n,e){var t;return Ln(e,n.c.length),t=n.c[e],Qz(n.c,e,1),t}function oQ(n,e){var t,i;return Jn(n),t=n,Jn(e),t==(i=e)?0:tn.d[s.p]&&(t+=JJ(n.b,c)*u(h.b,17).a,sa(n.a,Y(c)));for(;!v6(n.a);)PQ(n.b,u(Hv(n.a),17).a)}return t}(n,t)}function C$(n){var e;return 0==(e=n.b).b?null:u(is(e,0),65).b}function lQ(n){return n.a?n.e?lQ(n.e):null:n}function KDn(n){var e;return n.a||L(e=n.r,156)&&(n.a=u(e,156)),n.a}function _Dn(n,e){return!!tu(n.a,e)&&(Yv(n.a,e),!0)}function Zv(n,e,t){return vk(e,n.e.Rd().gc()),vk(t,n.c.Rd().gc()),n.a[e][t]}function aT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function dT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function kk(){this.b=new yt,this.a=new yt,this.b=new yt,this.a=new yt}function X3(){var n,e;X3=N,m3(),e=new eC,UO=e,n=new DL,GO=n}function HDn(n){var e;for(ua(n),e=0;n.a.Bd(new V0n);)e=Yi(e,1);return e}function bT(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function wT(){wT=N,O9=new ct("org.eclipse.elk.labels.labelManager")}function qDn(){qDn=N,Hsn=new Pt("separateLayerConnections",(JT(),fH))}function pf(){pf=N,og=new TX("REGULAR",0),Fa=new TX("CRITICAL",1)}function yk(){yk=N,aU=new DX("FIXED",0),wO=new DX("CENTER_NODE",1)}function gT(){gT=N,Xsn=new pX("QUADRATIC",0),kH=new pX("SCANLINE",1)}function UDn(){UDn=N,vne=Ce((k5(),S(T(Jsn,1),G,322,0,[Y8,Dj,Vsn])))}function GDn(){GDn=N,pne=Ce((DT(),S(T(Ysn,1),G,351,0,[Qsn,dI,yH])))}function zDn(){zDn=N,dne=Ce((X0(),S(T(lH,1),G,372,0,[yb,La,kb])))}function XDn(){XDn=N,jne=Ce((Md(),S(T(yne,1),G,460,0,[CH,Im,D2])))}function WDn(){WDn=N,Sne=Ce((l4(),S(T(NH,1),G,299,0,[LH,DH,Nj])))}function VDn(){VDn=N,Ine=Ce((Pl(),S(T(Pne,1),G,311,0,[$j,$2,xp])))}function JDn(){JDn=N,iie=Ce((I5(),S(T(nln,1),G,390,0,[fq,Zhn,UI])))}function QDn(){QDn=N,lie=Ce((XT(),S(T(dln,1),G,387,0,[lln,pq,aln])))}function YDn(){YDn=N,aie=Ce((A5(),S(T(bln,1),G,349,0,[kq,mq,zj])))}function ZDn(){ZDn=N,hie=Ce((wr(),S(T(fie,1),G,463,0,[b9,Vu,nu])))}function nNn(){nNn=N,die=Ce((m4(),S(T(gln,1),G,350,0,[yq,wln,w9])))}function eNn(){eNn=N,bie=Ce((LT(),S(T(mln,1),G,352,0,[pln,jq,vln])))}function tNn(){tNn=N,wie=Ce((QT(),S(T(kln,1),G,388,0,[Eq,qm,ug])))}function iNn(){iNn=N,gre=Ce((S5(),S(T(xln,1),G,392,0,[Fln,Tq,Vj])))}function rNn(){rNn=N,Vre=Ce((Xk(),S(T(l1n,1),G,393,0,[cO,f1n,h1n])))}function cNn(){cNn=N,gce=Ce((zT(),S(T(P1n,1),G,300,0,[Jq,S1n,A1n])))}function uNn(){uNn=N,vce=Ce((aA(),S(T(I1n,1),G,445,0,[nE,sO,Qq])))}function oNn(){oNn=N,mce=Ce((EA(),S(T(pce,1),G,456,0,[Yq,nU,Zq])))}function sNn(){sNn=N,jce=Ce((uA(),S(T(D1n,1),G,394,0,[L1n,iU,O1n])))}function fNn(){fNn=N,Uce=Ce((mT(),S(T(Y1n,1),G,439,0,[sU,Q1n,J1n])))}function hNn(){hNn=N,Oie=Ce((z0(),S(T(Iie,1),G,464,0,[Xj,g9,WI])))}function lNn(){lNn=N,ZQn=Ce((Gu(),S(T(YQn,1),G,471,0,[Oh,Ia,Ys])))}function aNn(){aNn=N,QQn=Ce((yf(),S(T(qw,1),G,237,0,[vc,Zc,pc])))}function dNn(){dNn=N,eYn=Ce((mu(),S(T(nYn,1),G,472,0,[Tf,Oa,Zs])))}function bNn(){bNn=N,KQn=Ce((zu(),S(T(Dr,1),G,108,0,[con,Yr,Hw])))}function wNn(){wNn=N,yZn=Ce((v5(),S(T(Yon,1),G,391,0,[X_,z_,W_])))}function gNn(){gNn=N,toe=Ce((Ll(),S(T(Ldn,1),G,346,0,[MO,B1,R9])))}function vNn(){vNn=N,Wce=Ce((Zk(),S(T(fU,1),G,444,0,[aO,dO,bO])))}function pNn(){pNn=N,Yue=Ce((Kf(),S(T(kdn,1),G,278,0,[Jm,lg,Qm])))}function mNn(){mNn=N,goe=Ce((cp(),S(T(Rdn,1),G,280,0,[Bdn,dg,OO])))}function Bf(n,e){return!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),RF(n.o,e)}function aQ(n){var e,i,r;r=n.d,e=n.a,i=n.c,n.d=n.b,n.a=i,n.b=r,n.c=e}function jk(n){return!n.g&&(n.g=new qE),!n.g.c&&(n.g.c=new kyn(n)),n.g.c}function M$(n,e,t,i){var r;return function bPe(n,e,t,i,r){var c,s;if(c=Yi(vi(e[0],vr),vi(i[0],vr)),n[0]=Ae(c),c=I0(c,32),t>=r){for(s=1;st||e=0?n.Lh(t,!0,!0):ib(n,e,!0)}function O3e(n){for(;!n.a;)if(!rSn(n.c,new A9n(n)))return!1;return!0}function np(n){return Se(n),L(n,204)?u(n,204):new U8n(n)}function vT(){vT=N,kue=new M4n,jue=new T4n,yue=function k6e(n,e,t,i){return KM(),new Dz(S(T(Ud,1),bS,44,0,[(rx(n,e),new p0(n,e)),(rx(t,i),new p0(t,i))]))}((Ue(),NU),kue,Ra,jue)}function pT(){pT=N,o1n=new IX("LEAF_NUMBER",0),Gq=new IX("NODE_SIZE",1)}function I$(n){n.a=K(ye,_e,28,n.b+1,15,1),n.c=K(ye,_e,28,n.b,15,1),n.d=0}function jQ(n,e){if(null==n.g||e>=n.i)throw M(new FD(e,n.i));return n.g[e]}function ENn(n,e,t){if(g4(n,t),null!=t&&!n.fk(t))throw M(new IL);return t}function O$(n,e){return 10!=Lk(e)&&S(po(e),e.Sm,e.__elementTypeId$,Lk(e),n),n}function V3(n,e,t,i){x0(),i=i||Yun,Wnn(n.slice(e,t),n,e,t,-e,i)}function Jo(n,e,t,i,r){return e<0?ib(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function CNn(){CNn=N,NQn=Ce((J3(),S(T(IP,1),G,304,0,[M_,T_,A_,S_])))}function J3(){J3=N,M_=new MC("All",0),T_=new bTn,A_=new ETn,S_=new dTn}function Gu(){Gu=N,Oh=new oD(jp,0),Ia=new oD(em,1),Ys=new oD(Ep,2)}function MNn(){MNn=N,cS(),P0n=Mt,Cse=fi,I0n=new h7(Mt),Mse=new h7(fi)}function TNn(){TNn=N,TYn=Ce((V0(),S(T(MYn,1),G,417,0,[kj,mj,F_,x_])))}function ANn(){ANn=N,OYn=Ce((_5(),S(T(IYn,1),G,406,0,[Mj,NP,$P,Tj])))}function SNn(){SNn=N,SYn=Ce((sp(),S(T(AYn,1),G,332,0,[jj,yj,Ej,Cj])))}function PNn(){PNn=N,FZn=Ce((Sd(),S(T(tsn,1),G,389,0,[zw,esn,Z_,nH])))}function INn(){INn=N,IZn=Ce((a4(),S(T(PZn,1),G,416,0,[mb,Gw,Uw,S2])))}function ONn(){ONn=N,une=Ce((_f(),S(T(cne,1),G,421,0,[Fp,Em,Cm,hH])))}function LNn(){LNn=N,VZn=Ce((JT(),S(T(WZn,1),G,371,0,[fH,oI,sI,Oj])))}function DNn(){DNn=N,rie=Ce((kw(),S(T(lq,1),G,203,0,[GI,hq,U2,q2])))}function NNn(){NNn=N,oie=Ce((vh(),S(T(fln,1),G,284,0,[D1,sln,bq,wq])))}function Tk(){Tk=N,rfn=new kX(Th,0),gI=new kX("IMPROVE_STRAIGHTNESS",1)}function $Nn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Zv(n,i,t)}function FNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)D(n,e);return UJ(n)}function EQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function xNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function BNn(n,e){if(e.a)throw M(new ic(iXn));oi(n.a,e),e.a=n,!n.j&&(n.j=e)}function CQ(n,e){VC.call(this,e.zd(),-16449&e.yd()),Jn(n),this.a=n,this.c=e}function RNn(){RNn=N,wce=Ce((AA(),S(T(T1n,1),G,354,0,[Vq,C1n,M1n,E1n])))}function KNn(){KNn=N,Rre=Ce((P5(),S(T(i1n,1),G,353,0,[Bq,iO,xq,Fq])))}function _Nn(){_Nn=N,bre=Ce((lp(),S(T(Mln,1),G,405,0,[YI,m9,k9,y9])))}function HNn(){HNn=N,Zue=Ce((Dl(),S(T(BU,1),G,223,0,[xU,bE,Ym,Qp])))}function qNn(){qNn=N,roe=Ce((Po(),S(T(ioe,1),G,291,0,[gE,sl,Ka,wE])))}function UNn(){UNn=N,boe=Ce((mo(),S(T(U9,1),G,386,0,[kE,u0,mE,ag])))}function GNn(){GNn=N,poe=Ce((sA(),S(T(Gdn,1),G,320,0,[_U,Hdn,Udn,qdn])))}function zNn(){zNn=N,yoe=Ce((YT(),S(T(koe,1),G,415,0,[HU,Xdn,zdn,Wdn])))}function mT(){mT=N,sU=new OD(kWn,0),Q1n=new OD(Xrn,1),J1n=new OD(Th,2)}function hw(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new VV(n,e,i)}function XNn(n,e){var t;return(t=u(Yv(n.e,e),400))?(CV(t),t.e):null}function pu(n,e){var t;return-1!=(t=Hr(n,e,0))&&(l1(n,t),!0)}function WNn(n,e,t){var i;return ua(n),(i=new iL).a=e,n.a.Nb(new PCn(i,t)),i.a}function MQ(n){var e;if(!X$(n))throw M(new tc);return n.e=1,e=n.d,n.d=null,e}function d1(n){var e;return Wr(n)&&(e=0-n,!isNaN(e))?e:la(b4(n))}function Hr(n,e,t){for(;t=0?yA(n,t,!0,!0):ib(n,e,!0)}function AQ(n){var e;return null==(e=kd(qn(n,32)))&&(uu(n),e=kd(qn(n,32))),e}function SQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function n$n(n,e){Son=new RE,PYn=e,u((X8=n).b,68),wQ(X8,Son,null),wGn(X8)}function v5(){v5=N,X_=new fD("XY",0),z_=new fD("X",1),W_=new fD("Y",2)}function mu(){mu=N,Tf=new sD("TOP",0),Oa=new sD(em,1),Zs=new sD(cin,2)}function Pl(){Pl=N,$j=new wD(Th,0),$2=new wD("TOP",1),xp=new wD(cin,2)}function Ok(){Ok=N,gq=new jX("INPUT_ORDER",0),vq=new jX("PORT_DEGREE",1)}function Q3(){Q3=N,Dun=eu(co,co,524287),pQn=eu(0,0,Hy),Nun=y$(1),y$(2),$un=y$(0)}function F$(n){var e;return n.d!=n.r&&(e=ys(n),n.e=!!e&&e.lk()==pJn,n.d=e),n.e}function x$(n,e,t){var i;return i=n.g[e],G6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function ET(n,e){var t;return(t=n.dd(e))>=0&&(n.gd(t),!0)}function B$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t|=n.Fc(e.Pb());return t}function Rf(n,e){var t;return(t=u(ee(n.e,e),400))?($Tn(n,t),t.e):null}function e$n(n){var e,t;return e=n/60|0,0==(t=n%60)?""+e:e+":"+t}function lw(n,e){var t=n.a[e],i=(hF(),m_)[typeof t];return i?i(t):xY(typeof t)}function uc(n,e){return wa(n),new Mn(n,new oSn(new fQ(e,n.a)))}function R$(n){var e;return null!=(e=0==n.b.c.length?null:sn(n.b,0))&&V$(n,0),e}function PQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t=0;)++e[0]}function Lk(n){return null==n.__elementTypeCategory$?10:n.__elementTypeCategory$}function r$n(n,e){return e==(uN(),uN(),OQn)?n.toLocaleLowerCase():n.toLowerCase()}function c$n(n){if(!n.e)throw M(new tc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function IQ(n){if(!n.c)throw M(new tc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function u$n(n){var e;for(++n.a,e=n.c.a.length;n.an.a[i]&&(i=t);return i}function o$n(n){var e;return!!(e=u(m(n,(V(),jb)),313))&&e.a==n}function s$n(n){var e;return!!(e=u(m(n,(V(),jb)),313))&&e.i==n}function f$n(){f$n=N,MZn=Ce((zi(),S(T(Zon,1),G,367,0,[nf,rl,$c,Uc,Gr])))}function h$n(){h$n=N,sne=Ce((jw(),S(T(one,1),G,375,0,[Lj,lI,aI,hI,fI])))}function l$n(){l$n=N,mne=Ce((k1(),S(T(nfn,1),G,348,0,[jH,Zsn,EH,Pm,Sm])))}function a$n(){a$n=N,cie=Ce((K5(),S(T(tln,1),G,323,0,[eln,aq,dq,a9,d9])))}function d$n(){d$n=N,Lne=Ce((ts(),S(T(Ofn,1),G,171,0,[Rj,r9,Na,c9,Qw])))}function b$n(){b$n=N,Xre=Ce((NA(),S(T(zre,1),G,368,0,[qq,Kq,Uq,_q,Hq])))}function w$n(){w$n=N,Xce=Ce((Z5(),S(T(zce,1),G,373,0,[V2,zp,I9,P9,iE])))}function g$n(){g$n=N,Zce=Ce((by(),S(T(oan,1),G,324,0,[ran,dU,uan,bU,can])))}function v$n(){v$n=N,Que=Ce((ii(),S(T(x9,1),G,88,0,[eh,zr,$r,nh,hs])))}function p$n(){p$n=N,Eue=Ce((Ef(),S(T(ol,1),G,170,0,[Fn,wi,$h,e0,F1])))}function m$n(){m$n=N,uoe=Ce((Zg(),S(T(_9,1),G,256,0,[_a,vE,Ddn,K9,Ndn])))}function k$n(){k$n=N,foe=Ce((en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])))}function CT(){CT=N,son=new aX("BY_SIZE",0),L_=new aX("BY_SIZE_AND_SHAPE",1)}function MT(){MT=N,q_=new wX("EADES",0),BP=new wX("FRUCHTERMAN_REINGOLD",1)}function Dk(){Dk=N,bI=new mX("READING_DIRECTION",0),efn=new mX("ROTATION",1)}function p5(){p5=N,DZn=new rwn,NZn=new own,OZn=new swn,LZn=new uwn,$Zn=new fwn}function y$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function j$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function E$n(n,e,t){sM.call(this),DQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function i4e(n,e,t){var r;for(r=new C(t);r.a=0&&e0?nt:Ac(n,Xi)<0?Xi:Ae(n)}function aw(n){return n<3?(Ao(n,Bzn),n+1):n=-.01&&n.a<=zf&&(n.a=0),n.b>=-.01&&n.b<=zf&&(n.b=0),n}function Xg(n){var e,t;for(f2(),t=Jrn,e=0;et&&(t=n[e]);return t}function A$n(n,e){var t;if(!(t=Ey(n.Dh(),e)))throw M(new Un(Aa+e+LK));return t}function dw(n,e){var t;for(t=n;Ct(t);)if((t=Ct(t))==e)return!0;return!1}function iu(n,e){var i,r,c;for(Jn(e),r=0,c=(i=n.c).length;r>16!=6?null:u(xx(n),241)}(n))&&!e.Vh()&&(n.w=e),e)}function Y3(n,e){var t,i;i=n.a,t=function h5e(n,e,t){var i,r;return r=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,5,r,n.a),t?bnn(t,i):t=i),t}(n,e,null),i!=e&&!n.e&&(t=z4(n,e,t)),t&&t.oj()}function L$n(n,e,t){var i,r;i=e;do{r=F(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p]}while(i!=e)}function D$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function y4e(n){var e;return null==n?null:function Dye(n,e){var i,r,c,s;if(null==n)return null;for(s=K(ds,jh,28,2*e,15,1),i=0,r=0;i>4&15],s[r++]=Zdn[c];return ks(s,0,s.length)}(e=u(n,195),e.length)}function D(n,e){if(null==n.g||e>=n.i)throw M(new FD(e,n.i));return n.Wi(e,n.g[e])}function N$n(n){return wa(n),Rv(!0,"n may not be negative"),new Mn(n,new fFn(n.a))}function DQ(n){n.b=(Gu(),Ia),n.f=(mu(),Oa),n.d=(Ao(2,Dw),new Vc(2)),n.e=new Oi}function PT(n){this.b=(Se(n),new Hu(n)),this.a=new Z,this.d=new Z,this.e=new Oi}function yf(){yf=N,vc=new uD("BEGIN",0),Zc=new uD(em,1),pc=new uD("END",2)}function Kf(){Kf=N,Jm=new DD(em,0),lg=new DD("HEAD",1),Qm=new DD("TAIL",2)}function ep(){ep=N,Hre=ph(ph(ph(M6(new ei,(lp(),m9)),(i8(),Mq)),Pln),Dln)}function Il(){Il=N,Ure=ph(ph(ph(M6(new ei,(lp(),y9)),(i8(),Oln)),Tln),Iln)}function $$n(){$$n=N,wne=Ce((ap(),S(T(Am,1),G,232,0,[Tm,Q8,Mm,Vw,L2,O2])))}function F$n(){F$n=N,Ene=Ce((BA(),S(T(ifn,1),G,283,0,[TH,MH,SH,AH,PH,wI])))}function x$n(){x$n=N,Mne=Ce((ay(),S(T(hfn,1),G,281,0,[vI,ofn,ffn,ufn,sfn,IH])))}function B$n(){B$n=N,Tne=Ce((N4(),S(T(gfn,1),G,282,0,[Z8,afn,wfn,bfn,dfn,lfn])))}function R$n(){R$n=N,KZn=Ce((Xn(),S(T(tH,1),G,273,0,[Ut,Ei,Qt,Gc,Oc,Jf])))}function K$n(){K$n=N,Tue=Ce((Xh(),S(T(Ian,1),G,255,0,[kU,cE,uE,kO,pO,mO])))}function _$n(){_$n=N,Lue=Ce((Id(),S(T(CU,1),G,298,0,[EU,$9,N9,jU,L9,D9])))}function H$n(){H$n=N,noe=Ce((FA(),S(T(Tdn,1),G,321,0,[RU,Edn,Mdn,ydn,Cdn,jdn])))}function q$n(){q$n=N,ooe=Ce((Ii(),S(T($dn,1),G,101,0,[Ha,th,Zm,c0,hl,Xc])))}function U$n(){U$n=N,soe=Ce((Xu(),S(T(TO,1),G,279,0,[qa,Xl,pE,q9,H9,Yp])))}function G$n(){G$n=N,LP=(yf(),S(T(qw,1),G,237,0,[vc,Zc,pc])).length,N_=LP}function Wg(n,e){return function Dhe(n){return n?n.i:null}(y5(n,e,Ae(Zi(Yh,Uh(Ae(Zi(null==e?0:wt(e),Zh)),15)))))}function NQ(n,e){return Of(),zs(ja),y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)}function IT(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,1,t,n.b))}function Z3(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,3,t,n.b))}function U0(n,e){var t;t=n.f,n.f=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,3,t,n.f))}function G0(n,e){var t;t=n.g,n.g=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,4,t,n.g))}function ru(n,e){var t;t=n.i,n.i=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,5,t,n.i))}function cu(n,e){var t;t=n.j,n.j=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,6,t,n.j))}function n4(n,e){var t;t=n.j,n.j=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,1,t,n.j))}function e4(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,4,t,n.c))}function t4(n,e){var t;t=n.k,n.k=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,2,t,n.k))}function OT(n,e){var t;t=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&tt(n,new fw(n,0,t,n.a))}function b1(n,e){var t;t=n.s,n.s=e,4&n.Db&&!(1&n.Db)&&tt(n,new b$(n,4,t,n.s))}function bw(n,e){var t;t=n.t,n.t=e,4&n.Db&&!(1&n.Db)&&tt(n,new b$(n,5,t,n.t))}function q$(n,e){var t;t=n.d,n.d=e,4&n.Db&&!(1&n.Db)&&tt(n,new b$(n,2,t,n.d))}function i4(n,e){var t;t=n.F,n.F=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,5,t,e))}function Nk(n,e){var t;return(t=u(ee((jC(),KO),n),57))?t.gk(e):K(pi,xn,1,e,5,1)}function T4e(n,e){var t,i;return Q1(),i=new EG,e&&Pen(i,e),WQ(t=i,n),t}function Ol(n,e){var i;return e in n.a&&(i=El(n,e).re())?i.a:null}function z$n(n,e,t){if(g4(n,t),!n.kl()&&null!=t&&!n.fk(t))throw M(new IL);return t}function X$n(n,e){return n.n=e,n.n?(n.f=new Z,n.e=new Z):(n.f=null,n.e=null),n}function W$n(n,e){if(n){e.n=n;var i=function l2e(n){return n.Ae()?null:EP[n.n]}(e);if(!i)return void(EP[n]=[e]);i.Rm=e}}function kd(n){var e;return Q6(null==n||Array.isArray(n)&&!((e=Lk(n))>=14&&e<=16)),n}function Ee(n,e){var t;return Jn(e),nk(!!(t=n[":"+e]),"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return W$n(t,s=BN(n,e)),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function $Q(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function FQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function xQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function BQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function RQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function V$n(n,e){var i,r,c;for(r=0,c=(i=e).length;r=0))throw M(new Un("tolerance ("+n+") must be >= 0"));return n}function Q$n(n,e){var t;return L(e,44)?n.c.Mc(e):(t=RF(n,e),dA(n,e),t)}function Cr(n,e,t){return Ad(n,e),Jc(n,t),b1(n,0),bw(n,1),m1(n,!0),p1(n,!0),n}function $k(n,e){var t;if(t=n.gc(),e<0||e>t)throw M(new ew(e,t));return new JW(n,e)}function NT(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(0==n.a.c.length?0:n.c),nn(n.a,e)}function Y$n(n){Yb(n.c>=0),function F8e(n,e){var t,i,c;return c=n.c-e&(i=n.a.length-1),TAn((t=e-n.b&i)<(n.c-n.b&i)),t>=c?(function N6e(n,e){var t,i;for(n.c=n.c-1&(t=n.a.length-1);e!=n.c;)Dt(n.a,e,n.a[i=e+1&t]),e=i;Dt(n.a,n.c,null)}(n,e),-1):(function D6e(n,e){var t,i;for(t=n.a.length-1;e!=n.b;)Dt(n.a,e,n.a[i=e-1&t]),e=i;Dt(n.a,n.b,null),n.b=n.b+1&t}(n,e),1)}(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function $T(n){var t;for(t=n.c.Cc().Kc();t.Ob();)u(t.Pb(),16).$b();n.c.$b(),n.d=0}function m5(n,e){var i,r,c;for(r=0,c=(i=e).length;r0&&n.c0&&0!=n.g&&zQ(n.i,e/n.r*n.i.d))}function XQ(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,1,t,n.c))}function G$(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,4,t,n.c))}function c4(n,e){var t;t=n.k,n.k=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,2,t,n.k))}function z$(n,e){var t;t=n.D,n.D=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,2,t,n.D))}function xT(n,e){var t;t=n.f,n.f=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,8,t,n.f))}function BT(n,e){var t;t=n.i,n.i=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,7,t,n.i))}function WQ(n,e){var t;t=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,8,t,n.a))}function VQ(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,0,t,n.b))}function JQ(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,0,t,n.b))}function QQ(n,e){var t;t=n.c,n.c=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,1,t,n.c))}function YQ(n,e){var t;t=n.d,n.d=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,1,t,n.d))}function hFn(n,e){return Bl(n.e,e)?(ar(),F$(e)?new kM(e,n):new B7(e,n)):new BMn(e,n)}function H4e(n,e){var i;return(i=e.e[n.p])>0?u(sn(n.c.a,i-1),10):null}function lFn(n){var e;return(n=y.Math.max(n,2))>(e=mY(n))?(e<<=1)>0?e:a8:e}function X$(n){switch(fW(3!=n.e),n.e){case 2:return!1;case 0:return!0}return function Ype(n){return n.e=3,n.d=n.Yb(),2!=n.e&&(n.e=0,!0)}(n)}function aFn(n,e){var t;return!!L(e,8)&&(t=u(e,8),n.a==t.a&&n.b==t.b)}function dFn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)hy(n,(t=u(i.Pb(),44)).ld(),t.md())}function ZQ(n,e){var t;t=n.d,n.d=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,11,t,n.d))}function RT(n,e){var t;t=n.j,n.j=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,13,t,n.j))}function nY(n,e){var t;t=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,21,t,n.b))}function X4e(n,e){e.Ug("Hierarchical port constraint processing",1),function l9e(n){var e;xv(u(m(n,(cn(),Kt)),101))&&(iHn((Ln(0,(e=n.b).c.length),u(e.c[0],30))),iHn(u(sn(e,e.c.length-1),30)))}(n),function ODe(n){var e,t,i,r,s,f,h,l,a,d,g,v,p,k,j,A,I,O,_,X,tn,jn,kn,Bn,$n,te;if((tn=u(m(n,(cn(),Kt)),101))!=(Ii(),th)&&tn!=Ha){for(a=new Vc((Ao((v=(p=n.b).c.length)+2,PB),TT(Yi(Yi(5,v+2),(v+2)/10|0)))),k=new Vc((Ao(v+2,PB),TT(Yi(Yi(5,v+2),(v+2)/10|0)))),nn(a,new de),nn(a,new de),nn(k,new Z),nn(k,new Z),X=new Z,e=0;e>5],Ae(Us(31&e,1))),3)}function wFn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?1:0:(!n.c&&(n.c=bk(Ec(n.f))),n.c).e}function CFn(n,e){e?null==n.B&&(n.B=n.D,n.D=null):null!=n.B&&(n.D=n.B,n.B=null)}function MFn(n,e){return Of(),zs(zf),y.Math.abs(0-e)<=zf||0==e||isNaN(0)&&isNaN(e)?0:n/e}function TFn(n,e){return F(R(bo(Qk(Kr(new Mn(null,new Pn(n.c.b,16)),new D7n(n)),e))))}function cY(n,e){return F(R(bo(Qk(Kr(new Mn(null,new Pn(n.c.b,16)),new L7n(n)),e))))}function ime(n,e){e.Ug("General Compactor",1),function s8e(n){switch(n.g){case 1:return new q3n;case 2:return new aAn;default:throw M(new Un(wK+(null!=n.f?n.f:""+n.g)))}}(u(z(n,(ka(),Xq)),393)).Cg(n)}function uY(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)(i=u(be(r),8)).a+=e,i.b+=t;return n}function y5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&bh(e,i.g))return i;return null}function j5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&bh(e,i.i))return i;return null}function Z$(n,e,t,i,r,c){var s;this.c=n,RZ(n,s=new Z,e,n.b,t,i,r,c),this.a=new Ni(s,0)}function AFn(){this.c=new aC(0),this.b=new aC(Vrn),this.d=new aC(dWn),this.a=new aC(yR)}function Yo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=Ff(s)}function Ht(n,e,t,i,r,c,s,f,h,l,a,d,g){return L_n(n,e,t,i,r,c,s,f,h,l,a,d,g),LF(n,!1),n}function ume(n){return n.b.c.i.k==(Xn(),Qt)?u(m(n.b.c.i,(V(),ot)),12):n.b.c}function SFn(n){return n.b.d.i.k==(Xn(),Qt)?u(m(n.b.d.i,(V(),ot)),12):n.b.d}function ome(n){var e;return j0((e=iT(n)).a,0)?(gC(),gC(),LQn):(gC(),new fAn(e.b))}function nF(n){var e;return j0((e=BJ(n)).a,0)?(zb(),zb(),C_):(zb(),new QD(e.b))}function eF(n){var e;return j0((e=BJ(n)).a,0)?(zb(),zb(),C_):(zb(),new QD(e.c))}function PFn(n){switch(n.g){case 2:return en(),Wn;case 4:return en(),Zn;default:return n}}function IFn(n){switch(n.g){case 1:return en(),ae;case 3:return en(),zn;default:return n}}function OFn(n){switch(n.g){case 0:return new l4n;case 1:return new a4n;default:return null}}function tp(){tp=N,sH=new Pt("edgelabelcenterednessanalysis.includelabel",(Kn(),Pa))}function oY(){oY=N,Pie=ph(YMn(Ke(Ke(new ei,(zi(),$c),(nr(),ZP)),Uc,WP),Gr),YP)}function LFn(){LFn=N,Die=ph(YMn(Ke(Ke(new ei,(zi(),$c),(nr(),ZP)),Uc,WP),Gr),YP)}function tF(){tF=N,J9=new bjn,JU=S(T(Mu,1),C2,179,0,[]),tse=S(T(Ds,1),bun,62,0,[])}function u4(){u4=N,Pj=new gX("TO_INTERNAL_LTR",0),cH=new gX("TO_INPUT_DIRECTION",1)}function Nu(){Nu=N,rH=new wwn,iH=new gwn,usn=new vwn,csn=new pwn,osn=new mwn,ssn=new kwn}function fme(n,e,t){t.Ug("DFS Treeifying phase",1),function T8e(n,e){var t,r,c;for(c=e.b.b,n.a=new yt,n.b=K(ye,_e,28,c,15,1),t=0,r=ge(e.b,0);r.b!=r.d.c;)u(be(r),40).g=t++}(n,e),function CTe(n,e){var t,i,r,c,s;for(s=u(m(e,(bc(),Zln)),433),c=ge(e.b,0);c.b!=c.d.c;)if(r=u(be(c),40),0==n.b[r.g]){switch(s.g){case 0:SRn(n,r);break;case 1:DCe(n,r)}n.b[r.g]=2}for(i=ge(n.a,0);i.b!=i.d.c;)pw((t=u(be(i),65)).b.d,t,!0),pw(t.c.b,t,!0);U(e,(bt(),Hln),n.a)}(n,e),n.a=null,n.b=null,t.Vg()}function Fk(n,e){return Kn(),Mi(n)?oQ(n,Oe(e)):Jb(n)?TN(n,R(e)):Vb(n)?Zbe(n,un(e)):n.Fd(e)}function E5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function DFn(n){var e;if(-2==n.b){if(0==n.e)e=-1;else for(e=0;0==n.a[e];e++);n.b=e}return n.b}function dme(n){if(Jn(n),0==n.length)throw M(new sh("Zero length BigInteger"));!function pSe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j;for(h=v=e.length,Gn(0,e.length),45==e.charCodeAt(0)?(d=-1,g=1,--v):(d=1,g=0),r=v/(c=(sB(),TQn)[10])|0,0!=(j=v%c)&&++r,f=K(ye,_e,28,r,15,1),t=MQn[8],s=0,p=g+(0==j?c:j),k=g;k0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function NFn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,function MEe(n){var e,t,r,c;for(c=O5(n.d,n.e).Kc();c.Ob();)for(r=u(c.Pb(),12),t=new C(n.e==(en(),Wn)?r.e:r.g);t.an.c&&e.an.d&&e.b(r=n.a.length)?t=r:Gn(e,t+1),n.a=Xo(n.a,0,e)+""+i+iJ(n.a,t)}function qFn(n,e){n.a=Yi(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=Yi(n.d,e)}function tt(n,e){var t,i,r;if(null!=(t=n.th())&&n.wh())for(i=0,r=t.length;i0||a.j==Wn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new C(a.g);r.a1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw M(new tc)}function XFn(n){switch(n.a.g){case 1:return new YCn;case 3:return new YRn;default:return new l8n}}function lY(n,e){switch(e){case 1:return!!n.n&&0!=n.n.i;case 2:return null!=n.k}return xJ(n,e)}function Ec(n){return qy=0x8000000000000000?(Q3(),Dun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=Nd&&(n-=(i=di(n/Nd))*Nd),t=0,n>=yp&&(n-=(t=di(n/yp))*yp),c=eu(di(n),t,i),r&&aF(c),c)}(n))}function xk(n){var e;return n<128?(cPn(),!(e=Run[n])&&(e=Run[n]=new UG(n)),e):new UG(n)}function ps(n){var t,i,r;return i=0,(r=n)<0&&(r+=Nd,i=Kl),t=di(r/yp),eu(di(r-t*yp),t,i)}function Bk(n){var e,t,i;for(i=0,t=new Av(n.a);t.a>22))&co,n.h-e.h+(i>>22)&Kl)}function At(n){var e;return L(n,82)?n:((e=n&&n.__java$exception)||Fyn(e=new Wxn(n)),e)}function Hk(n){if(L(n,193))return u(n,123);if(n)return null;throw M(new Ev(SVn))}function dY(n){return!!n.a.Ob()||n.a==n.e&&(n.a=new vQ(n.f.f),n.a.Ob())}function txn(n,e){if(null==e)return!1;for(;n.a!=n.b;)if(it(e,eA(n)))return!0;return!1}function ixn(n,e){return!(!n||!e||n==e)&&qBn(n.d.c,e.d.c+e.d.b)&&qBn(e.d.c,n.d.c+n.d.b)}function si(n,e){var t;return 0!=(t=e.Pc()).length&&(bV(n.c,n.c.length,t),!0)}function oF(n){var e,i;for(e=new yt,i=ge(n.d,0);i.b!=i.d.c;)xe(e,u(be(i),65).c);return e}function rxn(n,e){var i;for(i=new C(n.b);i.a(i=n.gc()))throw M(new ew(e,i));return n.Si()&&(t=mOn(n,t)),n.Ei(e,t)}function d4(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)e2(n,c,s)||eS(n,c,s,!0,!1)}function b4(n){var e,t;return eu(e=1+~n.l&co,t=~n.m+(0==e?1:0)&co,~n.h+(0==e&&0==t?1:0)&Kl)}function mY(n){var e;if(n<0)return Xi;if(0==n)return 0;for(e=a8;!(e&n);e>>=1);return e}function fF(n,e,t){return!(n>=128)&&R6(n<64?vi(Us(1,n),t):vi(Us(1,n-64),e),0)}function Gk(n,e,t){return null==t?(!n.q&&(n.q=new de),Yv(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function U(n,e,t){return null==t?(!n.q&&(n.q=new de),Yv(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function axn(n){var e,t;return qr(t=new lT,n),U(t,(ha(),$p),n),function IPe(n,e,t){var i,r,c,s,f;for(i=0,c=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));c.e!=c.i.gc();)s="",0==(!(r=u(ue(c),27)).n&&(r.n=new q(Tr,r,1,7)),r.n).i||(s=u(D((!r.n&&(r.n=new q(Tr,r,1,7)),r.n),0),135).a),qr(f=new jTn(s),r),U(f,(ha(),$p),r),f.a=i++,f.d.a=r.i+r.g/2,f.d.b=r.j+r.f/2,f.e.a=y.Math.max(r.g,1),f.e.b=y.Math.max(r.f,1),nn(e.e,f),Yc(t.f,r,f),u(z(r,(Js(),Hon)),101),Ii()}(n,t,e=new de),function rLe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));h.e!=h.i.gc();)for(r=new ie(ce(xl(f=u(ue(h),27)).a.Kc(),new Vn));ve(r);){if(!(i=u(fe(r),74)).b&&(i.b=new Dn(he,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i<=1)))throw M(new Cv("Graph must not contain hyperedges."));if(!Q5(i)&&f!=Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)))for(qr(l=new HAn,i),U(l,(ha(),$p),i),zse(l,u(Rr(br(t.f,f)),153)),Vse(l,u(ee(t,Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),153)),nn(e.c,l),s=new ne((!i.n&&(i.n=new q(Tr,i,1,7)),i.n));s.e!=s.i.gc();)qr(a=new ULn(l,(c=u(ue(s),135)).a),c),U(a,$p,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),atn(a),nn(e.d,a)}}(n,t,e),t}function dxn(n){return n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f||n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d}function bxn(n,e){var t,i,c;for(t=!1,i=n.a[e].length,c=0;c=0,"Negative initial capacity"),nk(e>=0,"Non-positive load factor"),qu(this)}function EY(n,e){var i,r,c,s;for(On(),s=!1,r=0,c=(i=e).length;r1||e>=0&&n.b<3)}function aF(n){var e,t,i;t=~n.m+(0==(e=1+~n.l&co)?1:0)&co,i=~n.h+(0==e&&0==t?1:0)&Kl,n.l=e,n.m=t,n.h=i}function TY(n){var e,t,i;for(On(),i=1,t=n.Kc();t.Ob();)i=31*i+(null!=(e=t.Pb())?wt(e):0),i|=0;return i}function s6e(n,e,t,i,r){var c;return c=wen(n,e),t&&aF(c),r&&(n=function e7e(n,e){var t,i,r;return e<=22?(t=n.l&(1<=n.b.c.length||(OY(n,2*e+1),(t=2*e+2)=0&&n[i]===e[i];i--);return i<0?0:rD(vi(n[i],vr),vi(e[i],vr))?-1:1}function Oxn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=lFn(t),i=K(aQn,Ky,227,r,0,1),this.b=i}function vF(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(e2(n,c,s))return!0;return!1}function Lxn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function pF(n,e){var t,i;return i=u(qn(n.a,4),129),t=K(WU,VK,424,e,0,1),null!=i&&Nc(i,0,t,0,i.length),t}function Dxn(n,e){var t;return t=new zx(0!=(256&n.f),n.i,n.a,n.d,0!=(16&n.f),n.j,n.g,e),null!=n.e||(t.c=n),t}function Nxn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function $xn(n,e,t){return n.d[e.p][t.p]||(function T9e(n,e,t){if(n.e)switch(n.b){case 1:!function gge(n,e,t){n.i=0,n.e=0,e!=t&&Cxn(n,e,t)}(n.c,e,t);break;case 0:!function vge(n,e,t){n.i=0,n.e=0,e!=t&&Mxn(n,e,t)}(n.c,e,t)}else qLn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function C6e(n,e){return!(!n||n==e||!vt(e,(V(),Eb)))&&u(m(e,(V(),Eb)),10)!=n}function mF(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function Fxn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function xxn(n){COn.call(this,"The given string does not match the expected format for individual spacings.",n)}function kF(n,e,t){var i,c;for(i=new yt,c=ge(t,0);c.b!=c.d.c;)xe(i,new ir(u(be(c),8)));Lxn(n,e,i)}function A6e(n,e){var t;return t=Yi(n,e),rD(f$(n,e),0)|zC(f$(n,t),0)?t:Yi(Ry,f$(ia(t,63),1))}function Bxn(n){var e;if((e=n.a.c.length)>0)return $3(e-1,n.a.c.length),l1(n.a,e-1);throw M(new Byn)}function Rxn(n,e,t){if(n>e)throw M(new Un(pS+n+nXn+e));if(n<0||e>t)throw M(new Rz(pS+n+Jtn+e+Xtn+t))}function p4(n,e){null==n.D&&null!=n.B&&(n.D=n.B,n.B=null),z$(n,null==e?null:(Jn(e),e)),n.C&&n.hl(null)}function DY(n,e){var t,i;if(0!=(i=n.c[e]))for(n.c[e]=0,n.d-=i,t=e+1;tWS?n-t>WS:t-n>WS)}function Jxn(n,e){var t;for(t=0;tr&&(TKn(e.q,r),i=t!=e.q.d)),i}function Qxn(n,e){var i,s,f;return y.Math.sqrt((s=e.i-(i=n.f).i)*s+(f=e.j-i.j)*f)}function RY(n,e){var i;return(i=bA(n))||(!Loe&&(Loe=new Amn),bB(),me((i=new Ayn(BHn(e))).El(),n)),i}function Vk(n,e){var t,i;return(t=u(n.c.Bc(e),16))?((i=n.hc()).Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function Yxn(n,e,t,i){var r;n.a=e,n.f=(r=new l_n(n.c,n.a,t,i?0:1),new qqn(t,n.a,r,n.e,n.b,n.c==(z0(),g9)))}function eA(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],TAn(n.b==n.d.c&&null!=e),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function Zxn(n){var e;if(0!=n.c)return n.c;for(e=0;e=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ba(n,e){var t,i,r,c;return(c=N_n((i=e,(r=n?bA(n):null)&&r.Gl(),i)))==e&&(t=bA(n))&&t.Gl(),c}function nBn(n,e,t){var i,r;return r=n.f,n.f=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,0,r,e),t?t.nj(i):t=i),t}function eBn(n,e,t){var i,r;return r=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,3,r,e),t?t.nj(i):t=i),t}function _Y(n,e,t){var i,r;return r=n.a,n.a=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,1,r,e),t?t.nj(i):t=i),t}function tBn(n){var e,t,i,r;if(null!=n)for(t=0;t-129&&n<128?(KSn(),!(t=Kun[e=n+128])&&(t=Kun[e]=new _G(n)),t):new _G(n)}function k4(n){var e,t;return n>-129&&n<128?(iPn(),!(t=Uun[e=n+128])&&(t=Uun[e]=new qG(n)),t):new qG(n)}function cBn(n,e){n.a.c.length>0&&IY(u(sn(n.a,n.a.c.length-1),579),e)||nn(n.a,new EDn(e))}function uBn(n){var e;return(e=new V1).a+="VerticalSegment ",Fc(e,n.e),e.a+=" ",Re(e,oW(new GL,new C(n.k))),e.a}function AF(n,e){var t,r;for(t=0,r=sc(n,e).Kc();r.Ob();)t+=null!=m(u(r.Pb(),12),(V(),Wu))?1:0;return t}function Yg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&!((r=F(R(be(c))))>t);)r>=e&&++i;return i}function oBn(n,e){Se(n);try{return n._b(e)}catch(t){if(L(t=At(t),212)||L(t,169))return!1;throw M(t)}}function qY(n,e){Se(n);try{return n.Hc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return!1;throw M(t)}}function vw(n,e){Se(n);try{return n.xc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return null;throw M(t)}}function O5(n,e){switch(e.g){case 2:case 1:return sc(n,e);case 3:case 4:return es(sc(n,e))}return On(),On(),Vi}function L5(n){var e;return 64&n.Db?Ws(n):((e=new gs(Ws(n))).a+=" (name: ",jr(e,n.zb),e.a+=")",e.a)}function i5e(n){var e;return(e=u(Rf(n.c.c,""),233))||(e=new Wv(p3(v3(new gv,""),"Other")),y1(n.c.c,"",e)),e}function UY(n,e,t){var i,r;return r=n.sb,n.sb=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,4,r,e),t?t.nj(i):t=i),t}function GY(n,e,t){var i,r;return r=n.r,n.r=e,4&n.Db&&!(1&n.Db)&&(i=new ji(n,1,8,r,n.r),t?t.nj(i):t=i),t}function v1(n,e){var t,i;return!(i=(t=u(e,691)).el())&&t.fl(i=L(e,90)?new RMn(n,u(e,29)):new sLn(n,u(e,156))),i}function Jk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Nc(n.g,e,n.g,e+1,n.i-e),Dt(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function Qk(n,e){var t;return t=new iL,n.a.Bd(t)?(T3(),new RL(Jn(WNn(n,t.a,e)))):(ua(n),T3(),T3(),eon)}function sBn(n,e){var t;0!=n.c.length&&(zX(t=u(Hf(n,K(cl,A1,10,n.c.length,0,1)),199),new rgn),eHn(t,e))}function fBn(n,e){var t;0!=n.c.length&&(zX(t=u(Hf(n,K(cl,A1,10,n.c.length,0,1)),199),new cgn),eHn(t,e))}function it(n,e){return Mi(n)?Tn(n,e):Jb(n)?iSn(n,e):Vb(n)?(Jn(n),x(n)===x(e)):RV(n)?n.Fb(e):LV(n)?eTn(n,e):LJ(n,e)}function Zo(n,e,t){if(e<0)Qnn(n,t);else{if(!t.rk())throw M(new Un(Aa+t.xe()+O8));u(t,69).wk().Ek(n,n.hi(),e)}}function hBn(n,e,t){if(n<0||e>t)throw M(new Ar(pS+n+Jtn+e+", size: "+t));if(n>e)throw M(new Un(pS+n+nXn+e))}function lBn(n){var e;return 64&n.Db?Ws(n):((e=new gs(Ws(n))).a+=" (source: ",jr(e,n.d),e.a+=")",e.a)}function aBn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function p1(n,e){var t;t=0!=(256&n.Bb),e?n.Bb|=256:n.Bb&=-257,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,2,t,e))}function zY(n,e){var t;t=0!=(256&n.Bb),e?n.Bb|=256:n.Bb&=-257,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,8,t,e))}function iA(n,e){var t;t=0!=(256&n.Bb),e?n.Bb|=256:n.Bb&=-257,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,8,t,e))}function m1(n,e){var t;t=0!=(512&n.Bb),e?n.Bb|=512:n.Bb&=-513,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,3,t,e))}function XY(n,e){var t;t=0!=(512&n.Bb),e?n.Bb|=512:n.Bb&=-513,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,9,t,e))}function D5(n,e){var t;return-1==n.b&&n.a&&(t=n.a.pk(),n.b=t?n.c.Hh(n.a.Lj(),t):St(n.c.Dh(),n.a)),n.c.yh(n.b,e)}function dBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),29),x(e)===x(t))return!0;return!1}function WY(n){var t;return n.k==(Xn(),Qt)&&((t=u(m(n,(V(),mc)),64))==(en(),zn)||t==ae)}function bBn(n){var e;return j0((e=BJ(n)).a,0)?(zb(),zb(),C_):(zb(),new QD(iD(e.a,0)?sQ(e)/pd(e.a):0))}function Yk(n,e){this.e=e,this.a=nxn(n),this.a<54?this.f=pd(n):this.c=(mh(),Ac(n,0)>=0?ga(n):c5(ga(d1(n))))}function wBn(n,e,t,i,r,c){this.e=new Z,this.f=(wr(),b9),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function gBn(n){return n=((n=((n-=n>>1&1431655765)>>2&858993459)+(858993459&n))>>4)+n&252645135,63&(n+=n>>8)+(n>>16)}function vBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),142),x(e)===x(t))return!0;return!1}function SF(n,e,t){var i,c;return(c=x4(n.b,e))&&(i=u(sS(Sk(n,c),""),29))?ken(n,i,e,t):null}function b5e(n,e){var t;if(L(t=Ey(n,e),331))return u(t,35);throw M(new Un(Aa+e+"' is not a valid attribute"))}function N5(n,e,t){var i;if(e>(i=n.gc()))throw M(new ew(e,i));if(n.Si()&&n.Hc(t))throw M(new Un(hj));n.Gi(e,t)}function ii(){ii=N,eh=new $7(v8,0),zr=new $7(Ep,1),$r=new $7(jp,2),nh=new $7(lR,3),hs=new $7("UP",4)}function Zk(){Zk=N,aO=new LD("P1_STRUCTURE",0),dO=new LD("P2_PROCESSING_ORDER",1),bO=new LD("P3_EXECUTION",2)}function pBn(){pBn=N,qre=ph(ph(M6(ph(ph(M6(Ke(new ei,(lp(),m9),(i8(),Mq)),k9),Lln),Nln),y9),Sln),$ln)}function g5e(n){switch(u(m(n,(V(),zd)),311).g){case 1:U(n,zd,(Pl(),xp));break;case 2:U(n,zd,(Pl(),$2))}}function mBn(n){switch(n.g){case 2:return zr;case 1:return $r;case 4:return nh;case 3:return hs;default:return eh}}function VY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new zo(e.d,0,e.a,e.b);default:return null}}function JY(n){switch(n.g){case 1:return Wn;case 2:return zn;case 3:return Zn;case 4:return ae;default:return hc}}function ny(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return zn;case 4:return Zn;default:return hc}}function rA(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return zn;default:return hc}}function QY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Tr,n,1,7)),n.n;case 2:return n.k}return qZ(n,e,t,i)}function $5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=$x(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):$x(n,e,t)}function PF(n,e){var t,i,r;null==n.d?(++n.e,--n.f):(r=e.ld(),function t3e(n,e,t){return++n.e,--n.f,u(n.d[e].gd(t),136).md()}(n,i=((t=e.Bi())&nt)%n.d.length,HHn(n,i,t,r)))}function y4(n,e){var t;t=0!=(n.Bb&Qs),e?n.Bb|=Qs:n.Bb&=-1025,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,10,t,e))}function j4(n,e){var t;t=0!=(n.Bb&Nw),e?n.Bb|=Nw:n.Bb&=-4097,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,12,t,e))}function E4(n,e){var t;t=0!=(n.Bb&Bu),e?n.Bb|=Bu:n.Bb&=-8193,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,15,t,e))}function C4(n,e){var t;t=0!=(n.Bb&_w),e?n.Bb|=_w:n.Bb&=-2049,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,11,t,e))}function p5e(n){var e;n.g&&(Den((e=n.c.kg()?n.f:n.a).a,n.o,!0),Den(e.a,n.o,!1),U(n.o,(cn(),Kt),(Ii(),c0)))}function m5e(n){var e;if(!n.a)throw M(new Sr("Cannot offset an unassigned cut."));n.b+=e=n.c-n.b,UIn(n,e),qIn(n,e)}function y5e(n){var e,t;for(t=RHn(Mo(n)).Kc();t.Ob();)if(r8(n,e=Oe(t.Pb())))return jpe((yCn(),Uoe),e);return null}function kBn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if((e=u(t.Pb(),218)).f&&n.b[e.c]<-1e-10)return e;return null}function E5e(n){var e,t,i;for(e=new Z,i=new C(n.b);i.ae?1:n==e?0==n?at(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function yBn(n,e,t){var r;if(n.c)Ann(n.c,e,t);else for(r=new C(n.b);r.a=1?zr:nh:t}function wa(n){if(n.c)wa(n.c);else if(n.d)throw M(new Sr("Stream already terminated, can't be modified or used"))}function J0(n,e,t){var i;return i=n.a.get(e),n.a.set(e,void 0===t?null:t),void 0===i?(++n.c,++n.b.g):++n.d,i}function O5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),_k(t,u(sn(e,i.p),16)))return i;return null}function ZY(n,e,t){var i;return i=0,e&&(Ng(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(Ng(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function L5e(n,e,t){var i;!(i=t)&&(i=kV(new yv,0)),i.Ug(OXn,2),MRn(n.b,e,i.eh(1)),function XIe(n,e,t){var r,c,s,f,h,l,a,d,g,v,k;for(_i(l=function Cje(n){var e,t,i,c,s;for(e=new Rg,t=new Rg,sa(e,n),sa(t,n);t.b!=t.c;)for(s=new C(u(Hv(t),36).a);s.aMh,kn=y.Math.abs(g.b-p.b)>Mh,(!t&&jn&&kn||t&&(jn||kn))&&xe(j.a,$)),Fi(j.a,i),0==i.b?g=$:(oe(0!=i.b),g=u(i.c.b.c,8)),Nme(v,d,k),SFn(r)==tn&&(Ki(tn.i)!=r.a&&Knn(k=new Oi,Ki(tn.i),I),U(j,qH,k)),gje(v,j,I),a.a.zc(v,a);Qi(j,_),Pi(j,tn)}for(l=a.a.ec().Kc();l.Ob();)Qi(h=u(l.Pb(),18),null),Pi(h,null);e.Vg()}(e,i.eh(1)),i.Vg()}function nZ(n,e,t){var i;return Q1(),OT(i=new KE,e),IT(i,t),n&&me((!n.a&&(n.a=new ni(Ro,n,5)),n.a),i),i}function OF(n){var e;return 64&n.Db?Ws(n):((e=new gs(Ws(n))).a+=" (identifier: ",jr(e,n.k),e.a+=")",e.a)}function LF(n,e){var t;t=0!=(n.Bb&Cc),e?n.Bb|=Cc:n.Bb&=-32769,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,18,t,e))}function eZ(n,e){var t;t=0!=(n.Bb&Cc),e?n.Bb|=Cc:n.Bb&=-32769,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,18,t,e))}function M4(n,e){var t;t=0!=(n.Bb&yh),e?n.Bb|=yh:n.Bb&=-16385,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,16,t,e))}function tZ(n,e){var t;t=0!=(n.Bb&sr),e?n.Bb|=sr:n.Bb&=-65537,4&n.Db&&!(1&n.Db)&&tt(n,new Gs(n,1,20,t,e))}function iZ(n){var e;return(e=K(ds,jh,28,2,15,1))[0]=((n-=sr)>>10)+Uy&ri,e[1]=56320+(1023&n)&ri,ks(e,0,e.length)}function Yi(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n+e)&&t>22))&co,n.h+e.h+(i>>22)&Kl)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function Zi(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n*e)&&t>13|(15&n.m)<<9)*(f=8191&e.l),Bn=(r=n.m>>4&8191)*f,$n=(c=n.m>>17|(255&n.h)<<5)*f,te=((1048320&n.h)>>8)*f,0!=(h=e.l>>13|(15&e.m)<<9)&&(kn+=t*h,Bn+=i*h,$n+=r*h,te+=c*h),0!=(l=e.m>>4&8191)&&(Bn+=t*l,$n+=i*l,te+=r*l),0!=(a=e.m>>17|(255&e.h)<<5)&&($n+=t*a,te+=i*a),0!=(d=(1048320&e.h)>>8)&&(te+=t*d),k=((jn=t*f)>>22)+(kn>>9)+((262143&Bn)<<4)+((31&$n)<<17),$=(Bn>>18)+($n>>5)+((4095&te)<<8),$+=(k+=(g=(jn&co)+((511&kn)<<13))>>22)>>22,eu(g&=co,k&=co,$&=Kl)}(Wr(n)?ps(n):n,Wr(e)?ps(e):e))}function ms(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n-e)&&te?1:E0(isNaN(n),isNaN(e))}function Dl(){Dl=N,xU=new RC(v8,0),bE=new RC("POLYLINE",1),Ym=new RC("ORTHOGONAL",2),Qp=new RC("SPLINES",3)}function uA(){uA=N,L1n=new ID("ASPECT_RATIO_DRIVEN",0),iU=new ID("MAX_SCALE_DRIVEN",1),O1n=new ID("AREA_DRIVEN",2)}function Nl(n){var e,i;for(e=new Z,i=new C(n.j);i.ae){pLn(t);break}}ck(t,e)}function q5e(n,e,t){t.Ug("Straight Line Edge Routing",1),t.dh(e,ccn),uGn(n,u(z(e,(_g(),X2)),27)),t.dh(e,QS)}function rZ(n,e){0==n.n.c.length&&nn(n.n,new ZM(n.s,n.t,n.i)),nn(n.b,e),BZ(u(sn(n.n,n.n.c.length-1),209),e),HUn(n,e)}function F5(n){var e;this.a=new Go(e=u(n.e&&n.e(),9),u(Hs(e,e.length),9),0),this.b=K(pi,xn,1,this.a.a.length,5,1)}function Jr(n){return Array.isArray(n)&&n.Tm===Hb?sd(po(n))+"@"+(wt(n)>>>0).toString(16):n.toString()}function CBn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function cZ(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return QY(n,e,t,i)}function oA(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw M(new Un("Node "+e+" not part of edge "+n))}function ns(n,e,t,i){if(e<0)Cen(n,t,i);else{if(!t.rk())throw M(new Un(Aa+t.xe()+O8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function to(n){var e;if(n.b){if(to(n.b),n.b.d!=n.c)throw M(new Ho)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16))&&(n.d=e)}function W5e(n){var e,t,i;for(this.a=new hh,i=new C(n);i.a=r)return e.c+t;return e.c+e.b.gc()}function $F(n,e,t){var i,r;for(i=0,r=n.length;i0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function sZ(n){var e,t,i;for((i=new e1).a+="[",e=0,t=n.gc();e=0&&n.a[t]===e[t];t--);return t<0}(n,t.a))}function up(n){switch(en(),n.g){case 4:return zn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return hc}}function hZ(n){var t,i;for(i=F(R(n.a.of((Ue(),jO)))),t=new C(n.a.Sf());t.a=0;i--)if(Tn(n[i].d,e)||Tn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}(p_.me(n)))),t=0,i=n.j.length;tf.d&&(a=f.d+f.a+l);t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}(n),_t(new Mn(null,new Pn(n.d,16)),new x9n(n)),e}function wZ(n){BF(),this.c=Ff(S(T(CNe,1),xn,845,0,[nie])),this.b=new de,this.a=n,Xe(this.b,HI,1),iu(eie,new xkn(this))}function IBn(n,e,t){G$n(),ijn.call(this),this.a=hd(JQn,[J,iin],[603,217],0,[LP,N_],2),this.c=new Lv,this.g=n,this.f=e,this.d=t}function gZ(n,e){this.n=hd(Ja,[J,YB],[376,28],14,[e,di(y.Math.ceil(n/32))],2),this.o=n,this.p=e,this.j=n-1>>1,this.k=e-1>>1}function OBn(n){var e,t;e=n.d==(ap(),Mm),t=dnn(n),U(n.a,(cn(),Lh),e&&!t||!e&&t?(Xh(),uE):(Xh(),cE))}function BF(){BF=N,mC(),cn(),HI=Ob,eie=Ff(S(T(mU,1),zrn,149,0,[Hj,ef,_2,Ib,rg,tq,Rm,Km,iq,h9,K2,Zd,H2]))}function LBn(n,e){var t,i;if((i=new h3(n.a.ad(e,!0))).a.gc()<=1)throw M(new pv);return(t=i.a.ec().Kc()).Pb(),u(t.Pb(),40)}function vZ(n,e){return n.i>0&&(e.lengthn.i&&Dt(e,n.i,null),e}function fA(n){var e;return 64&n.Db?L5(n):((e=new gs(L5(n))).a+=" (instanceClassName: ",jr(e,n.D),e.a+=")",e.a)}function hA(n){var e,t,i,r;for(r=0,t=0,i=n.length;t0&&(n._j(),-1!=HHn(n,((i=null==e?0:wt(e))&nt)%n.d.length,i,e))}function DBn(n,e){var t,i;n.a=Yi(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,n.f=(i=n.e+(t=e-n.f))-n.e-t,n.e=i}function pZ(n,e){switch(e){case 3:return void U0(n,0);case 4:return void G0(n,0);case 5:return void ru(n,0);case 6:return void cu(n,0)}HY(n,e)}function Y0(n,e){switch(e.g){case 1:return Bv(n.j,(Nu(),iH));case 2:return Bv(n.j,(Nu(),rH));default:return On(),On(),Vi}}function mZ(n){var e;switch(D0(),(e=n.Pc()).length){case 0:return d_;case 1:return new pN(Se(e[0]));default:return new ZN(function B5e(n){var t,i;for(t=0,i=n.length;t0&&(n._j(),t=ren(n,((i=null==e?0:wt(e))&nt)%n.d.length,i,e))?t.md():null}function Qc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Jk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Jk(n,n.i,e),t}function xBn(n){var e;return Zb(),e=new ir(u(n.e.of((Ue(),tv)),8)),n.B.Hc((ro(),n6))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ga(n){var e,t;return mh(),t=Ae(n),0!=(e=Ae(ia(n,32)))?new GOn(t,e):t>10||t<0?new Tl(1,t):CQn[t]}function ty(n,e){var t;return Wr(n)&&Wr(e)&&qy<(t=n%e)&&t=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function ry(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&0==i)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function S8e(n,e,t,i){var r,c,s;return r=!1,function OOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;return v=n.c[t],!((p=u(m(g=n.c[e],(V(),Kp)),15))&&0!=p.gc()&&p.Hc(v)||(k=g.k!=(Xn(),Ei)&&v.k!=Ei,j=u(m(g,Eb),10),A=u(m(v,Eb),10),I=j!=A,O=!!j&&j!=g||!!A&&A!=v,$=cx(g,(en(),zn)),_=cx(v,ae),O|=cx(g,ae)||cx(v,zn),X=O&&I||$||_,k&&X)||g.k==(Xn(),Gc)&&v.k==Ut||v.k==(Xn(),Gc)&&g.k==Ut)&&(r=yKn(n.e,a=n.c[e],c=n.c[t],(en(),Wn)),h=yKn(n.i,a,c,Zn),function oTe(n,e,t){n.d=0,n.b=0,e.k==(Xn(),Gc)&&t.k==Gc&&u(m(e,(V(),ot)),10)==u(m(t,ot),10)&&(L$(e).j==(en(),zn)?XHn(n,e,t):XHn(n,t,e)),e.k==Gc&&t.k==Ei?L$(e).j==(en(),zn)?n.d=1:n.b=1:t.k==Gc&&e.k==Ei&&(L$(t).j==(en(),zn)?n.b=1:n.d=1),function G9e(n,e,t){e.k==(Xn(),Ut)&&t.k==Ei&&(n.d=AF(e,(en(),ae)),n.b=AF(e,zn)),t.k==Ut&&e.k==Ei&&(n.d=AF(t,(en(),zn)),n.b=AF(t,ae))}(n,e,t)}(n.f,a,c),l=$xn(n.b,a,c)+u(r.a,17).a+u(h.a,17).a+n.f.d,f=$xn(n.b,c,a)+u(r.b,17).a+u(h.b,17).a+n.f.b,n.a&&(d=u(m(a,ot),12),s=u(m(c,ot),12),l+=u((i=tKn(n.g,d,s)).a,17).a,f+=u(i.b,17).a),l>f)}(n.f,t,i)&&(function J8e(n,e,t){var i,r;Mx(n.e,e,t,(en(),Wn)),Mx(n.i,e,t,Zn),n.a&&(r=u(m(e,(V(),ot)),12),i=u(m(t,ot),12),h$(n.g,r,i))}(n.f,n.a[e][t],n.a[e][i]),s=(c=n.a[e])[i],c[i]=c[t],c[t]=s,r=!0),r}function _Bn(n,e,t){var i,r,s;for(r=u(ee(n.b,t),183),i=0,s=new C(e.j);s.at;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<>5)+(0==(e&=31)?0:1),15,1),n.a,t,e),l5(c=new dd(n.e,r,i)),c}function P8e(n,e){var i;for(i=new ie(ce(Vt(n).a.Kc(),new Vn));ve(i);)if(u(fe(i),18).d.i.c==e)return!1;return!0}function jZ(n,e,t){var i,r,c;return r=R(mw(n,i=t[n.k.g][e.k.g])),c=R(mw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function O8e(n,e){return Of(),Of(),zs(ja),(y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)?0:ne?1:E0(isNaN(n),isNaN(e)))>0}function EZ(n,e){return Of(),Of(),zs(ja),(y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)?0:ne?1:E0(isNaN(n),isNaN(e)))<0}function qBn(n,e){return Of(),Of(),zs(ja),(y.Math.abs(n-e)<=ja||n==e||isNaN(n)&&isNaN(e)?0:ne?1:E0(isNaN(n),isNaN(e)))<=0}function HF(n,e){for(var t=0;!e[t]||""==e[t];)t++;for(var i=e[t++];t0&&this.b>0&&(this.g=CM(this.c,this.b,this.a))}function A4(n){if(!(Ph in n.a))throw M(new oh("Every element must have an id."));return dp(El(n,Ph))}function Z0(n){var e,t;for(t=w_n(n),e=null;2==n.c;)Ye(n),e||(Ze(),Ze(),Ld(e=new q6(2),t),t=e),t.Jm(w_n(n));return t}function dA(n,e){var t,i;return n._j(),(t=ren(n,((i=null==e?0:wt(e))&nt)%n.d.length,i,e))?(Q$n(n,t),t.md()):null}function JBn(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function D8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw M(new Un("Input edge is not connected to the input port."))}function TZ(n){switch(typeof n){case CB:return w1(n);case $tn:return Ov(n);case vp:return OAn(n);default:return null==n?0:T0(n)}}function ph(n,e){if(n.a<0)throw M(new Sr("Did not call before(...) or after(...) before calling add(...)."));return kW(n,n.a,e),n}function AZ(n){return nT(),L(n,162)?u(ee(TE,PQn),295).Rg(n):tu(TE,po(n))?u(ee(TE,po(n)),295).Rg(n):null}function uu(n){var t;return 32&n.Db||0!=(t=se(u(qn(n,16),29)||n.ii())-se(n.ii()))&&op(n,32,K(pi,xn,1,t,5,1)),n}function op(n,e,t){var i;n.Db&e?null==t?function vCe(n,e){var t,i,r,c,s,f,h;if(1==(i=gBn(254&n.Db)))n.Eb=null;else if(c=kd(n.Eb),2==i)r=fx(n,e),n.Eb=c[0==r?1:0];else{for(s=K(pi,xn,1,i-1,5,1),t=2,f=0,h=0;t<=128;t<<=1)t==e?++f:n.Db&t&&(s[h++]=c[f++]);n.Eb=s}n.Db&=~e}(n,e):-1==(i=fx(n,e))?n.Eb=t:Dt(kd(n.Eb),i,t):null!=t&&function KTe(n,e,t){var i,r,s,f,h,l;if(0==(r=gBn(254&n.Db)))n.Eb=t;else{if(1==r)f=K(pi,xn,1,2,5,1),0==fx(n,e)?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=K(pi,xn,1,r+1,5,1),s=kd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}(n,e,t)}function $8e(n,e,t,i){var r;0!=e.c.length&&(r=function IMe(n,e){var t,i,r,c,s;for(t=new Z,r=uc(new Mn(null,new Pn(n,16)),new Npn),c=uc(new Mn(null,new Pn(n,16)),new $pn),s=function K3e(n){var e;return ua(n),e=K(Ai,Mr,28,0,15,1),Tg(n.a,new C9n(e)),e}(function r3e(n){return wa(n),new SW(n,new DSn(n,n.a.e,4|n.a.d))}(cw(function fTe(n){var e,t,r,c,s,f,h,l;for(e=336,t=0,c=new VAn(n.length),h=0,l=(f=n).length;h=2*e&&nn(t,new hN(s[i-1]+e,s[i]-e));return t}(t,i),_t(ST(new Mn(null,new Pn(function OEe(n){var e,t,i,r,c,s,f;for(c=new hh,t=new C(n);t.a2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}(e),1)),new Dpn),new SIn(n,t,r,i)))}function bA(n){var e,t,i;if(!(i=n.Jh()))for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>ZB)return t.Qh();if((i=t.Jh())||t==n)break}return i}function YBn(n,e){var t;return x(e)===x(n)||!(!L(e,21)||(t=u(e,21),t.gc()!=n.gc()))&&n.Ic(t)}function wA(n,e){return Jn(n),null!=e&&(!!Tn(n,e)||n.length==e.length&&Tn(n.toLowerCase(),e.toLowerCase()))}function $l(n){var e,t;return Ac(n,-129)>0&&Ac(n,128)<0?(tPn(),e=Ae(n)+128,!(t=_un[e])&&(t=_un[e]=new HG(n)),t):new HG(n)}function Sd(){Sd=N,zw=new OC(Th,0),esn=new OC("INSIDE_PORT_SIDE_GROUPS",1),Z_=new OC("GROUP_MODEL_ORDER",2),nH=new OC(Min,3)}function R8e(n,e){var t,i;for(Gn(e,n.length),t=n.charCodeAt(e),i=e+1;iX&&(p.c=X-p.b),nn(s.d,new EN(p,VY(s,p))),I=e==zn?y.Math.max(I,k.b+l.b.Mf().b):y.Math.min(I,k.b));for((O=bZ((s.e=I+=e==zn?n.t:-n.t,s)))>0&&(u(Er(n.b,e),127).a.b=O),a=g.Kc();a.Ob();)(l=u(a.Pb(),117)).c&&!(l.c.d.c.length<=0)&&((p=l.c.i).c-=l.e.a,p.d-=l.e.b)}else XGn(n,e)}(n,e):XGn(n,e):n.u.Hc(qa)&&(t?function sLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A;if((a=u(u(ut(n.r,e),21),87)).gc()<=2||e==(en(),Zn)||e==(en(),Wn))szn(n,e);else{for(k=n.u.Hc((Xu(),Yp)),t=e==(en(),zn)?(V0(),kj):(V0(),mj),A=e==zn?(mu(),Zs):(mu(),Tf),i=Hz(rV(t),n.s),j=e==zn?Mt:fi,l=a.Kc();l.Ob();)(f=u(l.Pb(),117)).c&&!(f.c.d.c.length<=0)&&(p=f.b.Mf(),v=f.e,(g=(d=f.c).i).b=d.e.a+(c=d.n).b+c.c,g.a=d.e.b+(s=d.n).d+s.a,k?(g.c=v.a-(d.e.a+(r=d.n).b+r.c)-n.s,k=!1):g.c=v.a+p.a+n.s,fk(A,rin),d.f=A,mf(d,(Gu(),Ys)),nn(i.d,new EN(g,VY(i,g))),j=e==zn?y.Math.min(j,v.b):y.Math.max(j,v.b+f.b.Mf().b));for(bZ((i.e=j+=e==zn?-n.t:n.t,i)),h=a.Kc();h.Ob();)(f=u(h.Pb(),117)).c&&!(f.c.d.c.length<=0)&&((g=f.c.i).c-=f.e.a,g.d-=f.e.b)}}(n,e):szn(n,e))}function rRn(n){var e;x(z(n,(Ue(),nv)))===x((Ll(),MO))&&(Ct(n)?(e=u(z(Ct(n),nv),346),ft(n,nv,e)):ft(n,nv,R9))}function cRn(n,e,t){return new zo(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function uRn(n){var e;this.d=new Z,this.j=new Oi,this.g=new Oi,this.f=u(m(Ki(e=n.g.b),(cn(),$o)),88),this.e=F(R(mA(e,rg)))}function oRn(n){this.d=new Z,this.e=new h1,this.c=K(ye,_e,28,(en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])).length,15,1),this.b=n}function IZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new W(0,i);case 2:case 4:return new W(i,0);default:return null}}function sRn(n,e,t){var r;r=u(hk(e.f),205);try{r.rf(n,t),dIn(e.f,r)}catch(c){throw L(c=At(c),103),M(c)}}function fRn(n,e,t){var c,s,f,h;return c=null,(f=ytn(r4(),e))&&(s=null,null!=(h=mtn(f,t))&&(s=n.qf(f,h)),c=s),c}function GF(n,e,t,i){var r;if(e>=(r=n.length))return r;for(e=e>0?e:0;ei&&Dt(e,i,null),e}function hRn(n,e){var t,i;for(e.length<(i=n.a.length)&&(e=sC(new Array(i),e)),t=0;ti&&Dt(e,i,null),e}function S4(n,e){var t,i;++n.j,null!=e&&function cCe(n,e){var t,i,r;if(x(n)===x(e))return!0;if(null==n||null==e||n.length!=e.length)return!1;for(t=0;t>24}return t}(_c(n,!0))))throw M(new UL("Invalid hexBinary value: '"+n+"'"));return e}function gA(n,e,t){var i;e.a.length>0&&(nn(n.b,new OSn(e.a,t)),0<(i=e.a.length)?e.a=Xo(e.a,0,0):0>i&&(e.a+=DTn(K(ds,jh,28,-i,15,1))))}function lRn(n,e,t){var r;if(!t[e.d])for(t[e.d]=!0,r=new C(Qg(e));r.a=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=0?n.Wh(r):Nx(n,i):t<0?Nx(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function wRn(n){var t,i;for(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),t=(i=n.o).c.Kc();t.e!=t.i.gc();)u(t.Yj(),44).md();return jk(i)}function rn(n){var e;if(L(n.a,4)){if(null==(e=AZ(n.a)))throw M(new Sr(FWn+n.b+"'. "+$Wn+(yl(AE),AE.k)+xcn));return e}return n.a}function ue(n){var e;try{return e=n.i.Xb(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw L(t=At(t),77)?(n.Xj(),M(new tc)):M(t)}}function VF(n){var e;try{return e=n.c.Vi(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw L(t=At(t),77)?(n.Xj(),M(new tc)):M(t)}}function pA(n){var e,t,i,r;for(r=0,t=0,i=n.length;t=64&&e<128&&(r=vf(r,Us(1,e-64)));return r}function mA(n,e){var t,i;return i=null,vt(n,(Ue(),Vp))&&(t=u(m(n,Vp),96)).pf(e)&&(i=t.of(e)),null==i&&Ki(n)&&(i=m(Ki(n),e)),i}function h9e(n,e){var t;return t=u(m(n,(cn(),Nr)),75),GD(e,xZn)?t?jo(t):(t=new Su,U(n,Nr,t)):t&&U(n,Nr,null),t}function R5(){R5=N,Ue(),$on=hdn,K_=Uan,FYn=Q2,Non=x1,OA(),KYn=don,RYn=lon,_Yn=won,BYn=hon,yF(),xYn=Oon,R_=DYn,Don=NYn,FP=$Yn}function kA(n){switch(iX(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=lJ(nsn),this.b=Mt;break;case 3:case 1:this.a=nsn,this.b=fi}}function gRn(n,e,t){var r;if(n.c)ru(n.c,n.c.i+e),cu(n.c,n.c.j+t);else for(r=new C(n.b);r.a>4)<<24>>24,d[g++]=((15&t)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return p7(s=c[a++])&&p7(f=c[a++])?(e=ch[s],t=ch[f],h=c[a++],l=c[a++],-1==ch[h]||-1==ch[l]?61==h&&61==l?15&t?null:(Nc(d,0,j=K(Ku,E2,28,3*v+1,15,1),0,3*v),j[g]=(e<<2|t>>4)<<24>>24,j):61!=h&&61==l?3&(i=ch[h])?null:(Nc(d,0,j=K(Ku,E2,28,3*v+2,15,1),0,3*v),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((15&t)<<4|i>>2&15)<<24>>24,j):null:(i=ch[h],r=ch[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((15&t)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d)):null}(_c(n,!0))))throw M(new UL("Invalid base64Binary value: '"+n+"'"));return e}function is(n,e){var t;t=n.fd(e);try{return t.Pb()}catch(i){throw L(i=At(i),112)?M(new Ar("Can't get element "+e)):M(i)}}function vRn(n,e){var t,i,r;for(t=n.o,r=u(u(ut(n.r,e),21),87).Kc();r.Ob();)(i=u(r.Pb(),117)).e.a=g7e(i,t.a),i.e.b=t.b*F(R(i.b.of(DP)))}function pRn(n){var e;return(e=new V1).a+="n",n.k!=(Xn(),Ut)&&Re(Re((e.a+="(",e),YD(n.k).toLowerCase()),")"),Re((e.a+="_",e),oy(n)),e.a}function mRn(n,e){var t;switch(t=u(Er(n.b,e),127).n,e.g){case 1:n.t>=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function K5(){K5=N,eln=new P7(Xrn,0),aq=new P7(LR,1),dq=new P7("LINEAR_SEGMENTS",2),a9=new P7("BRANDES_KOEPF",3),d9=new P7(hWn,4)}function _5(){_5=N,Mj=new PC(kS,0),NP=new PC(aR,1),$P=new PC(dR,2),Tj=new PC(bR,3),Mj.a=!1,NP.a=!0,$P.a=!1,Tj.a=!0}function sp(){sp=N,jj=new SC(kS,0),yj=new SC(aR,1),Ej=new SC(dR,2),Cj=new SC(bR,3),jj.a=!1,yj.a=!0,Ej.a=!1,Cj.a=!0}function fp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh())>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i)),n.Ch(e,t,i))}function OZ(n,e){switch(e){case 7:return!n.e&&(n.e=new Dn(Xt,n,7,4)),void pe(n.e);case 8:return!n.d&&(n.d=new Dn(Xt,n,8,5)),void pe(n.d)}pZ(n,e)}function ft(n,e,t){return null==t?(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),dA(n.o,e)):(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),hy(n.o,e,t)),n}function kRn(n,e){var t,i,r,c;for(On(),t=n,c=e,L(n,21)&&!L(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function v9e(n,e,t,i){if(e.at.b)return!0}return!1}function JF(n,e){return Mi(n)?!!oQn[e]:n.Sm?!!n.Sm[e]:Jb(n)?!!uQn[e]:!!Vb(n)&&!!cQn[e]}function yRn(n,e){var t,i,r;for(r=n,i=new ie(ce(ki(e).a.Kc(),new Vn));ve(i);)(t=u(fe(i),18)).c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function jRn(n){var t,i,r;if(i=0,0==(r=Aw(n)).c.length)return 1;for(t=new C(r);t.a=0?n.Lh(s,t,!0):ib(n,c,t):u(c,69).wk().yk(n,n.hi(),r,t,i)}function ERn(n){var e,t;if(null==n)return null;for(t=K(cl,J,199,n.length,0,2),e=0;e=0)return r;if(n.ol())for(i=0;i=(r=n.gc()))throw M(new ew(e,r));if(n.Si()&&(i=n.dd(t))>=0&&i!=e)throw M(new Un(hj));return n.Xi(e,t)}function LZ(n,e){if(this.a=u(Se(n),253),this.b=u(Se(e),253),n.Ed(e)>0||n==(xL(),l_)||e==(BL(),a_))throw M(new Un("Invalid range: "+zLn(n,e)))}function CRn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new C(n.a);t.a0)for(i=new Hu(u(ut(n.a,c),21)),On(),Jt(i,new ez(e)),r=new Ni(c.b,0);r.b0),(e&-e)==e)return di(e*io(n,31)*4.656612873077393e-10);do{i=(t=io(n,31))%e}while(t-i+(e-1)<0);return di(i)}function cy(n,e,t,i){var r,c;for(r=e;r1&&(c=function S9e(n,e){var t,i,r;for(t=M0(new od,n),r=new C(e);r.a(h=null==n.d?0:n.d.length)){for(a=n.d,n.d=K(e0n,aun,66,2*h+4,0,1),c=0;c102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function rx(n,e){if(null==n)throw M(new Ev("null key in entry: null="+e));if(null==e)throw M(new Ev("null value in entry: "+n+"=null"))}function IRn(n,e){var t;return t=S(T(Ai,1),Mr,28,15,[EF(n.a[0],e),EF(n.a[1],e),EF(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function ORn(n,e){var t;return t=S(T(Ai,1),Mr,28,15,[nA(n.a[0],e),nA(n.a[1],e),nA(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function xZ(n,e,t){xv(u(m(e,(cn(),Kt)),101))||(QJ(n,e,E1(e,t)),QJ(n,e,E1(e,(en(),ae))),QJ(n,e,E1(e,zn)),On(),Jt(e.j,new x7n(n)))}function LRn(n){var e,t;for(n.c||function iOe(n){var e,t,i,r,c,s;if(r=new Ni(n.e,0),i=new Ni(n.a,0),n.d)for(t=0;tlK;){for(c=e,s=0;y.Math.abs(e-c)0),r.a.Xb(r.c=--r.b),pPe(n,n.b-s,c,i,r),oe(r.b0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t=0){for(h=null,f=new Ni(a.a,l+1);f.b0&&h[i]&&(p=xg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+p);for(c=new C(a.e);c.a_)?(h=2,s=nt):0==h?(h=1,s=tn):(h=0,s=tn):(v=tn>=s||s-tn0?(d=u(sn(g.c.a,s-1),10),jn=xg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+jn)):j=g.n.b-g.d.d,l=y.Math.min(j,l),sc&&Dt(e,c,null),e}function ux(n,e){var t,i,r;return t=e.ld(),r=e.md(),i=n.xc(t),!(!(x(r)===x(i)||null!=r&&it(r,i))||null==i&&!n._b(t))}function KZ(n,e,t,i){var r,c;this.a=e,this.c=i,function Hse(n,e){n.b=e}(this,new W(-(r=n.a).c,-r.d)),et(this.b,t),c=i/2,e.a?W6(this.b,0,c):W6(this.b,c,0),nn(n.c,this)}function KRn(n,e,t,i){var r;this.c=n,this.d=e,Nt(r=new yt,t,r.c.b,r.c),this.a=r,this.b=u(m(i,(bc(),Nb)),88),this.e=F(R(m(i,n1n))),Tzn(this)}function AA(){AA=N,Vq=new BC(Th,0),C1n=new BC(QXn,1),M1n=new BC("EDGE_LENGTH_BY_POSITION",2),E1n=new BC("CROSSING_MINIMIZATION_BY_POSITION",3)}function ox(n,e){var t,i;if(t=u(Wg(n.g,e),27))return t;if(i=u(Wg(n.j,e),123))return i;throw M(new oh("Referenced shape does not exist: "+e))}function _Z(n,e){var i;if(L(e,253)){i=u(e,253);try{return 0==n.Ed(i)}catch(r){if(L(r=At(r),212))return!1;throw M(r)}}return!1}function r7e(n,e){if(n.c==e)return n.d;if(n.d==e)return n.c;throw M(new Un("Node 'one' must be either source or target of edge 'edge'."))}function c7e(n,e){if(n.c.i==e)return n.d.i;if(n.d.i==e)return n.c.i;throw M(new Un("Node "+e+" is neither source nor target of edge "+n))}function o7e(n,e){var t;switch(e.g){case 2:case 4:n.c.d.n.b<(t=n.a).d.n.b&&(t=n.c),o1(n,e,(_f(),hH),t);break;case 1:case 3:o1(n,e,(_f(),Fp),null)}}function sx(n,e,t,i,r,c){var s,f,h,l,a;for(s=function oke(n,e,t){var i,r;switch(i=(r=n.b).d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}(e,t,c),f=t==(en(),zn)||t==Wn?-1:1,l=n[t.g],a=0;a0&&(h+=r),l[a]=s,s+=f*(h+i)}function _Rn(n){var e,t,i;for(n.n=K(Ai,Mr,28,i=n.f,15,1),n.d=K(Ai,Mr,28,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function zRn(n,e){var t;return t=S(T(Ai,1),Mr,28,15,[NZ(n,(yf(),vc),e),NZ(n,Zc,e),NZ(n,pc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function s7e(n,e,t){try{eS(n,e+n.j,t+n.k,!1,!0)}catch(r){throw L(r=At(r),77)?M(new Ar(r.g+jS+e+cr+t+").")):M(r)}}function f7e(n,e,t){try{eS(n,e+n.j,t+n.k,!0,!1)}catch(r){throw L(r=At(r),77)?M(new Ar(r.g+jS+e+cr+t+").")):M(r)}}function XRn(n){var e;vt(n,(cn(),Ab))&&((e=u(m(n,Ab),21)).Hc((Tw(),rf))?(e.Mc(rf),e.Fc(cf)):e.Hc(cf)&&(e.Mc(cf),e.Fc(rf)))}function WRn(n){var e;vt(n,(cn(),Ab))&&((e=u(m(n,Ab),21)).Hc((Tw(),of))?(e.Mc(of),e.Fc(Is)):e.Hc(Is)&&(e.Mc(Is),e.Fc(of)))}function hx(n,e,t,i){var r,c,s;return null==n.a&&function lje(n,e){var t,i,r,c;for(n.a=K(ye,_e,28,(c=e.b.j).c.length,15,1),r=0,i=0;i0&&(r.b+=e),r}function PA(n,e){var t,i,r;for(r=new Oi,i=n.Kc();i.Ob();)K4(t=u(i.Pb(),36),0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function JRn(n){var e,t,i;for(i=nt,t=new C(n.a);t.a>16==6?n.Cb.Th(n,5,Pf,e):(i=dr(u(Nn(u(qn(n,16),29)||n.ii(),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ZRn(n){var e,t,i;n.b==n.c&&(t=mY(y.Math.max(8,i=n.a.length))<<1,0!=n.b?(wFn(n,e=Hs(n.a,t),i),n.a=e,n.b=0):Ub(n.a,t),n.c=i)}function g7e(n,e){var t;return(t=n.b).pf((Ue(),so))?t.ag()==(en(),Wn)?-t.Mf().a-F(R(t.of(so))):e+F(R(t.of(so))):t.ag()==(en(),Wn)?-t.Mf().a:e}function oy(n){return 0!=n.b.c.length&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:qN(n)??""+(n.c?Hr(n.c.a,n,0):-1)}function IA(n){return 0!=n.f.c.length&&u(sn(n.f,0),72).a?u(sn(n.f,0),72).a:qN(n)??""+(n.i?Hr(n.i.j,n,0):-1)}function v7e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function qZ(n,e,t,i){return 0==e?i?(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),n.o):(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),jk(n.o)):yA(n,e,t,i)}function ax(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e>22),r+=i>>22,r<0)||(n.l=t&co,n.m=i&co,n.h=r&Kl,0))}function dx(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&0==h)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&0==f))}function Lr(n,e,t){var i,r;return Ad(r=new $L,e),Jc(r,t),me((!n.c&&(n.c=new q(Fb,n,12,10)),n.c),r),b1(i=r,0),bw(i,1),m1(i,!0),p1(i,!0),i}function hp(n,e){var t,i;if(e>=n.i)throw M(new FD(e,n.i));return++n.j,t=n.g[e],(i=n.i-e-1)>0&&Nc(n.g,e+1,n.g,e,i),Dt(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function nKn(n,e){var i;return n.Db>>16==17?n.Cb.Th(n,21,Ls,e):(i=dr(u(Nn(u(qn(n,16),29)||n.ii(),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function S7e(n){var e,t,i,r,c;for(r=nt,c=null,i=new C(n.d);i.at.a.c.length))throw M(new Un("index must be >= 0 and <= layer node count"));n.c&&pu(n.c.a,n),n.c=t,t&&P0(t.a,e,n)}function cKn(n,e){var t,i,r;for(i=new ie(ce(Nl(n).a.Kc(),new Vn));ve(i);)return t=u(fe(i),18),new GE(Se((r=u(e.Kb(t),10)).n.b+r.o.b/2));return b6(),b6(),h_}function uKn(n,e){this.c=new de,this.a=n,this.b=e,this.d=u(m(n,(V(),B2)),312),this.e=x(m(n,(cn(),Phn)))===x((Tk(),gI))?new ejn:new njn}function q5(n,e){var t,i;return i=null,n.pf((Ue(),Vp))&&(t=u(n.of(Vp),96)).pf(e)&&(i=t.of(e)),null==i&&n.Tf()&&(i=n.Tf().of(e)),null==i&&(i=rn(e)),i}function bx(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw L(r=At(r),112)?M(new Ar("Can't remove element "+e)):M(r)}}function zZ(n,e){var t,i,r;for(Jn(e),TW(e!=n),r=n.b.c.length,i=e.Kc();i.Ob();)t=i.Pb(),nn(n.b,Jn(t));return r!=n.b.c.length&&(OY(n,0),!0)}function sy(){sy=N,Ue(),Von=hE,new Li(MU,(Kn(),!0)),vZn=i0,pZn=tv,mZn=Ra,gZn=ev,Qon=lE,kZn=hg,UZ(),Won=bZn,zon=aZn,Xon=dZn,Jon=wZn,HP=lZn}function XZ(n,e,t,i){var r,c,f;for(Di(e,u(i.Xb(0),30)),f=i.kd(1,i.gc()),c=u(t.Kb(e),20).Kc();c.Ob();)XZ(n,(r=u(c.Pb(),18)).c.i==e?r.d.i:r.c.i,t,f)}function oKn(n){var e;return e=new de,vt(n,(V(),HH))?u(m(n,HH),85):(_t(rt(new Mn(null,new Pn(n.j,16)),new S2n),new b7n(e)),U(n,HH,e),e)}function sKn(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new C(n);s.a0?e:0),++t;return new W(i,r)}function WZ(n,e){var i;return n.Db>>16==6?n.Cb.Th(n,6,Xt,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),DO),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function VZ(n,e){var i;return n.Db>>16==7?n.Cb.Th(n,1,EE,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Jdn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function JZ(n,e){var i;return n.Db>>16==9?n.Cb.Th(n,9,Qe,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Ydn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function fKn(n,e){var i;return n.Db>>16==5?n.Cb.Th(n,9,HO,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),_1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function hKn(n,e){var i;return n.Db>>16==7?n.Cb.Th(n,6,Pf,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),q1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function QZ(n,e){var i;return n.Db>>16==3?n.Cb.Th(n,0,ME,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),K1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function lKn(){this.a=new wmn,this.g=new TA,this.j=new TA,this.b=new de,this.d=new TA,this.i=new TA,this.k=new de,this.c=new de,this.e=new de,this.f=new de}function x7e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;rZB)return I4(n,i);if(i==n)return!0}}return!1}function fy(n,e){var t,i,r;for(pu(n.a,e),n.e-=e.r+(0==n.a.c.length?0:n.c),r=ucn,i=new C(n.a);i.a>16==3?n.Cb.Th(n,12,Qe,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Vdn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ZZ(n,e){var i;return n.Db>>16==11?n.Cb.Th(n,10,Qe,e):(i=dr(u(Nn(u(qn(n,16),29)||(Sc(),Qdn),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function aKn(n,e){var i;return n.Db>>16==10?n.Cb.Th(n,11,Ls,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),H1),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function dKn(n,e){var i;return n.Db>>16==10?n.Cb.Th(n,12,Ds,e):(i=dr(u(Nn(u(qn(n,16),29)||(In(),pg),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function ys(n){var e;return!(1&n.Bb)&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ba(n,e),142),n.r!=e&&4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,9,8,e,n.r))),n.r}function wx(n,e,t){var i;return i=S(T(Ai,1),Mr,28,15,[Mnn(n,(yf(),vc),e,t),Mnn(n,Zc,e,t),Mnn(n,pc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function U7e(n,e){var t,i,r;if(0!=(r=function b9e(n,e){var t,i,r;for(r=new Vc(e.gc()),i=e.Kc();i.Ob();)(t=u(i.Pb(),293)).c==t.f?$4(n,t,t.c):xje(n,t)||Rn(r.c,t);return r}(n,e)).c.length)for(Jt(r,new Pgn),t=r.c.length,i=0;i>19)!=(l=e.h>>19)?l-h:(r=n.h)!=(f=e.h)?r-f:(i=n.m)!=(s=e.m)?i-s:n.l-e.l}function OA(){OA=N,ZA(),won=new Cn(Ztn,gon=D_),CT(),don=new Cn(nin,bon=L_),vA(),lon=new Cn(ein,aon=O_),hon=new Cn(tin,(Kn(),!0))}function U5(n,e,t){var i,r;i=e*t,L(n.g,154)?(r=Jv(n)).f.d?r.f.a||(n.d.a+=i+zf):(n.d.d-=i+zf,n.d.a+=i+zf):L(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function bKn(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new C(e.d);f.a0?n.b:0),++t;e.b=i,e.e=r}function wKn(n){var e,t,i;if(uCn(n.i,(i=n.b).length)){for(n.b=K(b_,Ky,303,t=2*i.length,0,1),n.c=K(b_,Ky,303,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)py(n,e,e);++n.g}}function G5(n,e){return n.b.a=y.Math.min(n.b.a,e.c),n.b.b=y.Math.min(n.b.b,e.d),n.a.a=y.Math.max(n.a.a,e.c),n.a.b=y.Math.max(n.a.b,e.d),Rn(n.c,e),!0}function Y7e(n,e,t){var i;(i=e.c.i).k==(Xn(),Ei)?(U(n,(V(),Af),u(m(i,Af),12)),U(n,Ss,u(m(i,Ss),12))):(U(n,(V(),Af),e.c),U(n,Ss,t.d))}function O4(n,e,t){var i,r,c,s,f,h;return f2(),s=e/2,c=t/2,f=1,h=1,(i=y.Math.abs(n.a))>s&&(f=s/i),(r=y.Math.abs(n.b))>c&&(h=c/r),lh(n,y.Math.min(f,h)),n}function gKn(){wC.call(this),this.e=-1,this.a=!1,this.p=Xi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Xi}function enn(){enn=N,jZn=Lu(Ke(Ke(Ke(new ei,(zi(),Uc),(nr(),Isn)),Uc,Osn),Gr,Lsn),Gr,msn),CZn=Ke(Ke(new ei,Uc,asn),Uc,ksn),EZn=Lu(new ei,Gr,jsn)}function hke(n,e){var t,i,r,c;for(c=new de,e.e=null,e.f=null,i=new C(e.i);i.a0)try{r=Io(e,Xi,nt)}catch(c){throw L(c=At(c),130)?M(new kT(c)):M(c)}return!n.a&&(n.a=new AL(n)),r<(t=n.a).i&&r>=0?u(D(t,r),58):null}(n,0==(r=e.c.length)?"":(Ln(0,e.c.length),Oe(e.c[0]))),i=1;i0&&(r=ren(n,(c&nt)%n.d.length,c,e))?r.nd(t):(i=n.ck(c,e,t),n.c.Fc(i),null)}function rnn(n,e){var t,i,r,c;switch(v1(n,e).Kl()){case 3:case 2:for(r=0,c=(t=l2(e)).i;r=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}(n,n)/KY(2.718281828459045,n))}function L4(n,e){var t;if(n.Yi()&&null!=e){for(t=0;t0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function EKn(n){var e;e=u(m(u(is(n.b,0),40),(bc(),Qln)),107),U(n,(bt(),Um),new W(0,0)),bUn(new kk,n,e.b+e.c-F(R(m(n,Iq))),e.d+e.a-F(R(m(n,Oq))))}function CKn(n,e){var i;if(i=!1,Mi(e)&&(i=!0,Uv(n,new rw(Oe(e)))),i||L(e,242)&&(i=!0,Uv(n,new zE(YW(u(e,242))))),!i)throw M(new qL(tun))}function onn(n){var e,t;switch(u(m(Ki(n),(cn(),jhn)),429).g){case 0:return new W((e=n.n).a+(t=n.o).a/2,e.b+t.b/2);case 1:return new ir(n.n);default:return null}}function ay(){ay=N,vI=new L6(Th,0),ofn=new L6("LEFTUP",1),ffn=new L6("RIGHTUP",2),ufn=new L6("LEFTDOWN",3),sfn=new L6("RIGHTDOWN",4),IH=new L6("BALANCED",5)}function snn(n,e,t){switch(e){case 1:return!n.n&&(n.n=new q(Tr,n,1,7)),pe(n.n),!n.n&&(n.n=new q(Tr,n,1,7)),void Bt(n.n,u(t,16));case 2:return void c4(n,Oe(t))}SY(n,e,t)}function fnn(n,e,t){switch(e){case 3:return void U0(n,F(R(t)));case 4:return void G0(n,F(R(t)));case 5:return void ru(n,F(R(t)));case 6:return void cu(n,F(R(t)))}snn(n,e,t)}function LA(n,e,t){var r,c;(r=qf(c=new $L,e,null))&&r.oj(),Jc(c,t),me((!n.c&&(n.c=new q(Fb,n,12,10)),n.c),c),b1(c,0),bw(c,1),m1(c,!0),p1(c,!0)}function hnn(n,e){var t,r;return L(t=A6(n.i,e),241)?((r=u(t,241)).zi(),r.wi()):L(t,507)?r=u(t,2037).b:null}function Ske(n,e,t,i){var r,c;return Se(e),Se(t),QNn(!!(c=u(J6(n.d,e),17)),"Row %s not in %s",e,n.e),QNn(!!(r=u(J6(n.b,t),17)),"Column %s not in %s",t,n.c),sxn(n,c.a,r.a,i)}function MKn(n,e,t,i,r,c,s){var f,h,l,a,d;if(d=URn(f=(l=c==s-1)?i:0,a=r[c]),10!=i&&S(T(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h1||-1==f?(c=u(h,15),r.Wb(function l8e(n,e){var i,r,c;for(r=new Vc(e.gc()),i=e.Kc();i.Ob();)(c=nB(n,u(i.Pb(),58)))&&Rn(r.c,c);return r}(n,c))):r.Wb(nB(n,u(h,58))))}function Fke(n,e){var t,i,r;for(r=new WE(new rd(n.b).a.vc().Kc());r.a.Ob();)if(t=u(r.a.Pb(),44),i=u(t.ld(),34),UX(e,u(i,17))<0)return!1;return!0}function xke(n,e){var t,i,r;for(r=new WE(new rd(n.b).a.vc().Kc());r.a.Ob();)if(t=u(r.a.Pb(),44),i=u(t.ld(),34),UX(e,u(i,17))>0)return!1;return!0}function Rke(n){switch(u(m(n.b,(cn(),whn)),387).g){case 1:_t(Kr(uc(new Mn(null,new Pn(n.d,16)),new yvn),new jvn),new Evn);break;case 2:!function NAe(n){var e,t,i,r,c,s,f;for(i=0,f=0,s=new C(n.d);s.a=n.f)break;Rn(c.c,t)}return c}function Qke(n,e){var t,i,c,s;for(c=new C(e.a);c.a0&&eKn(this,this.c-1,(en(),Zn)),this.c0&&n[0].length>0&&(this.c=on(un(m(Ki(n[0][0]),(V(),Cfn))))),this.a=K(Tie,J,2117,n.length,0,2),this.b=K(Aie,J,2118,n.length,0,2),this.d=new Vxn}function tye(n){return 0!=n.c.length&&((Ln(0,n.c.length),u(n.c[0],18)).c.i.k==(Xn(),Ei)||zg(Kr(new Mn(null,new Pn(n,16)),new tpn),new ipn))}function NKn(n,e){var i,r,c,s,f,h;for(f=Aw(e),s=y.Math.sqrt((c=e.f)*c+(h=e.g)*h),r=0,i=new C(f);i.a=0?(t=ly(n,gS),i=ty(n,gS)):(t=ly(e=ia(n,1),5e8),i=Yi(Us(i=ty(e,5e8),1),vi(n,1))),vf(Us(i,32),vi(t,vr))}function xKn(n,e,t){var i;switch(oe(0!=e.b),i=u(Qo(e,e.a.a),8),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return ck(ge(e,0),i),e}function BKn(n,e,t,i){var r,c,s,f;switch(f=IZ(s=(c=e.d).j,n.b.d[s.g],t),r=et(Bi(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}Nt(i,f,i.c.b,i.c)}function bye(n,e,t){var i,r,c,s;for(s=Hr(n.e,e,0),(c=new mz).b=t,i=new Ni(n.e,s);i.b=0;e--)ion[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)ton[n]=t,t*=.5}function kye(n){var e,t;if(on(un(z(n,(cn(),ng)))))for(t=new ie(ce(xl(n).a.Kc(),new Vn));ve(t);)if(tb(e=u(fe(t),74))&&on(un(z(e,Vd))))return!0;return!1}function RKn(n,e){var t,i,r;oi(n.f,e)&&(e.b=n,-1!=Hr(n.j,i=e.c,0)||nn(n.j,i),-1!=Hr(n.j,r=e.d,0)||nn(n.j,r),0!=(t=e.a.b).c.length&&(!n.i&&(n.i=new uRn(n)),function Mme(n,e){var t,i;for(i=new C(e);i.a=0&&Tn(n.substr(e,3),"GMT")||e>=0&&Tn(n.substr(e,3),"UTC"))&&(t[0]=e+3),function etn(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(Gi(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],0==(s=KA(n,e))&&e[0]==c)return!1;if(e[0]0&&Nc(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r=sr?(t=56320+(n-sr&1023)&ri,String.fromCharCode(Uy+(n-sr>>10&1023)&ri)+""+String.fromCharCode(t)):String.fromCharCode(n&ri)}function HKn(n,e,t,i,r){var c,s,f;for(c=Aqn(n,e,t,i,r),f=!1;!c;)HA(n,r,!0),f=!0,c=Aqn(n,e,t,i,r);f&&HA(n,r,!1),0!=(s=sF(r)).c.length&&(n.d&&n.d.Gg(s),HKn(n,r,t,i,s))}function FA(){FA=N,RU=new F6(Th,0),Edn=new F6("DIRECTED",1),Mdn=new F6("UNDIRECTED",2),ydn=new F6("ASSOCIATION",3),Cdn=new F6("GENERALIZATION",4),jdn=new F6("DEPENDENCY",5)}function D4(n,e){var t,i;for(Jn(e),i=n.b.c.length,nn(n.b,e);i>0;){if(t=i,n.a.Ne(sn(n.b,i=(i-1)/2|0),e)<=0)return Vo(n.b,t,e),!0;Vo(n.b,t,sn(n.b,i))}return Vo(n.b,i,e),!0}function Mnn(n,e,t,i){var r,c;if(r=0,t)r=nA(n.a[t.g][e.g],i);else for(c=0;c=f}function qKn(n){switch(n.g){case 0:return new u4n;case 1:return new o4n;default:throw M(new Un("No implementation is available for the width approximator "+(null!=n.f?n.f:""+n.g)))}}function Tnn(n,e,t,i){var r;if(r=!1,Mi(i)&&(r=!0,N3(e,t,Oe(i))),r||Vb(i)&&(r=!0,Tnn(n,e,t,i)),r||L(i,242)&&(r=!0,wd(e,t,u(i,242))),!r)throw M(new qL(tun))}function UKn(n,e){var t,i,r,c;if(Jn(e),(c=n.a.gc())=T1?"error":"warn",n.a),n.b&&Ien(e,t,n.b,"Exception: ",!0))}function m(n,e){var t;return!n.q&&(n.q=new de),ee(n.q,e)??(L(t=e.Sg(),4)&&(null==t?(!n.q&&(n.q=new de),Yv(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t))),t)}function zi(){zi=N,nf=new M7("P1_CYCLE_BREAKING",0),rl=new M7("P2_LAYERING",1),$c=new M7("P3_NODE_ORDERING",2),Uc=new M7("P4_NODE_PLACEMENT",3),Gr=new M7("P5_EDGE_ROUTING",4)}function zye(n,e){var t;if(p5(),n.c==e.c){if(n.b==e.b||function Z4e(n,e){return a4(),n==mb&&e==Gw||n==Gw&&e==mb||n==S2&&e==Uw||n==Uw&&e==S2}(n.b,e.b)){if(t=function Cle(n){return n==mb||n==Gw}(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return Tc(n.b.g,e.b.g)}return at(n.c,e.c)}function VKn(n,e){var t,i;if(Inn(n,e))return!0;for(i=new C(e);i.a=(r=n.Ej())||e<0)throw M(new Ar(qK+e+_d+r));if(t>=r||t<0)throw M(new Ar(UK+t+_d+r));return e!=t?(c=n.Cj(t),n.qj(e,c),i=c):i=n.xj(t),i}function YKn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>ZB)return YKn(t);if(i=t,t==n)throw M(new Sr("There is a cycle in the containment hierarchy of "+n))}return i}function pa(n){var e,t,i;for(i=new Cd(cr,"[","]"),t=n.Kc();t.Ob();)Al(i,x(e=t.Pb())===x(n)?"(this Collection)":null==e?yu:Jr(e));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function Inn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ma(){ma=N,hne=S(T(fr,1),Pc,64,0,[(en(),zn),Zn,ae]),fne=S(T(fr,1),Pc,64,0,[Zn,ae,Wn]),lne=S(T(fr,1),Pc,64,0,[ae,Wn,zn]),ane=S(T(fr,1),Pc,64,0,[Wn,zn,Zn])}function Wye(n,e,t,i){var r,s,f,h,a;if((s=n.c.d).j!=(f=n.d.d).j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=0==e?rA(r):JY(r),xe(i,et(IZ(r,a.d[r.g],t),IZ(h,a.d[h.g],t))),r=h}function Vye(n,e,t,i){var r,c,s,f,h;return f=u((s=tKn(n.a,e,t)).a,17).a,c=u(s.b,17).a,i&&(h=u(m(e,(V(),Wu)),10),r=u(m(t,Wu),10),h&&r&&(qLn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function n_n(n){var e,t,i,r,c,f,h,l;for(this.a=ERn(n),this.b=new Z,i=0,r=(t=n).length;i0&&(n.a[Fh.p]=H0n++)}for(r7=0,Ko=0,hf=(It=t).length;Ko0;){for(oe(lv.b>0),c3=0,f=new C((Fh=u(lv.a.Xb(lv.c=--lv.b),12)).e);f.a0&&(Fh.j==(en(),zn)?(n.a[Fh.p]=r7,++r7):(n.a[Fh.p]=r7+lf+i3,++i3))}r7+=i3}for(Kb=new de,p=new hh,Zu=0,hv=(te=e).length;Zul.b&&(l.b=xh)):Fh.i.c==Bse&&(xhl.c&&(l.c=xh));for(V3(k,0,k.length,null),u3=K(ye,_e,28,k.length,15,1),i=K(ye,_e,28,r7+1,15,1),A=0;A0;)tn%2>0&&(r+=cG[tn+1]),++cG[tn=(tn-1)/2|0];for(kn=K(Nie,xn,374,2*k.length,0,1),$=0;$eN(n.d).c?(n.i+=n.g.c,_F(n.d)):eN(n.d).c>eN(n.g).c?(n.e+=n.d.c,_F(n.g)):(n.i+=lPn(n.g),n.e+=lPn(n.d),_F(n.g),_F(n.d))}function t_n(n,e,t,i){n.a.d=y.Math.min(e,t),n.a.a=y.Math.max(e,i)-n.a.d,ef&&(h=f/i),(r=y.Math.abs(e.b-n.b))>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function ije(n,e,t,i,r){var c,s;for(s=!1,c=u(sn(t.b,0),27);LPe(n,e,c,i,r)&&(s=!0,Dke(t,c),0!=t.b.c.length);)c=u(sn(t.b,0),27);return 0==t.b.c.length&&fy(t.j,t),s&&SA(e.q),s}function rje(n,e){var t,i,r,c;if(f2(),e.b<2)return!1;for(i=t=u(be(c=ge(e,0)),8);c.b!=c.d.c;){if(Hx(n,i,r=u(be(c),8)))return!0;i=r}return!!Hx(n,i,t)}function Lnn(n,e,t,i){return 0==t?(!n.o&&(n.o=new Du((Sc(),ll),R1,n,0)),fM(n.o,e,i)):u(Nn(u(qn(n,16),29)||n.ii(),t),69).wk().Ak(n,uu(n),t-se(n.ii()),e,i)}function Tx(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,z9,t)),e&&(t=u(e,54).Rh(n,1,z9,t)),(t=UY(n,e,t))&&t.oj()):4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,4,e,e))}function r_n(n,e){var t,i;i=u(m(e,(cn(),Kt)),101),U(e,(V(),Pfn),i),(t=e.e)&&(_t(new Mn(null,new Pn(t.a,16)),new ZG(n)),_t(uc(new Mn(null,new Pn(t.b,16)),new hG),new nz(n)))}function Xn(){Xn=N,Ut=new P6("NORMAL",0),Ei=new P6("LONG_EDGE",1),Qt=new P6("EXTERNAL_PORT",2),Gc=new P6("NORTH_SOUTH_PORT",3),Oc=new P6("LABEL",4),Jf=new P6("BREAKING_POINT",5)}function c_n(n,e){var t,i,r;return(e&=63)<22?(t=n.l<>22-e,r=n.h<>22-e):e<44?(t=0,i=n.l<>44-e):(t=0,i=0,r=n.l<n)throw M(new Un("k must be smaller than n"));return 0==e||e==n?1:0==n?0:cnn(n)/(cnn(e)*cnn(n-e))}function Dnn(n,e){var t,i,r,c;for(t=new VX(n);null!=t.g||t.c?null==t.g||0!=t.i&&u(t.g[t.i-1],51).Ob():AJ(t);)if(L(c=u(qA(t),58),167))for(i=u(c,167),r=0;r0&&Ty(n,t,e),r):function aCe(n,e,t){var i,r,c;return r=n.c[t.c.p][t.p],null!=(i=n.c[e.c.p][e.p]).a&&null!=r.a?((c=TN(i.a,r.a))<0?Ty(n,e,t):c>0&&Ty(n,t,e),c):null!=i.a?(Ty(n,e,t),-1):null!=r.a?(Ty(n,t,e),1):0}(n,e,t)}function ka(){ka=N,Ue(),dce=Wp,bce=r0,fce=i0,hce=tv,lce=Ra,sce=ev,v1n=lE,ace=hg,Xen(),zq=Qre,Xq=Yre,m1n=tce,Wq=cce,k1n=ice,y1n=rce,p1n=Zre,uO=nce,oO=ece,Zj=uce,j1n=oce,g1n=Jre}function s_n(n,e){var t,i,r,c,s;if(n.e<=e||function W2e(n,e,t){var i;return(i=s8(n,e,!1)).b<=e&&i.a<=t}(n,n.g,e))return n.g;for(s=n.r,r=((c=n.r)-(i=n.g))/2+i;i+11&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function Pje(n){var e,t,i,r;switch(e=(r=n.i).b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function h_n(n,e,t,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function Oje(n){if(L(n,143))return function sTe(n){var t,i,l,a,d;return d=Enn(n),null!=n.a&&N3(d,"category",n.a),!v7(new rd(n.d))&&(kf(d,"knownOptions",l=new td),t=new ayn(l),_i(new rd(n.d),t)),!v7(n.g)&&(kf(d,"supportedFeatures",a=new td),i=new dyn(a),_i(n.g,i)),d}(u(n,143));if(L(n,233))return function Y5e(n){var e,r,c;return c=Enn(n),!v7(n.c)&&(kf(c,"knownLayouters",r=new td),e=new byn(r),_i(n.c,e)),c}(u(n,233));if(L(n,23))return function fje(n){var e,h,l;return l=Enn(n),null!=n.e&&N3(l,cP,n.e),!!n.k&&N3(l,"type",YD(n.k)),!v7(n.j)&&(h=new td,kf(l,_K,h),e=new wyn(h),_i(n.j,e)),l}(u(n,23));throw M(new Un(iun+pa(new _u(S(T(pi,1),xn,1,5,[n])))))}function xnn(n,e,t,i){var r,c;if(e.k==(Xn(),Ei))for(c=new ie(ce(ki(e).a.Kc(),new Vn));ve(c);)if((r=u(fe(c),18)).c.i.k==Ei&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0;return!1}function l_n(n,e,t,i){var r;this.b=i,this.e=n==(z0(),g9),this.d=hd(fo,[J,el],[183,28],16,[(r=e[t]).length,r.length],2),this.a=hd(ye,[J,_e],[53,28],15,[r.length,r.length],2),this.c=new pnn(e,t)}function Nje(n){var t,i;for(n.k=new IJ((en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])).length,n.j.c.length),i=new C(n.j);i.a=t)return $4(n,e,i.p),!0;return!1}function c2(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=r$n((Gn(e,n.length+1),n.substr(e)),(uN(),non)),f=0;fc&&owe(l,r$n(t[f],non))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function d_n(n){var e;return 64&n.Db?Ax(n):(e=new yo(zcn),!n.a||Re(Re((e.a+=' "',e),n.a),'"'),Re(v0(Re(v0(Re(v0(Re(v0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function b_n(n,e,t){var i,r,c,s,f;for(f=ou(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;s0&&v_n(n,c,t));e.p=0}function ln(n){var e;this.c=new yt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,this.j=n.i?n.i:new Go(e=u(df(ol),9),u(Hs(e,e.length),9),0),this.g=n.f}function p_n(n,e,t){var i,r,c;if(!(t<=e+2))for(r=(t-e)/2|0,i=0;i=0?n.ki(r):Qnn(n,i)}else Zo(n,t,i)}function Bnn(n){var e,t;if(t=null,e=!1,L(n,211)&&(e=!0,t=u(n,211).a),e||L(n,263)&&(e=!0,t=""+u(n,263).a),e||L(n,493)&&(e=!0,t=""+u(n,493).a),!e)throw M(new qL(tun));return t}function Rnn(n,e,t){var i,r,s,f,h;for(h=ou(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s=n.d.b.c.length&&((e=new xc(n.d)).p=i.p-1,nn(n.d.b,e),(t=new xc(n.d)).p=i.p,nn(n.d.b,t)),Di(i,u(sn(n.d.b,i.p),30))}function Hnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,!(i=t)&&(i=new kk),xe(i.b,e),c=n.a[e.g].Kc();c.Ob();)(r=u(c.Pb(),65)).b!=e&&Hnn(n,r.b,i),r.c!=e&&Hnn(n,r.c,i),xe(i.a,r);return i}return null}function Gje(n,e){var t;return 0!=n.c.length&&(t=$Bn((Ln(0,n.c.length),u(n.c[0],18)).c.i),Eo(),t==(kw(),U2)||t==q2||zg(Kr(new Mn(null,new Pn(n,16)),new rpn),new ekn(e)))}function Ox(n,e){if(L(e,207))return function Rle(n,e){return FT(xN(n.g),e)}(n,u(e,27));if(L(e,193))return function Kle(n,e){return FT(xN(n.j),e)}(n,u(e,123));if(L(e,452))return function Ble(n,e){return FT(xN(n.d),e)}(n,u(e,166));throw M(new Un(iun+pa(new _u(S(T(pi,1),xn,1,5,[e])))))}function E_n(n,e,t){var i,r;if(this.f=n,uQ(t,r=(i=u(ee(n.b,e),260))?i.a:0),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)IQ(this);this.b=e,this.a=null}function zje(n,e){var t,i;e.a?function TTe(n,e){var t;if(!ik(n.b,e.b))throw M(new Sr("Invalid hitboxes for scanline constraint calculation."));(ixn(e.b,u(function Khe(n,e){return n.a.Yc(e)}(n.b,e.b),60))||ixn(e.b,u(function Rhe(n,e){return n.a.Xc(e)}(n.b,e.b),60)))&&(ml(),String.fromCharCode(10)),n.a[e.b.f]=u(nD(n.b,e.b),60),(t=u(ZL(n.b,e.b),60))&&(n.a[t.f]=e.b)}(n,e):((t=u(nD(n.b,e.b),60))&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),(i=u(ZL(n.b,e.b),60))&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),XD(n.b,e.b))}function C_n(n,e){var t,i;if(t=u(Er(n.b,e),127),u(u(ut(n.r,e),21),87).dc())return t.n.b=0,void(t.n.c=0);t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((mo(),u0))&&Jqn(n,e),i=function k9e(n,e){var t,i,r;for(r=0,i=u(u(ut(n.r,e),21),87).Kc();i.Ob();)r+=(t=u(i.Pb(),117)).d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}(n,e),Ux(n,e)==(Zg(),_a)&&(i+=2*n.w),t.a.a=i}function M_n(n,e){var t,i;if(t=u(Er(n.b,e),127),u(u(ut(n.r,e),21),87).dc())return t.n.d=0,void(t.n.a=0);t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((mo(),u0))&&Qqn(n,e),i=function m9e(n,e){var t,i,r;for(r=0,i=u(u(ut(n.r,e),21),87).Kc();i.Ob();)r+=(t=u(i.Pb(),117)).d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}(n,e),Ux(n,e)==(Zg(),_a)&&(i+=2*n.w),t.a.b=i}function Xje(n,e){var t,i,r,c;for(c=new Z,i=new C(e);i.ai&&(Gn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||et.a&&(i.Hc((Id(),L9))?r=(e.a-t.a)/2:i.Hc(D9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((Id(),$9))?c=(e.b-t.b)/2:i.Hc(N9)&&(c=e.b-t.b)),Ann(n,r,c)}function L_n(n,e,t,i,r,c,s,f,h,l,a,d,g){L(n.Cb,90)&&Mw(no(u(n.Cb,90)),4),Jc(n,t),n.f=s,j4(n,f),C4(n,h),y4(n,l),E4(n,a),m1(n,d),M4(n,g),p1(n,!0),b1(n,r),n.Zk(c),Ad(n,e),null!=i&&(n.i=null,RT(n,i))}function Xnn(n,e,t){if(n<0)return t8(Pzn,S(T(pi,1),xn,1,5,[t,Y(n)]));if(e<0)throw M(new Un(Izn+e));return t8("%s (%s) must not be greater than size (%s)",S(T(pi,1),xn,1,5,[t,Y(n),Y(e)]))}function Wnn(n,e,t,i,r,c){var f,h,l;if(i-t<7)!function _5e(n,e,t,i){var r,c,s;for(r=e+1;re&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],Dt(n,c,n[c-1]),Dt(n,c-1,s)}(e,t,i,c);else if(Wnn(e,n,h=t+r,l=h+((f=i+r)-h>>1),-r,c),Wnn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0)for(;t=i||e=0?n.bi(c,t):Cen(n,r,t)}else ns(n,i,r,t)}function D_n(n){var e,t;if(n.f){for(;n.n>0;){if(L(t=(e=u(n.k.Xb(n.n-1),76)).Lk(),102)&&u(t,19).Bb&Cc&&(!n.e||t.pk()!=e6||0!=t.Lj())&&null!=e.md())return!0;--n.n}return!1}return n.n>0}function N_n(n){var e,t,i,r;if(t=u(n,54)._h())try{if(i=null,(e=x4((Y1(),Ns),mUn(function Z5e(n){return null==n.e?n:(!n.c&&(n.c=new zx(0!=(256&n.f),n.i,n.a,n.d,0!=(16&n.f),n.j,n.g,null)),n.c)}(t))))&&(r=e.ai())&&(i=r.Fl(function nhe(n){return Jn(n),n}(t.e))),i&&i!=n)return N_n(i)}catch(c){if(!L(c=At(c),63))throw M(c)}return n}function fEe(n,e,t){var i,r;t.Ug("Remove overlaps",1),t.dh(e,ccn),i=u(z(e,(_g(),X2)),27),n.f=i,n.a=QF(u(z(e,(ka(),Zj)),300)),KG(n,(Jn(r=R(z(e,(Ue(),r0)))),r)),_Gn(n,e,Aw(i),t),t.dh(e,QS)}function $_n(n){if(!n)return $jn(),vQn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=m_[typeof e];return t?t(e):xY(typeof e)}return n instanceof Array||n instanceof y.Array?new NG(n):new s7(n)}function F_n(n,e,t){var i,r,c;switch(c=n.o,(r=(i=u(Er(n.p,t),252)).i).b=V5(i),r.a=W5(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}iB(i),rB(i)}function x_n(n,e,t){var i,r,c;switch(c=n.o,(r=(i=u(Er(n.p,t),252)).i).b=V5(i),r.a=W5(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}iB(i),rB(i)}function dEe(n,e){var t,i,r,c;if(f2(),e.b<2)return!1;for(i=t=u(be(c=ge(e,0)),8);c.b!=c.d.c;){if(r=u(be(c),8),!o4(n,i)||!o4(n,r))return!1;i=r}return!(!o4(n,i)||!o4(n,t))}function Vnn(n,e){var s,f,h,l,d;return s=Ol(d=n,"x"),function G3e(n,e){ru(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new Zkn(e).a,s),f=Ol(d,"y"),function z3e(n,e){cu(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new nyn(e).a,f),h=Ol(d,xK),function X3e(n,e){G0(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new eyn(e).a,h),l=Ol(d,FK),function W3e(n,e){U0(n,null==e||hM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}(new tyn(e).a,l),l}function Mw(n,e){Xqn(n,e),1&n.b&&(n.a.a=null),2&n.b&&(n.a.f=null),4&n.b&&(n.a.g=null,n.a.i=null),16&n.b&&(n.a.d=null,n.a.e=null),8&n.b&&(n.a.b=null),32&n.b&&(n.a.j=null,n.a.c=null)}function gEe(n){var e,t,i,r,c;if(null==n)return yu;for(c=new Cd(cr,"[","]"),i=0,r=(t=n).length;i(Ln(f+1,e.c.length),u(e.c[f+1],17)).a-i&&++l,nn(s,(Ln(f+l,e.c.length),u(e.c[f+l],17))),h+=(Ln(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t=0?n.Lh(t,!0,!0):ib(n,r,!0),160),u(i,220).Zl(e)}function Ynn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?0==n?0:((e=n<0)&&(n=-n),t=di(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):nxn(Ec(n))}function LEe(n,e,t){t.Ug("Eades radial",1),t.dh(e,QS),n.d=u(z(e,(_g(),X2)),27),n.c=F(R(z(e,(ka(),oO)))),n.e=QF(u(z(e,Zj),300)),n.a=function o8e(n){switch(n.g){case 0:return new Q3n;case 1:return new Y3n;default:throw M(new Un(wK+(null!=n.f?n.f:""+n.g)))}}(u(z(e,j1n),434)),n.b=function Ake(n){switch(n.g){case 1:return new G3n;case 2:return new z3n;case 3:return new U3n;case 0:return null;default:throw M(new Un(wK+(null!=n.f?n.f:""+n.g)))}}(u(z(e,p1n),354)),function fke(n){var e,t,i,r,c;if(i=0,r=p2,n.b)for(e=0;e<360;e++)Yen(n,n.d,0,0,Rd,t=.017453292519943295*e),(c=n.b.Dg(n.d))=(c=s.gc()))s.$b();else for(r=s.Kc(),i=0;i0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=Xjn(nF(cw(rt(zV(n.a),new fbn),new hbn)));return f>0?f+n.n.d+n.n.a:0}function V5(n){var e,t,i,r,c,f;if(f=0,0==n.b)f=Xjn(nF(cw(rt(zV(n.a),new obn),new sbn)));else{for(e=0,r=0,c=(i=ORn(n,!0)).length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function KEe(n){var e,t;if(2!=n.c.length)throw M(new Sr("Order only allowed for two paths."));Ln(0,n.c.length),e=u(n.c[0],18),Ln(1,n.c.length),t=u(n.c[1],18),e.d.i!=t.c.i&&(n.c.length=0,Rn(n.c,t),Rn(n.c,e))}function V_n(n,e,t){var i;for($g(t,e.g,e.f),qo(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i;i++)V_n(n,u(D((!e.a&&(e.a=new q(Qe,e,10,11)),e.a),i),27),u(D((!t.a&&(t.a=new q(Qe,t,10,11)),t.a),i),27))}function J_n(n){var e,t;return(t=new V1).a+="e_",null!=(e=function Fme(n){return 0!=n.b.c.length&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:qN(n)}(n))&&(t.a+=""+e),n.c&&n.d&&(Re((t.a+=" ",t),IA(n.c)),Re(Fc((t.a+="[",t),n.c.i),"]"),Re((t.a+=AR,t),IA(n.d)),Re(Fc((t.a+="[",t),n.d.i),"]")),t.a}function Q_n(n){switch(n.g){case 0:return new g8n;case 1:return new v8n;case 2:return new b8n;case 3:return new d8n;default:throw M(new Un("No implementation is available for the layout phase "+(null!=n.f?n.f:""+n.g)))}}function een(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function ten(n){var e,t;switch(n.b){case-1:return!0;case 0:return(t=n.t)>1||-1==t||(e=ys(n))&&(ar(),e.lk()==pJn)?(n.b=-1,!0):(n.b=1,!1);default:return!1}}function ien(n,e){var t,i,r,c;if(Ye(n),0!=n.c||123!=n.a)throw M(new De($e((Ie(),KVn))));if(c=112==e,(t=A3(n.i,125,i=n.d))<0)throw M(new De($e((Ie(),_Vn))));return r=Xo(n.i,i,t),n.d=t+1,yNn(r,c,512==(512&n.e))}function Y_n(n){var e,t,i,r,c,s,f;if((i=n.a.c.length)>0)for(s=n.c.d,r=lh(gi(new W((f=n.d.d).a,f.b),s),1/(i+1)),c=new W(s.a,s.b),t=new C(n.a);t.a=0&&i=0?n.Lh(t,!0,!0):ib(n,r,!0),160),u(i,220).Wl(e);throw M(new Un(Aa+e.xe()+LK))}function KA(n,e){var t,i,r;if(r=0,(i=e[0])>=n.length)return-1;for(Gn(i,n.length),t=n.charCodeAt(i);t>=48&&t<=57&&(r=10*r+(t-48),!(++i>=n.length));)Gn(i,n.length),t=n.charCodeAt(i);return i>e[0]?e[0]=i:r=-1,r}function YEe(n,e,t){var i,r,s,f;s=n.c,f=n.d,r=(oc(S(T(yi,1),J,8,0,[s.i.n,s.n,s.a])).b+oc(S(T(yi,1),J,8,0,[f.i.n,f.n,f.a])).b)/2,i=s.j==(en(),Zn)?new W(e+s.i.c.c.a+t,r):new W(e-t,r),S3(n.a,0,i)}function tb(n){var e,i,r;for(e=null,i=qh(To(S(T(No,1),xn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));ve(i);)if(r=Ur(u(fe(i),84)),e){if(e!=r)return!1}else e=r;return!0}function $x(n,e,t){var i;if(++n.j,e>=n.i)throw M(new Ar(qK+e+_d+n.i));if(t>=n.i)throw M(new Ar(UK+t+_d+n.i));return i=n.g[t],e!=t&&(e>16)>>16&16),t+=e=(n>>=e)-256>>16&8,t+=e=(n<<=e)-Nw>>16&4,(t+=e=(n<<=e)-yh>>16&2)+2-(e=(i=(n<<=e)>>14)&~(i>>1)))}function ZEe(n){var e,t,i,r;for(Xv(),xP=new Z,H_=new de,__=new Z,!n.a&&(n.a=new q(Qe,n,10,11)),function qLe(n){var e,t,r,s,f,h,l,d,g,v;for(e=new de,h=new ne(n);h.e!=h.i.gc();){for(f=u(ue(h),27),t=new Yt,Xe(H_,f,t),v=new Rbn,r=u(Vr(new Mn(null,new L0(new ie(ce(yy(f).a.Kc(),new Vn)))),gPn(v,Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)])))),85),J$n(t,u(r.xc((Kn(),!0)),16),new Kbn),s=u(Vr(rt(u(r.xc(!1),15).Lc(),new _bn),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15).Kc();s.Ob();)(g=JKn(u(s.Pb(),74)))&&((l=u(Rr(br(e.f,g)),21))||(l=mqn(g),Yc(e.f,g,l)),Fi(t,l));for(r=u(Vr(new Mn(null,new L0(new ie(ce(xl(f).a.Kc(),new Vn)))),gPn(v,Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr])))),85),J$n(t,u(r.xc(!0),16),new Hbn),d=u(Vr(rt(u(r.xc(!1),15).Lc(),new qbn),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15).Kc();d.Ob();)(g=QKn(u(d.Pb(),74)))&&((l=u(Rr(br(e.f,g)),21))||(l=mqn(g),Yc(e.f,g,l)),Fi(t,l))}}(e=n.a),r=new ne(e);r.e!=r.i.gc();)i=u(ue(r),27),-1==Hr(xP,i,0)&&(t=new Z,nn(__,t),tRn(i,t));return __}function eCe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)(t=u(be(i),65)).c.g==n.g&&x(m(t.b,(bc(),Nh)))!==x(m(t.c,Nh))&&!zg(new Mn(null,new Pn(r,16)),new dkn(t))&&Rn(r.c,t);return Jt(r,new Upn),r}function nHn(n,e,t){var i,r,c,s;return L(e,153)&&L(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):L(e,250)&&L(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(m(r.a,(Js(),Np)),17).a:0}function eHn(n,e){var t,i,r,c,s,f,h,l;for(l=F(R(m(e,(cn(),h9)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f0?1:E0(isNaN(i),isNaN(0)))>=0^(zs(Sh),(y.Math.abs(f)<=Sh||0==f||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:E0(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(zs(Sh),(y.Math.abs(i)<=Sh||0==i||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:E0(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}(c=i.b,s=r.b))>=0?t:(f=o5(gi(new W(s.c+s.b/2,s.d+s.a/2),new W(c.c+c.b/2,c.d+c.a/2))),-(AUn(c,s)-1)*f)}function ib(n,e,t){var i,r,c;if(c=a2(($u(),Ui),n.Dh(),e))return ar(),u(c,69).xk()||(c=Vv(Ir(Ui,c))),r=u((i=n.Ih(c))>=0?n.Lh(i,!0,!0):ib(n,c,!0),160),u(r,220).Sl(e,t);throw M(new Un(Aa+e.xe()+LK))}function ren(n,e,t,i){var r,c,s,f,h;if(r=n.d[e])if(c=r.g,h=r.i,null!=i){for(f=0;f>5),15,1))[t]=1<1;e>>=1)1&e&&(i=Gg(i,t)),t=1==t.d?Gg(t,t):new nRn(kUn(t.a,t.d,K(ye,_e,28,t.d<<1,15,1)));return Gg(i,t)}(n,e)}function tHn(n){var e,t,i;for(tX(),this.b=SZn,this.c=(ii(),eh),this.f=(dCn(),AZn),this.a=n,qz(this,new nwn),WA(this),i=new C(n.b);i.a=null.Um()?(qA(n),cen(n)):e.Ob()}function cHn(n){if(this.a=n,n.c.i.k==(Xn(),Qt))this.c=n.c,this.d=u(m(n.c.i,(V(),mc)),64);else{if(n.d.i.k!=Qt)throw M(new Un("Edge "+n+" is not an external edge."));this.c=n.d,this.d=u(m(n.d.i,(V(),mc)),64)}}function uHn(n,e){var t,r;r=n.b,n.b=e,4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,3,r,n.b)),e?e!=n&&(Jc(n,e.zb),q$(n,e.d),G$(n,null==(t=e.c??e.zb)||Tn(t,e.zb)?null:t)):(Jc(n,null),q$(n,0),G$(n,null))}function oHn(n,e){var t;this.e=(D0(),Se(n),D0(),mZ(n)),this.c=(Se(e),mZ(e)),sW(this.e.Rd().dc()==this.c.Rd().dc()),this.d=jBn(this.e),this.b=jBn(this.c),t=hd(pi,[J,xn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,function L4e(n){var e,t,i,r;for(i=0,r=(t=n.a).length;i0?up(t):ny(up(t)),ft(e,xm,c)}function lCe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&Jt(s,new Mvn),r=s.c.length/2|0,i=0;i=0;)s.am((i=t[c]).Lk())&&me(r,i);!fzn(n,r)&&ao(n.e)&&b3(n,e.Jk()?oa(n,6,e,(On(),Vi),null,-1,!1):oa(n,e.tk()?2:1,e,null,null,-1,!1))}function bCe(n,e){var i,r,s;return n.a==(N4(),Z8)||!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=e.a.c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-(e.a.c+e.a.b),r>s))}function wHn(n){var e,t,r,c,s,f;for(r$(),t=new h1,r=new C(n.e.b);r.a1?n.e*=F(n.a):n.f/=F(n.a),function F6e(n){var t,r;for(t=n.b.a.a.ec().Kc();t.Ob();)r=new VHn(u(t.Pb(),567),n.e,n.f),nn(n.g,r)}(n),H8e(n),function RAe(n){var i,r,c,s,d,g;for(r=function $Me(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=nt,r=Xi,f=nt,c=Xi,l=0;l=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&tt(n,new ji(n,9,t,c,r)),r):c}function hen(n,e){var i,r,c,s;for(c=n.b.Ce(e),i=n.a.get(c)??K(pi,xn,1,0,5,1),s=0;s>5)>=n.d)return n.e<0;if(t=n.a[r],e=1<<(31&e),n.e<0){if(r<(i=DFn(n)))return!1;t=i==r?-t:~t}return 0!=(t&e)}function aen(n,e){var t,i,r,c,s,f,h;if(c=e.e)for(t=xx(c),i=u(n.g,689),s=0;s>16)),15).dd(c))>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Kl:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Kl:0,c=i?co:0,r=t>>e-44),eu(r&co,c&co,s&Kl)}function Bx(n){var e,t,i,r,c,s;for(this.c=new Z,this.d=n,i=Mt,r=Mt,e=fi,t=fi,s=ge(n,0);s.b!=s.d.c;)c=u(be(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new zo(i,r,e-i,t-r)}function IHn(n,e){var i,c,s,f;for(c=new C(n.b);c.a0&&L(e,44)&&(n.a._j(),c=null==(h=(l=u(e,44)).ld())?0:wt(h),s=$W(n.a,c),t=n.a.d[s]))for(i=u(t.g,379),a=t.i,f=0;f=2)for(e=R((t=r.Kc()).Pb());t.Ob();)c=e,e=R(t.Pb()),i=y.Math.min(i,(Jn(e),e-(Jn(c),c)));return i}function FCe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)(t=u(be(i),65)).b.g==n.g&&!Tn(t.b.c,VS)&&x(m(t.b,(bc(),Nh)))!==x(m(t.c,Nh))&&!zg(new Mn(null,new Pn(r,16)),new bkn(t))&&Rn(r.c,t);return Jt(r,new Wpn),r}function xCe(n,e){var t,i,r;if(x(e)===x(Se(n)))return!0;if(!L(e,15)||(i=u(e,15),(r=n.gc())!=i.gc()))return!1;if(L(i,59)){for(t=0;te.a&&(i.Hc((Id(),L9))?n.c.a+=(t.a-e.a)/2:i.Hc(D9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((Id(),$9))?n.c.b+=(t.b-e.b)/2:i.Hc(N9)&&(n.c.b+=t.b-e.b)),u(m(n,(V(),zc)),21).Hc((gr(),fs))&&(t.a>e.a||t.b>e.b))for(f=new C(n.a);f.a0&&(r=t),s=new C(n.f.e);s.a0&&r0):r<0&&-r0)}function YCe(n,e,t,i){var r,c,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new C(n.c);d.a=0&&Tn(n.substr(f,2),"//")?($i(f+=2,h=GF(n,f,W9,V9),n.length),i=n.substr(f,h-f),f=h):null!=d&&(f==n.length||(Gn(f,n.length),47!=n.charCodeAt(f)))&&(s=!1,-1==(h=dW(n,ku(35),f))&&(h=n.length),$i(f,h,n.length),i=n.substr(f,h-f),f=h);if(!t&&f0&&58==Gi(a,a.length-1)&&(r=a,f=h)),f0&&(Gn(0,t.length),47!=t.charCodeAt(0))))throw M(new Un("invalid opaquePart: "+t));if(n&&(null==e||!k7(_O,e.toLowerCase()))&&null!=t&&$F(t,W9,V9))throw M(new Un(uJn+t));if(n&&null!=e&&k7(_O,e.toLowerCase())&&!function Vke(n){if(null!=n&&n.length>0&&33==Gi(n,n.length-1))try{return null==BHn(Xo(n,0,n.length-1)).e}catch(t){if(!L(t=At(t),33))throw M(t)}return!1}(t))throw M(new Un(uJn+t));if(!function e8e(n){var e;return null==n||(e=n.length)>0&&(Gn(e-1,n.length),58==n.charCodeAt(e-1))&&!$F(n,W9,V9)}(i))throw M(new Un("invalid device: "+i));if(!function R6e(n){var e,t;if(null==n)return!1;for(e=0,t=n.length;e=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function rMe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,f=0,h=(s=n).length;f0&&++a;++l}return a}function Ws(n){var t;return(t=new yo(sd(n.Rm))).a+="@",Re(t,(wt(n)>>>0).toString(16)),n.Vh()?(t.a+=" (eProxyURI: ",Fc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Fc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Fc(t,n.Kh()),t.a+=")"),t.a}function Y5(n){var e,t,r;if(n.e)throw M(new Sr((yl(I_),oR+I_.k+sR)));for(n.d==(ii(),eh)&&fS(n,$r),t=new C(n.a.a);t.a=0)return r;for(c=1,f=new C(e.j);f.a=0)return r;for(c=1,f=new C(e.j);f.a0&&e.Ne((Ln(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Vo(n,r,(Ln(r-1,n.c.length),u(n.c[r-1],10))),--r;Ln(r,n.c.length),n.c[r]=c}t.a=new de,t.b=new de}function zHn(n,e,t){var r;if(2==(n.c-n.b&n.a.length-1))e==(en(),zn)||e==Zn?(AT(u(T5(n),15),(Po(),sl)),AT(u(T5(n),15),Ka)):(AT(u(T5(n),15),(Po(),Ka)),AT(u(T5(n),15),sl));else for(r=new f5(n);r.a!=r.b;)AT(u(eA(r),15),t)}function dMe(n,e){var t,r,c,s,f,h;for(f=new Ni(r=D3(new rz(n)),r.c.length),h=new Ni(c=D3(new rz(e)),c.c.length),s=null;f.b>0&&h.b>0&&(oe(f.b>0),t=u(f.a.Xb(f.c=--f.b),27),oe(h.b>0),t==u(h.a.Xb(h.c=--h.b),27));)s=t;return s}function XHn(n,e,t){var i,r,c,s;WOn(n,e)>WOn(n,t)?(i=sc(t,(en(),Zn)),n.d=i.dc()?0:gN(u(i.Xb(0),12)),s=sc(e,Wn),n.b=s.dc()?0:gN(u(s.Xb(0),12))):(r=sc(t,(en(),Wn)),n.d=r.dc()?0:gN(u(r.Xb(0),12)),c=sc(e,Zn),n.b=c.dc()?0:gN(u(c.Xb(0),12)))}function WHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ut(n.r,e),21),87).Kc();c.Ob();)(r=u(c.Pb(),117)).e.a=t*F(R(r.b.of(DP))),r.e.b=(i=r.b).pf((Ue(),so))?i.ag()==(en(),zn)?-i.Mf().b-F(R(i.of(so))):F(R(i.of(so))):i.ag()==(en(),zn)?-i.Mf().b:0}function wMe(n){var e,t,i,r,c,s,f,h;e=!0,r=null,c=null;n:for(h=new C(n.a);h.a>1,n.k=t-1>>1}(this,this.d,this.c),function xEe(n){var e,t,i,r,c,s,f;for(t=QX(n.e),c=lh(W6(Bi(JX(n.e)),n.d*n.a,n.c*n.b),-.5),e=t.a-c.a,r=t.b-c.b,f=0;f0&&YIe(this,r)}function yen(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,!(s=i)&&(s=new lT),nn(s.e,e),h=c[e.a].Kc();h.Ob();)(f=u(h.Pb(),290)).d!=t&&f.c!=t&&(f.c!=e&¥(n,f.c,e,s,r,c),f.d!=e&¥(n,f.d,e,s,r,c),nn(s.c,f),si(s.d,f.b));return s}return null}function vMe(n){var e,r,s;for(e=0,r=new C(n.e);r.a=2}function jen(n,e,t){var i,r,c;for(c=new C(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&xe(e,i.b));for(r=new C(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&xe(t,i.a))}function qA(n){var e,t,r;if(null==n.g&&(n.d=n.bj(n.f),me(n,n.d),n.c))return n.f;if(r=(e=u(n.g[n.i-1],51)).Pb(),n.e=e,(t=n.bj(r)).Ob())n.d=t,me(n,t);else for(n.d=null;!e.Ob()&&(Dt(n.g,--n.i,null),0!=n.i);)e=u(n.g[n.i-1],51);return r}function yMe(n,e,t,i){var r,s,f;for(id(r=new Fl(n),(Xn(),Oc)),U(r,(V(),ot),e),U(r,i9,i),U(r,(cn(),Kt),(Ii(),Xc)),U(r,Af,e.c),U(r,Ss,e.d),Eqn(e,r),f=y.Math.floor(t/2),s=new C(r.j);s.a=2147483648&&(i-=4294967296),i)}function ZHn(n,e,t){var i,r,c,s,f,h,l;for(c=new Z,function HPe(n,e,t,i){var r,c,s,f,h,l,a;for(f=-1,a=new C(n);a.a0&&p.a<=0){h.c.length=0,Rn(h.c,p);break}(v=p.i-p.d)>=f&&(v>f&&(h.c.length=0,f=v),Rn(h.c,p))}0!=h.c.length&&(s=u(sn(h,CA(r,h.c.length)),118),O.a.Bc(s),s.g=a++,stn(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new C(n);g.ai.b.g&&Rn(c.c,i);return c}function Cen(n,e,t){var i,r,c;if(!(c=a2(($u(),Ui),n.Dh(),e)))throw M(new Un(Aa+e.xe()+O8));if(ar(),!u(c,69).xk()&&!(c=Vv(Ir(Ui,c))))throw M(new Un(Aa+e.xe()+O8));r=u((i=n.Ih(c))>=0?n.Lh(i,!0,!0):ib(n,c,!0),160),u(r,220).Xl(e,t)}function UA(n,e){var i,r,c,s;if(e){for(s=!(c=L(n.Cb,90)||L(n.Cb,102))&&L(n.Cb,331),i=new ne((!e.a&&(e.a=new Z6(e,yr,e)),e.a));i.e!=i.i.gc();)if(r=iS(u(ue(i),89)),c?L(r,90):s?L(r,156):r)return r;return c?(In(),$s):(In(),rh)}return null}function SMe(n,e){var t,i,c;for(e.Ug("Resize child graph to fit parent.",1),i=new C(n.b);i.ae.a&&(i.Hc((Id(),L9))?n.c.a+=(t.a-e.a)/2:i.Hc(D9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((Id(),$9))?n.c.b+=(t.b-e.b)/2:i.Hc(N9)&&(n.c.b+=t.b-e.b)),u(m(n,(V(),zc)),21).Hc((gr(),fs))&&(t.a>e.a||t.b>e.b))for(s=new C(n.a);s.a0),c.a.Xb(c.c=--c.b),nw(c,r),oe(c.b0);t++);if(t>0&&t0);e++);return e>0&&t>16!=6&&e){if(I4(n,e))throw M(new Un(L8+gHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?WZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,6,i)),(i=LW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,6,e,e))}function zA(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(I4(n,e))throw M(new Un(L8+iGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?YZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,12,i)),(i=DW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,3,e,e))}function Men(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(I4(n,e))throw M(new Un(L8+eUn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?JZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,9,i)),(i=NW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,9,e,e))}function B4(n){var e,t,i,r,c;if(i=ys(n),null==(c=n.j)&&i)return n.Jk()?null:i.ik();if(L(i,156)){if((t=i.jk())&&(r=t.wi())!=n.i){if((e=u(i,156)).nk())try{n.g=r.ti(e,c)}catch(s){if(!L(s=At(s),82))throw M(s);n.g=null}n.i=r}return n.g}return null}function iqn(n){var e;return nn(e=new Z,new Sv(new W(n.c,n.d),new W(n.c+n.b,n.d))),nn(e,new Sv(new W(n.c,n.d),new W(n.c,n.d+n.a))),nn(e,new Sv(new W(n.c+n.b,n.d+n.a),new W(n.c+n.b,n.d))),nn(e,new Sv(new W(n.c+n.b,n.d+n.a),new W(n.c,n.d+n.a))),e}function RMe(n){var e,i;if(null==n)return yu;try{return Jr(n)}catch(r){if(L(r=At(r),103))return e=r,i=sd(po(n))+"@"+(ml(),(TZ(n)>>>0).toString(16)),Z8e(Bme(),(C3(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+sd(e.Rm)+">";throw M(r)}}function KMe(n,e,t){var r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),!u(ee(n.b,r),272)&&(Ct(Wh(r))==Ct(va(r))?ATe(n,r,t):Wh(r)==Ct(va(r))?null==ee(n.c,r)&&null!=ee(n.b,va(r))&&$Gn(n,r,t,!1):null==ee(n.d,r)&&null!=ee(n.b,Wh(r))&&$Gn(n,r,t,!0))}function _Me(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),cc(f=new Dc,i),bi(f,(en(),Zn)),U(f,(V(),MI),(Kn(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),cc(h=new Dc,c),bi(h,Wn),U(h,MI,!0),U(t=new B0,MI,!0),Qi(t,f),Pi(t,h)}function HMe(n,e,t,i){var r,c,s,f;r=_Bn(n,e,t),c=_Bn(n,t,e),s=u(ee(n.c,e),118),f=u(ee(n.c,t),118),r>16!=11&&e){if(I4(n,e))throw M(new Un(L8+Gen(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?ZZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=fp(e,n,10,i)),(i=qW(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,11,e,e))}function Hx(n,e,t){return f2(),(!o4(n,e)||!o4(n,t))&&(mB(new W(n.c,n.d),new W(n.c+n.b,n.d),e,t)||mB(new W(n.c+n.b,n.d),new W(n.c+n.b,n.d+n.a),e,t)||mB(new W(n.c+n.b,n.d+n.a),new W(n.c,n.d+n.a),e,t)||mB(new W(n.c,n.d+n.a),new W(n.c,n.d),e,t))}function Ten(n,e){var t,i,r,c;if(!n.dc())for(t=0,i=n.gc();t>16!=7&&e){if(I4(n,e))throw M(new Un(L8+d_n(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?VZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=u(e,54).Rh(n,1,EE,i)),(i=FV(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,7,e,e))}function oqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(I4(n,e))throw M(new Un(L8+lBn(n)));i=null,n.Cb&&(i=(t=n.Db>>16)>=0?QZ(n,i):n.Cb.Th(n,-1-t,null,i)),e&&(i=u(e,54).Rh(n,0,ME,i)),(i=xV(n,e,i))&&i.oj()}else 4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,3,e,e))}function qx(n,e){var t,i,r,c,s,f,h,l,a;return R4(),e.d>n.d&&(f=n,n=e,e=f),e.d<63?function QTe(n,e){var i,c,s,f,h,l,a,d,g;return h=n.e!=e.e?-1:1,2==(f=(i=n.d)+(c=e.d))?(g=Ae(a=Zi(vi(n.a[0],vr),vi(e.a[0],vr))),0==(d=Ae(ia(a,32)))?new Tl(h,g):new dd(h,2,S(T(ye,1),_e,28,15,[g,d]))):(J6e(n.a,i,e.a,c,s=K(ye,_e,28,f,15,1)),l5(l=new dd(h,f,s)),l)}(n,e):(l=tQ(n,s=(-2&n.d)<<4),a=tQ(e,s),i=fB(n,Qv(l,s)),r=fB(e,Qv(a,s)),h=qx(l,a),t=qx(i,r),c=Qv(c=gB(gB(c=qx(fB(l,i),fB(r,a)),h),t),s),gB(gB(h=Qv(h,s<<1),c),t))}function M1(){M1=N,sq=new Sg(hWn,0),Vhn=new Sg("LONGEST_PATH",1),Jhn=new Sg("LONGEST_PATH_SOURCE",2),oq=new Sg("COFFMAN_GRAHAM",3),Whn=new Sg(LR,4),Qhn=new Sg("STRETCH_WIDTH",5),qI=new Sg("MIN_WIDTH",6),_m=new Sg("BF_MODEL_ORDER",7),Hm=new Sg("DF_MODEL_ORDER",8)}function lTe(n,e,t){var i,r,c,s,f;for(s=O5(n,t),f=K(cl,A1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)on(un(m(r=u(c.Pb(),12),(V(),xj))))&&(f[i++]=u(m(r,Wu),10));if(i=0;c+=t?1:-1)s|=e.c.lg(h,c,t,i&&!on(un(m(e.j,(V(),Da))))&&!on(un(m(e.j,(V(),x2))))),s|=e.q.ug(h,c,t),s|=Wqn(n,h[c],t,i);return oi(n.c,e),s}function VA(n,e,t){var i,r,c,s,l,a,d,g;for(d=0,g=(a=ALn(n.j)).length;d1&&(n.a=!0),Ube(u(t.b,68),et(Bi(u(e.b,68).c),lh(gi(Bi(u(t.b,68).a),u(e.b,68).a),r))),NOn(n,e),sqn(n,t)}function fqn(n){var t,i,r,c,s,f;for(c=new C(n.a.a);c.a0&&c>0?e++:i>0?t++:c>0?r++:t++}On(),Jt(n.j,new _gn)}function vTe(n,e){var t,i,r,c,s,f,h,l,a;for(s=e.g,h=u(sn(f=e.j,f.c.length-1),113),Ln(0,f.c.length),l=hx(n,s,h,a=u(f.c[0],113)),c=1;cl&&(h=t,a=r,l=i);e.a=a,e.c=h}function Vs(n){if(!n.a.d||!n.a.e)throw M(new Sr((yl(VQn),VQn.k+" must have a source and target "+(yl(Ton),Ton.k+" specified."))));if(n.a.d==n.a.e)throw M(new Sr("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return rM(n.a.d.g,n.a),rM(n.a.e.b,n.a),n.a}function hqn(n,e,t){var i,r,c,s,f,h;if(i=0,0!=e.b&&0!=t.b){c=ge(e,0),s=ge(t,0),f=F(R(be(c))),h=F(R(be(s))),r=!0;do{if(f>h-n.b&&fh-n.a&&f0&&(r+=(c=u(sn(this.b,0),176)).o,i+=c.p),r*=2,i*=2,e>1?r=di(y.Math.ceil(r*e)):i=di(y.Math.ceil(i/e)),this.a=new gZ(r,i)}function bqn(n,e,t,i,r,c){var s,f,l,a,d,g,v,p,k;for(a=i,e.j&&e.o?(k=(v=u(ee(n.f,e.A),60)).d.c+v.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(l=(v=u(ee(n.f,t.C),60)).d.c,++d):l=t.a.c,p=k+(f=(l-k)/y.Math.max(2,d-a)),g=a;g=0;s+=r?1:-1){for(f=e[s],h=i==(en(),Zn)?r?sc(f,i):es(sc(f,i)):r?es(sc(f,i)):sc(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;si(t,h)}}function gqn(n,e,t){var i,r,c,s,f,h,l,a;for(c=F(R(n.b.Kc().Pb())),l=F(R(function xme(n){var e;if(n){if((e=n).dc())throw M(new tc);return e.Xb(e.gc()-1)}return xOn(n.Kc())}(e.b))),i=lh(Bi(n.a),l-t),r=lh(Bi(e.a),t-c),lh(a=et(i,r),1/(l-c)),this.a=a,this.b=new Z,f=!0,(s=n.b.Kc()).Pb();s.Ob();)h=F(R(s.Pb())),f&&h-t>lK&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function _Te(n){var e,t,i,r;if(function cSe(n,e){var t,i,r,c,s,f,h;for(r=K(ye,_e,28,n.e.a.c.length,15,1),s=new C(n.e.a);s.a0){for(g6(n.c);den(n,u(E(new C(n.e.a)),125))>5,e&=31,i>=n.d)return n.e<0?(mh(),EQn):(mh(),G8);if(function Lje(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s>>r|t[s+i+1]<>>r,++s}return c}(r=K(ye,_e,28,1+(c=n.d-i),15,1),c,n.a,i,e),n.e<0){for(t=0;t0&&n.a[t]<<32-e){for(t=0;t=0)&&(!(t=a2(($u(),Ui),r,e))||((i=t.Ik())>1||-1==i)&&3!=F0(Ir(Ui,t))))}function GTe(n,e,t,i){var r,c,s,f,h;return f=Ur(u(D((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),h=Ur(u(D((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84)),Ct(f)==Ct(h)||dw(h,f)?null:(s=ak(e))==t?i:(c=u(ee(n.a,s),10))&&(r=c.e)?r:null}function Den(n,e,t){var r,c,s,f,h;if((s=n[function Che(n,e){return n?e-1:0}(t,n.length)])[c=Jjn(t,s.length)].k==(Xn(),Qt))for(h=e.j,r=0;r>24}(n));break;case 2:n.g=xk(function ove(n){if(2!=n.p)throw M(new Au);return Ae(n.f)&ri}(n));break;case 3:n.g=function Hwe(n){if(3!=n.p)throw M(new Au);return n.e}(n);break;case 4:n.g=new h7(function _we(n){if(4!=n.p)throw M(new Au);return n.e}(n));break;case 6:n.g=$l(function Gwe(n){if(6!=n.p)throw M(new Au);return n.f}(n));break;case 5:n.g=Y(function n2e(n){if(5!=n.p)throw M(new Au);return Ae(n.f)}(n));break;case 7:n.g=k4(function ape(n){if(7!=n.p)throw M(new Au);return Ae(n.f)<<16>>16}(n))}return n.g}function Nen(n){if(null==n.n)switch(n.p){case 0:n.n=function v2e(n){if(0!=n.p)throw M(new Au);return R6(n.k,0)}(n)?(Kn(),mm):(Kn(),Pa);break;case 1:n.n=Ik(function hpe(n){if(1!=n.p)throw M(new Au);return Ae(n.k)<<24>>24}(n));break;case 2:n.n=xk(function sve(n){if(2!=n.p)throw M(new Au);return Ae(n.k)&ri}(n));break;case 3:n.n=function qwe(n){if(3!=n.p)throw M(new Au);return n.j}(n);break;case 4:n.n=new h7(function Uwe(n){if(4!=n.p)throw M(new Au);return n.j}(n));break;case 6:n.n=$l(function zwe(n){if(6!=n.p)throw M(new Au);return n.k}(n));break;case 5:n.n=Y(function e2e(n){if(5!=n.p)throw M(new Au);return Ae(n.k)}(n));break;case 7:n.n=k4(function lpe(n){if(7!=n.p)throw M(new Au);return Ae(n.k)<<16>>16}(n))}return n.n}function yqn(n,e,t,i){var r,s,f,h;if(ar(),f=u(e,69).xk(),Bl(n.e,e)){if(e.Si()&&rS(n,e,i,L(e,102)&&0!=(u(e,19).Bb&sr)))throw M(new Un(hj))}else for(h=ou(n.e.Dh(),e),r=u(n.g,124),s=0;s0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),rQ(n,Zc,r.c+i.b+t[0]-(t[1]-s)/2,t),e==Zc&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function Tqn(){this.c=K(Ai,Mr,28,(en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])).length,15,1),this.b=K(Ai,Mr,28,S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn]).length,15,1),this.a=K(Ai,Mr,28,S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn]).length,15,1),oX(this.c,Mt),oX(this.b,fi),oX(this.a,fi)}function Kc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,null==n.b)n.b=K(ye,_e,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(n.b[(i=n.b.length)-1]+1==r)return void(n.b[i-1]=c);s=K(ye,_e,28,i+2,15,1),Nc(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||u2(n)}}function Aw(n){var e,t,i,r,c;for(r=new Z,e=new Y6((!n.a&&(n.a=new q(Qe,n,10,11)),n.a)),i=new ie(ce(xl(n).a.Kc(),new Vn));ve(i);)L(D((!(t=u(fe(i),74)).b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(c=Ur(u(D((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),e.a._b(c)||Rn(r.c,c));return r}function nAe(n,e){var t,i,r,c,s,f,h;for(t=fi,Xn(),f=Ut,r=new C(e.a);r.a1;)Sw(r,r.i-1);return i}function Sqn(n,e){var t,i,c,s,f,h;for(t=new Rg,c=new C(n.b);c.an.d[s.p]&&(t+=JJ(n.b,c),sa(n.a,Y(c)));for(;!v6(n.a);)PQ(n.b,u(Hv(n.a),17).a)}return t}function Pqn(n,e,t){var i,r,c,s;for(c=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));r.e!=r.i.gc();)0==(!(i=u(ue(r),27)).a&&(i.a=new q(Qe,i,10,11)),i.a).i||(c+=Pqn(n,i,!1));if(t)for(s=Ct(e);s;)c+=(!s.a&&(s.a=new q(Qe,s,10,11)),s.a).i,s=Ct(s);return c}function Sw(n,e){var t,i,r,c;return n.Pj()?(i=null,r=n.Qj(),n.Tj()&&(i=n.Vj(n.$i(e),null)),t=n.Ij(4,c=hp(n,e),null,e,r),n.Mj()&&null!=c&&(i=n.Oj(c,i)),i?(i.nj(t),i.oj()):n.Jj(t),c):(c=hp(n,e),n.Mj()&&null!=c&&(i=n.Oj(c,null))&&i.oj(),c)}function gr(){gr=N,pI=new Xb("COMMENTS",0),fs=new Xb("EXTERNAL_PORTS",1),n9=new Xb("HYPEREDGES",2),mI=new Xb("HYPERNODES",3),Dm=new Xb("NON_FREE_PORTS",4),N2=new Xb("NORTH_SOUTH_PORTS",5),e9=new Xb(YXn,6),Om=new Xb("CENTER_LABELS",7),Lm=new Xb("END_LABELS",8),kI=new Xb("PARTITIONS",9)}function Iqn(n,e){var t,r,s;Ct(n)&&(s=u(m(e,(cn(),Qd)),181),x(z(n,Kt))===x((Ii(),Ha))&&ft(n,Kt,th),k0(),r=GGn(new a0(Ct(n)),new VD(Ct(n)?new a0(Ct(n)):null,n),!1,!0),Xs(s,(mo(),ag)),(t=u(m(e,$m),8)).a=y.Math.max(r.a,t.a),t.b=y.Math.max(r.b,t.b))}function QA(){QA=N,dH=new Gv(kS,0,(en(),zn),zn),gH=new Gv(dR,1,ae,ae),aH=new Gv(aR,2,Zn,Zn),mH=new Gv(bR,3,Wn,Wn),wH=new Gv("NORTH_WEST_CORNER",4,Wn,zn),bH=new Gv("NORTH_EAST_CORNER",5,zn,Zn),pH=new Gv("SOUTH_WEST_CORNER",6,ae,Wn),vH=new Gv("SOUTH_EAST_CORNER",7,Zn,ae)}function hAe(n){var e,i,r,c,s;for(c=new Yt,e=new Y6((!n.a&&(n.a=new q(Qe,n,10,11)),n.a)),r=new ie(ce(xl(n).a.Kc(),new Vn));ve(r);)L(D((!(i=u(fe(r),74)).b&&(i.b=new Dn(he,i,4,7)),i.b),0),193)||(s=Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),e.a._b(s)||c.a.zc(s,c));return c}function f2(){f2=N,San=S(T(Ja,1),YB,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),y.Math.pow(2,-65)}function R4(){var n,e;for(R4=N,Lp=K(T2,J,92,32,0,1),z8=K(T2,J,92,32,0,1),n=1,e=0;e<=18;e++)Lp[e]=(mh(),Ac(n,0)>=0?ga(n):c5(ga(d1(n)))),z8[e]=zC(Us(n,e),0)?ga(Us(n,e)):c5(ga(d1(Us(n,e)))),n=Zi(n,5);for(;e=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function Lqn(n,e,t){var i,r,c,s,f;if(!z3(e)){for((f=t.eh((L(e,16)?u(e,16).gc():Ml(e.Kc()))/n.a|0)).Ug(wWn,1),s=new d3n,c=null,r=e.Kc();r.Ob();)i=u(r.Pb(),40),s=To(S(T(No,1),xn,20,0,[s,new pl(i)])),c&&(U(c,(bt(),vre),i),U(i,Lq,c),C$(i)==C$(c)&&(U(c,Dq,i),U(i,nO,c))),c=i;f.Vg(),Lqn(n,s,t)}}function Ux(n,e){var t;switch(t=null,e.g){case 1:n.e.pf((Ue(),IU))&&(t=u(n.e.of(IU),256));break;case 3:n.e.pf((Ue(),OU))&&(t=u(n.e.of(OU),256));break;case 2:n.e.pf((Ue(),PU))&&(t=u(n.e.of(PU),256));break;case 4:n.e.pf((Ue(),LU))&&(t=u(n.e.of(LU),256))}return!t&&(t=u(n.e.of((Ue(),idn)),256)),t}function Dqn(n,e,t){var i,r,c,s,f,h;for(r=t,c=0,f=new C(e);f.aCWn?Jt(h,n.b):i<=CWn&&i>MWn?Jt(h,n.d):i<=MWn&&i>TWn?Jt(h,n.c):i<=TWn&&Jt(h,n.a),c=Dqn(n,h,c);return r}function Nqn(n,e,t,i){var r,s,f,h,l;for(r=(i.c+i.a)/2,jo(e.j),xe(e.j,r),jo(t.e),xe(t.e,r),l=new tEn,f=new C(n.f);f.a1&&(i=new W(r,t.b),xe(e.a,i)),m5(e.a,S(T(yi,1),J,8,0,[g,d]))}function Fen(n,e,t){var i,r;for(e=48;t--)n7[t]=t-48<<24>>24;for(i=70;i>=65;i--)n7[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)n7[r]=r-97+10<<24>>24;for(c=0;c<10;c++)XO[c]=48+c&ri;for(n=10;n<=15;n++)XO[n]=65+n-10&ri}function Gx(n){var e,t,i,r,s;if(!n.c){if(s=new jmn,null==(e=J9).a.zc(n,e)){for(i=new ne(Lc(n));i.e!=i.i.gc();)L(r=iS(t=u(ue(i),89)),90)&&Bt(s,Gx(u(r,29))),me(s,t);e.a.Bc(n),e.a.gc()}(function w8e(n){var e,t,i,r;for(t=u(n.g,689),i=n.i-1;i>=0;--i)for(e=t[i],r=0;r>19)return"-"+Bqn(b4(n));for(t=n,i="";0!=t.l||0!=t.m||0!=t.h;){if(t=ptn(t,y$(gS),!0),e=""+sEn(Sa),0!=t.l||0!=t.m||0!=t.h)for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function Ren(n,e,t,i){var r,c,s,f;if(Ml((Q7(),new ie(ce(Nl(e).a.Kc(),new Vn))))>=n.a||!knn(e,t))return-1;if(z3(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(-1==(f=Ren(n,(c=u(s.Pb(),18)).c.i==e?c.d.i:c.c.i,t,i))||(r=y.Math.max(r,f))>n.c-1)return-1;return r+1}function Rqn(n,e){var t,i,r,c,s,f;if(x(e)===x(n))return!0;if(!L(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t0)if(n._j(),null!=e){for(c=0;c0&&(n.a=h+(v-1)*c,e.c.b+=n.a,e.f.b+=n.a),0!=p.a.gc()&&(v=jtn(new $N(1,c),e,p,k,e.f.b+h-e.c.b))>0&&(e.f.b+=h+(v-1)*c)}(n,e,i),function TLe(n){var e,t,i,r,c,s,f,l,a,g,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn,$n;for(X=new Z,p=new C(n.b);p.a>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw M(new sh("Invalid hexadecimal"))}}function ZA(){ZA=N,Con=new Ag("SPIRAL",0),kon=new Ag("LINE_BY_LINE",1),yon=new Ag("MANHATTAN",2),mon=new Ag("JITTER",3),D_=new Ag("QUADRANTS_LINE_BY_LINE",4),Eon=new Ag("QUADRANTS_MANHATTAN",5),jon=new Ag("QUADRANTS_JITTER",6),pon=new Ag("COMBINE_LINE_BY_LINE_MANHATTAN",7),von=new Ag("COMBINE_JITTER_MANHATTAN",8)}function _qn(n,e,t,i){var r,c,s,f,h,l;for(h=gx(n,t),l=gx(e,t),r=!1;h&&l&&(i||p7e(h,l,t));)s=gx(h,t),f=gx(l,t),Ak(e),Ak(n),c=h.c,vB(h,!1),vB(l,!1),t?(yw(e,l.p,c),e.p=l.p,yw(n,h.p+1,c),n.p=h.p):(yw(n,h.p,c),n.p=h.p,yw(e,l.p+1,c),e.p=l.p),Di(h,null),Di(l,null),h=s,l=f,r=!0;return r}function Hqn(n){switch(n.g){case 0:return new e8n;case 1:return new Z5n;case 3:return new gCn;case 4:return new Xvn;case 5:return new UAn;case 6:return new n8n;case 2:return new Y5n;case 7:return new z5n;case 8:return new W5n;default:throw M(new Un("No implementation is available for the layerer "+(null!=n.f?n.f:""+n.g)))}}function AAe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new C(i.j);f.a=e.length)throw M(new Ar("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new J7(i),J$(this.e,this.c,(en(),Wn)),this.i=new J7(i),J$(this.i,this.c,Zn),this.f=new oPn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Xn(),Qt),this.a&&function _je(n,e,t){var i,r,c,s,f,l;f=(c=n.d.p).e,n.g=new J7(c.r),i=(s=n.d.o.c.p)>0?f[s-1]:K(cl,A1,10,0,0,1),r=f[s],l=sr.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(ee(n.f,s.d.i),60),e.bc.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new ie(ce(ki(v).a.Kc(),new Vn));ve(f);)0!=(s=u(fe(f),18)).a.b&&(e=u(_s(s.a),8),s.d.j==(en(),zn)&&((j=new u8(e,new W(e.a,r.d.d),r,s)).f.a=!0,j.a=s.d,Rn(k.c,j)),s.d.j==ae&&((j=new u8(e,new W(e.a,r.d.d+r.d.a),r,s)).f.d=!0,j.a=s.d,Rn(k.c,j)))}return k}(n);break;case 3:i=new Z,_t(rt(Kr(uc(uc(new Mn(null,new Pn(n.d.b,16)),new ivn),new rvn),new cvn),new U2n),new T7n(i)),t=i;break;default:throw M(new Sr("Compaction not supported for "+e+" edges."))}(function RIe(n,e){var t,i,r,c,s,h,l;if(0!=e.c.length){for(On(),yN(e.c,e.c.length,null),i=u(E(r=new C(e)),154);r.a0&&e0?c.a?t>(f=c.b.Mf().a)&&(c.d.b=r=(t-f)/2,c.d.c=r):c.d.c=n.s+t:e5(n.u)&&((i=Cnn(c.b)).c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}(n,e),r=null,h=null,f){for(h=r=u((c=s.Kc()).Pb(),117);c.Ob();)h=u(c.Pb(),117);r.d.b=0,h.d.c=0,a&&!r.a&&(r.d.c=0)}d&&(function Aye(n){var e,t,i,r,c;for(e=0,t=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),e=y.Math.max(e,i.d.b),t=y.Math.max(t,i.d.c);for(r=n.Kc();r.Ob();)(i=u(r.Pb(),117)).d.b=e,i.d.c=t}(s),f&&(r.d.b=0,h.d.c=0))}function Qqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ut(n.r,e),21),87),f=n.u.Hc((Xu(),qa)),t=n.u.Hc(q9),i=n.u.Hc(H9),h=n.u.Hc(Yp),d=n.B.Hc((ro(),IO)),l=!t&&!i&&(h||2==s.gc()),function ePe(n,e){var t,i,r,c,s,f,h,l;for(h=u(u(ut(n.r,e),21),87).Kc();h.Ob();)(r=(f=u(h.Pb(),117)).c?zSn(f.c):0)>0?f.a?r>(l=f.b.Mf().b)&&(n.v||1==f.c.d.c.length?(f.d.d=s=(r-l)/2,f.d.a=s):(t=u(sn(f.c.d,0),187).Mf().b,f.d.d=y.Math.max(0,i=(t-l)/2),f.d.a=r-i-l)):f.d.a=n.t+r:e5(n.u)&&((c=Cnn(f.b)).d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}(n,e),a=null,r=null,f){for(r=a=u((c=s.Kc()).Pb(),117);c.Ob();)r=u(c.Pb(),117);a.d.d=0,r.d.a=0,l&&!a.a&&(a.d.a=0)}d&&(function Sye(n){var e,t,i,r,c;for(t=0,e=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),t=y.Math.max(t,i.d.d),e=y.Math.max(e,i.d.a);for(r=n.Kc();r.Ob();)(i=u(r.Pb(),117)).d.d=t,i.d.a=e}(s),f&&(a.d.d=0,r.d.a=0))}function Yqn(n,e,t){var r,s,f,h,a;if(r=e.k,e.p>=0)return!1;if(e.p=t.b,nn(t.e,e),r==(Xn(),Ei)||r==Gc)for(s=new C(e.j);s.an.d[f.p]&&(t+=JJ(n.b,c),sa(n.a,Y(c))):++s;for(t+=n.b.d*s;!v6(n.a);)PQ(n.b,u(Hv(n.a),17).a)}return t}function nUn(n){var e,t,i,r,c,s;return c=0,(e=ys(n)).kk()&&(c|=4),n.Bb&Bu&&(c|=2),L(n,102)?(r=dr(t=u(n,19)),t.Bb&Cc&&(c|=32),r&&(se(uw(r)),c|=8,((s=r.t)>1||-1==s)&&(c|=16),r.Bb&Cc&&(c|=64)),t.Bb&sr&&(c|=_w),c|=Qs):L(e,469)?c|=512:(i=e.kk())&&1&i.i&&(c|=256),512&n.Bb&&(c|=128),c}function GAe(n){var e,t,i,r,c,s,f,l,a,d,g,v;for(g=-1,v=0,a=0,d=(l=n).length;a0&&++v;++g}return v}function Wx(n){var e,t,i,r,c,s,f;for(f=new de,i=new C(n.a.b);i.a=n.o)throw M(new kz);f=e>>5,c=Us(1,Ae(Us(31&e,1))),n.n[t][f]=r?vf(n.n[t][f],c):vi(n.n[t][f],vV(c)),c=Us(c,1),n.n[t][f]=i?vf(n.n[t][f],c):vi(n.n[t][f],vV(c))}catch(h){throw L(h=At(h),333)?M(new Ar(wR+n.o+"*"+n.p+gR+e+cr+t+vR)):M(h)}}function Uen(n,e,t,i){var c,s;e&&(c=F(R(m(e,(bt(),$1))))+i,s=t+F(R(m(e,eO)))/2,U(e,Qj,Y(Ae(Ec(y.Math.round(c))))),U(e,Yj,Y(Ae(Ec(y.Math.round(s))))),0==e.d.b||Uen(n,u(ZC(new Eg(ge(new pl(e).a.d,0))),40),t+F(R(m(e,eO)))+n.b,i+F(R(m(e,Gm)))),null!=m(e,Dq)&&Uen(n,u(m(e,Dq),40),t,i))}function Gen(n){var e,t,i;return 64&n.Db?Ax(n):(e=new yo(Xcn),(t=n.k)?Re(Re((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Tr,n,1,7)),n.n.i>0&&(!(i=(!n.n&&(n.n=new q(Tr,n,1,7)),u(D(n.n,0),135)).a)||Re(Re((e.a+=' "',e),i),'"'))),Re(v0(Re(v0(Re(v0(Re(v0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function eUn(n){var e,t,i;return 64&n.Db?Ax(n):(e=new yo(Wcn),(t=n.k)?Re(Re((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Tr,n,1,7)),n.n.i>0&&(!(i=(!n.n&&(n.n=new q(Tr,n,1,7)),u(D(n.n,0),135)).a)||Re(Re((e.a+=' "',e),i),'"'))),Re(v0(Re(v0(Re(v0(Re(v0((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Jx(n,e){var t,i,r,c,s,h;if(null==e||0==e.length)return null;if(!(r=u(Bc(n.a,e),143))){for(i=new qb(new vl(n.b).a.vc().Kc());i.a.Ob();)if(c=u(i.a.Pb(),44),Tn((s=(t=u(c.md(),143)).c).substr(s.length-(h=e.length),h),e)&&(e.length==s.length||46==Gi(s,s.length-e.length-1))){if(r)return null;r=t}r&&Pr(n.a,e,r)}return r}function tUn(n){var e,t,i;vt(n,(cn(),Ab))&&!(i=u(m(n,Ab),21)).dc()&&(t=new Go(e=u(df(kr),9),u(Hs(e,e.length),9),0),i.Hc((Tw(),Fo))?Xs(t,Fo):Xs(t,uf),i.Hc(Ps)||Xs(t,Ps),i.Hc(rf)?Xs(t,of):i.Hc(zl)?Xs(t,fl):i.Hc(cf)&&Xs(t,Is),i.Hc(of)?Xs(t,rf):i.Hc(fl)?Xs(t,zl):i.Hc(Is)&&Xs(t,cf),U(n,Ab,t))}function nSe(n){var t,i,r,c,s;for(r=u(m(n,(V(),Eb)),10),Ln(0,(i=n.j).c.length),t=u(i.c[0],12),s=new C(r.j);s.ar.p?(bi(c,ae),c.d&&(c.a.b=c.o.b-c.a.b)):c.j==ae&&r.p>n.p&&(bi(c,zn),c.d&&(c.a.b=-(c.o.b-c.a.b)));break}return r}function My(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(L(e,207)||L(e,366)||L(e,193)))throw M(new Un("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return l=(h=e.i+i-(s=n.a/2))+e.g+n.a,d=(a=e.j+r-s)+e.f+n.a,xe(c=new Su,new W(h,a)),xe(c,new W(h,d)),xe(c,new W(l,d)),xe(c,new W(l,a)),qr(f=new Bx(c),e),t&&Xe(n.b,e,f),f}function K4(n,e,t){var i,r,c,s,h,l,a,g;for(c=new W(e,t),a=new C(n.a);a.a1)for(f=te+1;fl.b.e.b*(1-A)+l.c.e.b*A));p++);if(X.gc()>0&&(Fe=0==l.a.b?Bi(l.b.e):u(_s(l.a),8),O=et(Bi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=et(Bi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),p>=X.gc()-1&&Fe.b>O.b&&l.c.e.b>O.b||p<=0&&Fe.bl.b.e.a*(1-A)+l.c.e.a*A));p++);if(X.gc()>0&&(Fe=0==l.a.b?Bi(l.b.e):u(_s(l.a),8),O=et(Bi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=et(Bi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),p>=X.gc()-1&&Fe.a>O.a&&l.c.e.a>O.a||p<=0&&Fe.a=F(R(m(n,(bt(),_ln))))&&++Bn):(v.f&&v.d.e.a<=F(R(m(n,(bt(),Iq))))&&++kn,v.g&&v.c.e.a+v.c.f.a>=F(R(m(n,(bt(),Kln))))&&++Bn)}else 0==$?nen(l):$<0&&(++jn[te],++j[It],kn=u(($n=xDe(l,e,n,new ai(Y(kn),Y(Bn)),t,i,new ai(Y(j[It]),Y(jn[te])))).a,17).a,Bn=u($n.b,17).a)}(n,f,c,s),function zDe(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p;for(d=ge(n.b,0);d.b!=d.d.c;)if(!Tn((a=u(be(d),40)).c,VS))for(c=u(Vr(new Mn(null,new Pn(eCe(a,n),16)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),e==(ii(),$r)||e==zr?c.jd(new A3n):c.jd(new S3n),p=c.gc(),r=0;r0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-v)/(y.Math.abs(f-g)/40)>50&&tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a+i/5.3,v>h?a.e.b+a.f.b*s-i/2:a.e.b+a.f.b*s+i/2))),tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==zr?(l=F(R(m(a,(bt(),Sf)))),a.e.a-i>l?tr(u(c.Xb(r),65).a,new W(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-v)/(y.Math.abs(f-g)/40)>50&&tr(u(c.Xb(r),65).a,new W(a.e.a-i/5.3,v>h?a.e.b+a.f.b*s-i/2:a.e.b+a.f.b*s+i/2))),tr(u(c.Xb(r),65).a,new W(a.e.a,a.e.b+a.f.b*s))):e==hs?(l=F(R(m(a,(bt(),tf)))),a.e.b+a.f.b+i0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-v)/40)>50&&tr(u(c.Xb(r),65).a,new W(g>f?a.e.a+a.f.a*s-i/2:a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b))),tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=F(R(m(a,(bt(),Sf)))),Sxn(u(c.Xb(r),65),n)?tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,u(_s(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u(_s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u(_s(u(c.Xb(r),65).a),8).b,v=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-v)/40)>50&&tr(u(c.Xb(r),65).a,new W(g>f?a.e.a+a.f.a*s-i/2:a.e.a+a.f.a*s+i/2,a.e.b-i/5.3))),tr(u(c.Xb(r),65).a,new W(a.e.a+a.f.a*s,a.e.b)))}(n,f,c,s),i=ge(n.a,0);i.b!=i.d.c;)(t=u(be(i),65)).a.b<2&&nen(t);e.Vg()}function oUn(n){switch(n.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return u(Nen(n),17).a==n.o;case 1:case 2:if(-2==n.o)return!1;switch(n.p){case 0:case 1:case 2:case 6:case 5:case 7:return j0(n.k,n.f);case 3:case 4:return n.j==n.e;default:return null==n.n?null==n.g:it(n.n,n.g)}default:return!1}}function oSe(n,e){var t,i,r;switch(e.Ug("Breaking Point Insertion",1),i=new ben(n),u(m(n,(cn(),cq)),351).g){case 2:r=new pG;break;case 0:r=new wG;break;default:r=new mG}if(t=r.og(n,i),on(un(m(n,Ghn)))&&(t=function JIe(n,e){var t,i,r,c,f,h,l,a,d,g,v,p,k,j,A,I,O,$;for(g=new Z,r=new Z,k=null,f=e.Kc();f.Ob();)c=new _7n(u(f.Pb(),17).a),Rn(r.c,c),k&&(c.d=k,k.e=c),k=c;for(O=function EPe(n){var e,t,i,r,c,f,h,l,a;for(a=K(ye,_e,28,n.b.c.length+1,15,1),l=new Yt,i=0,c=new C(n.b);c.a1&&(i=new W(r,t.b),xe(e.a,i)),m5(e.a,S(T(yi,1),J,8,0,[g,d]))}function js(){js=N,zI=new Wb(Th,0),Uj=new Wb("NIKOLOV",1),Gj=new Wb("NIKOLOV_PIXEL",2),rln=new Wb("NIKOLOV_IMPROVED",3),cln=new Wb("NIKOLOV_IMPROVED_PIXEL",4),iln=new Wb("DUMMYNODE_PERCENTAGE",5),uln=new Wb("NODECOUNT_PERCENTAGE",6),XI=new Wb("NO_BOUNDARY",7),Lb=new Wb("MODEL_ORDER_LEFT_TO_RIGHT",8),cg=new Wb("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Xen(){Xen=N,Jre=new Cn(fcn,(Kn(),!1)),nce=new Cn(hcn,Y(0)),ece=new Cn(lcn,0),tce=new Cn(YS,!1),Xk(),Yre=new Cn(gK,a1n=cO),Y(0),Qre=new Cn(vK,Y(1)),zT(),uce=new Cn(acn,b1n=Jq),pT(),oce=new Cn(dcn,w1n=Gq),AA(),Zre=new Cn(bcn,d1n=Vq),cce=new Cn(pK,0),ice=new Cn(mK,!1),rce=new Cn(wcn,!1)}function Qx(n,e,t){var i,r,c,s,f,h;if(e){if(t<=-1){if(L(i=Nn(e.Dh(),-1-t),102))return u(i,19);for(f=0,h=(s=u(e.Mh(i),160)).gc();f=40)&&function hPe(n){var e,t,i,r,c,s,f;for(n.o=new Rg,i=new yt,s=new C(n.e.a);s.a0,f=oA(e,c),gW(t?f.b:f.g,e),1==Qg(f).c.length&&Nt(i,f,i.c.b,i.c),r=new ai(c,e),sa(n.o,r),pu(n.e.a,c))}(n),function pIe(n){var e,t,i,r,s,f,h,l,a,d;for(a=n.e.a.c.length,s=new C(n.e.a);s.a0&&xe(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&xe(n.e,c))))}function bUn(n,e,t,i){var r,c,s,f,h,l,a;for(gi(h=new W(t,i),u(m(e,(bt(),Um)),8)),a=ge(e.b,0);a.b!=a.d.c;)et((l=u(be(a),40)).e,h),xe(n.b,l);for(f=u(Vr(SJ(new Mn(null,new Pn(e.a,16))),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15).Kc();f.Ob();){for(c=ge((s=u(f.Pb(),65)).a,0);c.b!=c.d.c;)(r=u(be(c),8)).a+=h.a,r.b+=h.b;xe(n.a,s)}}function ntn(n,e){var t,i,r,c;if(0<(L(n,16)?u(n,16).gc():Ml(n.Kc()))){if(1<(r=e)){for(--r,c=new Gpn,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=To(S(T(No,1),xn,20,0,[c,new pl(t)]));return ntn(c,r)}if(r<0){for(c=new zpn,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=To(S(T(No,1),xn,20,0,[c,new pl(t)]));if(0<(L(c,16)?u(c,16).gc():Ml(c.Kc())))return ntn(c,r)}}return u(ZC(n.Kc()),40)}function CSe(n,e,t){var i,r,c,s;for(t.Ug("Processor order nodes",2),n.b=F(R(m(e,(bc(),$q)))),n.a=u(m(e,Nb),88),n.a==(ii(),eh)&&(n.a=nh,U(e,Nb,n.a)),r=new yt,s=ge(e.b,0);s.b!=s.d.c;)on(un(m(c=u(be(s),40),(bt(),Ba))))&&Nt(r,c,r.c.b,r.c);oe(0!=r.b),hGn(n,i=u(r.a.a.c,40)),t.fh(1),Uen(n,i,0-F(R(m(i,(bt(),eO))))/2,0),t.fh(1),t.Vg()}function ro(){ro=N,n6=new Ig("DEFAULT_MINIMUM_SIZE",0),jE=new Ig("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),AO=new Ig("COMPUTE_PADDING",2),G9=new Ig("OUTSIDE_NODE_LABELS_OVERHANG",3),SO=new Ig("PORTS_OVERHANG",4),IO=new Ig("UNIFORM_PORT_SPACING",5),PO=new Ig("SPACE_EFFICIENT_PORT_LABELS",6),KU=new Ig("FORCE_TABULAR_NODE_LABELS",7),yE=new Ig("ASYMMETRICAL",8)}function nB(n,e){var t,i,r,c,s,f,h,l;if(e){if(t=(c=e.Dh())?Mo(c).wi().si(c):null){for(y1(n,e,t),h=0,l=(null==(r=e.Dh()).i&&kh(r),r.i).length;h=0&&h0&&(Gn(0,n.length),45==n.charCodeAt(0)||(Gn(0,n.length),43==n.charCodeAt(0)))?1:0;it)throw M(new sh(fb+n+'"'));return f}function H4(n){switch(n){case 100:return b2(H8,!0);case 68:return b2(H8,!1);case 119:return b2(i_,!0);case 87:return b2(i_,!1);case 115:return b2(r_,!0);case 83:return b2(r_,!1);case 99:return b2(c_,!0);case 67:return b2(c_,!1);case 105:return b2(u_,!0);case 73:return b2(u_,!1);default:throw M(new ic(JJn+n.toString(16)))}}function pUn(n,e,t,i,r){t&&(!i||(n.c-n.b&n.a.length-1)>1)&&1==e&&u(n.a[n.b],10).k==(Xn(),Oc)?gp(u(n.a[n.b],10),(Po(),sl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&1==e&&u(n.a[n.c-1&n.a.length-1],10).k==(Xn(),Oc)?gp(u(n.a[n.c-1&n.a.length-1],10),(Po(),Ka)):2==(n.c-n.b&n.a.length-1)?(gp(u(T5(n),10),(Po(),sl)),gp(u(T5(n),10),Ka)):function sMe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Kh(n.c-n.b&n.a.length-1),l=null,a=null,c=new f5(n);c.a!=c.b;)r=u(eA(c),10),t=(f=u(m(r,(V(),Af)),12))?f.i:null,i=(s=u(m(r,Ss),12))?s.i:null,(l!=t||a!=i)&&(kHn(h,e),l=t,a=i),Rn(h.c,r);kHn(h,e)}(n,r),WJ(n)}function xSe(n){var e,t,i,s,f,h,l;for(s=new Z,i=new ie(ce(Vt(n.b).a.Kc(),new Vn));ve(i);)or(t=u(fe(i),18))&&nn(s,new RDn(t,jNn(n,t.c),jNn(n,t.d)));for(l=new qb(new vl(n.e).a.vc().Kc());l.a.Ob();)e=u(l.a.Pb(),44),(f=u(e.md(),113)).d.p=0;for(h=new qb(new vl(n.e).a.vc().Kc());h.a.Ob();)e=u(h.a.Pb(),44),0==(f=u(e.md(),113)).d.p&&nn(n.d,gSe(n,f))}function _Se(n,e){var t,i,r,c,f,h,l;if(null==(l=un(m(e,(bc(),Nre))))||(Jn(l),l)){for(function dCe(n,e){var t,i,r,c,s;for(n.a=K(ss,$w,15,r=e.b.b,0,1),n.b=K(fo,el,28,r,16,1),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),n.a[c.g]=new yt;for(i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}(n,e),r=new Z,h=ge(e.b,0);h.b!=h.d.c;)(t=Hnn(n,u(be(h),40),null))&&(qr(t,e),Rn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new C(r);i.a0&&(e.Cd(t),t.i&&p5e(t))}(r=DTe(n,e),(f=u(is(r,0),219)).c.kg()?f.c.eg()?new U7n(n):new G7n(n):new q7n(n)),function Z6e(n){var e,t,i;for(i=new C(n.b);i.a=0&&f!=t&&(c=new ji(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new ji(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function mUn(n){var e,t,i;if(null==n.b){if(i=new e1,null!=n.i&&(jr(i,n.i),i.a+=":"),256&n.f){for(256&n.f&&null!=n.a&&(function uge(n){return null!=n&&k7(_O,n.toLowerCase())}(n.i)||(i.a+="//"),jr(i,n.a)),null!=n.d&&(i.a+="/",jr(i,n.d)),16&n.f&&(i.a+="/"),e=0,t=n.j.length;e>>31;0!=i&&(n[t]=i)}(t,t,e<<1),i=0,r=0,s=0;rg)&&(a+f+s8(i,g,!1).a<=e.b&&(Ck(t,c-t.s),t.c=!0,Ck(i,c-t.s),uy(i,t.s,t.t+t.d+f),i.k=!0,fY(t.q,i),v=!0,r&&(NT(e,i),i.j=e,n.c.length>s&&(fy((Ln(s,n.c.length),u(n.c[s],186)),i),0==(Ln(s,n.c.length),u(n.c[s],186)).a.c.length&&l1(n,s)))),v)}function jUn(n,e,t){var i,s,f,h,a;if(0==e.p){for(e.p=1,(s=t)||(s=new ai(new Z,new Go(i=u(df(fr),9),u(Hs(i,i.length),9),0))),u(s.a,15).Fc(e),e.k==(Xn(),Qt)&&u(s.b,21).Fc(u(m(e,(V(),mc)),64)),h=new C(e.j);h.a0)if(r=u(n.Ab.g,2033),null==e){for(c=0;ct.s&&f=0&&l>=0&&hs)return en(),Zn;break;case 4:case 3:if(a<0)return en(),zn;if(a+t>c)return en(),ae}return(h=(l+f/2)/s)+(i=(a+t/2)/c)<=1&&h-i<=0?(en(),Wn):h+i>=1&&h-i>=0?(en(),Zn):i<.5?(en(),zn):(en(),ae)}function ZSe(n,e){var t,i,r,c,f,l,a,d,g,v,p,k;for(t=!1,a=F(R(m(e,(cn(),Ob)))),p=ja*a,r=new C(e.b);r.af.n.b-f.d.d+g.a+p&&(g.a=(g.g*g.a+d.g*d.a)/(k=d.g+g.g),g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function TUn(n,e,t,i,r,c,s){var h,l,a,d,g;for(g=new Lv,l=e.Kc();l.Ob();)for(d=new C(u(l.Pb(),853).Rf());d.an.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)))>n.a/2+e.a/2?1:0==t&&0==r?0:0==t?c/r+1:0==r?i/t+1:y.Math.min(i/t,c/r)+1}function rPe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new C(n.f.e);r.a0&&n.d!=(v5(),W_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(v5(),z_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new W(f/c,e.d.b);case 2:return new W(e.d.a,h/c);default:return new W(f/c,h/c)}}function SUn(n){var e,i,r,c,s;for(nn(s=new Vc((!n.a&&(n.a=new ni(Ro,n,5)),n.a).i+2),new W(n.j,n.k)),_t(new Mn(null,(!n.a&&(n.a=new ni(Ro,n,5)),new Pn(n.a,16))),new Rkn(s)),nn(s,new W(n.b,n.c)),e=1;e0&&(Uk(h,!1,(ii(),$r)),Uk(h,!0,zr)),iu(e.g,new HCn(n,t)),Xe(n.g,e,t)}function OUn(){var n;for(OUn=N,Hun=S(T(ye,1),_e,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),k_=K(ye,_e,28,37,15,1),kQn=S(T(ye,1),_e,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),qun=K(Ja,YB,28,37,14,1),n=2;n<=36;n++)k_[n]=di(y.Math.pow(n,Hun[n])),qun[n]=ly(Ry,k_[n])}function cPe(n){var e;if(1!=(!n.a&&(n.a=new q(jt,n,6,6)),n.a).i)throw M(new Un(uVn+(!n.a&&(n.a=new q(jt,n,6,6)),n.a).i));return e=new Su,Hk(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))&&Fi(e,mzn(n,Hk(u(D((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),!1)),Hk(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))&&Fi(e,mzn(n,Hk(u(D((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),!0)),e}function LUn(n,e){var t,i,c;for(c=!1,i=new ie(ce((e.d?n.a.c==(wh(),Db)?ki(e.b):Vt(e.b):n.a.c==(wh(),N1)?ki(e.b):Vt(e.b)).a.Kc(),new Vn));ve(i);)if(t=u(fe(i),18),(on(n.a.f[n.a.g[e.b.p].p])||or(t)||t.c.i.c!=t.d.i.c)&&!on(n.a.n[n.a.g[e.b.p].p])&&!on(n.a.n[n.a.g[e.b.p].p])&&(c=!0,bf(n.b,n.a.g[c7e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function itn(n,e,t){var i,r,c,s,f,h,l;if(0==(i=t.gc()))return!1;if(n.Pj())if(h=n.Qj(),aZ(n,e,t),s=1==i?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new J1(i),c=e+i,r=e;r0){for(s=0;s>16==-15&&n.Cb.Yh()&&N$(new P$(n.Cb,9,13,t,n.c,j1(eo(u(n.Cb,62)),n))):L(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(L(e=n.c,90)||(In(),e=$s),L(t,90)||(In(),t=$s),N$(new P$(n.Cb,9,10,t,e,j1(Lc(u(n.Cb,29)),n)))))),n.c}function sPe(n,e,t){var i,r,c,s,h,l,a,d;for(t.Ug("Hyperedge merging",1),function LCe(n,e){var t,i,r,c;for((c=u(Vr(uc(uc(new Mn(null,new Pn(e.b,16)),new lgn),new agn),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15)).Jc(new dgn),t=0,r=c.Kc();r.Ob();)-1==(i=u(r.Pb(),12)).p&&pen(n,i,t++)}(n,e),h=new Ni(e.b,0);h.b0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}((Ct(n)&&(k0(),new a0(Ct(n))),k0(),new VD(Ct(n)?new a0(Ct(n)):null,n)),zr),c=u(m(i,Ohn),107),gOn(t=i.d,c),gOn(t,r),i}function RUn(n,e){var t,i,s,f;return i=y.Math.abs($M(n.b).a-$M(e.b).a),f=y.Math.abs($M(n.b).b-$M(e.b).b),t=1,s=1,i>n.b.b/2+e.b.b/2&&(t=1-y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c))/i),f>n.b.a/2+e.b.a/2&&(s=1-y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d))/f),(1-y.Math.min(t,s))*y.Math.sqrt(i*i+f*f)}function lPe(n){var e,i,r;for(kB(n,n.e,n.f,(K0(),xa),!0,n.c,n.i),kB(n,n.e,n.f,xa,!1,n.c,n.i),kB(n,n.e,n.f,G2,!0,n.c,n.i),kB(n,n.e,n.f,G2,!1,n.c,n.i),function oPe(n,e,t,i,r){var c,s,f,h,l,a,d;for(s=new C(e);s.a=p&&(I>p&&(v.c.length=0,p=I),Rn(v.c,s));0!=v.c.length&&(g=u(sn(v,CA(e,v.c.length)),131),$n.a.Bc(g),g.s=k++,jen(g,kn,X),v.c.length=0)}for($=n.c.length+1,f=new C(n);f.a(Bn=i.b).s&&(vo(t),pu(Bn.i,i),i.c>0&&(i.a=Bn,nn(Bn.t,i),i.b=tn,nn(tn.i,i)))})(n.i,u(m(n.d,(V(),Hp)),234)),function NOe(n){var t,i,r,c,s,f,h,l,a;for(l=new yt,f=new yt,c=new C(n);c.a-1){for(r=ge(f,0);r.b!=r.d.c;)(i=u(be(r),131)).v=s;for(;0!=f.b;)for(t=new C((i=u(bx(f,0),131)).i);t.a=65;t--)ch[t]=t-65<<24>>24;for(i=122;i>=97;i--)ch[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)ch[r]=r-48+52<<24>>24;for(ch[43]=62,ch[47]=63,c=0;c<=25;c++)U1[c]=65+c&ri;for(s=26,h=0;s<=51;++s,h++)U1[s]=97+h&ri;for(n=52,f=0;n<=61;++n,f++)U1[n]=48+f&ri;U1[62]=43,U1[63]=47}function KUn(n,e){var t,i,r,c,s,f;return(r=rY(n))==(f=rY(e))?n.e==e.e&&n.a<54&&e.a<54?n.fe.f?1:0:(i=n.e-e.e,(t=(n.d>0?n.d:y.Math.floor((n.a-1)*Xzn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*Xzn)+1))>i+1?r:t0&&(s=Gg(s,QUn(i))),JBn(c,s))):rc)return en(),Zn;break;case 4:case 3:if(h<0)return en(),zn;if(h+n.f>r)return en(),ae}return(s=(f+n.g/2)/c)+(t=(h+n.f/2)/r)<=1&&s-t<=0?(en(),Wn):s+t>=1&&s-t>=0?(en(),Zn):t<.5?(en(),zn):(en(),ae)}function Pw(n){var e,t,i,r,c,s;if(Ze(),4!=n.e&&5!=n.e)throw M(new Un("Token#complementRanges(): must be RANGE: "+n.e));for(u2(c=n),f8(c),i=c.b.length+2,0==c.b[0]&&(i-=2),(t=c.b[c.b.length-1])==vm&&(i-=2),(r=new Co(4)).b=K(ye,_e,28,i,15,1),s=0,c.b[0]>0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e0&&(kL(h,h.d-r.d),r.c==(pf(),Fa)&&Zse(h,h.a-r.d),h.d<=0&&h.i>0&&Nt(e,h,e.c.b,e.c));for(c=new C(n.f);c.a0&&(XE(f,f.i-r.d),r.c==(pf(),Fa)&&nfe(f,f.b-r.d),f.i<=0&&f.d>0&&Nt(t,f,t.c.b,t.c))}function Nc(n,e,t,i,r){var c,s,f,h,l,a,d;if(ml(),QV(n,"src"),QV(t,"dest"),d=po(n),h=po(t),gV(0!=(4&d.i),"srcType is not an array"),gV(0!=(4&h.i),"destType is not an array"),s=h.c,gV(1&(a=d.c).i?a==s:0==(1&s.i),"Array types don't match"),function i6e(n,e,t,i,r){if(e<0||i<0||r<0||e+r>n.length||i+r>t.length)throw M(new lz)}(n,e,t,i,r),1&a.i||d==h)uen(n,e,t,i,r,!0);else if(l=kd(n),c=kd(t),x(n)===x(t)&&ei;)Dt(c,f,l[--e]);else for(f=i+r;iv&&(c&&(tr(X,g),tr(jn,Y(l.b-1))),Fe=t.b,It+=g+e,g=0,a=y.Math.max(a,t.b+t.c+te)),ru(f,Fe),cu(f,It),a=y.Math.max(a,Fe+te+t.c),g=y.Math.max(g,d),Fe+=te+e;if(a=y.Math.max(a,i),($n=It+g+t.a)2*c?(a=new PT(d),l=Ou(s)/go(s),h=yB(a,e,new kv,t,i,r,l),et(wf(a.e),h),d.c.length=0,c=0,Rn(d.c,a),Rn(d.c,s),c=Ou(a)*go(a)+Ou(s)*go(s)):(Rn(d.c,s),c+=Ou(s)*go(s));return d}(f,e,d.a,d.b,(l=i,Jn(r),l));break;case 1:j=function vPe(n,e,t,i,r){var c,s,f,h,l,a,d,g,v;for(On(),Jt(n,new Y4n),s=Z7(n),v=new Z,g=new Z,f=null,h=0;0!=s.b;)c=u(0==s.b?null:(oe(0!=s.b),Qo(s,s.a.a)),163),!f||Ou(f)*go(f)/21&&(h>Ou(f)*go(f)/2||0==s.b)&&(d=new PT(g),a=Ou(f)/go(f),l=yB(d,e,new kv,t,i,r,a),et(wf(d.e),l),f=d,Rn(v.c,d),h=0,g.c.length=0));return si(v,g),v}(f,e,d.a,d.b,(a=i,Jn(r),a));break;default:j=function qIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,k;for(f=K(Ai,Mr,28,n.c.length,15,1),zZ(g=new LM(new Z4n),n),l=0,k=new Z;0!=g.b.c.length;)if(s=u(0==g.b.c.length?null:sn(g.b,0),163),l>1&&Ou(s)*go(s)/2>f[0]){for(c=0;cf[c];)++c;d=new PT(new f1(k,0,c+1)),a=Ou(s)/go(s),h=yB(d,e,new kv,t,i,r,a),et(wf(d.e),h),Rv(D4(g,d),Z4),zZ(g,new f1(k,c+1,k.c.length)),k.c.length=0,l=0,vPn(f,f.length,0)}else null!=(0==g.b.c.length?null:sn(g.b,0))&&V$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Ou(s)*go(s),++l,Rn(k.c,s);return k}(f,e,d.a,d.b,(h=i,Jn(r),h))}ub(n,(k=yB(new PT(j),e,t,d.a,d.b,i,(Jn(r),r))).a,k.b,!1,!0)}(n,r,c,t),e.Vg()}function pPe(n,e,t,i,r){var s,f,h,l,a,d,g,v,p;for(g=function qke(n,e){var t,r,c;for(c=new Ni(n.e,0),t=0;c.blK)return t;r>-1e-6&&++t}return t}(n,t),h=0;h0),i.a.Xb(i.c=--i.b),d>g+h&&vo(i);for(s=new C(v);s.a0),i.a.Xb(i.c=--i.b)}}function Iw(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=K(fn,J,2,0,6,1),i=0,l=n,c=null;;){if(null==(f=t.exec(l))||""==l){h[i]=l;break}h[i]=($i(0,s=f.index,l.length),l.substr(0,s)),l=Xo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=($i(0,1,l.length),l.substr(0,1)),Gn(1,l.length+1),l=l.substr(1)),c=l,++i}if(n.length>0){for(r=h.length;r>0&&""==h[r-1];)--r;r0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),PM(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(f=0,l=(c=n.a).length;ff&&(f=r,a.c.length=0),r==f&&nn(a,new ai(t.c.i,t)));On(),Jt(a,n.c),P0(n.b,h.p,a)}}(d,n),d.f=Kh(d.d),function KSe(n,e){var t,i,r,s,f,h,l,a;for(s=new C(e.b);s.af&&(f=r,a.c.length=0),r==f&&nn(a,new ai(t.d.i,t)));On(),Jt(a,n.c),P0(n.f,h.p,a)}}(d,n),d}function HUn(n,e){var i,r,c;for(c=u(sn(n.n,n.n.c.length-1),209).d,n.p=y.Math.min(n.p,e.g),n.r=y.Math.max(n.r,c),n.g=y.Math.max(n.g,e.g+(1==n.b.c.length?0:n.i)),n.o=y.Math.min(n.o,e.f),n.e+=e.f+(1==n.b.c.length?0:n.i),n.f=y.Math.max(n.f,e.f),r=n.n.c.length>0?(n.n.c.length-1)*n.i:0,i=new C(n.n);i.a1)for(i=ge(r,0);i.b!=i.d.c;)for(c=0,h=new C((t=u(be(i),235)).e);h.a0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),IM(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(p=i.d+t.d,v=i.a-t.d-t.a,h=0,a=(s=n.a).length;h0||0==Q0(r.b.d,n.b.d+n.b.a)&&i.b<0||0==Q0(r.b.d+r.b.a,n.b.d)&&i.b>0){f=0;break}}else f=y.Math.min(f,R_n(n,r,i));f=y.Math.min(f,UUn(n,c,f,i))}return f}function Py(n,e){var t,r,c,s,f,h;if(n.b<2)throw M(new Un("The vector chain must contain at least a source and a target point."));for(oe(0!=n.b),K7(e,(r=u(n.a.a.c,8)).a,r.b),h=new Nv((!e.a&&(e.a=new ni(Ro,e,5)),e.a)),s=ge(n,1);s.a=0&&c!=t)throw M(new Un(hj));for(r=0,h=0;hF(Lf(s.g,s.d[0]).a)?(oe(h.b>0),h.a.Xb(h.c=--h.b),nw(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new Z),f.e).Mc(e),l=(!f.e&&(f.e=new Z),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new Z),f.e).Fc(s),++s.c));r||Rn(i.c,s)}function TPe(n,e,t){var i,c,s,f,h,l,a,d,g,v;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,f=new W(e.i+e.g/2,e.j+e.f/2),(l=u(z(e,(Ue(),Wp)),8)).a=l.a+d,l.b=l.b+g,i=f.b-(c=(f.b-l.b)/(f.a-l.a))*f.a,h=new W(t.i+t.g/2,t.j+t.f/2),(a=u(z(t,Wp),8)).a=a.a+d,a.b=a.b+g,!(l.a<(v=(i-(h.b-(s=(h.b-a.b)/(h.a-a.a))*h.a))/(s-c))&&f.a>>0).toString(16),t.length-2,t.length):n>=sr?"\\v"+Xo(t="0"+(n>>>0).toString(16),t.length-6,t.length):""+String.fromCharCode(n&ri)}return i}function WUn(n){var e,t,i;if(Dg(u(m(n,(cn(),Kt)),101)))for(t=new C(n.j);t.a=e.o&&t.f<=e.f||.5*e.a<=t.f&&1.5*e.a>=t.f){if((s=u(sn(e.n,e.n.c.length-1),209)).e+s.d+t.g+r<=i&&(u(sn(e.n,e.n.c.length-1),209).f-n.f+t.f<=n.b||1==n.a.c.length))return rZ(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||1==n.a.c.length))return nn(e.b,t),f=u(sn(e.n,e.n.c.length-1),209),nn(e.n,new ZM(e.s,f.f+f.a+e.i,e.i)),BZ(u(sn(e.n,e.n.c.length-1),209),t),HUn(e,t),!0}return!1}function JUn(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=x$(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&null!=s?it(s,t):x(s)===x(t))?(null!=s&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=x$(n,e,t),n.Mj()&&!(n.Yi()&&null!=s?it(s,t):x(s)===x(t))&&(r=null,null!=s&&(r=n.Oj(s,null)),(r=n.Nj(t,r))&&r.oj()),s)}function DPe(n,e){var t,i,r,c;if(e.Ug("Path-Like Graph Wrapping",1),0!=n.b.c.length)if(null==(r=new ben(n)).i&&(r.i=cY(r,new gG)),t=F(r.i)*r.f/(null==r.i&&(r.i=cY(r,new gG)),F(r.i)),r.b>t)e.Vg();else{switch(u(m(n,(cn(),cq)),351).g){case 2:c=new pG;break;case 0:c=new wG;break;default:c=new mG}if(i=c.og(n,r),!c.pg())switch(u(m(n,_I),352).g){case 2:i=K_n(r,i);break;case 1:i=OKn(r,i)}(function SIe(n,e,t){var i,r,c,f,h,a,d,g,v,p,j;if(!t.dc()){for(f=0,g=0,p=u((i=t.Kc()).Pb(),17).a;f0&&(h=f/60|0,l=f%60,r=n.q.getDate(),n.q.getHours()+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function NPe(n,e){var t,i,r,c;if(function X2e(n,e){FTn(n,Ae(vi(I0(e,24),vS)),Ae(vi(e,vS)))}(n.d,n.e),n.c.a.$b(),0!=F(R(m(e.j,(cn(),PI))))||0!=F(R(m(e.j,PI))))for(t=p2,x(m(e.j,ul))!==x((vh(),D1))&&U(e.j,(V(),Da),(Kn(),!0)),c=u(m(e.j,l9),17).a,r=0;r=j&&n.e[h.p]>p*n.b||O>=t*j)&&(Rn(g.c,f),f=new Z,Fi(s,c),c.a.$b(),v=y.Math.max(v,(l-=a)*n.b+k),l+=O,I=O,O=0,a=0,k=0);return new ai(v,g)}function cB(n){var e,i,r,s,f;if(!n.d){if(f=new Cmn,null==(e=J9).a.zc(n,e)){for(i=new ne(_r(n));i.e!=i.i.gc();)Bt(f,cB(u(ue(i),29)));e.a.Bc(n),e.a.gc()}for(s=f.i,!n.q&&(n.q=new q(Ds,n,11,10)),r=new ne(n.q);r.e!=r.i.gc();++s)u(ue(r),411);Bt(f,(!n.q&&(n.q=new q(Ds,n,11,10)),n.q)),gw(f),n.d=new Lg((u(D(H((ra(),_n).o),9),19),f.i),f.g),n.e=u(f.g,688),null==n.e&&(n.e=tse),no(n).b&=-17}return n.d}function q4(n,e,t,i){var r,c,s,f,h,l;if(l=ou(n.e.Dh(),e),h=0,r=u(n.g,124),ar(),u(e,69).xk()){for(s=0;s1||-1==p)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!dr(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),(r=u(Rf(n,l),58))?(s?-1==(h=g.dd(r))?g.Gi(c,r):c!=h&&g.Ui(c,r):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else null==k?a.Wb(null):null==(r=Rf(n,k))?n.b&&!dr(e)&&a.Wb(k):a.Wb(r)}function RPe(n,e){var t,i,r,c,s,f,h,l;for(t=new ogn,r=new ie(ce(ki(e).a.Kc(),new Vn));ve(r);)if(!or(i=u(fe(r),18))&&knn(f=i.c.i,UP)){if(-1==(l=Ren(n,f,UP,qP)))continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new Z),nn(t.a,f)}for(s=new ie(ce(Vt(e).a.Kc(),new Vn));ve(s);)if(!or(c=u(fe(s),18))&&knn(h=c.d.i,qP)){if(-1==(l=Ren(n,h,qP,UP)))continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new Z),nn(t.c,h)}return t}function KPe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(id(r=new Fl(n),(Xn(),Ei)),U(r,(V(),ot),t),U(r,(cn(),Kt),(Ii(),Xc)),Rn(i.c,r),cc(s=new Dc,r),bi(s,(en(),Wn)),cc(f=new Dc,r),bi(f,Zn),a=t.d,Pi(t,s),qr(c=new B0,t),U(c,Nr,null),Qi(c,f),Pi(c,a),l=new Ni(t.b,0);l.b1e6)throw M(new uC("power of ten too big"));if(n<=nt)return Qv(ky(Lp[1],e),e);for(r=i=ky(Lp[1],nt),t=Ec(n-nt),e=di(n%nt);Ac(t,nt)>0;)r=Gg(r,i),t=ms(t,nt);for(r=Qv(r=Gg(r,ky(Lp[1],e)),nt),t=Ec(n-nt);Ac(t,nt)>0;)r=Qv(r,nt),t=ms(t,nt);return Qv(r,e)}function YUn(n){var e,t,i,r,f,h,l,a;for(h=new C(n.a);h.al&&i>l)){r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}a=f,l=F(e.p[f.p])+F(e.d[f.p])+f.o.b+f.d.a}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function ltn(n,e,t,i){var r,c,s,f,l,a,d;if(id(c=new Fl(n),(Xn(),Gc)),U(c,(cn(),Kt),(Ii(),Xc)),r=0,e){for(U(s=new Dc,(V(),ot),e),U(c,ot,e.i),bi(s,(en(),Wn)),cc(s,c),a=0,d=(l=gh(e.e)).length;a=0&&!e2(n,a,d);)--d;r[a]=d}for(v=0;v=0&&!e2(n,f,p);)--f;c[p]=f}for(h=0;he[g]&&gi[h]&&eS(n,h,g,!1,!0)}function atn(n){var e,t,i,r,c,s,f,h;t=on(un(m(n,(Js(),QYn)))),c=n.a.c.d,f=n.a.d.d,t?(s=lh(gi(new W(f.a,f.b),c),.5),h=lh(Bi(n.e),.5),e=gi(et(new W(c.a,c.b),s),h),yW(n.d,e)):(r=F(R(m(n.a,uZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function o8(n){var e,t,i,c,f,h;if(!n.f){if(h=new MG,f=new MG,null==(e=J9).a.zc(n,e)){for(c=new ne(_r(n));c.e!=c.i.gc();)Bt(h,o8(u(ue(c),29)));e.a.Bc(n),e.a.gc()}for(!n.s&&(n.s=new q(Mu,n,21,17)),i=new ne(n.s);i.e!=i.i.gc();)L(t=u(ue(i),179),102)&&me(f,u(t,19));gw(f),n.r=new USn(n,(u(D(H((ra(),_n).o),6),19),f.i),f.g),Bt(h,n.r),gw(h),n.f=new Lg((u(D(H(_n.o),5),19),h.i),h.g),no(n).b&=-3}return n.f}function nGn(n){m0(n,new Od(g0(d0(w0(b0(new ed,xd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Bbn))),Q(n,xd,mR,rn($on)),Q(n,xd,kR,rn(K_)),Q(n,xd,Mp,rn(FYn)),Q(n,xd,hb,rn(Non)),Q(n,xd,nin,rn(KYn)),Q(n,xd,ein,rn(RYn)),Q(n,xd,Ztn,rn(_Yn)),Q(n,xd,tin,rn(BYn)),Q(n,xd,fin,rn(xYn)),Q(n,xd,hin,rn(R_)),Q(n,xd,lin,rn(Don)),Q(n,xd,ain,rn(FP))}function cS(){cS=N,Zdn=S(T(ds,1),jh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Ooe=new RegExp("[ \t\n\r\f]+");try{X9=S(T(SNe,1),xn,2114,0,[new l7((HX(),lA("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",W7((cC(),cC(),q8))))),new l7(lA("yyyy-MM-dd'T'HH:mm:ss'.'SSS",W7(q8))),new l7(lA("yyyy-MM-dd'T'HH:mm:ss",W7(q8))),new l7(lA("yyyy-MM-dd'T'HH:mm",W7(q8))),new l7(lA("yyyy-MM-dd",W7(q8)))])}catch(n){if(!L(n=At(n),82))throw M(n)}}function WPe(n,e){var t,r,c;if(r=0!=io(n.d,1),0==zen(n,e)&&on(un(m(e.j,(V(),Da)))))return 0;!on(un(m(e.j,(V(),Da))))&&!on(un(m(e.j,x2)))||x(m(e.j,(cn(),ul)))===x((vh(),D1))?e.c.mg(e.e,r):r=on(un(m(e.j,Da))),Cy(n,e,r,!0),on(un(m(e.j,x2)))&&U(e.j,x2,(Kn(),!1)),on(un(m(e.j,Da)))&&(U(e.j,Da,(Kn(),!1)),U(e.j,x2,!0)),t=zen(n,e);do{if(iY(n),0==t)return 0;c=t,Cy(n,e,r=!r,!1),t=zen(n,e)}while(c>t);return c}function eGn(n,e){var t,r,c;if(r=0!=io(n.d,1),0==RA(n,e)&&on(un(m(e.j,(V(),Da)))))return 0;!on(un(m(e.j,(V(),Da))))&&!on(un(m(e.j,x2)))||x(m(e.j,(cn(),ul)))===x((vh(),D1))?e.c.mg(e.e,r):r=on(un(m(e.j,Da))),Cy(n,e,r,!0),on(un(m(e.j,x2)))&&U(e.j,x2,(Kn(),!1)),on(un(m(e.j,Da)))&&(U(e.j,Da,(Kn(),!1)),U(e.j,x2,!0)),t=RA(n,e);do{if(iY(n),0==t)return 0;c=t,Cy(n,e,r=!r,!1),t=RA(n,e)}while(c>t);return c}function dtn(n,e,t,i){var r,c,s,f,h,l,a,d,g;return d=((h=gi(new W(t.a,t.b),n)).a*i.b-h.b*i.a)/(a=e.a*i.b-e.b*i.a),g=(l=h.a*e.b-h.b*e.a)/a,0==a?0==l?(c=fa(n,r=et(new W(t.a,t.b),lh(new W(i.a,i.b),.5))),s=fa(et(new W(n.a,n.b),e),r),f=.5*y.Math.sqrt(i.a*i.a+i.b*i.b),c=0&&d<=1&&g>=0&&g<=1?et(new W(n.a,n.b),lh(new W(e.a,e.b),d)):null}function QPe(n){var t,i,r,c,s,h,l,a,d,g;for(a=new WE(new rd(wHn(n)).a.vc().Kc());a.a.Ob();){for(r=u(a.a.Pb(),44),d=0,g=0,d=(l=u(r.ld(),10)).d.d,g=l.o.b+l.d.a,n.d[l.p]=0,t=l;(c=n.a[t.p])!=l;)i=z8e(t,c),0,h=n.c==(wh(),N1)?i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,s=F(n.d[t.p])+h,n.d[c.p]=s,d=y.Math.max(d,c.d.d-s),g=y.Math.max(g,s+c.o.b+c.d.a),t=c;t=l;do{n.d[t.p]=F(n.d[t.p])+d,t=n.a[t.p]}while(t!=l);n.b[l.p]=d+g}}function s8(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=0,s=n.t,r=0,i=0,h=0,g=0,d=0,t&&(n.n.c.length=0,nn(n.n,new ZM(n.s,n.t,n.i))),f=0,a=new C(n.b);a.a0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,nn(n.n,new ZM(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&BZ(u(sn(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,HZ(n.j)),new zo(n.s,n.t,r,i)}function uB(n){var t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=Mt,h=fi,g=Mt,l=fi,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),d=y.Math.min(d,(r=t.a).c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new C(t.c);s.af?1:-1:LY(n.a,e.a,c)))d=-h,a=s==h?E$(e.a,f,n.a,c):M$(e.a,f,n.a,c);else if(d=s,s==h){if(0==r)return mh(),G8;a=E$(n.a,c,e.a,f)}else a=M$(n.a,c,e.a,f);return l5(l=new dd(d,a.length,a)),l}function nIe(n,e){var i,r,c;if(c=BUn(e),!e.c&&(e.c=new q(Yu,e,9,9)),_t(new Mn(null,(!e.c&&(e.c=new q(Yu,e,9,9)),new Pn(e.c,16))),new G9n(c)),function zOe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=on(un(z(n,(cn(),ng)))),g=u(z(n,tg),21),h=!1,l=!1,d=new ne((!n.c&&(n.c=new q(Yu,n,9,9)),n.c));!(d.e==d.i.gc()||h&&l);){for(c=u(ue(d),123),f=0,r=qh(To(S(T(No,1),xn,20,0,[(!c.d&&(c.d=new Dn(Xt,c,8,5)),c.d),(!c.e&&(c.e=new Dn(Xt,c,7,4)),c.e)])));ve(r)&&(i=u(fe(r),74),a=s&&tb(i)&&on(un(z(i,Vd))),t=vGn((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),c)?n==Ct(Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))):n==Ct(Ur(u(D((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((Xu(),Xl))&&(!c.n&&(c.n=new q(Tr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((gr(),fs)),l&&e.Fc((gr(),n9))}(e,r=u(m(c,(V(),zc)),21)),r.Hc((gr(),fs)))for(i=new ne((!e.c&&(e.c=new q(Yu,e,9,9)),e.c));i.e!=i.i.gc();)yLe(n,e,c,u(ue(i),123));return 0!=u(z(e,(cn(),Qd)),181).gc()&&Iqn(e,c),on(un(m(c,Dhn)))&&r.Fc(kI),vt(c,_j)&&Rjn(new wZ(F(R(m(c,_j)))),c),x(z(e,Zw))===x((Ll(),B1))?function GDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,O,$,_,X,tn,jn,kn,Bn,$n,te;for(s=new yt,X=u(m(t,(cn(),$o)),88),k=0,Fi(s,(!e.a&&(e.a=new q(Qe,e,10,11)),e.a));0!=s.b;)(x(z(l=Ct(a=u(0==s.b?null:(oe(0!=s.b),Qo(s,s.a.a)),27)),ul))!==x((vh(),D1))||x(z(l,Wd))===x((k1(),Pm))||x(z(l,Wd))===x((k1(),Sm))||on(un(z(l,Tb)))||x(z(l,Yw))!==x((Sd(),zw))||x(z(l,$a))===x((js(),Lb))||x(z(l,$a))===x((js(),cg))||x(z(l,Jd))===x((M1(),_m))||x(z(l,Jd))===x((M1(),Hm)))&&!on(un(z(a,II)))&&ft(a,(V(),lt),Y(k++)),!on(un(z(a,Yd)))&&(g=0!=(!a.a&&(a.a=new q(Qe,a,10,11)),a.a).i,p=kye(a),v=x(z(a,Zw))===x((Ll(),B1)),$=null,(te=!Bf(a,(Ue(),Xm))||PDn(Oe(z(a,Xm))))&&v&&(g||p)&&(U($=BUn(a),$o,X),vt($,_j)&&Rjn(new wZ(F(R(m($,_j)))),$),0!=u(z(a,Qd),181).gc()&&(d=$,_t(new Mn(null,(!a.c&&(a.c=new q(Yu,a,9,9)),new Pn(a.c,16))),new z9n(d)),Iqn(a,$))),tn=t,(jn=u(ee(n.a,Ct(a)),10))&&(tn=jn.e),O=lzn(n,a,tn),$&&(O.e=$,$.e=O,Fi(s,(!a.a&&(a.a=new q(Qe,a,10,11)),a.a))));for(k=0,Nt(s,e,s.c.b,s.c);0!=s.b;){for(h=new ne((!(c=u(0==s.b?null:(oe(0!=s.b),Qo(s,s.a.a)),27)).b&&(c.b=new q(Xt,c,12,3)),c.b));h.e!=h.i.gc();)iUn(f=u(ue(h),74)),(x(z(e,ul))!==x((vh(),D1))||x(z(e,Wd))===x((k1(),Pm))||x(z(e,Wd))===x((k1(),Sm))||on(un(z(e,Tb)))||x(z(e,Yw))!==x((Sd(),zw))||x(z(e,$a))===x((js(),Lb))||x(z(e,$a))===x((js(),cg))||x(z(e,Jd))===x((M1(),_m))||x(z(e,Jd))===x((M1(),Hm)))&&ft(f,(V(),lt),Y(k++)),Bn=Ur(u(D((!f.b&&(f.b=new Dn(he,f,4,7)),f.b),0),84)),$n=Ur(u(D((!f.c&&(f.c=new Dn(he,f,5,8)),f.c),0),84)),!(on(un(z(f,Yd)))||on(un(z(Bn,Yd)))||on(un(z($n,Yd))))&&(_=c,tb(f)&&on(un(z(Bn,ng)))&&on(un(z(f,Vd)))||dw($n,Bn)?_=Bn:dw(Bn,$n)&&(_=$n),tn=t,(jn=u(ee(n.a,_),10))&&(tn=jn.e),U(Ltn(n,f,_,tn),(V(),yfn),GTe(n,f,e,t)));if(v=x(z(c,Zw))===x((Ll(),B1)))for(r=new ne((!c.a&&(c.a=new q(Qe,c,10,11)),c.a));r.e!=r.i.gc();)te=!Bf(i=u(ue(r),27),(Ue(),Xm))||PDn(Oe(z(i,Xm))),kn=x(z(i,Zw))===x(B1),te&&kn&&Nt(s,i,s.c.b,s.c)}}(n,e,c):function PDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j;for(g=0,r=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));r.e!=r.i.gc();)on(un(z(i=u(ue(r),27),(cn(),Yd))))||((x(z(a=Ct(i),ul))!==x((vh(),D1))||x(z(a,Wd))===x((k1(),Pm))||x(z(a,Wd))===x((k1(),Sm))||on(un(z(a,Tb)))||x(z(a,Yw))!==x((Sd(),zw))||x(z(a,$a))===x((js(),Lb))||x(z(a,$a))===x((js(),cg))||x(z(a,Jd))===x((M1(),_m))||x(z(a,Jd))===x((M1(),Hm)))&&!on(un(z(i,II)))&&(ft(i,(V(),lt),Y(g)),++g),lzn(n,i,t));for(g=0,l=new ne((!e.b&&(e.b=new q(Xt,e,12,3)),e.b));l.e!=l.i.gc();)f=u(ue(l),74),(x(z(e,(cn(),ul)))!==x((vh(),D1))||x(z(e,Wd))===x((k1(),Pm))||x(z(e,Wd))===x((k1(),Sm))||on(un(z(e,Tb)))||x(z(e,Yw))!==x((Sd(),zw))||x(z(e,$a))===x((js(),Lb))||x(z(e,$a))===x((js(),cg))||x(z(e,Jd))===x((M1(),_m))||x(z(e,Jd))===x((M1(),Hm)))&&(ft(f,(V(),lt),Y(g)),++g),k=Wh(f),j=va(f),d=on(un(z(k,ng))),p=!on(un(z(f,Yd))),v=d&&tb(f)&&on(un(z(f,Vd))),c=Ct(k)==e&&Ct(k)==Ct(j),s=(Ct(k)==e&&j==e)^(Ct(j)==e&&k==e),p&&!v&&(s||c)&&Ltn(n,f,e,t);if(Ct(e))for(h=new ne(BIn(Ct(e)));h.e!=h.i.gc();)(k=Wh(f=u(ue(h),74)))==e&&tb(f)&&(v=on(un(z(k,(cn(),ng))))&&on(un(z(f,Vd))))&&Ltn(n,f,e,t)}(n,e,c),c}function _c(n,e){var t,i,r,c,s,f,h;if(null==n)return null;if(0==(c=n.length))return"";for(h=K(ds,jh,28,c,15,1),$i(0,c,n.length),$i(0,c,h.length),zPn(n,0,c,h,0),t=null,f=e,r=0,s=0;r0?Xo(t.a,0,c-1):"":($i(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function Ow(n,e){var t,i,r,c,s;if(s=u(e,138),u2(n),u2(s),null!=s.b){if(n.c=!0,null==n.b)return n.b=K(ye,_e,28,s.b.length,15,1),void Nc(s.b,0,n.b,0,s.b.length);for(c=K(ye,_e,28,n.b.length+s.b.length,15,1),t=0,i=0,r=0;t=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]0?n.i:0)),++e;for(YY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Mt,n.p=Mt,c=new C(n.b);c.a0&&(!(r=(!n.n&&(n.n=new q(Tr,n,1,7)),u(D(n.n,0),135)).a)||Re(Re((e.a+=' "',e),r),'"'))),!n.b&&(n.b=new Dn(he,n,4,7)),t=!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1)),e.a+=t?" [":" ",Re(e,oW(new GL,new ne(n.b))),t&&(e.a+="]"),e.a+=AR,t&&(e.a+="["),Re(e,oW(new GL,new ne(n.c))),t&&(e.a+="]"),e.a)}function wtn(n,e,t){var i,r,s,f,h,l,a;return y.Math.abs(e.s-e.c)a?new gd((pf(),og),t,e,l-a):l>0&&a>0&&(new gd((pf(),og),e,t,0),new gd(og,t,e,0))),s)}function rGn(n,e,t,i){var r,c,s,h,l,a;if(c=cA(i),!on(un(m(i,(cn(),Ahn))))&&!on(un(m(n,NI)))||Dg(u(m(n,Kt),101)))switch(h=new Dc,cc(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,h_n(a,0,0,n.o.a,n.o.b),bi(h,MUn(h,c))):(r=up(c),bi(h,t==(wr(),nu)?r:ny(r))),s=u(m(i,(V(),zc)),21),l=h.j,c.g){case 2:case 1:(l==(en(),zn)||l==ae)&&s.Fc((gr(),N2));break;case 4:case 3:(l==(en(),Zn)||l==Wn)&&s.Fc((gr(),N2))}else r=up(c),h=ttn(n,t,t==(wr(),nu)?r:ny(r));return h}function cGn(n,e){var t,i,r,c,s;for(s=new Ed(new cd(n.f.b).a);s.b;){if(r=u((c=W0(s)).ld(),602),1==e){if(r.Af()!=(ii(),hs)&&r.Af()!=nh)continue}else if(r.Af()!=(ii(),$r)&&r.Af()!=zr)continue;switch(i=u(u(c.md(),42).b,86),t=u(u(c.md(),42).a,194).c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function uGn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(i=new ie(ce(xl(e).a.Kc(),new Vn));ve(i);)L(D((!(t=u(fe(i),74)).b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(h=Ur(u(D((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),Q5(t)||(s=e.i+e.g/2,f=e.j+e.f/2,a=h.i+h.g/2,d=h.j+h.f/2,(g=new Oi).a=a-s,g.b=d-f,O4(c=new W(g.a,g.b),e.g,e.f),g.a-=c.a,g.b-=c.b,s=a-g.a,f=d-g.b,O4(l=new W(g.a,g.b),h.g,h.f),g.a-=l.a,g.b-=l.b,a=s+g.a,d=f+g.b,n4(r=s2(t,!0,!0),s),t4(r,f),Z3(r,a),e4(r,d),uGn(n,h)))}function oGn(n){m0(n,new Od(g0(d0(w0(b0(new ed,ab),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new b4n))),Q(n,ab,jK,rn(gO)),Q(n,ab,Ocn,rn(vU)),Q(n,ab,Lcn,rn(gU)),Q(n,ab,EK,rn(lan)),Q(n,ab,CK,rn(wU)),Q(n,ab,hb,han),Q(n,ab,Fw,8),Q(n,ab,MK,rn(iue)),Q(n,ab,Dcn,rn(san)),Q(n,ab,Ncn,rn(fan)),Q(n,ab,uj,(Kn(),!1))}function hB(n,e,t){var i,r,c,f,h,l,a;return i=n.a.o==(Nf(),Yf)?Mt:fi,!(f=LUn(n,new nMn(e,t))).a&&f.c?(xe(n.d,f),i):f.a?(r=f.a.c,h=f.a.d,t?(l=n.a.c==(wh(),Db)?h:r,a=F(n.a.p[n.a.g[(c=n.a.c==Db?r:h).i.p].p])+F(n.a.d[c.i.p])+c.n.b+c.a.b-F(n.a.d[l.i.p])-l.n.b-l.a.b):(l=n.a.c==(wh(),N1)?h:r,a=F(n.a.p[n.a.g[(c=n.a.c==N1?r:h).i.p].p])+F(n.a.d[c.i.p])+c.n.b+c.a.b-F(n.a.d[l.i.p])-l.n.b-l.a.b),n.a.n[n.a.g[r.i.p].p]=(Kn(),!0),n.a.n[n.a.g[h.i.p].p]=!0,a):i}function oS(n,e,t){var i,c,s,f,h,l,a;if(Bl(n.e,e))ar(),_A((h=u(e,69).xk()?new kM(e,n):new B7(e,n)).c,h.b),U6(h,u(t,16));else{for(a=ou(n.e.Dh(),e),i=u(n.g,124),s=0;s"}null!=h&&(e.a+=""+h)}else n.e?null!=(f=n.e.zb)&&(e.a+=""+f):(e.a+="?",n.b?(e.a+=" super ",lB(n.b,e)):n.f&&(e.a+=" extends ",lB(n.f,e)))}function aB(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(Xn(),Ut)||n.j.c.length<=1||(c=u(m(n,(cn(),Kt)),101),c==(Ii(),Xc))||(kw(),i=(n.q?n.q:(On(),On(),il))._b(Sb)?u(m(n,Sb),203):u(m(Ki(n),f9),203),r=i,r==GI)||r!=U2&&r!=q2&&(s=F(R(mw(n,h9))),e=u(m(n,qj),140),!e&&(e=new KW(s,s,s,s)),l=sc(n,(en(),Wn)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=sc(n,Zn),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function sS(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=null,n.d&&(a=u(Bc(n.d,e),142)),!a){if(d=(c=n.a.vi()).i,!n.d||k6(n.d)!=d){for(h=new de,n.d&&E5(h,n.d),f=l=h.f.c+h.i.c;fe||on(un(z(h,(Uf(),tE)))))&&(r=0,c+=a.b+t,Rn(d.c,a),NT(a=new $J(c,t),i=new bF(0,a.f,a,t)),r=0),0==i.b.c.length||!on(un(z(Ct(h),(Uf(),cU))))&&(h.f>=i.o&&h.f<=i.f||.5*i.a<=h.f&&1.5*i.a>=h.f)?rZ(i,h):(NT(a,s=new bF(i.s+i.r+t,a.f,a,t)),rZ(s,h)),r=h.i+h.g;return Rn(d.c,a),d}function f8(n){var e,t,i,r;if(!(null==n.b||n.b.length<=2||n.a)){for(e=0,r=0;r=n.b[r+1])r+=2;else{if(!(t0&&Ac(r,-6)>=0){if(Ac(r,0)>=0){for(c=t+Ae(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ks(d,t,a-t+1)}for(s=2;rD(s,Yi(d1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ks(d,t,a-t)}return p=t+1,i=a,g=new Cg,h&&(g.a+="-"),i-p>=1?(ca(g,d[t]),g.a+=".",g.a+=ks(d,t+1,a-t-1)):g.a+=ks(d,t,a-t),g.a+="E",Ac(r,0)>0&&(g.a+="+"),g.a+=""+t5(r),g.a}(Ec(n.f),di(n.e)),n.g):(r=EB((!n.c&&(n.c=bk(Ec(n.f))),n.c),0),0==n.e?r:(e=(!n.c&&(n.c=bk(Ec(n.f))),n.c).e<0?2:1,i=-n.e+(t=r.length)-e,(c=new V1).a+=""+r,n.e>0&&i>=-6?i>=0?_7(c,t-di(n.e),String.fromCharCode(46)):(iF(c,e-1,e-1,"0."),_7(c,e+1,ks(Gd,0,-di(i)-1))):(t-e>=1&&(_7(c,e,String.fromCharCode(46)),++t),_7(c,t,String.fromCharCode(69)),i>0&&_7(c,++t,String.fromCharCode(43)),_7(c,++t,""+t5(Ec(i)))),n.g=c.a,n.g))}function wB(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p;for(p=new de,c=n.a.ec().Kc();c.Ob();)Xe(p,i=u(c.Pb(),177),t.af(i));for(Se(n),Jt(s=n?new Hu(n):D3(n.a.ec().Kc()),new D9n(p)),f=oT(s),h=new YC(e),Yc((v=new de).f,e,h);0!=f.a.gc();){for(l=null,a=null,d=null,r=f.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),177),F(R(Rr(br(p.f,i))))<=Mt){if(tu(v,i.a)&&!tu(v,i.b)){a=i.b,d=i.a,l=i;break}if(tu(v,i.b)&&!tu(v,i.a)){a=i.a,d=i.b,l=i;break}}if(!l)break;g=new YC(a),nn(u(Rr(br(v.f,d)),225).a,g),Yc(v.f,a,g),f.a.Bc(l)}return h}function Ld(n,e){var t,i,r,s,f;if(e){if(!n.a&&(n.a=new iC),2==n.e)return void tC(n.a,e);if(1==e.e){for(r=0;r=sr?jr(t,iZ(i)):B3(t,i&ri),s=new n$(10,null,0),function hwe(n,e,t){$3(t,n.a.c.length),Vo(n.a,t,e)}(n.a,s,f-1)):(s.Mm(),jr(t=new p6,s.Mm())),0==e.e?(i=e.Km())>=sr?jr(t,iZ(i)):B3(t,i&ri):jr(t,e.Mm()),u(s,530).b=t.a}}function PIe(n,e,t){var i,r,c;if((r=u(m(e,(cn(),SI)),282))!=(N4(),Z8)){switch(1===(t.Ug("Horizontal Compaction",1),n.a=e,function ghe(n,e){return n.g=e,n}(i=new fHn(((c=new VNn).d=e,c.c=u(m(c.d,Gl),223),function yAe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new C(n.d.b);r.a0&&Uk(l,!0,(ii(),zr)),f.k==(Xn(),Qt)&&lIn(l),Xe(n.f,f,e)):((a=(i=u(yge(Nl(f)),18)).c.i)==f&&(a=i.d.i),d=new ai(a,gi(Bi(f.n),a.n)),Xe(n.b,f,d))}(c),PAe(c),c.a)),n.b),u(m(e,uhn),431).g)?Wjn(i,new kFn(n.a)):Wjn(i,(mJ(),UQn)),r.g){case 1:Y5(i);break;case 2:Y5(fS(i,(ii(),zr)));break;case 3:Y5(Vjn(fS(Y5(i),(ii(),zr)),new q2n));break;case 4:Y5(Vjn(fS(Y5(i),(ii(),zr)),new m7n(c)));break;case 5:Y5(function whe(n,e){return n.b=e,n}(i,ene))}fS(i,(ii(),$r)),i.e=!0,function iLe(n){var e,t,i,r;for(_t(rt(new Mn(null,new Pn(n.a.b,16)),new X2n),new W2n),function Bke(n){var e,t,i,r,c;for(i=new Ed(new cd(n.b).a);i.b;)e=u((t=W0(i)).ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),et(wf(e.n),et(Bi(c.n),r))}(n),_t(rt(new Mn(null,new Pn(n.a.b,16)),new V2n),new J2n),n.c==(Dl(),Qp)&&(_t(rt(uc(new Mn(null,new Pn(new rd(n.f),1)),new Q2n),new Y2n),new E7n(n)),_t(rt(Kr(uc(uc(new Mn(null,new Pn(n.d.b,16)),new Z2n),new nvn),new evn),new tvn),new M7n(n))),r=new W(Mt,Mt),e=new W(fi,fi),i=new C(n.a.b);i.a1&&(h=l.Hg(h,n.a,f));return 1==h.c.length?u(sn(h,h.c.length-1),238):2==h.c.length?function vIe(n,e,t,i){var s,a,d,g,O;return g=e.f,(s=n.f)!=(Z5(),zp)&&s!=P9||g!=zp&&g!=P9?s!=V2&&s!=I9||g!=V2&&g!=I9?s!=V2&&s!=zp||g!=V2&&g!=zp?n:(s==V2?(d=n,a=e):(d=e,a=n),O=y.Math.max(t.j+t.f,d.e+i.f)-y.Math.min(t.j,d.e),(d.d+i.g-t.i)*O<=(y.Math.max(t.i+t.g,a.d+i.g)-y.Math.min(t.i,a.d))*(a.e+i.f-t.j)?n.f==V2?n:e:n.f==zp?n:e):n.f==I9?n:e:n.f==P9?n:e}((Ln(0,h.c.length),u(h.c[0],238)),(Ln(1,h.c.length),u(h.c[1],238)),s,c):null}function wGn(n){var e,t,i,r,c,s;for(iu(n.a,new Dbn),t=new C(n.a);t.a=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.ds.c&&c.c0){if(e=new BX(n.i,n.g),c=(t=n.i)<100?null:new J1(t),n.Tj())for(i=0;i0){for(f=n.g,l=n.i,g5(n),c=l<100?null:new J1(l),i=0;i4){if(!n.fk(e))return!1;if(n.al()){if(h=(i=(r=u(e,54)).Eh())==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh())for(c=0;c0)if(e=new sY(n.pj()),c=(t=a)<100?null:new J1(t),z7(n,t,e.g),r=1==t?n.Ij(4,D(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new ne(e);i.e!=i.i.gc();)c=n.Oj(ue(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else z7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(On(),Vi),null,-1,h));else if(n.Mj())if((a=n.Ej())>0){for(f=n.Fj(),l=a,z7(n,a,f),c=l<100?null:new J1(l),i=0;i.5?A-=2*s*(p-.5):p<.5&&(A+=2*c*(.5-p)),A<(r=f.d.b)&&(A=r),A>j.a-(k=f.d.c)-a&&(A=j.a-k-a),f.n.a=e+A}}function Ly(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;if(n.e&&n.c.c>19&&(e=b4(e),h=!h),s=function DMe(n){var e,t,i;return(t=n.l)&t-1||(i=n.m)&i-1||(e=n.h)&e-1||0==e&&0==i&&0==t?-1:0==e&&0==i&&0!=t?HQ(t):0==e&&0!=i&&0==t?HQ(i)+22:0!=e&&0==i&&0==t?HQ(e)+44:-1}(e),c=!1,r=!1,i=!1,n.h==Hy&&0==n.m&&0==n.l){if(r=!0,c=!0,-1!=s)return f=wen(n,s),h&&aF(f),t&&(Sa=eu(0,0,0)),f;n=iTn((Q3(),Dun)),i=!0,h=!h}else n.h>>19&&(c=!0,n=b4(n),i=!0,h=!h);return-1!=s?s6e(n,s,h,c,t):nnn(n,e)<0?(t&&(Sa=c?b4(n):eu(n.l,n.m,n.h)),eu(0,0,0)):function ISe(n,e,t,i,r,c){var s,h,l,a,d,g;for(s=c_n(e,l=kxn(e)-kxn(n)),h=eu(0,0,0);l>=0&&(!E7e(n,s)||(l<22?h.l|=1<>>1,s.m=a>>>1|(1&d)<<21,s.l=g>>>1|(1&a)<<21,--l;return t&&aF(h),c&&(i?(Sa=b4(n),r&&(Sa=exn(Sa,(Q3(),Nun)))):Sa=eu(n.l,n.m,n.h)),h}(i?n:eu(n.l,n.m,n.h),e,h,c,r,t)}function gB(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;if(0==(s=n.e))return e;if(0==(h=e.e))return n;if((c=n.d)+(f=e.d)==2)return t=vi(n.a[0],vr),i=vi(e.a[0],vr),s==h?(p=Ae(a=Yi(t,i)),0==(v=Ae(ia(a,32)))?new Tl(s,p):new dd(s,2,S(T(ye,1),_e,28,15,[p,v]))):(mh(),zC(s<0?ms(i,t):ms(t,i),0)?ga(s<0?ms(i,t):ms(t,i)):c5(ga(d1(s<0?ms(i,t):ms(t,i)))));if(s==h)g=s,d=c>=f?M$(n.a,c,e.a,f):M$(e.a,f,n.a,c);else{if(0==(r=c!=f?c>f?1:-1:LY(n.a,e.a,c)))return mh(),G8;1==r?(g=s,d=E$(n.a,c,e.a,f)):(g=h,d=E$(e.a,f,n.a,c))}return l5(l=new dd(g,d.length,d)),l}function QIe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),CF(oc(S(T(yi,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t=0)return t;switch(F0(Ir(n,t))){case 2:if(Tn("",v1(n,t.qk()).xe())){if(a=men(n,e,h=ok(Ir(n,t)),_3(Ir(n,t))))return a;for(s=0,d=(r=Ven(n,e)).gc();s1,l=new xf(g.b);rc(l.a)||rc(l.b);)d=(h=u(rc(l.a)?E(l.a):E(l.b),18)).c==g?h.d:h.c,y.Math.abs(oc(S(T(yi,1),J,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&BTe(n,h,s,c,g)}}function ht(){ht=N,S0n=(Xz(),Mc).b,lse=u(D(H(Mc.b),0),35),o0=u(D(H(Mc.b),1),35),hse=u(D(H(Mc.b),2),35),uv=Mc.bb,u(D(H(Mc.bb),0),35),u(D(H(Mc.bb),1),35),ov=Mc.fb,Q9=u(D(H(Mc.fb),0),35),u(D(H(Mc.fb),1),35),u(D(H(Mc.fb),2),19),Rb=Mc.qb,Ese=u(D(H(Mc.qb),0),35),u(D(H(Mc.qb),1),19),u(D(H(Mc.qb),2),19),LE=u(D(H(Mc.qb),3),35),DE=u(D(H(Mc.qb),4),35),Z9=u(D(H(Mc.qb),6),35),Y9=u(D(H(Mc.qb),5),19),ase=Mc.j,dse=Mc.k,bse=Mc.q,wse=Mc.w,gse=Mc.B,vse=Mc.A,pse=Mc.C,mse=Mc.D,kse=Mc._,yse=Mc.cb,jse=Mc.hb}function mGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,j,A,I,O,$;for(a=F(R(m(n,(cn(),Ib)))),i=F(R(m(n,Khn))),U(g=new lL,Ib,a+i),A=(l=e).d,I=l.d.i,j=GX(l.c.i.c),O=GX(I.c),r=new Z,d=j;d<=O;d++)id(f=new Fl(n),(Xn(),Ei)),U(f,(V(),ot),l),U(f,Kt,(Ii(),Xc)),U(f,KI,g),v=u(sn(n.b,d),30),d==j?yw(f,v.a.c.length-t,v):Di(f,v),($=F(R(m(l,O1))))<0&&U(l,O1,$=0),f.o.b=$,p=y.Math.floor($/2),bi(s=new Dc,(en(),Wn)),cc(s,f),s.n.b=p,bi(h=new Dc,Zn),cc(h,f),h.n.b=p,Pi(l,s),qr(c=new B0,l),U(c,Nr,null),Qi(c,h),Pi(c,A),Y7e(f,l,c),Rn(r.c,c),l=c;return r}function vB(n,e){var i,r,c,s,f,h,a,d,g,v,p,k,j,A,O;for(h=u(E1(n,(en(),Wn)).Kc().Pb(),12).e,v=u(E1(n,Zn).Kc().Pb(),12).g,f=h.c.length,O=$f(u(sn(n.j,0),12));f-- >0;){for(Ln(0,h.c.length),k=u(h.c[0],18),Ln(0,v.c.length),c=Hr((r=u(v.c[0],18)).d.e,r,0),Dve(k,r.d,c),Qi(r,null),Pi(r,null),p=k.a,e&&xe(p,new ir(O)),i=ge(r.a,0);i.b!=i.d.c;)xe(p,new ir(u(be(i),8)));for(A=k.b,g=new C(r.b);g.a-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return null!=e&&on(un(e))!=R6(n.k,0);case 1:return null!=e&&u(e,222).a!=Ae(n.k)<<24>>24;case 2:return null!=e&&u(e,180).a!=(Ae(n.k)&ri);case 6:return null!=e&&R6(u(e,168).a,n.k);case 5:return null!=e&&u(e,17).a!=Ae(n.k);case 7:return null!=e&&u(e,191).a!=Ae(n.k)<<16>>16;case 3:return null!=e&&F(R(e))!=n.j;case 4:return null!=e&&u(e,161).a!=n.j;default:return null==e?null!=n.n:!it(e,n.n)}}function Dy(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&x(s=PN(n,u(t,58)))!==x(t)?(n.xj(e),n.Dj(e,ENn(n,0,s)),n.al()&&(r=u(t,54),c=n.ml()?n.kl()?r.Th(n.b,dr(u(Nn(vu(n.b),n.Lj()),19)).n,u(Nn(vu(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,St(r.Dh(),dr(u(Nn(vu(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null),!u(s,54).Ph()&&(i=u(s,54),c=n.ml()?n.kl()?i.Rh(n.b,dr(u(Nn(vu(n.b),n.Lj()),19)).n,u(Nn(vu(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,St(i.Dh(),dr(u(Nn(vu(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c)),c&&c.oj()),ao(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function kGn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new Z,s=new C(n.e.a);s.a0&&(s=y.Math.max(s,MFn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(v=g+n.C.c,l&&(v+=a.d.c),s=y.Math.max(s,(Of(),zs(zf),y.Math.abs(d-1)<=zf||1==d||isNaN(d)&&isNaN(1)?0:v/(1-d)))),t.n.b=0,t.a.a=s}function jGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,v;if(t=u(Er(n.b,e),127),(h=u(u(ut(n.r,e),21),87)).dc())return t.n.d=0,void(t.n.a=0);for(l=n.u.Hc((Xu(),Xl)),s=0,n.A.Hc((mo(),u0))&&Qqn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)c=F(R((i=u(f.Pb(),117)).b.of((cM(),DP)))),r=i.b.Mf().b,a?(v=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Of(),zs(zf),y.Math.abs(g-c)<=zf||g==c||isNaN(g)&&isNaN(c)?0:v/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,MFn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(v=d+n.C.a,l&&(v+=a.d.a),s=y.Math.max(s,(Of(),zs(zf),y.Math.abs(g-1)<=zf||1==g||isNaN(g)&&isNaN(1)?0:v/(1-g)))),t.n.d=0,t.a.b=s}function aOe(n,e,t,i,r,c,s,f){var l,a,d,g,v,p,j,A;if(p=!1,l=Aen(t.q,e.f+e.b-t.q.f),v=i.f>e.b&&f,d=s8(i,A=r-(t.q.e+l-s),!1).a,v&&d>i.f)return!1;if(v){for(g=0,j=new C(e.d);j.a=(Ln(c,n.c.length),u(n.c[c],186)).e,!v&&d>e.b&&!a))&&((a||v||d<=e.b)&&(a&&d>e.b?(t.d=d,Ck(t,s_n(t,d))):(TKn(t.q,l),t.c=!0),Ck(i,r-(t.s+t.r)),uy(i,t.q.e+t.q.d,e.f),NT(e,i),n.c.length>c&&(fy((Ln(c,n.c.length),u(n.c[c],186)),i),0==(Ln(c,n.c.length),u(n.c[c],186)).a.c.length&&l1(n,c)),p=!0),p)}function EGn(n,e,t){var i,r,c,s,f,h;for(this.g=n,this.d=K(cl,A1,10,(f=e.d.length)+(h=t.d.length),0,1),s=0;s0?H$(this,this.f/this.a):null!=Lf(e.g,e.d[0]).a&&null!=Lf(t.g,t.d[0]).a?H$(this,(F(Lf(e.g,e.d[0]).a)+F(Lf(t.g,t.d[0]).a))/2):null!=Lf(e.g,e.d[0]).a?H$(this,Lf(e.g,e.d[0]).a):null!=Lf(t.g,t.d[0]).a&&H$(this,Lf(t.g,t.d[0]).a)}function dOe(n,e){var t,i,c,s,f,h,l,a,d;for(n.a=new tIn(function Vme(n){var e,t;return t=(e=u(n.e&&n.e(),9)).slice(),new Go(e,u(O$(t,e),9),e.length)}(x9)),i=new C(e.a);i.a=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(cn(),Qd),(mo(),new Go(i=u(df(U9),9),u(Hs(i,i.length),9),0)))}function vOe(n,e,t){var i,r,c,s,f,h,l,d,g,v,p,k,j,A;if(t.Ug("Network simplex layering",1),n.b=e,A=4*u(m(e,(cn(),l9)),17).a,(j=n.b.a).c.length<1)t.Vg();else{for(k=null,r=ge(c=function bSe(n,e){var t,i,r,c,s;for(null==n.c||n.c.length1)for(k=K(ye,_e,28,n.b.b.c.length,15,1),d=0,l=new C(n.b.b);l.a=t}(this.k)}function AGn(n){var e,t,i,r,c,s,f;for(e=0,c=new C(n.b.a);c.afi||e.o==n0&&a=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else{if(!(hja)&&f<10);qz(n.c,new Ybn),AGn(n),function awe(n){return d2(n,(ii(),$r)),n.d=!0,n}(n.c),function oOe(n){var e,t,i,r,c,s,f,h;for(c=new C(n.a.b);c.a=2){for(s=u(be(h=ge(t,0)),8),f=u(be(h),8);f.a=n.j?(++n.j,nn(n.b,Y(1)),nn(n.c,a)):(i=n.d[e.p][1],Vo(n.b,l,Y(u(sn(n.b,l),17).a+1-i)),Vo(n.c,l,F(R(sn(n.c,l)))+a-i*n.f)),(n.r==(js(),Uj)&&(u(sn(n.b,l),17).a>n.k||u(sn(n.b,l-1),17).a>n.k)||n.r==Gj&&(F(R(sn(n.c,l)))>n.n||F(R(sn(n.c,l-1)))>n.n))&&(h=!1),s=new ie(ce(ki(e).a.Kc(),new Vn));ve(s);)c=u(fe(s),18),n.g[(f=c.c.i).p]==l&&(r+=u((d=PGn(n,f)).a,17).a,h=h&&on(un(d.b)));return n.g[e.p]=l,new ai(Y(r+=n.d[e.p][0]),(Kn(),!!h))}function IGn(n,e){var r,s;F(R(m(e,(cn(),ef))))<2&&U(e,ef,2),u(m(e,$o),88)==(ii(),eh)&&U(e,$o,cA(e)),r=u(m(e,Wte),17),U(e,(V(),Hp),0==r.a?new xF:new sT(r.a)),null==un(m(e,s9))&&U(e,s9,(Kn(),x(m(e,Gl))===x((Dl(),Ym)))),_t(new Mn(null,new Pn(e.a,16)),new ZG(n)),_t(uc(new Mn(null,new Pn(e.b,16)),new hG),new nz(n)),s=new CGn(e),U(e,(V(),B2),s),uk(n.a),gf(n.a,(zi(),nf),u(m(e,Wd),188)),gf(n.a,rl,u(m(e,Jd),188)),gf(n.a,$c,u(m(e,o9),188)),gf(n.a,Uc,u(m(e,BI),188)),gf(n.a,Gr,function Pme(n){var e;return pTn(),jCn(Cq,n)||((e=new Mpn).a=n,RW(Cq,n,e)),u(Er(Cq,n),645)}(u(m(e,Gl),223))),XX(n.a,function CDe(n){var e,t,c;switch(t=u(m(n,(V(),zc)),21),e=QC(jZn),u(m(n,(cn(),Zw)),346)==(Ll(),B1)&&So(e,EZn),on(un(m(n,YH)))?Ke(e,(zi(),nf),(nr(),oH)):Ke(e,(zi(),$c),(nr(),oH)),null!=m(n,(wT(),O9))&&So(e,CZn),(on(un(m(n,yhn)))||on(un(m(n,vhn))))&&Lu(e,(zi(),Gr),(nr(),gsn)),u(m(n,$o),88).g){case 2:case 3:case 4:Lu(Ke(e,(zi(),nf),(nr(),psn)),Gr,vsn)}switch(t.Hc((gr(),pI))&&Lu(Ke(Ke(e,(zi(),nf),(nr(),wsn)),Uc,dsn),Gr,bsn),x(m(n,$a))!==x((js(),zI))&&Ke(e,(zi(),$c),(nr(),Dsn)),t.Hc(kI)&&(Ke(e,(zi(),nf),(nr(),xsn)),Ke(e,rl,$sn),Ke(e,$c,Fsn)),x(m(n,SI))!==x((N4(),Z8))&&x(m(n,Gl))!==x((Dl(),bE))&&Lu(e,(zi(),Gr),(nr(),Asn)),on(un(m(n,mhn)))&&Ke(e,(zi(),$c),(nr(),Tsn)),on(un(m(n,WH)))&&Ke(e,(zi(),$c),(nr(),Bsn)),function xMe(n){var e,t,i,r;return x(m(n,(cn(),Zw)))===x((Ll(),B1))?!n.e&&x(m(n,Kj))!==x((l4(),Nj)):(i=u(m(n,XH),299),r=on(un(m(n,WH)))||x(m(n,o9))===x((k5(),Dj)),e=u(m(n,fhn),17).a,t=n.a.c.length,!r&&i!=(l4(),Nj)&&(0==e||e>t))}(n)&&(c=(x(m(n,Zw))===x(B1)?u(m(n,Kj),299):u(m(n,XH),299))==(l4(),LH)?(nr(),Nsn):(nr(),_sn),Ke(e,(zi(),Uc),c)),u(m(n,Xhn),388).g){case 1:Ke(e,(zi(),Uc),(nr(),Rsn));break;case 2:Lu(Ke(Ke(e,(zi(),$c),(nr(),fsn)),Uc,hsn),Gr,lsn)}return x(m(n,ul))!==x((vh(),D1))&&Ke(e,(zi(),$c),(nr(),Ksn)),e}(e)),U(e,_H,Ly(n.a,e))}function jtn(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A;for(d=new de,s=new Z,P_n(n,t,n.d.Ag(),s,d),P_n(n,i,n.d.Bg(),s,d),n.b=.2*(k=NHn(uc(new Mn(null,new Pn(s,16)),new xpn)),j=NHn(uc(new Mn(null,new Pn(s,16)),new Bpn)),y.Math.min(k,j)),c=0,f=0;f=2&&(A=ZHn(s,!0,g),!n.e&&(n.e=new hkn(n)),$8e(n.e,A,s,n.b)),FKn(s,g),function $Oe(n){var t,i,r,c,s,f,h,l,a;for(l=new Z,f=new Z,s=new C(n);s.a-1){for(c=new C(f);c.a0)&&(RG(h,y.Math.min(h.o,r.o-1)),XE(h,h.i-1),0==h.i&&Rn(f.c,h))}}(s),v=-1,a=new C(s);a.a0&&0==t.c&&(!e&&(e=new Z),Rn(e.c,t));if(e)for(;0!=e.c.length;){if((t=u(l1(e,0),239)).b&&t.b.c.length>0)for(!t.b&&(t.b=new Z),c=new C(t.b);c.aHr(n,t,0))return new ai(r,t)}else if(F(Lf(r.g,r.d[0]).a)>F(Lf(t.g,t.d[0]).a))return new ai(r,t);for(f=(!t.e&&(t.e=new Z),t.e).Kc();f.Ob();)!(s=u(f.Pb(),239)).b&&(s.b=new Z),ow(0,(h=s.b).c.length),S6(h.c,0,t),s.c==h.c.length&&Rn(e.c,s)}return null}function l8(n,e){var t,i,r,c,s,f,h,l,a;if(5!=e.e){if(null!=(l=e).b&&null!=n.b){for(u2(n),f8(n),u2(l),f8(l),t=K(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else{if(!(h2?(si(a=new Z,new f1(A,1,A.b)),qr(I=new Bx(yzn(a,O+n.a)),e),Rn(t.c,I)):I=u(ee(n.b,i?Wh(e):va(e)),272),h=Wh(e),i&&(h=va(e)),s=function Fje(n,e){var t,i,r;return r=p2,_5(),i=Mj,r=y.Math.abs(n.b),(t=y.Math.abs(e.f-n.b))0?1:0;c.a[r]!=t;)r=n.a.Ne(t.d,(c=c.a[r]).d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}(n,h,s,a=new S$(d.d,d.e)),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function xGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(t)for(i=-1,a=new Ni(e,0);a.b=14&&a<=16?L(i,183)?Al(t,mEe(u(i,183))):L(i,195)?Al(t,rye(u(i,195))):L(i,201)?Al(t,bje(u(i,201))):L(i,2111)?Al(t,cye(u(i,2111))):L(i,53)?Al(t,pEe(u(i,53))):L(i,376)?Al(t,FEe(u(i,376))):L(i,846)?Al(t,vEe(u(i,846))):L(i,109)&&Al(t,gEe(u(i,109))):e.a._b(i)?(t.a?Re(t.a,t.b):t.a=new yo(t.d),_6(t.a,"[...]")):Al(t,BGn(kd(i),new Y6(e))):Al(t,null==i?yu:Jr(i));return t.a?0==t.e.length?t.a.a:t.a.a+""+t.e:t.c}function G4(n,e){var t,i,r,c;c=n.F,null==e?(n.F=null,p4(n,null)):(n.F=(Jn(e),e),-1!=(i=fh(e,ku(60)))?($i(0,i,e.length),r=e.substr(0,i),-1==fh(e,ku(46))&&!Tn(r,vp)&&!Tn(r,$8)&&!Tn(r,hP)&&!Tn(r,F8)&&!Tn(r,x8)&&!Tn(r,B8)&&!Tn(r,R8)&&!Tn(r,K8)&&(r=mJn),-1!=(t=tM(e,ku(62)))&&(r+=""+(Gn(t+1,e.length+1),e.substr(t+1))),p4(n,r)):(r=e,-1==fh(e,ku(46))&&(-1!=(i=fh(e,ku(91)))&&($i(0,i,e.length),r=e.substr(0,i)),Tn(r,vp)||Tn(r,$8)||Tn(r,hP)||Tn(r,F8)||Tn(r,x8)||Tn(r,B8)||Tn(r,R8)||Tn(r,K8)?r=e:(r=mJn,-1!=i&&(r+=""+(Gn(i,e.length+1),e.substr(i))))),p4(n,r),r==e&&(n.F=n.D))),4&n.Db&&!(1&n.Db)&&tt(n,new ji(n,1,5,c,e))}function RGn(n,e){var t,i,r,s,f,h,l,d;if(Gn(h=e.length-1,e.length),93==(f=e.charCodeAt(h))){if((s=fh(e,ku(91)))>=0)return r=function z5e(n,e){var t;if(L(t=Ey(n.Dh(),e),102))return u(t,19);throw M(new Un(Aa+e+"' is not a valid reference"))}(n,($i(1,s,e.length),e.substr(1,s-1))),$i(s+1,h,e.length),function pDe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new Z,d=e.length,s=CY(t),l=0;l=0?n.Lh(l,!1,!0):ib(n,t,!1),61).Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a=0){i=u(j$(n,A$n(n,($i(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=Io((Gn(t+1,e.length+1),e.substr(t+1)),Xi,nt)}catch(g){throw L(g=At(g),130)?M(new kT(g)):M(g)}if(l>16==-10?t=u(n.Cb,292).Yk(e,t):n.Db>>16==-15&&(!e&&(In(),e=rh),!l&&(In(),l=rh),n.Cb.Yh()&&(h=new Sl(n.Cb,1,13,l,e,j1(eo(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,90))n.Db>>16==-23&&(L(e,90)||(In(),e=$s),L(l,90)||(In(),l=$s),n.Cb.Yh()&&(h=new Sl(n.Cb,1,10,l,e,j1(Lc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,457))for(!(f=u(n.Cb,850)).b&&(f.b=new ZE(new FL)),c=new nC(new Ed(new cd(f.b.a).a));c.a.b;)t=z4(r=u(W0(c.a).ld(),89),UA(r,f),t);return t}function KGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if((g=u(z(n,(Ue(),i0)),21)).dc())return null;if(f=0,s=0,g.Hc((mo(),kE))){for(a=u(z(n,F9),101),i=2,t=2,r=2,c=2,e=Ct(n)?u(z(Ct(n),t0),88):u(z(n,t0),88),l=new ne((!n.c&&(n.c=new q(Yu,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(ue(l),123),(d=u(z(h,iv),64))==(en(),hc)&&(d=otn(h,e),ft(h,iv,d)),a==(Ii(),Xc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return ub(n,f,s,!0,!0)}function pB(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$;for(I=u(Vr(ST(rt(new Mn(null,new Pn(e.d,16)),new I7n(t)),new O7n(t)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),d=nt,a=Xi,h=new C(e.b.j);h.a0)?l&&(g=A.p,s?++g:--g,v=!(Hx(i=hxn(u(sn(A.c.a,g),10)),X,t[0])||NPn(i,X,t[0]))):v=!0),p=!1,(_=e.D.i)&&_.c&&f.e&&(s&&_.p>0||!s&&_.p<_.c.a.c.length-1?(g=_.p,s?--g:++g,p=!(Hx(i=hxn(u(sn(_.c.a,g),10)),t[0],jn)||NPn(i,t[0],jn))):p=!0),v&&p&&xe(n.a,tn),v||m5(n.a,S(T(yi,1),J,8,0,[k,j])),p||m5(n.a,S(T(yi,1),J,8,0,[$,O]))}function QOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v;if(c=u(m(n,(V(),ot)),74)){for(i=n.a,et(r=new ir(t),function jke(n){var e,t,i,r;if(r=u(m(n,(V(),yfn)),36)){for(i=new Oi,e=Ki(n.c.i);e!=r;)e=Ki(t=e.e),A0(et(et(i,t.n),e.c),e.d.b,e.d.d);return i}return HZn}(n)),f4(n.d.i,n.c.i)?(g=n.c,gi(d=oc(S(T(yi,1),J,8,0,[g.n,g.a])),t)):d=$f(n.c),Nt(i,d,i.a,i.a.a),v=$f(n.d),null!=m(n,qH)&&et(v,u(m(n,qH),8)),Nt(i,v,i.c.b,i.c),ww(i,r),xT(s=s2(c,!0,!0),u(D((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),BT(s,u(D((!c.c&&(c.c=new Dn(he,c,5,8)),c.c),0),84)),Py(i,s),a=new C(n.b);a.as?1:E0(isNaN(0),isNaN(s)))<0&&(zs(Sh),(y.Math.abs(s-1)<=Sh||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:E0(isNaN(s),isNaN(1)))<0)&&(zs(Sh),(y.Math.abs(0-f)<=Sh||0==f||isNaN(0)&&isNaN(f)?0:0f?1:E0(isNaN(0),isNaN(f)))<0)&&(zs(Sh),(y.Math.abs(f-1)<=Sh||1==f||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:E0(isNaN(f),isNaN(1)))<0))}function eLe(n,e,t){var i;if(t.Ug("StretchWidth layering",1),0!=e.a.c.length){for(n.c=e,n.t=0,n.u=0,n.i=Mt,n.g=fi,n.d=F(R(m(e,(cn(),ef)))),function y9e(n){var e,t,i;for(n.p=(Se(i=n.c.a),new Hu(i)),t=new C(i);t.a0&&(e.a+=cr),hS(u(ue(f),167),e);for(e.a+=AR,h=new Nv((!i.c&&(i.c=new Dn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=cr),hS(u(ue(h),167),e);e.a+=")"}}}function cLe(n,e,t){var i,r,c,s,f,h,l,a;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(m(e,(cn(),$a)),243),n.r!=(js(),Lb)&&n.r!=cg?function LLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,v,p,k;for(n.o=F(R(m(n.i,(cn(),Ob)))),n.f=F(R(m(n.i,Zd))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=Ff(K(qi,J,17,n.j,0,1)),n.c=Ff(K(ui,J,345,n.j,7,1)),s=new C(n.i.b);s.a0&&nn(n.q,a),nn(n.p,a);l+=(e-=i)*n.f,Vo(n.b,f,Y(v=h+e)),Vo(n.c,f,l),n.k=y.Math.max(n.k,v),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}(n):function rAe(n){var e,t,i,r,s,h,l;for(n.a=new HW,l=0,r=0,i=new C(n.i.b);i.an.k&&(n.r=Uj,U4(n,c));break;case 4:for(n.r=XI,U4(n,c),l=0,r=new C(n.c);r.an.n&&(n.r=Gj,U4(n,c));break;case 6:U4(n,new l7n(di(y.Math.ceil(n.g.length*a/100))));break;case 5:U4(n,new a7n(di(y.Math.ceil(n.e*a/100))));break;case 8:Czn(n,!0);break;case 9:Czn(n,!1)}n.r!=Lb&&n.r!=cg?function STe(n,e){var t,i,r,c,s,f;for(r=new Z,t=0;t<=n.j;t++)(i=new xc(e)).p=n.j-t,Rn(r.c,i);for(f=new C(n.p);f.a0&&(n.c[e.c.p][e.p].d+=io(n.i,24)*zy*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function UGn(n,e){var t,i,r,c,s,f,h,l,a;return l="",0==e.length?n.ne(Htn,IB,-1,-1):(Tn((a=Cw(e)).substr(0,3),"at ")&&(Gn(3,a.length+1),a=a.substr(3)),-1==(s=(a=a.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(s=a.indexOf("@"))?(l=a,a=""):(l=Cw((Gn(s+1,a.length+1),a.substr(s+1))),a=Cw(($i(0,s,a.length),a.substr(0,s)))):($i(s+1,t=a.indexOf(")",s),a.length),l=a.substr(s+1,t-(s+1)),a=Cw(($i(0,s,a.length),a.substr(0,s)))),-1!=(s=fh(a,ku(46)))&&(Gn(s+1,a.length+1),a=a.substr(s+1)),(0==a.length||Tn(a,"Anonymous function"))&&(a=IB),f=tM(l,ku(58)),r=VW(l,ku(58),f-1),h=-1,i=-1,c=Htn,-1!=f&&-1!=r&&($i(0,r,l.length),c=l.substr(0,r),h=oAn(($i(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=oAn((Gn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function dLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;for(X=0,v=0,d=new C(e.e);d.a=l&&_>=j&&(g+=p.n.b+k.n.b+k.a.b-$,++f));if(t)for(s=new C(I.e);s.a=l&&_>=j&&(g+=p.n.b+k.n.b+k.a.b-$,++f))}f>0&&(X+=g/f,++v)}v>0?(e.a=r*X/v,e.g=v):(e.a=0,e.g=0)}function GGn(n,e,t,i){var r,c,s,f,h;return function cTe(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((Xu(),Xl)),c=0,r=new C(n.e.Xf());r.ai.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}(f),function a7e(n){switch(n.q.g){case 5:mKn(n,(en(),zn)),mKn(n,ae);break;case 4:yGn(n,(en(),zn)),yGn(n,ae);break;default:C_n(n,(en(),zn)),C_n(n,ae)}}(f),function d7e(n){switch(n.q.g){case 5:kKn(n,(en(),Zn)),kKn(n,Wn);break;case 4:jGn(n,(en(),Zn)),jGn(n,Wn);break;default:M_n(n,(en(),Zn)),M_n(n,Wn)}}(f),function BOe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((mo(),kE))&&(u(Er(n.b,(en(),zn)),127).k=!0,u(Er(n.b,ae),127).k=!0,e=n.q!=(Ii(),hl)&&n.q!=Xc,FG(u(Er(n.b,Zn),127),e),FG(u(Er(n.b,Wn),127),e),FG(n.g,e),n.A.Hc(u0)&&(u(Er(n.b,zn),127).j=!0,u(Er(n.b,ae),127).j=!0,u(Er(n.b,Zn),127).k=!0,u(Er(n.b,Wn),127).k=!0,n.g.k=!0)),n.A.Hc(mE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((ro(),G9)),c=0,s=(r=zF()).length;c1)for(_i(O,new eMn(n,v=new gtn(p,O,i))),Rn(s.c,v),d=O.a.ec().Kc();d.Ob();)pu(c,u(d.Pb(),42).b);if(f.a.gc()>1)for(_i(f,new tMn(n,v=new gtn(p,f,i))),Rn(s.c,v),d=f.a.ec().Kc();d.Ob();)pu(c,u(d.Pb(),42).b)}}function mLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A;if(k=n.n,j=n.o,g=n.d,d=F(R(mw(n,(cn(),eq)))),e){for(a=d*(e.gc()-1),v=0,h=e.Kc();h.Ob();)a+=(s=u(h.Pb(),10)).o.a,v=y.Math.max(v,s.o.b);for(A=k.a-(a-j.a)/2,c=k.b-g.d+v,r=i=j.a/(e.gc()+1),f=e.Kc();f.Ob();)(s=u(f.Pb(),10)).n.a=A,s.n.b=c-s.o.b,A+=s.o.a+d,(l=nqn(s)).n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,(p=u(m(s,(V(),yI)),12)).e.c.length+p.g.c.length==1&&(p.n.a=r-p.a.a,p.n.b=0,cc(p,n)),r+=i}if(t){for(a=d*(t.gc()-1),v=0,h=t.Kc();h.Ob();)a+=(s=u(h.Pb(),10)).o.a,v=y.Math.max(v,s.o.b);for(A=k.a-(a-j.a)/2,c=k.b+j.b+g.a-v,r=i=j.a/(t.gc()+1),f=t.Kc();f.Ob();)(s=u(f.Pb(),10)).n.a=A,s.n.b=c,A+=s.o.a+d,(l=nqn(s)).n.a=s.o.a/2-l.a.a,l.n.b=0,(p=u(m(s,(V(),yI)),12)).e.c.length+p.g.c.length==1&&(p.n.a=r-p.a.a,p.n.b=j.b,cc(p,n)),r+=i}}function yLe(n,e,t,i){var r,c,s,f,h,a,d,g,v,p,k,j;for(h=new W(i.i+i.g/2,i.j+i.f/2),v=dGn(i),p=u(z(e,(cn(),Kt)),101),j=u(z(i,xm),64),DMn(wRn(i),eg)||(k=0==i.i&&0==i.j?0:function $ye(n,e){var t;if(!Df(n))throw M(new Sr(cVn));switch(t=Df(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}(i,j),ft(i,eg,k)),U(r=Ny(i,p,j,v,new W(e.g,e.f),h,new W(i.g,i.f),u(m(t,$o),88),t),(V(),ot),i),function Jse(n,e){n.c=e}(c=u(sn(r.j,0),12),function BSe(n){var e,t,i,r,c;for(c=Df(n),r=new ne((!n.e&&(n.e=new Dn(Xt,n,7,4)),n.e));r.e!=r.i.gc();)if(i=u(ue(r),74),!dw(Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),c))return!0;for(t=new ne((!n.d&&(n.d=new Dn(Xt,n,8,5)),n.d));t.e!=t.i.gc();)if(e=u(ue(t),74),!dw(Ur(u(D((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),c))return!0;return!1}(i)),U(r,tg,(Xu(),yn(qa))),d=u(z(e,tg),181).Hc(Xl),f=new ne((!i.n&&(i.n=new q(Tr,i,1,7)),i.n));f.e!=f.i.gc();)if(!on(un(z(s=u(ue(f),135),Yd)))&&s.a&&(g=MF(s),nn(c.f,g),!d))switch(a=0,e5(u(z(e,tg),21))&&(a=een(new W(s.i,s.j),new W(s.g,s.f),new W(i.g,i.f),0,j)),j.g){case 2:case 4:g.o.a=a;break;case 1:case 3:g.o.b=a}U(r,Rm,R(z(Ct(e),Rm))),U(r,Km,R(z(Ct(e),Km))),U(r,rg,R(z(Ct(e),rg))),nn(t.a,r),Xe(n.a,i,r)}function jLe(n,e,t,i,r,c){var s,f,h,l,a,d;for(qr(l=new Dc,e),bi(l,u(z(e,(cn(),xm)),64)),U(l,(V(),ot),e),cc(l,t),(d=l.o).a=e.g,d.b=e.f,(a=l.n).a=e.i,a.b=e.j,Xe(n.a,e,l),(s=zg(Kr(uc(new Mn(null,(!e.e&&(e.e=new Dn(Xt,e,7,4)),new Pn(e.e,16))),new Ewn),new ywn),new X9n(e)))||(s=zg(Kr(uc(new Mn(null,(!e.d&&(e.d=new Dn(Xt,e,8,5)),new Pn(e.d,16))),new Cwn),new jwn),new W9n(e))),s||(s=zg(new Mn(null,(!e.e&&(e.e=new Dn(Xt,e,7,4)),new Pn(e.e,16))),new Mwn)),U(l,xj,(Kn(),!!s)),function HIe(n,e,t,i){var r,c,s,f,h,l;if((f=n.j)==(en(),hc)&&e!=(Ii(),th)&&e!=(Ii(),Ha)&&(bi(n,f=MUn(n,t)),!(n.q?n.q:(On(),On(),il))._b((cn(),eg))&&f!=hc&&(0!=n.n.a||0!=n.n.b)&&U(n,eg,function H7e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}(n,f))),e==(Ii(),hl)){switch(l=0,f.g){case 1:case 3:(c=n.i.o.a)>0&&(l=n.n.a/c);break;case 2:case 4:(r=n.i.o.b)>0&&(l=n.n.b/r)}U(n,(V(),Cb),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=th&&e!=Ha&&f!=hc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}(l,c,r,u(z(e,Pb),8)),h=new ne((!e.n&&(e.n=new q(Tr,e,1,7)),e.n));h.e!=h.i.gc();)!on(un(z(f=u(ue(h),135),Yd)))&&f.a&&nn(l.f,MF(f));switch(r.g){case 2:case 1:(l.j==(en(),zn)||l.j==ae)&&i.Fc((gr(),N2));break;case 4:case 3:(l.j==(en(),Zn)||l.j==Wn)&&i.Fc((gr(),N2))}return l}function Mtn(n,e){var t,i,r,c,s,f,h;if(RSn(),this.a=new tW(this),this.b=n,this.c=e,this.f=LN(Ir(($u(),Ui),e)),this.f.dc())if((f=rnn(Ui,n))==e)for(this.e=!0,this.d=new Z,this.f=new bmn,this.f.Fc(qd),u(sS(Sk(Ui,Mo(n)),""),29)==n&&this.f.Fc(n5(Ui,Mo(n))),r=Yx(Ui,n).Kc();r.Ob();)switch(i=u(r.Pb(),179),F0(Ir(Ui,i))){case 4:this.d.Fc(i);break;case 5:this.f.Gc(LN(Ir(Ui,i)))}else if(ar(),u(e,69).xk())for(this.e=!0,this.f=null,this.d=new Z,s=0,h=(null==n.i&&kh(n),n.i).length;s=0&&s0&&(u(Er(n.b,e),127).a.b=t)}function Ttn(n){var e;if(this.r=function tge(n,e){return new WIn(u(Se(n),50),u(Se(e),50))}(new lbn,new abn),this.b=new F5(u(Se(fr),297)),this.p=new F5(u(Se(fr),297)),this.i=new F5(u(Se(EYn),297)),this.e=n,this.o=new ir(n.Mf()),this.D=on(un(n.of((Ue(),Vm)))),this.F=n.Yf()||on(un(n.of(fE))),this.A=u(n.of(i0),21),this.B=u(n.of(Ra),21),this.q=u(n.of(F9),101),this.u=u(n.of(hg),21),!function Uye(n){var t;return Xu(),!(Bk(YM(pt(Xl,S(T(TO,1),G,279,0,[qa])),n))>1||(t=pt(q9,S(T(TO,1),G,279,0,[H9,Yp])),Bk(YM(t,n))>1))}(this.u))throw M(new n1("Invalid port label placement: "+this.u));if(this.v=on(un(n.of(sdn))),this.j=u(n.of(ev),21),!function mMe(n){var e,i;return Tw(),!(Bk(YM(pt(Fo,S(T(kr,1),G,95,0,[uf])),n))>1||(e=pt(rf,S(T(kr,1),G,95,0,[zl,cf])),Bk(YM(e,n))>1)||(i=pt(of,S(T(kr,1),G,95,0,[fl,Is])),Bk(YM(i,n))>1))}(this.j))throw M(new n1("Invalid node label placement: "+this.j));this.n=u(q5(n,Van),107),this.k=F(R(q5(n,jO))),this.d=F(R(q5(n,ddn))),this.w=F(R(q5(n,pdn))),this.s=F(R(q5(n,bdn))),this.t=F(R(q5(n,wdn))),this.C=u(q5(n,gdn),140),this.c=2*this.d,e=!this.B.Hc((ro(),yE)),this.f=new B5(0,e,0),this.g=new B5(1,e,0),HL(this.f,(yf(),Zc),this.g)}function WGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;switch(a=new Su,n.a.g){case 3:g=u(m(e.e,(V(),Xd)),15),v=u(m(e.j,Xd),15),p=u(m(e.f,Xd),15),t=u(m(e.e,R2),15),i=u(m(e.j,R2),15),r=u(m(e.f,R2),15),si(s=new Z,g),v.Jc(new _vn),si(s,es(v)),si(s,p),si(c=new Z,t),si(c,es(i)),si(c,r),U(e.f,Xd,s),U(e.f,R2,c),U(e.f,Ifn,e.f),U(e.e,Xd,null),U(e.e,R2,null),U(e.j,Xd,null),U(e.j,R2,null);break;case 1:Fi(a,e.e.a),xe(a,e.i.n),Fi(a,es(e.j.a)),xe(a,e.a.n),Fi(a,e.f.a);break;default:Fi(a,e.e.a),Fi(a,es(e.j.a)),Fi(a,e.f.a)}jo(e.f.a),Fi(e.f.a,a),Qi(e.f,e.e.c),f=u(m(e.e,(cn(),Nr)),75),l=u(m(e.j,Nr),75),h=u(m(e.f,Nr),75),(f||l||h)&&(YV(d=new Su,h),YV(d,l),YV(d,f),U(e.f,Nr,d)),Qi(e.j,null),Pi(e.j,null),Qi(e.e,null),Pi(e.e,null),Di(e.a,null),Di(e.i,null),e.g&&WGn(n,e.g)}function VGn(){var n,e,t;for(VGn=N,new Yk(1,0),new Yk(10,0),new Yk(0,0),jQn=K(y_,J,247,11,0,1),Gd=K(ds,jh,28,100,15,1),zun=S(T(Ai,1),Mr,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),Xun=K(ye,_e,28,zun.length,15,1),Wun=S(T(Ai,1),Mr,28,15,[1,10,100,T1,1e4,ZB,1e6,1e7,1e8,gS,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Vun=K(ye,_e,28,Wun.length,15,1),Jun=K(y_,J,247,11,0,1),n=0;n0&&(Gn(0,e.length),64!=(h=e.charCodeAt(0)))){if(37==h&&(l=!1,0!=(d=e.lastIndexOf("%"))&&(d==g-1||(Gn(d+1,e.length),l=46==e.charCodeAt(d+1))))){if($i(1,d,e.length),O=Tn("%",s=e.substr(1,d-1))?null:Stn(s),i=0,l)try{i=Io((Gn(d+2,e.length+1),e.substr(d+2)),Xi,nt)}catch($){throw L($=At($),130)?M(new kT($)):M($)}for(j=eY(n.Gh());j.Ob();)if(L(p=WT(j),519)&&(I=(r=u(p,598)).d,(null==O?null==I:Tn(O,I))&&0==i--))return r;return null}if(v=-1==(a=e.lastIndexOf("."))?e:($i(0,a,e.length),e.substr(0,a)),t=0,-1!=a)try{t=Io((Gn(a+1,e.length+1),e.substr(a+1)),Xi,nt)}catch($){if(!L($=At($),130))throw M($);v=e}for(v=Tn("%",v)?null:Stn(v),k=eY(n.Gh());k.Ob();)if(L(p=WT(k),197)&&(A=(c=u(p,197)).xe(),(null==v?null==A:Tn(v,A))&&0==t--))return c;return null}return RGn(n,e)}function ub(n,e,t,i,r){var c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;if(j=new W(n.g,n.f),(k=Unn(n)).a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),X=k.a/j.a,a=k.b/j.b,$=k.a-j.a,h=k.b-j.b,i)for(s=Ct(n)?u(z(Ct(n),(Ue(),t0)),88):u(z(n,(Ue(),t0)),88),f=x(z(n,(Ue(),F9)))===x((Ii(),Xc)),I=new ne((!n.c&&(n.c=new q(Yu,n,9,9)),n.c));I.e!=I.i.gc();)switch(A=u(ue(I),123),O=u(z(A,iv),64),O==(en(),hc)&&(O=otn(A,s),ft(A,iv,O)),O.g){case 1:f||ru(A,A.i*X);break;case 2:ru(A,A.i+$),f||cu(A,A.j*a);break;case 3:f||ru(A,A.i*X),cu(A,A.j+h);break;case 4:f||cu(A,A.j*a)}if($g(n,k.a,k.b),r)for(g=new ne((!n.n&&(n.n=new q(Tr,n,1,7)),n.n));g.e!=g.i.gc();)(_=(v=(d=u(ue(g),135)).i+d.g/2)/j.a)+(l=(p=d.j+d.f/2)/j.b)>=1&&(_-l>0&&p>=0?(ru(d,d.i+$),cu(d,d.j+h*l)):_-l<0&&v>=0&&(ru(d,d.i+$*_),cu(d,d.j+h)));return ft(n,(Ue(),i0),(mo(),new Go(c=u(df(U9),9),u(Hs(c,c.length),9),0))),new W(X,a)}function nzn(n){m0(n,new Od(fC(g0(d0(w0(b0(new ed,cs),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new V3n),cs))),Q(n,cs,GS,rn(dce)),Q(n,cs,Fw,rn(bce)),Q(n,cs,m2,rn(fce)),Q(n,cs,Ap,rn(hce)),Q(n,cs,Tp,rn(lce)),Q(n,cs,cm,rn(sce)),Q(n,cs,y8,rn(v1n)),Q(n,cs,um,rn(ace)),Q(n,cs,vK,rn(zq)),Q(n,cs,gK,rn(Xq)),Q(n,cs,YS,rn(m1n)),Q(n,cs,pK,rn(Wq)),Q(n,cs,mK,rn(k1n)),Q(n,cs,wcn,rn(y1n)),Q(n,cs,bcn,rn(p1n)),Q(n,cs,hcn,rn(uO)),Q(n,cs,lcn,rn(oO)),Q(n,cs,acn,rn(Zj)),Q(n,cs,dcn,rn(j1n)),Q(n,cs,fcn,rn(g1n))}function lS(n){var e,t,i,r,c,s,f,h,l,a,d;if(null==n)throw M(new sh(yu));if(l=n,h=!1,(c=n.length)>0&&(Gn(0,n.length),(45==(e=n.charCodeAt(0))||43==e)&&(Gn(1,n.length+1),n=n.substr(1),--c,h=45==e)),0==c)throw M(new sh(fb+l+'"'));for(;n.length>0&&(Gn(0,n.length),48==n.charCodeAt(0));)Gn(1,n.length+1),n=n.substr(1),--c;if(c>(OUn(),kQn)[10])throw M(new sh(fb+l+'"'));for(r=0;r0&&(d=-parseInt(($i(0,i,n.length),n.substr(0,i)),10),Gn(i,n.length+1),n=n.substr(i),c-=i,t=!1);c>=s;){if(i=parseInt(($i(0,s,n.length),n.substr(0,s)),10),Gn(s,n.length+1),n=n.substr(s),c-=s,t)t=!1;else{if(Ac(d,f)<0)throw M(new sh(fb+l+'"'));d=Zi(d,a)}d=ms(d,i)}if(Ac(d,0)>0)throw M(new sh(fb+l+'"'));if(!h&&Ac(d=d1(d),0)<0)throw M(new sh(fb+l+'"'));return d}function Stn(n){var e,t,i,r,c,s,f,h;if(bB(),null==n)return null;if((r=fh(n,ku(37)))<0)return n;for(h=new yo(($i(0,r,n.length),n.substr(0,r))),e=K(Ku,E2,28,4,15,1),f=0,i=0,s=n.length;rr+2&&fF((Gn(r+1,n.length),n.charCodeAt(r+1)),c0n,u0n)&&fF((Gn(r+2,n.length),n.charCodeAt(r+2)),c0n,u0n))if(t=lbe((Gn(r+1,n.length),n.charCodeAt(r+1)),(Gn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?128==(192&t)?e[f++]=t<<24>>24:i=0:t>=128&&(192==(224&t)?(e[f++]=t<<24>>24,i=2):224==(240&t)?(e[f++]=t<<24>>24,i=3):240==(248&t)&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:ca(h,((31&e[0])<<6|63&e[1])&ri);break;case 3:ca(h,((15&e[0])<<12|(63&e[1])<<6|63&e[2])&ri)}f=0,i=0}}else{for(c=0;c=2){if(0==(!n.a&&(n.a=new q(jt,n,6,6)),n.a).i)Q1(),t=new _E,me((!n.a&&(n.a=new q(jt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new q(jt,n,6,6)),n.a).i>1)for(g=new Nv((!n.a&&(n.a=new q(jt,n,6,6)),n.a));g.e!=g.i.gc();)z5(g);Py(e,u(D((!n.a&&(n.a=new q(jt,n,6,6)),n.a),0),166))}if(d)for(i=new ne((!n.a&&(n.a=new q(jt,n,6,6)),n.a));i.e!=i.i.gc();)for(l=new ne((!(t=u(ue(i),166)).a&&(t.a=new ni(Ro,t,5)),t.a));l.e!=l.i.gc();)h=u(ue(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new ne((!n.n&&(n.n=new q(Tr,n,1,7)),n.n));s.e!=s.i.gc();)c=u(ue(s),135),(a=u(z(c,B9),8))&&qo(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function tzn(n,e,t,i,r){var c,s,f;if(i$n(n,e),s=e[0],c=Gi(t.c,0),f=-1,MY(t))if(i>0){if(s+i>n.length)return!1;f=KA(($i(0,s+i,n.length),n.substr(0,s+i)),e)}else f=KA(n,e);switch(c){case 71:return f=c2(n,s,S(T(fn,1),J,2,6,[_zn,Hzn]),e),r.e=f,!0;case 77:return function uAe(n,e,t,i,r){return i<0?((i=c2(n,r,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB]),e))<0&&(i=c2(n,r,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(t.k=i,0))):i>0&&(t.k=i-1,!0)}(n,e,r,f,s);case 76:return function oAe(n,e,t,i,r){return i<0?((i=c2(n,r,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB]),e))<0&&(i=c2(n,r,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(t.k=i,0))):i>0&&(t.k=i-1,!0)}(n,e,r,f,s);case 69:return function Yje(n,e,t,i){var r;return(r=c2(n,t,S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB]),e))<0&&(r=c2(n,t,S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}(n,e,s,r);case 99:return function Zje(n,e,t,i){var r;return(r=c2(n,t,S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB]),e))<0&&(r=c2(n,t,S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}(n,e,s,r);case 97:return f=c2(n,s,S(T(fn,1),J,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return function sAe(n,e,t,i,r,c){var s,f,l;if(f=32,i<0){if(e[0]>=n.length||43!=(f=Gi(n,e[0]))&&45!=f||(++e[0],(i=KA(n,e))<0))return!1;45==f&&(i=-i)}return 32==f&&e[0]-t==2&&2==r.b&&(l=(new wC).q.getFullYear()-Ea+Ea-80,c.a=i==(s=l%100),i+=100*(l/100|0)+(i3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}(f,s,e[0],r);case 104:12==f&&(f=0);case 75:case 72:return!(f<0||(r.f=f,r.g=!1,0));case 107:return!(f<0||(r.f=f,r.g=!0,0));case 109:return!(f<0||(r.j=f,0));case 115:return!(f<0||(r.n=f,0));case 90:if(sf&&(O=0,$+=s+A,s=0),ESe(k,t,O,$),e=y.Math.max(e,O+j.a),s=y.Math.max(s,j.b),O+=j.a+A;return k}function nDe(n,e,t){var i,r,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_;for(f=new C(n.a.b);f.a0)if(i=d.gc(),l=di(y.Math.floor((i+1)/2))-1,r=di(y.Math.ceil((i+1)/2))-1,e.o==Yf)for(a=r;a>=l;a--)e.a[$.p]==$&&(k=u(d.Xb(a),42),p=u(k.a,10),!bf(t,k.b)&&v>n.b.e[p.p]&&(e.a[p.p]=$,e.g[$.p]=e.g[p.p],e.a[$.p]=e.g[$.p],e.f[e.g[$.p].p]=(Kn(),!!(on(e.f[e.g[$.p].p])&$.k==(Xn(),Ei))),v=n.b.e[p.p]));else for(a=l;a<=r;a++)e.a[$.p]==$&&(A=u(d.Xb(a),42),j=u(A.a,10),!bf(t,A.b)&&v0&&(r=u(sn(j.c.a,X-1),10),s=n.i[r.p],jn=y.Math.ceil(xg(n.n,r,j)),c=_.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-jn),l=Mt,X0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)<0)&&!(O.a.e.e-O.a.a-(O.b.e.e-O.b.a)<0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)>0)&&(O.a.e.e+O.b.a>tn.b.e.e+tn.a.a?c+d>0?$=d:l-i>0&&($=i):O.a.e.e+O.b.a0?$=f:l-I>0&&($=I))),_.a.e+=$,_.b&&(_.d.e+=$),1)))}function czn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new zo(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new Lv,n.c)for(s=new C(e.Rf());s.al&&(i.a+=DTn(K(ds,jh,28,-l,15,1))),i.a+="Is",fh(h,ku(32))>=0)for(r=0;r=2&&(i=u(r.Kc().Pb(),117),t=n.u.Hc((Xu(),q9)),c=n.u.Hc(Yp),!i.a&&!t&&(2==r.gc()||c))}(n,e),t=n.u.Hc((Xu(),H9)),h=l.Kc();h.Ob();)if((f=u(h.Pb(),117)).c&&!(f.c.d.c.length<=0)){switch(g=f.b.Mf(),(d=(a=f.c).i).b=a.e.a+(c=a.n).b+c.c,d.a=a.e.b+(r=a.n).d+r.a,e.g){case 1:f.a?(d.c=(g.a-d.b)/2,mf(a,(Gu(),Ia))):s||t?(d.c=-d.b-n.s,mf(a,(Gu(),Ys))):(d.c=g.a+n.s,mf(a,(Gu(),Oh))),d.d=-d.a-n.t,ah(a,(mu(),Zs));break;case 3:f.a?(d.c=(g.a-d.b)/2,mf(a,(Gu(),Ia))):s||t?(d.c=-d.b-n.s,mf(a,(Gu(),Ys))):(d.c=g.a+n.s,mf(a,(Gu(),Oh))),d.d=g.b+n.t,ah(a,(mu(),Tf));break;case 2:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,ah(a,(mu(),Oa))):s||t?(d.d=-d.a-n.t,ah(a,(mu(),Zs))):(d.d=g.b+n.t,ah(a,(mu(),Tf))),d.c=g.a+n.s,mf(a,(Gu(),Oh));break;case 4:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,ah(a,(mu(),Oa))):s||t?(d.d=-d.a-n.t,ah(a,(mu(),Zs))):(d.d=g.b+n.t,ah(a,(mu(),Tf))),d.c=-d.b-n.s,mf(a,(Gu(),Ys))}s=!1}}function tDe(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j,A,I;if(g=!1,d=!1,Dg(u(m(i,(cn(),Kt)),101))){s=!1,f=!1;n:for(p=new C(i.j);p.a=i.o.b/2}I?(A=u(m(i,(V(),qp)),15))?g?c=A:(r=u(m(i,Bp),15))?c=A.gc()<=r.gc()?A:r:(c=new Z,U(i,Bp,c)):(c=new Z,U(i,qp,c)):(r=u(m(i,(V(),Bp)),15))?d?c=r:(A=u(m(i,qp),15))?c=r.gc()<=A.gc()?r:A:(c=new Z,U(i,qp,c)):(c=new Z,U(i,Bp,c)),c.Fc(n),U(n,(V(),yI),t),e.d==t?(Pi(e,null),t.e.c.length+t.g.c.length==0&&cc(t,null),function v6e(n){var e,t;(e=u(m(n,(V(),Wu)),10))&&(pu((t=e.c).a,e),0==t.a.c.length&&pu(Ki(e).b,t))}(t)):(Qi(e,null),t.e.c.length+t.g.c.length==0&&cc(t,null)),jo(e.a)}function iDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,$n,te,Fe,It;for(t.Ug("MinWidth layering",1),v=e.b,tn=e.a,It=u(m(e,(cn(),Chn)),17).a,f=u(m(e,Mhn),17).a,n.b=F(R(m(e,ef))),n.d=Mt,$=new C(tn);$.a<$.c.c.length;)(I=u(E($),10)).k==(Xn(),Ut)&&(n.d=y.Math.min(n.d,I.o.b));for(n.d=y.Math.max(1,n.d),n.c=K(ye,_e,28,jn=tn.c.length,15,1),n.f=K(ye,_e,28,jn,15,1),n.e=K(Ai,Mr,28,jn,15,1),l=0,n.a=0,_=new C(tn);_.a<_.c.c.length;)(I=u(E(_),10)).p=l++,n.c[I.p]=qxn(ki(I)),n.f[I.p]=qxn(Vt(I)),n.e[I.p]=I.o.b/n.d,n.a+=n.e[I.p];for(n.b/=n.d,n.a/=jn,X=function XEe(n){var e,t,i,r,s,f;for(f=Kh(n.c.length),r=new C(n);r.a0){for(g=a<100?null:new J1(a),p=new sY(e).g,A=K(ye,_e,28,a,15,1),i=0,$=new q0(a),r=0;r=0;)if(null!=v?it(v,p[h]):x(v)===x(p[h])){A.length<=i&&Nc(A,0,A=K(ye,_e,28,2*A.length,15,1),0,i),A[i++]=r,me($,p[h]);break n}if(x(v)===x(f))break}}if(l=$,p=$.g,a=i,i>A.length&&Nc(A,0,A=K(ye,_e,28,i,15,1),0,i),i>0){for(O=!0,c=0;c=0;)hp(n,A[s]);if(i!=a){for(r=a;--r>=i;)hp(l,r);Nc(A,0,A=K(ye,_e,28,i,15,1),0,i)}e=l}}}else for(e=function k7e(n,e){var t,i,r;if(e.dc())return I3(),I3(),SE;for(t=new FAn(n,e.gc()),r=new ne(n);r.e!=r.i.gc();)i=ue(r),e.Hc(i)&&me(t,i);return t}(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(hp(n,r),O=!0);if(O){if(null!=A){for(d=1==(t=e.gc())?h5(n,4,e.Kc().Pb(),null,A[0],k):h5(n,6,e,A,A[0],k),g=t<100?null:new J1(t),r=e.Kc();r.Ob();)g=QW(n,u(v=r.Pb(),76),g);g?(g.nj(d),g.oj()):tt(n.e,d)}else{for(g=function Tae(n){return n<100?null:new J1(n)}(e.gc()),r=e.Kc();r.Ob();)g=QW(n,u(v=r.Pb(),76),g);g&&g.oj()}return!0}return!1}function uDe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,k,j,A,I,O;for((t=new CRn(e)).a||function NSe(n){var e,t,i,r,c;switch(r=u(sn(n.a,0),10),e=new Fl(n),nn(n.a,e),e.o.a=y.Math.max(1,r.o.a),e.o.b=y.Math.max(1,r.o.b),e.n.a=r.n.a,e.n.b=r.n.b,u(m(r,(V(),mc)),64).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}return cc(i=new Dc,e),Qi(t=new B0,c=u(sn(r.j,0),12)),Pi(t,i),et(wf(i.n),c.n),et(wf(i.a),c.a),e}(e),l=function LAe(n){var e,i,r,c,s,f,h;for(h=new CDn,f=new C(n.a);f.a=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new kA((a4(),mb)),wk(n,NZn,new _u(S(T(Sj,1),xn,382,0,[i]))),s=new kA(Gw),wk(n,DZn,new _u(S(T(Sj,1),xn,382,0,[s]))),r=new kA(Uw),wk(n,LZn,new _u(S(T(Sj,1),xn,382,0,[r]))),c=new kA(S2),wk(n,OZn,new _u(S(T(Sj,1),xn,382,0,[c]))),_x(i.c,mb),_x(r.c,Uw),_x(c.c,S2),_x(s.c,Gw),f.a.c.length=0,si(f.a,i.c),si(f.a,es(r.c)),si(f.a,c.c),si(f.a,es(s.c)),f}(l)),t}function hzn(n,e,t){var i,r,s,f,h,l,d,p,k;if(null==t.p[e.p]){f=!0,t.p[e.p]=0,s=e,k=t.o==(Nf(),n0)?fi:Mt;do{r=n.b.e[s.p],t.o==n0&&r>0||t.o==Yf&&r1&&(s=y.Math.min(s,y.Math.abs(u(is(f.a,1),8).b-a.b)))));else for(k=new C(e.j);k.ar&&(c=g.a-r,s=nt,i.c.length=0,r=g.a),g.a>=r&&(Rn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(is(f.a,f.a.b-2),8).b-g.b)))));if(0!=i.c.length&&c>e.o.a/2&&s>e.o.b/2){for(cc(v=new Dc,e),bi(v,(en(),zn)),v.n.a=e.o.a/2,cc(A=new Dc,e),bi(A,ae),A.n.a=e.o.a/2,A.n.b=e.o.b,h=new C(i);h.a=l.b?A:v)):(l=u(nbe(f.a),8),Pi(f,(0==f.a.b?$f(f.c):u(_s(f.a),8)).b>=l.b?A:v)),(d=u(m(f,(cn(),Nr)),75))&&pw(d,l,!0);e.n.a=r-e.o.a/2}}function Ny(n,e,t,i,r,c,s,f,h){var l,a,d,g,v,p,k;switch(v=t,id(a=new Fl(h),(Xn(),Qt)),U(a,(V(),Efn),s),U(a,(cn(),Kt),(Ii(),Xc)),k=F(R(n.of(eg))),U(a,eg,k),cc(d=new Dc,a),e!=th&&e!=Ha||(v=i>=0?up(f):ny(up(f)),n.qf(xm,v)),l=new Oi,g=!1,n.pf(Pb)?(yW(l,u(n.of(Pb),8)),g=!0):function y1e(n,e,t){return n.a=e,n.b=t,n}(l,s.a/2,s.b/2),v.g){case 4:U(a,hu,(ts(),Na)),U(a,EI,(Md(),D2)),a.o.b=s.b,k<0&&(a.o.a=-k),bi(d,(en(),Zn)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,hu,(ts(),Qw)),U(a,EI,(Md(),Im)),a.o.b=s.b,k<0&&(a.o.a=-k),bi(d,(en(),Wn)),g||(l.a=0);break;case 1:U(a,zd,(Pl(),$2)),a.o.a=s.a,k<0&&(a.o.b=-k),bi(d,(en(),ae)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,zd,(Pl(),xp)),a.o.a=s.a,k<0&&(a.o.b=-k),bi(d,(en(),zn)),g||(l.b=0)}if(yW(d.n,l),U(a,Pb,l),e==c0||e==hl||e==Xc){if(p=0,e==c0&&n.pf(L1))switch(v.g){case 1:case 2:p=u(n.of(L1),17).a;break;case 3:case 4:p=-u(n.of(L1),17).a}else switch(v.g){case 4:case 2:p=c.b,e==hl&&(p/=r.b);break;case 1:case 3:p=c.a,e==hl&&(p/=r.a)}U(a,Cb,p)}return U(a,mc,v),a}function lzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(qr(a=new Fl(t),e),U(a,(V(),ot),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,nn(t.a,a),Xe(n.a,e,a),(0!=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i||on(un(z(e,(cn(),ng)))))&&U(a,kfn,(Kn(),!0)),l=u(m(t,zc),21),(d=u(m(a,(cn(),Kt)),101))==(Ii(),Ha)?U(a,Kt,th):d!=th&&l.Fc((gr(),Dm)),g=0,i=u(m(t,$o),88),h=new ne((!e.c&&(e.c=new q(Yu,e,9,9)),e.c));h.e!=h.i.gc();)f=u(ue(h),123),(x(z(r=Ct(e),ul))!==x((vh(),D1))||x(z(r,Wd))===x((k1(),Pm))||x(z(r,Wd))===x((k1(),Sm))||on(un(z(r,Tb)))||x(z(r,Yw))!==x((Sd(),zw))||x(z(r,$a))===x((js(),Lb))||x(z(r,$a))===x((js(),cg))||x(z(r,Jd))===x((M1(),_m))||x(z(r,Jd))===x((M1(),Hm)))&&!on(un(z(e,II)))&&ft(f,lt,Y(g++)),on(un(z(f,Yd)))||jLe(n,f,a,l,i,d);for(s=new ne((!e.n&&(e.n=new q(Tr,e,1,7)),e.n));s.e!=s.i.gc();)!on(un(z(c=u(ue(s),135),Yd)))&&c.a&&nn(a.b,MF(c));return on(un(m(a,u9)))&&l.Fc((gr(),pI)),on(un(m(a,NI)))&&(l.Fc((gr(),mI)),l.Fc(n9),U(a,Kt,th)),a}function yB(n,e,t,i,r,c,s){var f,h,l,a,d,g,v,p,k,A,I,O,$,_,X,tn,jn,kn,Bn,$n,te,Fe,It;for(k=0,Bn=0,l=new C(n.b);l.ak&&(c&&(tr(X,v),tr(jn,Y(a.b-1)),nn(n.d,p),f.c.length=0),Fe=t.b,It+=v+e,v=0,d=y.Math.max(d,t.b+t.c+te)),Rn(f.c,h),gRn(h,Fe,It),d=y.Math.max(d,Fe+te+t.c),v=y.Math.max(v,g),Fe+=te+e,p=h;if(si(n.a,f),nn(n.d,u(sn(f,f.c.length-1),163)),d=y.Math.max(d,i),($n=It+v+t.a)0,(l=_.e.c.length>0)&&A?Rn(g.c,_):l?Rn(k.c,_):A&&Rn($.c,_);for(p=new C(k);p.aI.nh()-l.b&&(g=I.nh()-l.b),v>I.oh()-l.d&&(v=I.oh()-l.d),a=l.c.c.length?(Xn(),Ut):(Xn(),Ei),Ei),t.a.g=y.Math.max(c=t.a.g,c+((a*=2)-c)),t.b.g=y.Math.max(s=t.b.g,s+(a-s)),r=e}}(n),s.Vg()),D9e(n.f),c=u(m(e,l9),17).a*n.f.a.c.length,Zx(Kz(_z(sN(n.f),c),!1),t.eh(1)),0!=n.d.a.gc()){for((s=t.eh(1)).Ug("Flexible Where Space Processing",1),f=u(bo(_v(Kr(new Mn(null,new Pn(n.f.a,16)),new opn),new npn)),17).a,l=u(bo(tw(Kr(new Mn(null,new Pn(n.f.a,16)),new spn),new epn)),17).a-f,a=M0(new od,n.f),d=M0(new od,n.f),Vs(Rs(Bs(xs(Ks(new ws,2e4),l),a),d)),_t(rt(rt(zV(n.i),new fpn),new hpn),new AIn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)u(r.Pb(),218).g=1;Zx(Kz(_z(sN(n.f),c),!1),s.eh(1)),s.Vg()}on(un(m(e,s9)))&&((s=t.eh(1)).Ug("Straight Edges Post-Processing",1),function qje(n){var e,t,i;for(Fi(t=new yt,n.o),i=new yz;0!=t.b;)rzn(n,e=u(0==t.b?null:(oe(0!=t.b),Qo(t,t.a.a)),515),!0)&&nn(i.a,e);for(;0!=i.a.c.length;)rzn(n,e=u(Bxn(i),515),!1)}(n),s.Vg()),function ROe(n){var e,i,r,c,s,f,h,l,a,g,v,p,k,j,A;for(i=new C(n.e.b);i.al&&(g=0,v+=h+e,h=0),K4(s,g,v),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new W(t+e,v+h+e)}(gu(n,(en(),ih)),e),p=t2(gu(n,sf),e),$=t2(gu(n,xo),e),jn=PA(gu(n,Os),e),g=PA(gu(n,ls),e),I=t2(gu(n,ff),e),k=t2(gu(n,Ju),e),X=t2(gu(n,Bo),e),_=t2(gu(n,as),e),kn=PA(gu(n,lu),e),A=t2(gu(n,Eu),e),O=t2(gu(n,Qu),e),tn=t2(gu(n,ju),e),Bn=PA(gu(n,Cu),e),v=PA(gu(n,Ru),e),j=t2(gu(n,Wc),e),t=Xg(S(T(Ai,1),Mr,28,15,[I.a,jn.a,X.a,Bn.a])),i=Xg(S(T(Ai,1),Mr,28,15,[p.a,d.a,$.a,j.a])),r=A.a,c=Xg(S(T(Ai,1),Mr,28,15,[k.a,g.a,_.a,v.a])),l=Xg(S(T(Ai,1),Mr,28,15,[I.b,p.b,k.b,O.b])),h=Xg(S(T(Ai,1),Mr,28,15,[jn.b,d.b,g.b,j.b])),a=kn.b,f=Xg(S(T(Ai,1),Mr,28,15,[X.b,$.b,_.b,tn.b])),a1(gu(n,ih),t+r,l+a),a1(gu(n,Wc),t+r,l+a),a1(gu(n,sf),t+r,0),a1(gu(n,xo),t+r,l+a+h),a1(gu(n,Os),0,l+a),a1(gu(n,ls),t+r+i,l+a),a1(gu(n,Ju),t+r+i,0),a1(gu(n,Bo),0,l+a+h),a1(gu(n,as),t+r+i,l+a+h),a1(gu(n,lu),0,l),a1(gu(n,Eu),t,0),a1(gu(n,ju),0,l+a+h),a1(gu(n,Ru),t+r+i,0),(s=new Oi).a=Xg(S(T(Ai,1),Mr,28,15,[t+i+r+c,kn.a,O.a,tn.a])),s.b=Xg(S(T(Ai,1),Mr,28,15,[l+h+a+f,A.b,Bn.b,v.b])),s}function wzn(n){var e,t,r,c,s,f,h,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn;for(I=new W(Mt,Mt),e=new W(fi,fi),jn=new C(n);jn.a=48&&e<=57))throw M(new De($e((Ie(),QVn))));for(i=e-48;r=48&&e<=57;)if((i=10*i+e-48)<0)throw M(new De($e((Ie(),hun))));if(t=i,44==e){if(r>=n.j)throw M(new De($e((Ie(),ZVn))));if((e=Gi(n.i,r++))>=48&&e<=57){for(t=e-48;r=48&&e<=57;)if((t=10*t+e-48)<0)throw M(new De($e((Ie(),hun))));if(i>t)throw M(new De($e((Ie(),nJn))))}else t=-1}if(125!=e)throw M(new De($e((Ie(),YVn))));n.bm(r)?(Ze(),Ze(),c=new sw(9,c),n.d=r+1):(Ze(),Ze(),c=new sw(3,c),n.d=r),c.Om(i),c.Nm(t),Ye(n)}}return c}function gzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O;if(tu(n.a,e)){if(bf(u(ee(n.a,e),49),t))return 1}else Xe(n.a,e,new Yt);if(tu(n.a,t)){if(bf(u(ee(n.a,t),49),e))return-1}else Xe(n.a,t,new Yt);if(tu(n.e,e)){if(bf(u(ee(n.e,e),49),t))return-1}else Xe(n.e,e,new Yt);if(tu(n.e,t)){if(bf(u(ee(n.a,t),49),e))return 1}else Xe(n.e,t,new Yt);if(n.c==(vh(),bq)||!vt(e,(V(),lt))||!vt(t,(V(),lt))){for(d=null,l=new C(e.j);l.a(s=px(n,t))?_4(n,e,t):_4(n,t,e),rs?1:0}return(i=u(m(e,(V(),lt)),17).a)>(c=u(m(t,lt),17).a)?_4(n,e,t):_4(n,t,e),ic?1:0}function ob(n,e,t){var i,r,s,f,h,l,a,d,g,v,p,k,j;if(null==t)return null;if(n.a!=e.jk())throw M(new Un(dm+e.xe()+wb));if(L(e,469)){if(!(j=function wAe(n,e){var t,i;if(null==e){for(!n.a&&(n.a=new q(Wl,n,9,5)),i=new ne(n.a);i.e!=i.i.gc();)if(null==((t=u(ue(i),694)).c??t.zb))return t}else for(!n.a&&(n.a=new q(Wl,n,9,5)),i=new ne(n.a);i.e!=i.i.gc();)if(Tn(e,(t=u(ue(i),694)).c??t.zb))return t;return null}(u(e,685),t)))throw M(new Un(DK+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(v1(($u(),Ui),e).Nl()){case 2:t=_c(t,!1);break;case 3:t=_c(t,!0)}if(i=v1(Ui,e).Jl())return i.jk().wi().ti(i,t);if(g=v1(Ui,e).Ll()){for(j=new Z,a=0,d=(l=gF(t)).length;a1)for(p=new Nv((!n.a&&(n.a=new q(jt,n,6,6)),n.a));p.e!=p.i.gc();)z5(p);for(j=Fe,Fe>_+$?j=_+$:Fe<_-$&&(j=_-$),A=It,It>X+k?A=X+k:It_-$&&j<_+$&&A>X-k&&AFe+te?jn=Fe+te:_It+tn?kn=It+tn:XFe-te&&jnIt-tn&&knt&&(g=t-1),(v=G1+io(e,24)*zy*d-d/2)<0?v=1:v>i&&(v=i-1),Q1(),OT(r=new KE,g),IT(r,v),me((!s.a&&(s.a=new ni(Ro,s,5)),s.a),r)}function vzn(n){m0(n,new Od(g0(d0(w0(b0(new ed,uo),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new c4n))),Q(n,uo,Mp,1.3),Q(n,uo,rm,(Kn(),!1)),Q(n,uo,hb,_1n),Q(n,uo,Fw,15),Q(n,uo,US,rn($ce)),Q(n,uo,m2,rn(Bce)),Q(n,uo,Ap,rn(Kce)),Q(n,uo,Tp,rn(_ce)),Q(n,uo,cm,rn(xce)),Q(n,uo,y8,rn(rU)),Q(n,uo,um,rn(Hce)),Q(n,uo,Ccn,rn(G1n)),Q(n,uo,Mcn,rn(U1n)),Q(n,uo,Ecn,rn(uU)),Q(n,uo,jcn,rn(z1n)),Q(n,uo,Tcn,rn(K1n)),Q(n,uo,Acn,rn(cU)),Q(n,uo,Scn,rn(R1n)),Q(n,uo,Pcn,rn(q1n)),Q(n,uo,k8,rn(B1n)),Q(n,uo,zS,rn(Fce)),Q(n,uo,kcn,rn(eE)),Q(n,uo,mcn,rn(x1n)),Q(n,uo,ycn,rn(tE)),Q(n,uo,pcn,rn(H1n))}function EB(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn,te,Fe;if(sB(),p=n.d,r=n.a,0==(jn=n.e))switch(e){case 0:return"0";case 1:return Y4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(X=new V1).a+=e<0?"0E+":"0E",X.a+=-e,X.a}if($=K(ds,jh,28,1+(O=10*p+1+7),15,1),t=O,1==p)if((f=r[0])<0){Fe=vi(f,vr);do{k=Fe,Fe=ly(Fe,10),$[--t]=48+Ae(ms(k,Zi(Fe,10)))&ri}while(0!=Ac(Fe,0))}else{Fe=f;do{$[--t]=(k=Fe)-10*(Fe=Fe/10|0)+48&ri}while(0!=Fe)}else{Nc(r,0,Bn=K(ye,_e,28,p,15,1),0,te=p);n:for(;;){for(tn=0,l=te-1;l>=0;l--)A=dye(Yi(Us(tn,32),vi(Bn[l],vr))),Bn[l]=Ae(A),tn=Ae(I0(A,32));I=Ae(tn),j=t;do{$[--t]=48+I%10&ri}while(0!=(I=I/10|0)&&0!=t);for(i=9-j+t,h=0;h0;h++)$[--t]=48;for(d=te-1;0==Bn[d];d--)if(0==d)break n;te=d+1}for(;48==$[t];)++t}if(v=jn<0,s=O-t-e-1,0==e)return v&&($[--t]=45),ks($,t,O-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=O-1;g>=a;g--)$[g+1]=$[g];return $[++a]=46,v&&($[--t]=45),ks($,t,O-t+1)}for(d=2;d<1-s;d++)$[--t]=48;return $[--t]=46,$[--t]=48,v&&($[--t]=45),ks($,t,O-t)}return kn=t+1,c=O,_=new Cg,v&&(_.a+="-"),c-kn>=1?(ca(_,$[t]),_.a+=".",_.a+=ks($,t+1,O-t-1)):_.a+=ks($,t,O-t),_.a+="E",s>0&&(_.a+="+"),_.a+=""+s,_.a}function pzn(n,e){var r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;switch(n.c=e,n.g=new de,k0(),hZ(new VE(new a0(n.c))),O=Oe(z(n.c,(dy(),lan))),h=u(z(n.c,gU),324),_=u(z(n.c,vU),437),s=u(z(n.c,san),490),$=u(z(n.c,wU),438),n.j=F(R(z(n.c,tue))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw M(new Un(eP+(null!=h.f?h.f:""+h.g)))}if(n.d=new lOn(f,_,s),U(n.d,(s4(),W8),un(z(n.c,nue))),n.d.c=on(un(z(n.c,fan))),0==zM(n.c).i)return n.d;for(d=new ne(zM(n.c));d.e!=d.i.gc();){for(X=new W((a=u(ue(d),27)).i+(v=a.g/2),a.j+(g=a.f/2));tu(n.g,X);)A0(X,(y.Math.random()-.5)*Mh,(y.Math.random()-.5)*Mh);k=u(z(a,(Ue(),Wm)),140),j=new MOn(X,new zo(X.a-v-n.j/2-k.b,X.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),nn(n.d.i,j),Xe(n.g,X,new ai(j,a))}switch($.g){case 0:if(null==O)n.d.d=u(sn(n.d.i,0),68);else for(I=new C(n.d.i);I.a1&&Nt(a,A,a.c.b,a.c),_$(r)));A=I}return a}function kzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn,Bn;for(t.Ug(mWn,1),Bn=u(Vr(rt(new Mn(null,new Pn(e,16)),new N3n),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),a=u(Vr(rt(new Mn(null,new Pn(e,16)),new Ekn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15),p=u(Vr(rt(new Mn(null,new Pn(e,16)),new jkn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15),k=K(ZI,JS,40,e.gc(),0,1),s=0;s=0&&kn=0&&!k[v]){k[v]=r,a.gd(f),--f;break}if((v=kn-g)=0&&!k[v]){k[v]=r,a.gd(f),--f;break}}for(p.jd(new $3n),h=k.length-1;h>=0;h--)!k[h]&&!p.dc()&&(k[h]=u(p.Xb(0),40),p.gd(0));for(l=0;l=0;h--)xe(t,(Ln(h,s.c.length),u(s.c[h],8)));return t}function jzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$;for(O=F(R(z(e,(Vh(),sg)))),v=F(R(z(e,T9))),g=F(R(z(e,fO))),tY((!e.a&&(e.a=new q(Qe,e,10,11)),e.a)),A=aGn((!e.a&&(e.a=new q(Qe,e,10,11)),e.a),O,n.b),j=0;jg&&fy((Ln(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&0==(Ln(g,e.c.length),u(e.c[g],186)).a.c.length;)pu(e,(Ln(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!on(un(u(sn(a.b,0),27).of((Uf(),tE))))&&XSe(e,p,c,a,j,t,g,i)){k=!0;continue}if(j){if(v=p.b,d=a.f,!on(un(u(sn(a.b,0),27).of(tE)))&&aOe(e,p,c,a,t,g,i,r)){if(k=!0,v=n.j)return n.a=-1,void(n.c=1);if(e=Gi(n.i,n.d++),n.a=e,1!=n.b){switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,n.d>=n.j||63!=Gi(n.i,n.d))break;if(++n.d>=n.j)throw M(new De($e((Ie(),zK))));switch(e=Gi(n.i,n.d++)){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw M(new De($e((Ie(),zK))));if(61==(e=Gi(n.i,n.d++)))i=16;else{if(33!=e)throw M(new De($e((Ie(),DVn))));i=17}break;case 35:for(;n.d=n.j)throw M(new De($e((Ie(),sP))));n.a=Gi(n.i,n.d++);break;default:i=0}n.c=i}else{switch(e){case 92:if(i=10,n.d>=n.j)throw M(new De($e((Ie(),sP))));n.a=Gi(n.i,n.d++);break;case 45:512==(512&n.e)&&n.dn.a.c.length-1;)nn(n.a,new ai(p2,Jrn));i=u(m(r,Nh),17).a,t==(ii(),$r)||t==zr?(r.e.aF(R(u(sn(n.a,i),42).b))&&jL(u(sn(n.a,i),42),r.e.a+r.f.a)):(r.e.bF(R(u(sn(n.a,i),42).b))&&jL(u(sn(n.a,i),42),r.e.b+r.f.b))}}(n,e,r),function QLe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(a=(r=u(m(n,(bc(),Nb)),88))==(ii(),$r)||r==zr?nh:zr,t=u(Vr(rt(new Mn(null,new Pn(n.b,16)),new n3n),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[(zu(),Yr)]))),15),(h=u(Vr(Kr(t.Oc(),new pkn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),15)).Gc(u(Vr(Kr(t.Oc(),new mkn(e)),Uu(new yc,new Br,new Tu,S(T(Dr,1),G,108,0,[Yr]))),16)),h.jd(new kkn(a)),g=new i1(new ykn(r)),i=new de,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,40),on(un(s.c))?(g.a.zc(l,(Kn(),Pa)),new h3(g.a.Zc(l,!1)).a.gc()>0&&Xe(i,l,u(new h3(g.a.Zc(l,!1)).a.Vc(),40)),new h3(g.a.ad(l,!0)).a.gc()>1&&Xe(i,LBn(g,l),l)):(new h3(g.a.Zc(l,!1)).a.gc()>0&&x(c=u(new h3(g.a.Zc(l,!1)).a.Vc(),40))===x(Rr(br(i.f,l)))&&u(m(l,(bt(),Aq)),15).Fc(c),new h3(g.a.ad(l,!0)).a.gc()>1&&(d=LBn(g,l),x(Rr(br(i.f,d)))===x(l)&&u(m(d,(bt(),Aq)),15).Fc(l)),g.a.Bc(l))}(e,v/2/2),yd(p=e.b,new wkn(r)),l=ge(p,0);l.b!=l.d.c;)if(!on(un(m(h=u(be(l),40),(bt(),Ba))))){if(i=DAe(h,r),k=SPe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:k.e.a-v-h.f.a<(d=j.a-v-h.f.a)&&(d=k.e.a-v-h.f.a),g=d+h.f.a;break;case 1:k.e.a+v>(d=j.a+i.f.a+v)&&(d=k.e.a+k.f.a+v),g=d+h.f.a;break;case 4:k.e.b-v-h.f.b<(d=j.b-v-h.f.b)&&(d=k.e.b-v-h.f.b),g=d+h.f.b;break;case 3:k.e.b+v>(d=j.b+i.f.b+v)&&(d=k.e.b+k.f.b+v),g=d+h.f.b}else if(k)switch(r.g){case 2:g=(d=k.e.a-v-h.f.a)+h.f.a;break;case 1:g=(d=k.e.a+k.f.a+v)+h.f.a;break;case 4:g=(d=k.e.b-v-h.f.b)+h.f.b;break;case 3:g=(d=k.e.b+k.f.b+v)+h.f.b}x(m(e,Nq))===x((S5(),Vj))?(c=d,s=g,null!=(f=w4(rt(new Mn(null,new Pn(n.a,16)),new rMn(c,s)))).a?r==(ii(),$r)||r==zr?h.e.a=d:h.e.b=d:null!=(f=r==(ii(),$r)||r==hs?w4(rt(N$n(new Mn(null,new Pn(n.a,16))),new gkn(c))):w4(rt(N$n(new Mn(null,new Pn(n.a,16))),new vkn(c)))).a&&(r==$r||r==zr?h.e.a=F(R((oe(null!=f.a),u(f.a,42)).a)):h.e.b=F(R((oe(null!=f.a),u(f.a,42)).a))),null!=f.a&&(a=Hr(n.a,(oe(null!=f.a),f.a),0))>0&&a!=u(m(h,Nh),17).a&&(U(h,Bln,(Kn(),!0)),U(h,Nh,Y(a)))):r==(ii(),$r)||r==zr?h.e.a=d:h.e.b=d}t.Vg()}}function Ezn(n){var e,t,i,r,s,f,h,l;for(n.b=1,Ye(n),e=null,0==n.c&&94==n.a?(Ye(n),Ze(),Ze(),Kc(e=new Co(4),0,vm),f=new Co(4)):(Ze(),Ze(),f=new Co(4)),r=!0;1!=(l=n.c);){if(0==l&&93==n.a&&!r){e&&(l8(e,f),f=e);break}if(t=n.a,i=!1,10==l)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:Ow(f,H4(t)),i=!0;break;case 105:case 73:case 99:case 67:Ow(f,H4(t)),(t=-1)<0&&(i=!0);break;case 112:case 80:if(!(h=ien(n,t)))throw M(new De($e((Ie(),XK))));Ow(f,h),i=!0;break;default:t=Ben(n)}else if(24==l&&!r){if(e&&(l8(e,f),f=e),l8(f,Ezn(n)),0!=n.c||93!=n.a)throw M(new De($e((Ie(),qVn))));break}if(Ye(n),!i){if(0==l){if(91==t)throw M(new De($e((Ie(),sun))));if(93==t)throw M(new De($e((Ie(),fun))));if(45==t&&!r&&93!=n.a)throw M(new De($e((Ie(),WK))))}if(0!=n.c||45!=n.a||45==t&&r)Kc(f,t,t);else{if(Ye(n),1==(l=n.c))throw M(new De($e((Ie(),fP))));if(0==l&&93==n.a)Kc(f,t,t),Kc(f,45,45);else{if(0==l&&93==n.a||24==l)throw M(new De($e((Ie(),WK))));if(s=n.a,0==l){if(91==s)throw M(new De($e((Ie(),sun))));if(93==s)throw M(new De($e((Ie(),fun))));if(45==s)throw M(new De($e((Ie(),WK))))}else 10==l&&(s=Ben(n));if(Ye(n),t>s)throw M(new De($e((Ie(),zVn))));Kc(f,t,s)}}}r=!1}if(1==n.c)throw M(new De($e((Ie(),fP))));return u2(f),f8(f),n.b=0,Ye(n),f}function $De(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_;if(t.Ug("Coffman-Graham Layering",1),0!=e.a.c.length){for(_=u(m(e,(cn(),Ehn)),17).a,h=0,s=0,g=new C(e.a);g.a=_||!P8e(A,i))&&(i=yIn(e,a)),Di(A,i),c=new ie(ce(ki(A).a.Kc(),new Vn));ve(c);)r=u(fe(c),18),!n.a[r.p]&&(--n.e[(k=r.c.i).p],0==n.e[k.p]&&Rv(D4(v,k),Z4));for(l=a.c.length-1;l>=0;--l)nn(e.b,(Ln(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}else t.Vg()}function Czn(n,e){var t,i,r,c,s,l,a,d,g,v,p,k,j,A,I,O,$;$=!1;do{for($=!1,c=e?new rd(n.a.b).a.gc()-2:1;e?c>=0:cu(m(j,lt),17).a)&&(O=!1);if(O){for(s=!1,I=!0,i=!1,a=ge(qJ(n.a,Y(e?c+1:c-1)),0);a.b!=a.d.c;)vt(l=u(be(a),10),lt)?l.p!=d.p&&(s|=e?u(m(l,lt),17).au(m(d,lt),17).a,I=!1):!s&&I&&l.k==(Xn(),Oc)&&(i=!0,(g=e?u(fe(new ie(ce(ki(l).a.Kc(),new Vn))),18).c.i:u(fe(new ie(ce(Vt(l).a.Kc(),new Vn))),18).d.i)==d&&(t=e?u(fe(new ie(ce(Vt(l).a.Kc(),new Vn))),18).d.i:u(fe(new ie(ce(ki(l).a.Kc(),new Vn))),18).c.i,(e?u(Qb(n.a,t),17).a-u(Qb(n.a,g),17).a:u(Qb(n.a,g),17).a-u(Qb(n.a,t),17).a)<=2&&(I=!1)));if(i&&I&&(t=e?u(fe(new ie(ce(Vt(d).a.Kc(),new Vn))),18).d.i:u(fe(new ie(ce(ki(d).a.Kc(),new Vn))),18).c.i,(e?u(Qb(n.a,t),17).a-u(Qb(n.a,d),17).a:u(Qb(n.a,d),17).a-u(Qb(n.a,t),17).a)<=2&&t.k==(Xn(),Ut)&&(I=!1)),s||I){for(k=eqn(n,d,e);0!=k.a.gc();)p=u(k.a.ec().Kc().Pb(),10),k.a.Bc(p),Fi(k,eqn(n,p,e));--v,$=!0}}}}while($)}function xDe(n,e,t,i,r,c,s){var f,h,l,a,d,g,v,p;return g=u(i.a,17).a,v=u(i.b,17).a,d=n.b,p=n.c,f=0,a=0,e==(ii(),$r)||e==zr?(a=I7(bBn(cw(Kr(new Mn(null,new Pn(t.b,16)),new x3n),new p3n))),d.e.b+d.f.b/2>a?(l=++v,f=F(R(bo(tw(Kr(new Mn(null,new Pn(t.b,16)),new oMn(r,l)),new m3n))))):(h=++g,f=F(R(bo(_v(Kr(new Mn(null,new Pn(t.b,16)),new sMn(r,h)),new k3n)))))):(a=I7(bBn(cw(Kr(new Mn(null,new Pn(t.b,16)),new C3n),new v3n))),d.e.a+d.f.a/2>a?(l=++v,f=F(R(bo(tw(Kr(new Mn(null,new Pn(t.b,16)),new cMn(r,l)),new y3n))))):(h=++g,f=F(R(bo(_v(Kr(new Mn(null,new Pn(t.b,16)),new uMn(r,h)),new j3n)))))),e==$r?(tr(n.a,new W(F(R(m(d,(bt(),Sf))))-r,f)),tr(n.a,new W(p.e.a+p.f.a+r+c,f)),tr(n.a,new W(p.e.a+p.f.a+r+c,p.e.b+p.f.b/2)),tr(n.a,new W(p.e.a+p.f.a,p.e.b+p.f.b/2))):e==zr?(tr(n.a,new W(F(R(m(d,(bt(),tf))))+r,d.e.b+d.f.b/2)),tr(n.a,new W(d.e.a+d.f.a+r,f)),tr(n.a,new W(p.e.a-r-c,f)),tr(n.a,new W(p.e.a-r-c,p.e.b+p.f.b/2)),tr(n.a,new W(p.e.a,p.e.b+p.f.b/2))):e==hs?(tr(n.a,new W(f,F(R(m(d,(bt(),Sf))))-r)),tr(n.a,new W(f,p.e.b+p.f.b+r+c)),tr(n.a,new W(p.e.a+p.f.a/2,p.e.b+p.f.b+r+c)),tr(n.a,new W(p.e.a+p.f.a/2,p.e.b+p.f.b+r))):(0==n.a.b||(u(_s(n.a),8).b=F(R(m(d,(bt(),tf))))+r*u(s.b,17).a),tr(n.a,new W(f,F(R(m(d,(bt(),tf))))+r*u(s.b,17).a)),tr(n.a,new W(f,p.e.b-r*u(s.a,17).a-c))),new ai(Y(g),Y(v))}function Mzn(){Mzn=N,jB(),Sn(He=new R0,(en(),sf),ih),Sn(He,Os,ih),Sn(He,Ju,ih),Sn(He,ff,ih),Sn(He,Cu,ih),Sn(He,Qu,ih),Sn(He,ff,sf),Sn(He,ih,ls),Sn(He,sf,ls),Sn(He,Os,ls),Sn(He,Ju,ls),Sn(He,Eu,ls),Sn(He,ff,ls),Sn(He,Cu,ls),Sn(He,Qu,ls),Sn(He,lu,ls),Sn(He,ih,xo),Sn(He,sf,xo),Sn(He,ls,xo),Sn(He,Os,xo),Sn(He,Ju,xo),Sn(He,Eu,xo),Sn(He,ff,xo),Sn(He,lu,xo),Sn(He,Bo,xo),Sn(He,Cu,xo),Sn(He,Ru,xo),Sn(He,Qu,xo),Sn(He,sf,Os),Sn(He,Ju,Os),Sn(He,ff,Os),Sn(He,Qu,Os),Sn(He,sf,Ju),Sn(He,Os,Ju),Sn(He,ff,Ju),Sn(He,Ju,Ju),Sn(He,Cu,Ju),Sn(He,ih,as),Sn(He,sf,as),Sn(He,ls,as),Sn(He,xo,as),Sn(He,Os,as),Sn(He,Ju,as),Sn(He,Eu,as),Sn(He,ff,as),Sn(He,Bo,as),Sn(He,lu,as),Sn(He,Qu,as),Sn(He,Cu,as),Sn(He,Wc,as),Sn(He,ih,Bo),Sn(He,sf,Bo),Sn(He,ls,Bo),Sn(He,Os,Bo),Sn(He,Ju,Bo),Sn(He,Eu,Bo),Sn(He,ff,Bo),Sn(He,lu,Bo),Sn(He,Qu,Bo),Sn(He,Ru,Bo),Sn(He,Wc,Bo),Sn(He,sf,lu),Sn(He,Os,lu),Sn(He,Ju,lu),Sn(He,ff,lu),Sn(He,Bo,lu),Sn(He,Qu,lu),Sn(He,Cu,lu),Sn(He,ih,ju),Sn(He,sf,ju),Sn(He,ls,ju),Sn(He,Os,ju),Sn(He,Ju,ju),Sn(He,Eu,ju),Sn(He,ff,ju),Sn(He,lu,ju),Sn(He,Qu,ju),Sn(He,sf,Cu),Sn(He,ls,Cu),Sn(He,xo,Cu),Sn(He,Ju,Cu),Sn(He,ih,Ru),Sn(He,sf,Ru),Sn(He,xo,Ru),Sn(He,Os,Ru),Sn(He,Ju,Ru),Sn(He,Eu,Ru),Sn(He,ff,Ru),Sn(He,ff,Wc),Sn(He,Ju,Wc),Sn(He,lu,ih),Sn(He,lu,Os),Sn(He,lu,ls),Sn(He,Eu,ih),Sn(He,Eu,sf),Sn(He,Eu,xo)}function RDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,k,j,A,I,O,$,_,X;switch(t.Ug("Brandes & Koepf node placement",1),n.a=e,n.c=yPe(e),i=u(m(e,(cn(),ZH)),281),v=on(un(m(e,s9))),n.d=i==(ay(),vI)&&!v||i==IH,function lOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O;if(!((k=e.b.c.length)<3)){for(v=K(ye,_e,28,k,15,1),d=0,a=new C(e.b);a.as)&&oi(n.b,u(j.b,18));++f}c=s}}}(n,e),_=null,X=null,A=null,I=null,Ao(4,Dw),j=new Vc(4),u(m(e,ZH),281).g){case 3:A=new h2(e,n.c.d,(Nf(),n0),(wh(),N1)),Rn(j.c,A);break;case 1:I=new h2(e,n.c.d,(Nf(),Yf),(wh(),N1)),Rn(j.c,I);break;case 4:_=new h2(e,n.c.d,(Nf(),n0),(wh(),Db)),Rn(j.c,_);break;case 2:X=new h2(e,n.c.d,(Nf(),Yf),(wh(),Db)),Rn(j.c,X);break;default:A=new h2(e,n.c.d,(Nf(),n0),(wh(),N1)),I=new h2(e,n.c.d,Yf,N1),_=new h2(e,n.c.d,n0,Db),X=new h2(e,n.c.d,Yf,Db),Rn(j.c,_),Rn(j.c,X),Rn(j.c,A),Rn(j.c,I)}for(r=new VCn(e,n.c),f=new C(j);f.ajn[h]&&(j=h),d=new C(n.a.b);d.aKx(c))&&(d=c);for(!d&&(Ln(0,j.c.length),d=u(j.c[0],185)),k=new C(e.b);k.a=-1900?1:0,Re(n,t>=4?S(T(fn,1),J,2,6,[_zn,Hzn])[f]:S(T(fn,1),J,2,6,["BC","AD"])[f]);break;case 121:!function r9e(n,e,t){var i;switch((i=t.q.getFullYear()-Ea+Ea)<0&&(i=-i),e){case 1:n.a+=i;break;case 2:zh(n,i%100,2);break;default:zh(n,i,e)}}(n,t,i);break;case 77:!function jSe(n,e,t){var i;switch(i=t.q.getMonth(),e){case 5:Re(n,S(T(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:Re(n,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB])[i]);break;case 3:Re(n,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:zh(n,i+1,e)}}(n,t,i);break;case 107:zh(n,0==(h=r.q.getHours())?24:h,t);break;case 83:!function FMe(n,e,t){var i,r;Ac(i=Ec(t.q.getTime()),0)<0?(r=T1-Ae(ty(d1(i),T1)))==T1&&(r=0):r=Ae(ty(i,T1)),1==e?ca(n,48+(r=y.Math.min((r+50)/100|0,9))&ri):2==e?zh(n,r=y.Math.min((r+5)/10|0,99),2):(zh(n,r,3),e>3&&zh(n,0,e-3))}(n,t,r);break;case 69:a=i.q.getDay(),Re(n,5==t?S(T(fn,1),J,2,6,["S","M","T","W","T","F","S"])[a]:4==t?S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB])[a]:S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Re(n,S(T(fn,1),J,2,6,["AM","PM"])[1]):Re(n,S(T(fn,1),J,2,6,["AM","PM"])[0]);break;case 104:zh(n,0==(d=r.q.getHours()%12)?12:d,t);break;case 75:zh(n,r.q.getHours()%12,t);break;case 72:zh(n,r.q.getHours(),t);break;case 99:p=i.q.getDay(),5==t?Re(n,S(T(fn,1),J,2,6,["S","M","T","W","T","F","S"])[p]):4==t?Re(n,S(T(fn,1),J,2,6,[qB,UB,GB,zB,XB,WB,VB])[p]):3==t?Re(n,S(T(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[p]):zh(n,p,1);break;case 76:k=i.q.getMonth(),5==t?Re(n,S(T(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):4==t?Re(n,S(T(fn,1),J,2,6,[LB,DB,NB,$B,mp,FB,xB,BB,RB,KB,_B,HB])[k]):3==t?Re(n,S(T(fn,1),J,2,6,["Jan","Feb","Mar","Apr",mp,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):zh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,Re(n,t<4?S(T(fn,1),J,2,6,["Q1","Q2","Q3","Q4"])[j]:S(T(fn,1),J,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:zh(n,i.q.getDate(),t);break;case 109:zh(n,r.q.getMinutes(),t);break;case 115:zh(n,r.q.getSeconds(),t);break;case 122:Re(n,t<4?c.c[0]:c.c[1]);break;case 118:Re(n,c.b);break;case 90:Re(n,t<3?function PEe(n){var e,t;return t=-n.a,e=S(T(ds,1),jh,28,15,[43,48,48,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ri,e[2]=e[2]+(t/60|0)%10&ri,e[3]=e[3]+(t%60/10|0)&ri,e[4]=e[4]+t%10&ri,ks(e,0,e.length)}(c):3==t?function NEe(n){var e,t;return t=-n.a,e=S(T(ds,1),jh,28,15,[43,48,48,58,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ri,e[2]=e[2]+(t/60|0)%10&ri,e[4]=e[4]+(t%60/10|0)&ri,e[5]=e[5]+t%10&ri,ks(e,0,e.length)}(c):function $Ee(n){var e;return e=S(T(ds,1),jh,28,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(e[3]=43,n=-n),e[4]=e[4]+((n/60|0)/10|0)&ri,e[5]=e[5]+(n/60|0)%10&ri,e[7]=e[7]+(n%60/10|0)&ri,e[8]=e[8]+n%10&ri,ks(e,0,e.length)}(c.a));break;default:return!1}return!0}function Ltn(n,e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,$,_,X,tn,jn,kn,Bn,$n,te,Fe;if(iUn(e),h=u(D((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84),a=u(D((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84),f=Ur(h),l=Ur(a),s=0==(!e.a&&(e.a=new q(jt,e,6,6)),e.a).i?null:u(D((!e.a&&(e.a=new q(jt,e,6,6)),e.a),0),166),tn=u(ee(n.a,f),10),$n=u(ee(n.a,l),10),jn=null,te=null,L(h,193)&&(L(X=u(ee(n.a,h),305),12)?jn=u(X,12):L(X,10)&&(tn=u(X,10),jn=u(sn(tn.j,0),12))),L(a,193)&&(L(Bn=u(ee(n.a,a),305),12)?te=u(Bn,12):L(Bn,10)&&($n=u(Bn,10),te=u(sn($n.j,0),12))),!tn||!$n)throw M(new Cv("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(qr(k=new B0,e),U(k,(V(),ot),e),U(k,(cn(),Nr),null),v=u(m(i,zc),21),tn==$n&&v.Fc((gr(),e9)),jn||(wr(),_=nu,kn=null,s&&Dg(u(m(tn,Kt),101))&&(XLn(kn=new W(s.j,s.k),ak(e)),yDn(kn,t),dw(l,f)&&(_=Vu,et(kn,tn.n))),jn=rGn(tn,kn,_,i)),te||(wr(),_=Vu,Fe=null,s&&Dg(u(m($n,Kt),101))&&(XLn(Fe=new W(s.b,s.c),ak(e)),yDn(Fe,t)),te=rGn($n,Fe,_,Ki($n))),Qi(k,jn),Pi(k,te),(jn.e.c.length>1||jn.g.c.length>1||te.e.c.length>1||te.g.c.length>1)&&v.Fc((gr(),n9)),g=new ne((!e.n&&(e.n=new q(Tr,e,1,7)),e.n));g.e!=g.i.gc();)if(!on(un(z(d=u(ue(g),135),Yd)))&&d.a)switch(j=MF(d),nn(k.b,j),u(m(j,Dh),278).g){case 1:case 2:v.Fc((gr(),Lm));break;case 0:v.Fc((gr(),Om)),U(j,Dh,(Kf(),Jm))}if(c=u(m(i,o9),322),A=u(m(i,BI),323),r=c==(k5(),Dj)||A==(K5(),aq),s&&0!=(!s.a&&(s.a=new ni(Ro,s,5)),s.a).i&&r){for(I=wy(s),p=new Su,$=ge(I,0);$.b!=$.d.c;)xe(p,new ir(u(be($),8)));U(k,Mfn,p)}return k}function V(){var n,e;V=N,ot=new ct(pin),yfn=new ct("coordinateOrigin"),_H=new ct("processors"),kfn=new Pt("compoundNode",(Kn(),!1)),xj=new Pt("insideConnections",!1),Mfn=new ct("originalBendpoints"),Tfn=new ct("originalDummyNodePosition"),Afn=new ct("originalLabelEdge"),i9=new ct("representedLabels"),t9=new ct("endLabels"),Rp=new ct("endLabel.origin"),_p=new Pt("labelSide",(Po(),gE)),F2=new Pt("maxEdgeThickness",0),Qf=new Pt("reversed",!1),Hp=new ct(min),Af=new Pt("longEdgeSource",null),Ss=new Pt("longEdgeTarget",null),Jw=new Pt("longEdgeHasLabelDummies",!1),Bj=new Pt("longEdgeBeforeLabelDummy",!1),EI=new Pt("edgeConstraint",(Md(),CH)),Eb=new ct("inLayerLayoutUnit"),zd=new Pt("inLayerConstraint",(Pl(),$j)),Kp=new Pt("inLayerSuccessorConstraint",new Z),Cfn=new Pt("inLayerSuccessorConstraintBetweenNonDummies",!1),Wu=new ct("portDummy"),jI=new Pt("crossingHint",Y(0)),zc=new Pt("graphProperties",new Go(e=u(df(OH),9),u(Hs(e,e.length),9),0)),mc=new Pt("externalPortSide",(en(),hc)),Efn=new Pt("externalPortSize",new Oi),FH=new ct("externalPortReplacedDummies"),CI=new ct("externalPortReplacedDummy"),Ul=new Pt("externalPortConnections",new Go(n=u(df(fr),9),u(Hs(n,n.length),9),0)),Cb=new Pt(mXn,0),mfn=new ct("barycenterAssociates"),qp=new ct("TopSideComments"),Bp=new ct("BottomSideComments"),yI=new ct("CommentConnectionPort"),BH=new Pt("inputCollect",!1),KH=new Pt("outputCollect",!1),Fj=new Pt("cyclic",!1),jfn=new ct("crossHierarchyMap"),qH=new ct("targetOffset"),new Pt("splineLabelSize",new Oi),B2=new ct("spacings"),MI=new Pt("partitionConstraint",!1),jb=new ct("breakingPoint.info"),Ifn=new ct("splines.survivingEdge"),Xd=new ct("splines.route.start"),R2=new ct("splines.edgeChain"),Pfn=new ct("originalPortConstraints"),Mb=new ct("selfLoopHolder"),Nm=new ct("splines.nsPortY"),lt=new ct("modelOrder"),RH=new ct("longEdgeTargetNode"),Da=new Pt(ZXn,!1),x2=new Pt(ZXn,!1),xH=new ct("layerConstraints.hiddenNodes"),Sfn=new ct("layerConstraints.opposidePort"),HH=new ct("targetNode.modelOrder")}function Ue(){var n,e;Ue=N,Xm=new ct(BWn),rv=new ct(RWn),Xh(),Due=new Cn(Arn,xan=kU),new f6,Q2=new Cn(Mp,null),Nue=new ct(Kcn),Id(),Ran=pt(EU,S(T(CU,1),G,298,0,[jU])),oE=new Cn(US,Ran),sE=new Cn(uj,(Kn(),!1)),ii(),t0=new Cn(uK,Kan=eh),Dl(),Han=new Cn(cj,qan=xU),xue=new Cn(Bcn,!1),Ll(),nv=new Cn(qS,zan=MO),edn=new C0(12),x1=new Cn(hb,edn),hE=new Cn(k8,!1),SU=new Cn(zS,!1),lE=new Cn(y8,!1),Ii(),F9=new Cn(TR,udn=Ha),Wp=new ct(GS),aE=new ct(Jy),$U=new ct(MS),FU=new ct(m8),Xan=new Su,$b=new Cn(Brn,Xan),Fue=new Cn(_rn,!1),Bue=new Cn(Hrn,!1),new ct(KWn),Wan=new a6,Wm=new Cn(Urn,Wan),yO=new Cn(Mrn,!1),new f6,Hue=new Cn(_Wn,1),Z2=new ct(HWn),Y2=new ct(qWn),Vm=new Cn(Qy,!1),new Cn(UWn,!0),Y(0),new Cn(GWn,Y(100)),new Cn(zWn,!1),Y(0),new Cn(XWn,Y(4e3)),Y(0),new Cn(WWn,Y(400)),new Cn(VWn,!1),new Cn(JWn,!1),new Cn(QWn,!0),new Cn(YWn,!1),sA(),$ue=new Cn(Rcn,Ban=_U),que=new Cn(brn,10),Uue=new Cn(wrn,10),hdn=new Cn(mR,20),Gue=new Cn(grn,10),ldn=new Cn(MR,2),adn=new Cn(cK,10),ddn=new Cn(vrn,0),jO=new Cn(krn,5),bdn=new Cn(prn,1),wdn=new Cn(mrn,1),r0=new Cn(Fw,20),zue=new Cn(yrn,10),pdn=new Cn(jrn,10),Vp=new ct(Ern),vdn=new cTn,gdn=new Cn(Grn,vdn),Kue=new ct(sK),Rue=new Cn(oK,tdn=!1),Jan=new C0(5),Van=new Cn(Irn,Jan),Tw(),e=u(df(kr),9),Qan=new Go(e,u(Hs(e,e.length),9),0),ev=new Cn(cm,Qan),Zg(),idn=new Cn(Drn,rdn=_a),IU=new ct(Nrn),OU=new ct($rn),LU=new ct(Frn),PU=new ct(xrn),n=u(df(U9),9),Yan=new Go(n,u(Hs(n,n.length),9),0),i0=new Cn(m2,Yan),ndn=yn((ro(),n6)),Ra=new Cn(Tp,ndn),Zan=new W(0,0),tv=new Cn(Ap,Zan),fg=new Cn(rm,!1),Kf(),TU=new Cn(Rrn,_an=Jm),MU=new Cn(TS,!1),new ct(ZWn),Y(1),new Cn(nVn,null),cdn=new ct(qrn),DU=new ct(Krn),en(),iv=new Cn(Trn,fdn=hc),so=new ct(Crn),Xu(),odn=yn(qa),hg=new Cn(um,odn),NU=new Cn(Orn,!1),sdn=new Cn(Lrn,!0),new f6,CO=new Cn(Yy,1),mdn=new Cn(_cn,null),dE=new Cn(Zy,150),EO=new Cn(nj,1.414),Jp=new Cn(lb,null),Xue=new Cn(Hcn,1),fE=new Cn(Srn,!1),AU=new Cn(Prn,!1),Uan=new Cn(kR,1),FA(),new Cn(eVn,Gan=RU),_ue=!0,cp(),Vue=dg,Jue=dg,Wue=dg}function nr(){nr=N,psn=new Zt("DIRECTION_PREPROCESSOR",0),wsn=new Zt("COMMENT_PREPROCESSOR",1),P2=new Zt("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),uH=new Zt("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),xsn=new Zt("PARTITION_PREPROCESSOR",4),VP=new Zt("LABEL_DUMMY_INSERTER",5),cI=new Zt("SELF_LOOP_PREPROCESSOR",6),Ww=new Zt("LAYER_CONSTRAINT_PREPROCESSOR",7),$sn=new Zt("PARTITION_MIDPROCESSOR",8),Tsn=new Zt("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Dsn=new Zt("NODE_PROMOTION",10),Xw=new Zt("LAYER_CONSTRAINT_POSTPROCESSOR",11),Fsn=new Zt("PARTITION_POSTPROCESSOR",12),Esn=new Zt("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Bsn=new Zt("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),fsn=new Zt("BREAKING_POINT_INSERTER",15),ZP=new Zt("LONG_EDGE_SPLITTER",16),oH=new Zt("PORT_SIDE_PROCESSOR",17),XP=new Zt("INVERTED_PORT_PROCESSOR",18),tI=new Zt("PORT_LIST_SORTER",19),Ksn=new Zt("SORT_BY_INPUT_ORDER_OF_MODEL",20),eI=new Zt("NORTH_SOUTH_PORT_PREPROCESSOR",21),hsn=new Zt("BREAKING_POINT_PROCESSOR",22),Nsn=new Zt(GXn,23),_sn=new Zt(zXn,24),iI=new Zt("SELF_LOOP_PORT_RESTORER",25),Rsn=new Zt("SINGLE_EDGE_GRAPH_WRAPPER",26),WP=new Zt("IN_LAYER_CONSTRAINT_PROCESSOR",27),ksn=new Zt("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),Osn=new Zt("LABEL_AND_NODE_SIZE_PROCESSOR",29),Isn=new Zt("INNERMOST_NODE_MARGIN_CALCULATOR",30),uI=new Zt("SELF_LOOP_ROUTER",31),dsn=new Zt("COMMENT_NODE_MARGIN_CALCULATOR",32),zP=new Zt("END_LABEL_PREPROCESSOR",33),QP=new Zt("LABEL_DUMMY_SWITCHER",34),asn=new Zt("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),jm=new Zt("LABEL_SIDE_SELECTOR",36),Ssn=new Zt("HYPEREDGE_DUMMY_MERGER",37),Csn=new Zt("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Lsn=new Zt("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),J8=new Zt("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),gsn=new Zt("CONSTRAINTS_POSTPROCESSOR",41),bsn=new Zt("COMMENT_POSTPROCESSOR",42),Psn=new Zt("HYPERNODE_PROCESSOR",43),Msn=new Zt("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),YP=new Zt("LONG_EDGE_JOINER",45),rI=new Zt("SELF_LOOP_POSTPROCESSOR",46),lsn=new Zt("BREAKING_POINT_REMOVER",47),nI=new Zt("NORTH_SOUTH_PORT_POSTPROCESSOR",48),Asn=new Zt("HORIZONTAL_COMPACTOR",49),JP=new Zt("LABEL_DUMMY_REMOVER",50),ysn=new Zt("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),msn=new Zt("END_LABEL_SORTER",52),Ij=new Zt("REVERSED_EDGE_RESTORER",53),GP=new Zt("END_LABEL_POSTPROCESSOR",54),jsn=new Zt("HIERARCHICAL_NODE_RESIZER",55),vsn=new Zt("DIRECTION_POSTPROCESSOR",56)}function Dtn(){Dtn=N,Dk(),oee=new Cn(Pin,_fn=bI),mee=new Cn(Iin,(Kn(),!1)),cT(),Cee=new Cn(IS,Xfn=$H),Ree=new Cn(Oin,!1),Kee=new Cn(Lin,!0),Dne=new Cn(Din,!1),Ok(),ete=new Cn(Nin,ehn=gq),Y(1),fte=new Cn($in,Y(7)),hte=new Cn(Fin,!1),kee=new Cn(xin,!1),k1(),uee=new Cn(DR,Kfn=jH),M1(),Bee=new Cn(rj,Jfn=sq),ts(),Iee=new Cn(Bin,Wfn=Rj),Y(-1),Pee=new Cn(Rin,null),Y(-1),Oee=new Cn(Kin,Y(-1)),Y(-1),Lee=new Cn(NR,Y(4)),Y(-1),Nee=new Cn($R,Y(2)),js(),xee=new Cn(FR,Vfn=zI),Y(0),Fee=new Cn(xR,Y(0)),Aee=new Cn(BR,Y(nt)),k5(),cee=new Cn(C8,Rfn=Y8),Une=new Cn(_in,!1),Qne=new Cn(RR,.1),iee=new Cn(KR,!1),Zne=new Cn(Hin,null),nee=new Cn(qin,null),Y(-1),eee=new Cn(Uin,null),Y(-1),tee=new Cn(Gin,Y(-1)),Y(0),Gne=new Cn(zin,Y(40)),l4(),Vne=new Cn(_R,Bfn=DH),zne=new Cn(OS,xfn=Nj),K5(),nte=new Cn(k2,nhn=a9),Gee=new ct(LS),Tk(),_ee=new Cn(HR,Qfn=gI),ay(),qee=new Cn(qR,Yfn=vI),new f6,Wee=new Cn(UR,.3),Jee=new ct(GR),kw(),Qee=new Cn(zR,Zfn=GI),XT(),aee=new Cn(Xin,Ufn=pq),A5(),dee=new Cn(Win,Gfn=kq),m4(),bee=new Cn(DS,zfn=w9),gee=new Cn(NS,.2),hee=new Cn(XR,2),cte=new Cn(Vin,null),ote=new Cn(Jin,10),ute=new Cn(Qin,10),ste=new Cn(Yin,20),Y(0),tte=new Cn(Zin,Y(0)),Y(0),ite=new Cn(nrn,Y(0)),Y(0),rte=new Cn(ern,Y(0)),Nne=new Cn(WR,!1),N4(),Fne=new Cn(trn,Dfn=Z8),gT(),$ne=new Cn(irn,Lfn=kH),jee=new Cn($S,!1),Y(0),yee=new Cn(VR,Y(16)),Y(0),Eee=new Cn(JR,Y(5)),QT(),Ite=new Cn(_l,rhn=Eq),lte=new Cn(FS,10),bte=new Cn(xS,1),DT(),yte=new Cn(M8,ihn=dI),vte=new ct(QR),thn=Y(1),Y(0),mte=new Cn(YR,thn),LT(),Nte=new Cn(BS,chn=jq),Ote=new ct(RS),Tte=new Cn(KS,!0),Cte=new Cn(_S,2),Ste=new Cn(ZR,!0),BA(),fee=new Cn(rrn,qfn=wI),ap(),see=new Cn(crn,Hfn=Tm),vh(),qne=new Cn(HS,Ffn=D1),Hne=new Cn(urn,!1),_ne=new Cn(orn,!1),Sd(),xne=new Cn(nK,Nfn=zw),I5(),Kne=new Cn(srn,$fn=fq),Bne=new Cn(eK,0),Rne=new Cn(tK,0),Tee=EH,Mee=Dj,Dee=qI,$ee=qI,See=oq,Ll(),Yne=B1,ree=Y8,Jne=Y8,Xne=Y8,Wne=B1,zee=d9,Xee=a9,Hee=a9,Uee=a9,Vee=dq,Zee=d9,Yee=d9,Dl(),wee=Qp,vee=Qp,pee=w9,lee=bE,ate=qm,dte=ug,wte=qm,gte=ug,jte=qm,Ete=ug,pte=yH,kte=dI,$te=qm,Fte=ug,Lte=qm,Dte=ug,Ate=ug,Mte=ug,Pte=ug}function Ze(){Ze=N,t7=new h0(7),N0n=new Hh(8,94),new Hh(8,64),$0n=new Hh(8,36),Pse=new Hh(8,65),Ise=new Hh(8,122),Ose=new Hh(8,90),Dse=new Hh(8,98),Sse=new Hh(8,66),Lse=new Hh(8,60),Nse=new Hh(8,62),D0n=new h0(11),Kc(WO=new Co(4),48,57),Kc(r6=new Co(4),48,57),Kc(r6,65,90),Kc(r6,95,95),Kc(r6,97,122),Kc(t3=new Co(4),9,9),Kc(t3,10,10),Kc(t3,12,12),Kc(t3,13,13),Kc(t3,32,32),F0n=Pw(WO),B0n=Pw(r6),x0n=Pw(t3),i6=new de,e7=new de,Ase=S(T(fn,1),J,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),O0n=S(T(fn,1),J,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",ZJn,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),L0n=S(T(ye,1),_e,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function dS(){dS=N,yYn=new Yo("OUT_T_L",0,(Gu(),Oh),(mu(),Zs),(yf(),vc),vc,S(T(As,1),xn,21,0,[pt((Tw(),uf),S(T(kr,1),G,95,0,[of,rf]))])),kYn=new Yo("OUT_T_C",1,Ia,Zs,vc,Zc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[of,zl])),pt(uf,S(T(kr,1),G,95,0,[of,zl,Ps]))])),jYn=new Yo("OUT_T_R",2,Ys,Zs,vc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[of,cf]))])),aYn=new Yo("OUT_B_L",3,Oh,Tf,pc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[Is,rf]))])),lYn=new Yo("OUT_B_C",4,Ia,Tf,pc,Zc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[Is,zl])),pt(uf,S(T(kr,1),G,95,0,[Is,zl,Ps]))])),dYn=new Yo("OUT_B_R",5,Ys,Tf,pc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[Is,cf]))])),gYn=new Yo("OUT_L_T",6,Ys,Tf,vc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[rf,of,Ps]))])),wYn=new Yo("OUT_L_C",7,Ys,Oa,Zc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[rf,fl])),pt(uf,S(T(kr,1),G,95,0,[rf,fl,Ps]))])),bYn=new Yo("OUT_L_B",8,Ys,Zs,pc,vc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[rf,Is,Ps]))])),mYn=new Yo("OUT_R_T",9,Oh,Tf,vc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[cf,of,Ps]))])),pYn=new Yo("OUT_R_C",10,Oh,Oa,Zc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[cf,fl])),pt(uf,S(T(kr,1),G,95,0,[cf,fl,Ps]))])),vYn=new Yo("OUT_R_B",11,Oh,Zs,pc,pc,S(T(As,1),xn,21,0,[pt(uf,S(T(kr,1),G,95,0,[cf,Is,Ps]))])),fYn=new Yo("IN_T_L",12,Oh,Tf,vc,vc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[of,rf])),pt(Fo,S(T(kr,1),G,95,0,[of,rf,Ps]))])),sYn=new Yo("IN_T_C",13,Ia,Tf,vc,Zc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[of,zl])),pt(Fo,S(T(kr,1),G,95,0,[of,zl,Ps]))])),hYn=new Yo("IN_T_R",14,Ys,Tf,vc,pc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[of,cf])),pt(Fo,S(T(kr,1),G,95,0,[of,cf,Ps]))])),uYn=new Yo("IN_C_L",15,Oh,Oa,Zc,vc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[fl,rf])),pt(Fo,S(T(kr,1),G,95,0,[fl,rf,Ps]))])),cYn=new Yo("IN_C_C",16,Ia,Oa,Zc,Zc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[fl,zl])),pt(Fo,S(T(kr,1),G,95,0,[fl,zl,Ps]))])),oYn=new Yo("IN_C_R",17,Ys,Oa,Zc,pc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[fl,cf])),pt(Fo,S(T(kr,1),G,95,0,[fl,cf,Ps]))])),iYn=new Yo("IN_B_L",18,Oh,Zs,pc,vc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[Is,rf])),pt(Fo,S(T(kr,1),G,95,0,[Is,rf,Ps]))])),tYn=new Yo("IN_B_C",19,Ia,Zs,pc,Zc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[Is,zl])),pt(Fo,S(T(kr,1),G,95,0,[Is,zl,Ps]))])),rYn=new Yo("IN_B_R",20,Ys,Zs,pc,pc,S(T(As,1),xn,21,0,[pt(Fo,S(T(kr,1),G,95,0,[Is,cf])),pt(Fo,S(T(kr,1),G,95,0,[Is,cf,Ps]))])),$_=new Yo(v8,21,null,null,null,null,S(T(As,1),xn,21,0,[]))}function In(){In=N,vg=(ra(),_n).b,u(D(H(_n.b),0),35),u(D(H(_n.b),1),19),K1=_n.a,u(D(H(_n.a),0),35),u(D(H(_n.a),1),19),u(D(H(_n.a),2),19),u(D(H(_n.a),3),19),u(D(H(_n.a),4),19),za=_n.o,u(D(H(_n.o),0),35),u(D(H(_n.o),1),35),Xoe=u(D(H(_n.o),2),19),u(D(H(_n.o),3),19),u(D(H(_n.o),4),19),u(D(H(_n.o),5),19),u(D(H(_n.o),6),19),u(D(H(_n.o),7),19),u(D(H(_n.o),8),19),u(D(H(_n.o),9),19),u(D(H(_n.o),10),19),u(D(H(_n.o),11),19),u(D(H(_n.o),12),19),u(D(H(_n.o),13),19),u(D(H(_n.o),14),19),u(D(H(_n.o),15),19),u(D(st(_n.o),0),62),u(D(st(_n.o),1),62),u(D(st(_n.o),2),62),u(D(st(_n.o),3),62),u(D(st(_n.o),4),62),u(D(st(_n.o),5),62),u(D(st(_n.o),6),62),u(D(st(_n.o),7),62),u(D(st(_n.o),8),62),u(D(st(_n.o),9),62),zoe=_n.p,u(D(H(_n.p),0),35),u(D(H(_n.p),1),35),u(D(H(_n.p),2),35),u(D(H(_n.p),3),35),u(D(H(_n.p),4),19),u(D(H(_n.p),5),19),u(D(st(_n.p),0),62),u(D(st(_n.p),1),62),Woe=_n.q,u(D(H(_n.q),0),35),Xa=_n.v,u(D(H(_n.v),0),19),u(D(st(_n.v),0),62),u(D(st(_n.v),1),62),u(D(st(_n.v),2),62),_1=_n.w,u(D(H(_n.w),0),35),u(D(H(_n.w),1),35),u(D(H(_n.w),2),35),u(D(H(_n.w),3),19),Wa=_n.B,u(D(H(_n.B),0),19),u(D(st(_n.B),0),62),u(D(st(_n.B),1),62),u(D(st(_n.B),2),62),Voe=_n.Q,u(D(H(_n.Q),0),19),u(D(st(_n.Q),0),62),Joe=_n.R,u(D(H(_n.R),0),35),$s=_n.S,u(D(st(_n.S),0),62),u(D(st(_n.S),1),62),u(D(st(_n.S),2),62),u(D(st(_n.S),3),62),u(D(st(_n.S),4),62),u(D(st(_n.S),5),62),u(D(st(_n.S),6),62),u(D(st(_n.S),7),62),u(D(st(_n.S),8),62),u(D(st(_n.S),9),62),u(D(st(_n.S),10),62),u(D(st(_n.S),11),62),u(D(st(_n.S),12),62),u(D(st(_n.S),13),62),u(D(st(_n.S),14),62),H1=_n.T,u(D(H(_n.T),0),19),u(D(H(_n.T),2),19),Qoe=u(D(H(_n.T),3),19),u(D(H(_n.T),4),19),u(D(st(_n.T),0),62),u(D(st(_n.T),1),62),u(D(H(_n.T),1),19),q1=_n.U,u(D(H(_n.U),0),35),u(D(H(_n.U),1),35),u(D(H(_n.U),2),19),u(D(H(_n.U),3),19),u(D(H(_n.U),4),19),u(D(H(_n.U),5),19),u(D(st(_n.U),0),62),pg=_n.V,u(D(H(_n.V),0),19),cv=_n.W,u(D(H(_n.W),0),35),u(D(H(_n.W),1),35),u(D(H(_n.W),2),35),u(D(H(_n.W),3),19),u(D(H(_n.W),4),19),u(D(H(_n.W),5),19),Yoe=_n.bb,u(D(H(_n.bb),0),35),u(D(H(_n.bb),1),35),u(D(H(_n.bb),2),35),u(D(H(_n.bb),3),35),u(D(H(_n.bb),4),35),u(D(H(_n.bb),5),35),u(D(H(_n.bb),6),35),u(D(H(_n.bb),7),19),u(D(st(_n.bb),0),62),u(D(st(_n.bb),1),62),Zoe=_n.eb,u(D(H(_n.eb),0),35),u(D(H(_n.eb),1),35),u(D(H(_n.eb),2),35),u(D(H(_n.eb),3),35),u(D(H(_n.eb),4),35),u(D(H(_n.eb),5),35),u(D(H(_n.eb),6),19),u(D(H(_n.eb),7),19),hr=_n.ab,u(D(H(_n.ab),0),35),u(D(H(_n.ab),1),35),xb=_n.H,u(D(H(_n.H),0),19),u(D(H(_n.H),1),19),u(D(H(_n.H),2),19),u(D(H(_n.H),3),19),u(D(H(_n.H),4),19),u(D(H(_n.H),5),19),u(D(st(_n.H),0),62),Bb=_n.db,u(D(H(_n.db),0),19),rh=_n.M}function Ntn(n,e,t,i){var r,c,s,h,l,a,d,g,v,p,k,A,I,O,$,_,X,tn,jn,kn,Bn,$n,te,Fe,It,Zu,Fr,Ko,hv,G1,hf,lf,s0,i3,Qa,r3,dl,Kb,lv,xh,f0,Vl;if(i.$g()||on(un(z(e,(Ue(),yO)))))return On(),On(),Vi;if(tn=0!=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i,jn=!(kn=function hEe(n){var e,t,i;if(on(un(z(n,(Ue(),fE))))){for(i=new Z,t=new ie(ce(xl(n).a.Kc(),new Vn));ve(t);)tb(e=u(fe(t),74))&&on(un(z(e,AU)))&&Rn(i.c,e);return i}return On(),On(),Vi}(e)).dc(),tn||jn){if(!(r=u(z(e,rv),143)))throw M(new n1("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(lv=FX(r,(F4(),xO)),rRn(e),!tn&&jn&&!lv)return On(),On(),Vi;if(O=new Z,x(z(e,nv))===x((Ll(),B1))&&(FX(r,$O)||FX(r,NO))){if(on(un(z(e,Vm))))throw M(new n1("Topdown layout cannot be used together with hierarchy handling."));for(hv=Vqn(n,e),Fi(G1=new yt,(!e.a&&(e.a=new q(Qe,e,10,11)),e.a));0!=G1.b;)rRn(Fr=u(0==G1.b?null:(oe(0!=G1.b),Qo(G1,G1.a.a)),27)),x(z(Fr,nv))===x(R9)||Bf(Fr,Xm)&&!YJ(r,z(Fr,rv))?(si(O,Ntn(n,Fr,t,i)),ft(Fr,nv,R9),aUn(Fr)):Fi(G1,(!Fr.a&&(Fr.a=new q(Qe,Fr,10,11)),Fr.a))}else{if(hv=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i,on(un(z(e,Vm)))){if((xh=i.eh(1)).Ug(DWn,1),null==z(e,Jp))throw M(new n1(e.k+" has not been assigned a top-down node type."));if(u(z(e,Jp),280)==(cp(),dg)||u(z(e,Jp),280)==OO)for(I=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));I.e!=I.i.gc();)A=u(ue(I),27),Zu=u(z(A,rv),143),(!A.a&&(A.a=new q(Qe,A,10,11)),A.a).i>0&&hk(Zu.f),null!=z(A,mdn)&&(Kb=u(z(A,mdn),347).Tg(A),$g(A,y.Math.max(A.g,Kb.a),y.Math.max(A.f,Kb.b)));if(hf=u(z(e,x1),107),xh.bh("Available Child Area: ("+(v=e.g-(hf.b+hf.c))+"|"+(g=e.f-(hf.d+hf.a))+")"),ft(e,Q2,v/g),sRn(e,r,i.eh(hv)),u(z(e,Jp),280)==OO&&(Ptn(e),$g(e,hf.b+F(R(z(e,Z2)))+hf.c,hf.d+F(R(z(e,Y2)))+hf.a)),xh.bh("Executed layout algorithm: "+Oe(z(e,Xm))+" on node "+e.k),u(z(e,Jp),280)==dg){if(v<0||g<0)throw M(new n1("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(Bf(e,Z2)||Bf(e,Y2)||Ptn(e),k=F(R(z(e,Z2))),p=F(R(z(e,Y2))),xh.bh("Desired Child Area: ("+k+"|"+p+")"),lf=y.Math.min(s0=v/k,y.Math.min(i3=g/p,F(R(z(e,Xue))))),ft(e,CO,lf),xh.bh(e.k+" -- Local Scale Factor (X|Y): ("+s0+"|"+i3+")"),$=u(z(e,oE),21),c=0,s=0,lf'?":Tn(DVn,n)?"'(?<' or '(? toIndex: ",Jtn=", toIndex: ",Qtn="Index: ",Ytn=", Size: ",nm="org.eclipse.elk.alg.common",Ne={50:1},eXn="org.eclipse.elk.alg.common.compaction",tXn="Scanline/EventHandler",nl="org.eclipse.elk.alg.common.compaction.oned",iXn="CNode belongs to another CGroup.",rXn="ISpacingsHandler/1",oR="The ",sR=" instance has been finished already.",cXn="The direction ",uXn=" is not supported by the CGraph instance.",oXn="OneDimensionalCompactor",sXn="OneDimensionalCompactor/lambda$0$Type",fXn="Quadruplet",hXn="ScanlineConstraintCalculator",lXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",aXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",dXn="ScanlineConstraintCalculator/Timestamp",bXn="ScanlineConstraintCalculator/lambda$0$Type",Eh={178:1,46:1},fR="org.eclipse.elk.alg.common.compaction.options",fc="org.eclipse.elk.core.data",Ztn="org.eclipse.elk.polyomino.traversalStrategy",nin="org.eclipse.elk.polyomino.lowLevelSort",ein="org.eclipse.elk.polyomino.highLevelSort",tin="org.eclipse.elk.polyomino.fill",Es={134:1},hR="polyomino",g8="org.eclipse.elk.alg.common.networksimplex",el={183:1,3:1,4:1},wXn="org.eclipse.elk.alg.common.nodespacing",$d="org.eclipse.elk.alg.common.nodespacing.cellsystem",em="CENTER",gXn={217:1,336:1},iin={3:1,4:1,5:1,603:1},jp="LEFT",Ep="RIGHT",rin="Vertical alignment cannot be null",cin="BOTTOM",mS="org.eclipse.elk.alg.common.nodespacing.internal",v8="UNDEFINED",zf=.01,Xy="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",vXn="LabelPlacer/lambda$0$Type",pXn="LabelPlacer/lambda$1$Type",mXn="portRatioOrPosition",tm="org.eclipse.elk.alg.common.overlaps",lR="DOWN",Ch="org.eclipse.elk.alg.common.polyomino",kS="NORTH",aR="EAST",dR="SOUTH",bR="WEST",yS="org.eclipse.elk.alg.common.polyomino.structures",uin="Direction",wR="Grid is only of size ",gR=". Requested point (",vR=") is out of bounds.",jS=" Given center based coordinates were (",Wy="org.eclipse.elk.graph.properties",kXn="IPropertyHolder",oin={3:1,96:1,137:1},Cp="org.eclipse.elk.alg.common.spore",yXn="org.eclipse.elk.alg.common.utils",Fd={205:1},g2="org.eclipse.elk.core",jXn="Connected Components Compaction",EXn="org.eclipse.elk.alg.disco",ES="org.eclipse.elk.alg.disco.graph",pR="org.eclipse.elk.alg.disco.options",sin="CompactionStrategy",fin="org.eclipse.elk.disco.componentCompaction.strategy",hin="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",lin="org.eclipse.elk.disco.debug.discoGraph",ain="org.eclipse.elk.disco.debug.discoPolys",CXn="componentCompaction",xd="org.eclipse.elk.disco",mR="org.eclipse.elk.spacing.componentComponent",kR="org.eclipse.elk.edge.thickness",Mp="org.eclipse.elk.aspectRatio",hb="org.eclipse.elk.padding",v2="org.eclipse.elk.alg.disco.transform",yR=1.5707963267948966,p2=17976931348623157e292,$w={3:1,4:1,5:1,198:1},MXn={3:1,6:1,4:1,5:1,100:1,115:1},jR="org.eclipse.elk.alg.force",din="ComponentsProcessor",TXn="ComponentsProcessor/1",bin="ElkGraphImporter/lambda$0$Type",Vy="org.eclipse.elk.alg.force.graph",AXn="Component Layout",win="org.eclipse.elk.alg.force.model",CS="org.eclipse.elk.force.model",gin="org.eclipse.elk.force.iterations",vin="org.eclipse.elk.force.repulsivePower",ER="org.eclipse.elk.force.temperature",Mh=.001,CR="org.eclipse.elk.force.repulsion",p8="org.eclipse.elk.alg.force.options",im=1.600000023841858,su="org.eclipse.elk.force",Jy="org.eclipse.elk.priority",Fw="org.eclipse.elk.spacing.nodeNode",MR="org.eclipse.elk.spacing.edgeLabel",MS="org.eclipse.elk.randomSeed",m8="org.eclipse.elk.separateConnectedComponents",k8="org.eclipse.elk.interactive",TR="org.eclipse.elk.portConstraints",TS="org.eclipse.elk.edgeLabels.inline",y8="org.eclipse.elk.omitNodeMicroLayout",rm="org.eclipse.elk.nodeSize.fixedGraphSize",Tp="org.eclipse.elk.nodeSize.options",m2="org.eclipse.elk.nodeSize.constraints",cm="org.eclipse.elk.nodeLabels.placement",um="org.eclipse.elk.portLabels.placement",Qy="org.eclipse.elk.topdownLayout",Yy="org.eclipse.elk.topdown.scaleFactor",Zy="org.eclipse.elk.topdown.hierarchicalNodeWidth",nj="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",lb="org.eclipse.elk.topdown.nodeType",pin="origin",min="random",SXn="boundingBox.upLeft",PXn="boundingBox.lowRight",kin="org.eclipse.elk.stress.fixed",yin="org.eclipse.elk.stress.desiredEdgeLength",jin="org.eclipse.elk.stress.dimension",Ein="org.eclipse.elk.stress.epsilon",Cin="org.eclipse.elk.stress.iterationLimit",Ca="org.eclipse.elk.stress",IXn="ELK Stress",Ap="org.eclipse.elk.nodeSize.minimum",AS="org.eclipse.elk.alg.force.stress",OXn="Layered layout",Sp="org.eclipse.elk.alg.layered",ej="org.eclipse.elk.alg.layered.compaction.components",j8="org.eclipse.elk.alg.layered.compaction.oned",SS="org.eclipse.elk.alg.layered.compaction.oned.algs",Bd="org.eclipse.elk.alg.layered.compaction.recthull",Xf="org.eclipse.elk.alg.layered.components",Th="NONE",Min="MODEL_ORDER",Pc={3:1,6:1,4:1,9:1,5:1,126:1},LXn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},PS="org.eclipse.elk.alg.layered.compound",gt={47:1},Hc="org.eclipse.elk.alg.layered.graph",AR=" -> ",DXn="Not supported by LGraph",Tin="Port side is undefined",SR={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},A1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},NXn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},xXn="The given string contains parts that cannot be parsed as numbers.",tj="org.eclipse.elk.core.math",BXn={3:1,4:1,140:1,214:1,423:1},RXn={3:1,4:1,107:1,214:1,423:1},S1="org.eclipse.elk.alg.layered.graph.transform",KXn="ElkGraphImporter",_Xn="ElkGraphImporter/lambda$1$Type",HXn="ElkGraphImporter/lambda$2$Type",qXn="ElkGraphImporter/lambda$4$Type",Qn="org.eclipse.elk.alg.layered.intermediate",UXn="Node margin calculation",GXn="ONE_SIDED_GREEDY_SWITCH",zXn="TWO_SIDED_GREEDY_SWITCH",PR="No implementation is available for the layout processor ",IR="IntermediateProcessorStrategy",OR="Node '",XXn="FIRST_SEPARATE",WXn="LAST_SEPARATE",VXn="Odd port side processing",li="org.eclipse.elk.alg.layered.intermediate.compaction",E8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",tl="org.eclipse.elk.alg.layered.p3order.counting",ij={230:1},Pp="org.eclipse.elk.alg.layered.intermediate.loops",Do="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Ma="org.eclipse.elk.alg.layered.intermediate.loops.routing",Ain="org.eclipse.elk.alg.layered.intermediate.preserveorder",Ah="org.eclipse.elk.alg.layered.intermediate.wrapping",Ic="org.eclipse.elk.alg.layered.options",LR="INTERACTIVE",Sin="GREEDY",JXn="DEPTH_FIRST",QXn="EDGE_LENGTH",YXn="SELF_LOOPS",ZXn="firstTryWithInitialOrder",Pin="org.eclipse.elk.layered.directionCongruency",Iin="org.eclipse.elk.layered.feedbackEdges",IS="org.eclipse.elk.layered.interactiveReferencePoint",Oin="org.eclipse.elk.layered.mergeEdges",Lin="org.eclipse.elk.layered.mergeHierarchyEdges",Din="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Nin="org.eclipse.elk.layered.portSortingStrategy",$in="org.eclipse.elk.layered.thoroughness",Fin="org.eclipse.elk.layered.unnecessaryBendpoints",xin="org.eclipse.elk.layered.generatePositionAndLayerIds",DR="org.eclipse.elk.layered.cycleBreaking.strategy",rj="org.eclipse.elk.layered.layering.strategy",Bin="org.eclipse.elk.layered.layering.layerConstraint",Rin="org.eclipse.elk.layered.layering.layerChoiceConstraint",Kin="org.eclipse.elk.layered.layering.layerId",NR="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",$R="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",FR="org.eclipse.elk.layered.layering.nodePromotion.strategy",xR="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",BR="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",C8="org.eclipse.elk.layered.crossingMinimization.strategy",_in="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",RR="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",KR="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Hin="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",qin="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Uin="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Gin="org.eclipse.elk.layered.crossingMinimization.positionId",zin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",_R="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",OS="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",k2="org.eclipse.elk.layered.nodePlacement.strategy",LS="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",HR="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",qR="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",UR="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",GR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",zR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Xin="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Win="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",DS="org.eclipse.elk.layered.edgeRouting.splines.mode",NS="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",XR="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Vin="org.eclipse.elk.layered.spacing.baseValue",Jin="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Qin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Yin="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Zin="org.eclipse.elk.layered.priority.direction",nrn="org.eclipse.elk.layered.priority.shortness",ern="org.eclipse.elk.layered.priority.straightness",WR="org.eclipse.elk.layered.compaction.connectedComponents",trn="org.eclipse.elk.layered.compaction.postCompaction.strategy",irn="org.eclipse.elk.layered.compaction.postCompaction.constraints",$S="org.eclipse.elk.layered.highDegreeNodes.treatment",VR="org.eclipse.elk.layered.highDegreeNodes.threshold",JR="org.eclipse.elk.layered.highDegreeNodes.treeHeight",_l="org.eclipse.elk.layered.wrapping.strategy",FS="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",xS="org.eclipse.elk.layered.wrapping.correctionFactor",M8="org.eclipse.elk.layered.wrapping.cutting.strategy",QR="org.eclipse.elk.layered.wrapping.cutting.cuts",YR="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",BS="org.eclipse.elk.layered.wrapping.validify.strategy",RS="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",KS="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",_S="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",ZR="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",rrn="org.eclipse.elk.layered.edgeLabels.sideSelection",crn="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",HS="org.eclipse.elk.layered.considerModelOrder.strategy",urn="org.eclipse.elk.layered.considerModelOrder.portModelOrder",orn="org.eclipse.elk.layered.considerModelOrder.noModelOrder",nK="org.eclipse.elk.layered.considerModelOrder.components",srn="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",eK="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",tK="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",iK="layering",nWn="layering.minWidth",eWn="layering.nodePromotion",om="crossingMinimization",qS="org.eclipse.elk.hierarchyHandling",tWn="crossingMinimization.greedySwitch",iWn="nodePlacement",rWn="nodePlacement.bk",cWn="edgeRouting",cj="org.eclipse.elk.edgeRouting",Wf="spacing",frn="priority",hrn="compaction",uWn="compaction.postCompaction",oWn="Specifies whether and how post-process compaction is applied.",lrn="highDegreeNodes",arn="wrapping",sWn="wrapping.cutting",fWn="wrapping.validify",drn="wrapping.multiEdge",rK="edgeLabels",T8="considerModelOrder",brn="org.eclipse.elk.spacing.commentComment",wrn="org.eclipse.elk.spacing.commentNode",grn="org.eclipse.elk.spacing.edgeEdge",cK="org.eclipse.elk.spacing.edgeNode",vrn="org.eclipse.elk.spacing.labelLabel",prn="org.eclipse.elk.spacing.labelPortHorizontal",mrn="org.eclipse.elk.spacing.labelPortVertical",krn="org.eclipse.elk.spacing.labelNode",yrn="org.eclipse.elk.spacing.nodeSelfLoop",jrn="org.eclipse.elk.spacing.portPort",Ern="org.eclipse.elk.spacing.individual",Crn="org.eclipse.elk.port.borderOffset",Mrn="org.eclipse.elk.noLayout",Trn="org.eclipse.elk.port.side",uj="org.eclipse.elk.debugMode",Arn="org.eclipse.elk.alignment",Srn="org.eclipse.elk.insideSelfLoops.activate",Prn="org.eclipse.elk.insideSelfLoops.yo",uK="org.eclipse.elk.direction",Irn="org.eclipse.elk.nodeLabels.padding",Orn="org.eclipse.elk.portLabels.nextToPortIfPossible",Lrn="org.eclipse.elk.portLabels.treatAsGroup",Drn="org.eclipse.elk.portAlignment.default",Nrn="org.eclipse.elk.portAlignment.north",$rn="org.eclipse.elk.portAlignment.south",Frn="org.eclipse.elk.portAlignment.west",xrn="org.eclipse.elk.portAlignment.east",US="org.eclipse.elk.contentAlignment",Brn="org.eclipse.elk.junctionPoints",Rrn="org.eclipse.elk.edgeLabels.placement",Krn="org.eclipse.elk.port.index",_rn="org.eclipse.elk.commentBox",Hrn="org.eclipse.elk.hypernode",qrn="org.eclipse.elk.port.anchor",oK="org.eclipse.elk.partitioning.activate",sK="org.eclipse.elk.partitioning.partition",GS="org.eclipse.elk.position",Urn="org.eclipse.elk.margins",Grn="org.eclipse.elk.spacing.portsSurrounding",zS="org.eclipse.elk.interactiveLayout",gc="org.eclipse.elk.core.util",zrn={3:1,4:1,5:1,601:1},hWn="NETWORK_SIMPLEX",Xrn="SIMPLE",pr={106:1,47:1},XS="org.eclipse.elk.alg.layered.p1cycles",Hl="org.eclipse.elk.alg.layered.p2layers",Wrn={413:1,230:1},lWn={846:1,3:1,4:1},xu="org.eclipse.elk.alg.layered.p3order",mr="org.eclipse.elk.alg.layered.p4nodes",aWn={3:1,4:1,5:1,854:1},Sh=1e-5,Ta="org.eclipse.elk.alg.layered.p4nodes.bk",fK="org.eclipse.elk.alg.layered.p5edges",Cf="org.eclipse.elk.alg.layered.p5edges.orthogonal",hK="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",lK=1e-6,xw="org.eclipse.elk.alg.layered.p5edges.splines",aK=.09999999999999998,WS=1e-8,dWn=4.71238898038469,Vrn=3.141592653589793,ql="org.eclipse.elk.alg.mrtree",dK=.10000000149011612,VS="SUPER_ROOT",A8="org.eclipse.elk.alg.mrtree.graph",Jrn=-17976931348623157e292,qc="org.eclipse.elk.alg.mrtree.intermediate",bWn="Processor compute fanout",JS={3:1,6:1,4:1,5:1,534:1,100:1,115:1},wWn="Set neighbors in level",oj="org.eclipse.elk.alg.mrtree.options",gWn="DESCENDANTS",Qrn="org.eclipse.elk.mrtree.compaction",Yrn="org.eclipse.elk.mrtree.edgeEndTextureLength",Zrn="org.eclipse.elk.mrtree.treeLevel",ncn="org.eclipse.elk.mrtree.positionConstraint",ecn="org.eclipse.elk.mrtree.weighting",tcn="org.eclipse.elk.mrtree.edgeRoutingMode",icn="org.eclipse.elk.mrtree.searchOrder",vWn="Position Constraint",fu="org.eclipse.elk.mrtree",pWn="org.eclipse.elk.tree",mWn="Processor arrange level",sm="org.eclipse.elk.alg.mrtree.p2order",ko="org.eclipse.elk.alg.mrtree.p4route",rcn="org.eclipse.elk.alg.radial",Rd=6.283185307179586,ccn="Before",ucn=5e-324,QS="After",ocn="org.eclipse.elk.alg.radial.intermediate",kWn="COMPACTION",bK="org.eclipse.elk.alg.radial.intermediate.compaction",yWn={3:1,4:1,5:1,100:1},scn="org.eclipse.elk.alg.radial.intermediate.optimization",wK="No implementation is available for the layout option ",S8="org.eclipse.elk.alg.radial.options",fcn="org.eclipse.elk.radial.centerOnRoot",hcn="org.eclipse.elk.radial.orderId",lcn="org.eclipse.elk.radial.radius",YS="org.eclipse.elk.radial.rotate",gK="org.eclipse.elk.radial.compactor",vK="org.eclipse.elk.radial.compactionStepSize",acn="org.eclipse.elk.radial.sorter",dcn="org.eclipse.elk.radial.wedgeCriteria",bcn="org.eclipse.elk.radial.optimizationCriteria",pK="org.eclipse.elk.radial.rotation.targetAngle",mK="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",wcn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",jWn="Compaction",gcn="rotation",cs="org.eclipse.elk.radial",EWn="org.eclipse.elk.alg.radial.p1position.wedge",vcn="org.eclipse.elk.alg.radial.sorting",CWn=5.497787143782138,MWn=3.9269908169872414,TWn=2.356194490192345,AWn="org.eclipse.elk.alg.rectpacking",ZS="org.eclipse.elk.alg.rectpacking.intermediate",kK="org.eclipse.elk.alg.rectpacking.options",pcn="org.eclipse.elk.rectpacking.trybox",mcn="org.eclipse.elk.rectpacking.currentPosition",kcn="org.eclipse.elk.rectpacking.desiredPosition",ycn="org.eclipse.elk.rectpacking.inNewRow",jcn="org.eclipse.elk.rectpacking.widthApproximation.strategy",Ecn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Ccn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",Mcn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Tcn="org.eclipse.elk.rectpacking.packing.strategy",Acn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",Scn="org.eclipse.elk.rectpacking.packing.compaction.iterations",Pcn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",yK="widthApproximation",SWn="Compaction Strategy",PWn="packing.compaction",uo="org.eclipse.elk.rectpacking",fm="org.eclipse.elk.alg.rectpacking.p1widthapproximation",nP="org.eclipse.elk.alg.rectpacking.p2packing",IWn="No Compaction",Icn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",sj="org.eclipse.elk.alg.rectpacking.util",eP="No implementation available for ",Bw="org.eclipse.elk.alg.spore",Rw="org.eclipse.elk.alg.spore.options",ab="org.eclipse.elk.sporeCompaction",jK="org.eclipse.elk.underlyingLayoutAlgorithm",Ocn="org.eclipse.elk.processingOrder.treeConstruction",Lcn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",EK="org.eclipse.elk.processingOrder.preferredRoot",CK="org.eclipse.elk.processingOrder.rootSelection",MK="org.eclipse.elk.structure.structureExtractionStrategy",Dcn="org.eclipse.elk.compaction.compactionStrategy",Ncn="org.eclipse.elk.compaction.orthogonal",$cn="org.eclipse.elk.overlapRemoval.maxIterations",Fcn="org.eclipse.elk.overlapRemoval.runScanline",TK="processingOrder",OWn="overlapRemoval",hm="org.eclipse.elk.sporeOverlap",LWn="org.eclipse.elk.alg.spore.p1structure",AK="org.eclipse.elk.alg.spore.p2processingorder",SK="org.eclipse.elk.alg.spore.p3execution",DWn="Topdown Layout",NWn="Invalid index: ",lm="org.eclipse.elk.core.alg",y2={341:1},Kw={295:1},$Wn="Make sure its type is registered with the ",xcn=" utility class.",am="true",PK="false",FWn="Couldn't clone property '",db=.05,oo="org.eclipse.elk.core.options",xWn=1.2999999523162842,bb="org.eclipse.elk.box",Bcn="org.eclipse.elk.expandNodes",Rcn="org.eclipse.elk.box.packingMode",BWn="org.eclipse.elk.algorithm",RWn="org.eclipse.elk.resolvedAlgorithm",Kcn="org.eclipse.elk.bendPoints",KWn="org.eclipse.elk.labelManager",_Wn="org.eclipse.elk.scaleFactor",HWn="org.eclipse.elk.childAreaWidth",qWn="org.eclipse.elk.childAreaHeight",UWn="org.eclipse.elk.animate",GWn="org.eclipse.elk.animTimeFactor",zWn="org.eclipse.elk.layoutAncestors",XWn="org.eclipse.elk.maxAnimTime",WWn="org.eclipse.elk.minAnimTime",VWn="org.eclipse.elk.progressBar",JWn="org.eclipse.elk.validateGraph",QWn="org.eclipse.elk.validateOptions",YWn="org.eclipse.elk.zoomToFit",ZWn="org.eclipse.elk.font.name",nVn="org.eclipse.elk.font.size",_cn="org.eclipse.elk.topdown.sizeApproximator",Hcn="org.eclipse.elk.topdown.scaleCap",eVn="org.eclipse.elk.edge.type",tVn="partitioning",iVn="nodeLabels",tP="portAlignment",IK="nodeSize",OK="port",qcn="portLabels",fj="topdown",rVn="insideSelfLoops",P8="org.eclipse.elk.fixed",iP="org.eclipse.elk.random",Ucn={3:1,34:1,22:1,347:1},cVn="port must have a parent node to calculate the port side",uVn="The edge needs to have exactly one edge section. Found: ",I8="org.eclipse.elk.core.util.adapters",us="org.eclipse.emf.ecore",j2="org.eclipse.elk.graph",oVn="EMapPropertyHolder",sVn="ElkBendPoint",fVn="ElkGraphElement",hVn="ElkConnectableShape",Gcn="ElkEdge",lVn="ElkEdgeSection",aVn="EModelElement",dVn="ENamedElement",zcn="ElkLabel",Xcn="ElkNode",Wcn="ElkPort",bVn={94:1,93:1},Ip="org.eclipse.emf.common.notify.impl",Aa="The feature '",O8="' is not a valid changeable feature",wVn="Expecting null",LK="' is not a valid feature",gVn="The feature ID",vVn=" is not a valid feature ID",Cc=32768,pVn={110:1,94:1,93:1,58:1,54:1,99:1},Hn="org.eclipse.emf.ecore.impl",Kd="org.eclipse.elk.graph.impl",L8="Recursive containment not allowed for ",dm="The datatype '",wb="' is not a valid classifier",DK="The value '",E2={195:1,3:1,4:1},NK="The class '",bm="http://www.eclipse.org/elk/ElkGraph",Vcn="property",D8="value",$K="source",mVn="properties",kVn="identifier",FK="height",xK="width",BK="parent",RK="text",KK="children",yVn="hierarchical",Jcn="sources",_K="targets",Qcn="sections",rP="bendPoints",Ycn="outgoingShape",Zcn="incomingShape",nun="outgoingSections",eun="incomingSections",ur="org.eclipse.emf.common.util",tun="Severe implementation error in the Json to ElkGraph importer.",Ph="id",Hi="org.eclipse.elk.graph.json",iun="Unhandled parameter types: ",jVn="startPoint",EVn="An edge must have at least one source and one target (edge id: '",wm="').",CVn="Referenced edge section does not exist: ",MVn=" (edge id: '",run="target",TVn="sourcePoint",AVn="targetPoint",cP="group",Je="name",SVn="connectableShape cannot be null",PVn="edge cannot be null",HK="Passed edge is not 'simple'.",uP="org.eclipse.elk.graph.util",hj="The 'no duplicates' constraint is violated",qK="targetIndex=",_d=", size=",UK="sourceIndex=",Ih={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},GK={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},oP="logging",IVn="measureExecutionTime",OVn="parser.parse.1",LVn="parser.parse.2",sP="parser.next.1",zK="parser.next.2",DVn="parser.next.3",NVn="parser.next.4",Hd="parser.factor.1",cun="parser.factor.2",$Vn="parser.factor.3",FVn="parser.factor.4",xVn="parser.factor.5",BVn="parser.factor.6",RVn="parser.atom.1",KVn="parser.atom.2",_Vn="parser.atom.3",uun="parser.atom.4",XK="parser.atom.5",oun="parser.cc.1",fP="parser.cc.2",HVn="parser.cc.3",qVn="parser.cc.5",sun="parser.cc.6",fun="parser.cc.7",WK="parser.cc.8",UVn="parser.ope.1",GVn="parser.ope.2",zVn="parser.ope.3",P1="parser.descape.1",XVn="parser.descape.2",WVn="parser.descape.3",VVn="parser.descape.4",JVn="parser.descape.5",os="parser.process.1",QVn="parser.quantifier.1",YVn="parser.quantifier.2",ZVn="parser.quantifier.3",nJn="parser.quantifier.4",hun="parser.quantifier.5",eJn="org.eclipse.emf.common.notify",lun={424:1,686:1},tJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},lj={378:1,152:1},N8="index=",VK={3:1,4:1,5:1,129:1},iJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},aun={3:1,6:1,4:1,5:1,198:1},rJn={3:1,4:1,5:1,173:1,379:1},cJn=";/?:@&=+$,",uJn="invalid authority: ",oJn="EAnnotation",sJn="ETypedElement",fJn="EStructuralFeature",hJn="EAttribute",lJn="EClassifier",aJn="EEnumLiteral",dJn="EGenericType",bJn="EOperation",wJn="EParameter",gJn="EReference",vJn="ETypeParameter",Et="org.eclipse.emf.ecore.util",JK={79:1},dun={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},pJn="org.eclipse.emf.ecore.util.FeatureMap$Entry",Bu=8192,_w=2048,$8="byte",hP="char",F8="double",x8="float",B8="int",R8="long",K8="short",mJn="java.lang.Object",C2={3:1,4:1,5:1,254:1},bun={3:1,4:1,5:1,688:1},kJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Qr={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},aj="mixed",Be="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Cs="kind",yJn={3:1,4:1,5:1,689:1},wun={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},lP={20:1,31:1,56:1,16:1,15:1,61:1,71:1},aP={51:1,128:1,287:1},dP={76:1,343:1},bP="The value of type '",wP="' must be of type '",M2=1352,Ms="http://www.eclipse.org/emf/2002/Ecore",gP=-32768,gb="constraints",Wi="baseType",jJn="getEStructuralFeature",EJn="getFeatureID",_8="feature",CJn="getOperationID",gun="operation",MJn="defaultValue",TJn="eTypeParameters",AJn="isInstance",SJn="getEEnumLiteral",PJn="eContainingClass",ze={57:1},IJn={3:1,4:1,5:1,124:1},OJn="org.eclipse.emf.ecore.resource",LJn={94:1,93:1,599:1,2034:1},QK="org.eclipse.emf.ecore.resource.impl",vun="unspecified",dj="simple",vP="attribute",DJn="attributeWildcard",pP="element",YK="elementWildcard",Mf="collapse",ZK="itemType",mP="namespace",bj="##targetNamespace",Ts="whiteSpace",pun="wildcards",qd="http://www.eclipse.org/emf/2003/XMLType",n_="##any",gm="uninitialized",wj="The multiplicity constraint is violated",kP="org.eclipse.emf.ecore.xml.type",NJn="ProcessingInstruction",$Jn="SimpleAnyType",FJn="XMLTypeDocumentRoot",ci="org.eclipse.emf.ecore.xml.type.impl",gj="INF",xJn="processing",BJn="ENTITIES_._base",mun="minLength",kun="ENTITY",yP="NCName",RJn="IDREFS_._base",yun="integer",e_="token",t_="pattern",KJn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",jun="\\i\\c*",_Jn="[\\i-[:]][\\c-[:]]*",HJn="nonPositiveInteger",vj="maxInclusive",Eun="NMTOKEN",qJn="NMTOKENS_._base",Cun="nonNegativeInteger",pj="minInclusive",UJn="normalizedString",GJn="unsignedByte",zJn="unsignedInt",XJn="18446744073709551615",WJn="unsignedShort",VJn="processingInstruction",I1="org.eclipse.emf.ecore.xml.type.internal",vm=1114111,JJn="Internal Error: shorthands: \\u",H8="xml:isDigit",i_="xml:isWord",r_="xml:isSpace",c_="xml:isNameChar",u_="xml:isInitialNameChar",QJn="09\u0660\u0669\u06f0\u06f9\u0966\u096f\u09e6\u09ef\u0a66\u0a6f\u0ae6\u0aef\u0b66\u0b6f\u0be7\u0bef\u0c66\u0c6f\u0ce6\u0cef\u0d66\u0d6f\u0e50\u0e59\u0ed0\u0ed9\u0f20\u0f29",YJn="AZaz\xc0\xd6\xd8\xf6\xf8\u0131\u0134\u013e\u0141\u0148\u014a\u017e\u0180\u01c3\u01cd\u01f0\u01f4\u01f5\u01fa\u0217\u0250\u02a8\u02bb\u02c1\u0386\u0386\u0388\u038a\u038c\u038c\u038e\u03a1\u03a3\u03ce\u03d0\u03d6\u03da\u03da\u03dc\u03dc\u03de\u03de\u03e0\u03e0\u03e2\u03f3\u0401\u040c\u040e\u044f\u0451\u045c\u045e\u0481\u0490\u04c4\u04c7\u04c8\u04cb\u04cc\u04d0\u04eb\u04ee\u04f5\u04f8\u04f9\u0531\u0556\u0559\u0559\u0561\u0586\u05d0\u05ea\u05f0\u05f2\u0621\u063a\u0641\u064a\u0671\u06b7\u06ba\u06be\u06c0\u06ce\u06d0\u06d3\u06d5\u06d5\u06e5\u06e6\u0905\u0939\u093d\u093d\u0958\u0961\u0985\u098c\u098f\u0990\u0993\u09a8\u09aa\u09b0\u09b2\u09b2\u09b6\u09b9\u09dc\u09dd\u09df\u09e1\u09f0\u09f1\u0a05\u0a0a\u0a0f\u0a10\u0a13\u0a28\u0a2a\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59\u0a5c\u0a5e\u0a5e\u0a72\u0a74\u0a85\u0a8b\u0a8d\u0a8d\u0a8f\u0a91\u0a93\u0aa8\u0aaa\u0ab0\u0ab2\u0ab3\u0ab5\u0ab9\u0abd\u0abd\u0ae0\u0ae0\u0b05\u0b0c\u0b0f\u0b10\u0b13\u0b28\u0b2a\u0b30\u0b32\u0b33\u0b36\u0b39\u0b3d\u0b3d\u0b5c\u0b5d\u0b5f\u0b61\u0b85\u0b8a\u0b8e\u0b90\u0b92\u0b95\u0b99\u0b9a\u0b9c\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8\u0baa\u0bae\u0bb5\u0bb7\u0bb9\u0c05\u0c0c\u0c0e\u0c10\u0c12\u0c28\u0c2a\u0c33\u0c35\u0c39\u0c60\u0c61\u0c85\u0c8c\u0c8e\u0c90\u0c92\u0ca8\u0caa\u0cb3\u0cb5\u0cb9\u0cde\u0cde\u0ce0\u0ce1\u0d05\u0d0c\u0d0e\u0d10\u0d12\u0d28\u0d2a\u0d39\u0d60\u0d61\u0e01\u0e2e\u0e30\u0e30\u0e32\u0e33\u0e40\u0e45\u0e81\u0e82\u0e84\u0e84\u0e87\u0e88\u0e8a\u0e8a\u0e8d\u0e8d\u0e94\u0e97\u0e99\u0e9f\u0ea1\u0ea3\u0ea5\u0ea5\u0ea7\u0ea7\u0eaa\u0eab\u0ead\u0eae\u0eb0\u0eb0\u0eb2\u0eb3\u0ebd\u0ebd\u0ec0\u0ec4\u0f40\u0f47\u0f49\u0f69\u10a0\u10c5\u10d0\u10f6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110b\u110c\u110e\u1112\u113c\u113c\u113e\u113e\u1140\u1140\u114c\u114c\u114e\u114e\u1150\u1150\u1154\u1155\u1159\u1159\u115f\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116d\u116e\u1172\u1173\u1175\u1175\u119e\u119e\u11a8\u11a8\u11ab\u11ab\u11ae\u11af\u11b7\u11b8\u11ba\u11ba\u11bc\u11c2\u11eb\u11eb\u11f0\u11f0\u11f9\u11f9\u1e00\u1e9b\u1ea0\u1ef9\u1f00\u1f15\u1f18\u1f1d\u1f20\u1f45\u1f48\u1f4d\u1f50\u1f57\u1f59\u1f59\u1f5b\u1f5b\u1f5d\u1f5d\u1f5f\u1f7d\u1f80\u1fb4\u1fb6\u1fbc\u1fbe\u1fbe\u1fc2\u1fc4\u1fc6\u1fcc\u1fd0\u1fd3\u1fd6\u1fdb\u1fe0\u1fec\u1ff2\u1ff4\u1ff6\u1ffc\u2126\u2126\u212a\u212b\u212e\u212e\u2180\u2182\u3007\u3007\u3021\u3029\u3041\u3094\u30a1\u30fa\u3105\u312c\u4e00\u9fa5\uac00\ud7a3",ZJn="Private Use",o_="ASSIGNED",s_="\0\x7f\x80\xff\u0100\u017f\u0180\u024f\u0250\u02af\u02b0\u02ff\u0300\u036f\u0370\u03ff\u0400\u04ff\u0530\u058f\u0590\u05ff\u0600\u06ff\u0700\u074f\u0780\u07bf\u0900\u097f\u0980\u09ff\u0a00\u0a7f\u0a80\u0aff\u0b00\u0b7f\u0b80\u0bff\u0c00\u0c7f\u0c80\u0cff\u0d00\u0d7f\u0d80\u0dff\u0e00\u0e7f\u0e80\u0eff\u0f00\u0fff\u1000\u109f\u10a0\u10ff\u1100\u11ff\u1200\u137f\u13a0\u13ff\u1400\u167f\u1680\u169f\u16a0\u16ff\u1780\u17ff\u1800\u18af\u1e00\u1eff\u1f00\u1fff\u2000\u206f\u2070\u209f\u20a0\u20cf\u20d0\u20ff\u2100\u214f\u2150\u218f\u2190\u21ff\u2200\u22ff\u2300\u23ff\u2400\u243f\u2440\u245f\u2460\u24ff\u2500\u257f\u2580\u259f\u25a0\u25ff\u2600\u26ff\u2700\u27bf\u2800\u28ff\u2e80\u2eff\u2f00\u2fdf\u2ff0\u2fff\u3000\u303f\u3040\u309f\u30a0\u30ff\u3100\u312f\u3130\u318f\u3190\u319f\u31a0\u31bf\u3200\u32ff\u3300\u33ff\u3400\u4db5\u4e00\u9fff\ua000\ua48f\ua490\ua4cf\uac00\ud7a3\ue000\uf8ff\uf900\ufaff\ufb00\ufb4f\ufb50\ufdff\ufe20\ufe2f\ufe30\ufe4f\ufe50\ufe6f\ufe70\ufefe\ufeff\ufeff\uff00\uffef",Mun="UNASSIGNED",pm={3:1,122:1},nQn="org.eclipse.emf.ecore.xml.type.util",jP={3:1,4:1,5:1,381:1},Tun="org.eclipse.xtext.xbase.lib",eQn="Cannot add elements to a Range",tQn="Cannot set elements in a Range",iQn="Cannot remove elements from a Range",rQn="user.agent";y.goog=y.goog||{},y.goog.global=y.goog.global||y,EP={},b(1,null,{},xi),o.Fb=function(e){return eTn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return T0(this)},o.Ib=function(){return sd(po(this))+"@"+(wt(this)>>>0).toString(16)},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()},b(297,1,{297:1,2124:1},kY),o.ve=function(e){var t;return(t=new kY).i=4,t.c=e>1?EOn(this,e-1):this,t},o.we=function(){return yl(this),this.b},o.xe=function(){return sd(this)},o.ye=function(){return yl(this),this.k},o.ze=function(){return 0!=(4&this.i)},o.Ae=function(){return 0!=(1&this.i)},o.Ib=function(){return OQ(this)},o.i=0;var h_,pi=w(wc,"Object",1),Aun=w(wc,"Class",297);b(2096,1,Fy),w(xy,"Optional",2096),b(1191,2096,Fy,lc),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Se(e),b6(),h_},w(xy,"Absent",1191),b(636,1,{},GL),w(xy,"Joiner",636);var nNe=Ot(xy,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},I8n),o.Mb=function(e){return Exn(this,e)},o.Lb=function(e){return Exn(this,e)},o.Fb=function(e){var t;return!!L(e,589)&&(t=u(e,589),ven(this.a,t.a))},o.Hb=function(){return TY(this.a)+306654252},o.Ib=function(){return function Kje(n){var e,t,i,r;for(e=ca(Re(new yo("Predicates."),"and"),40),t=!0,r=new u6(n);r.b0},o.Pb=function(){if(this.c>=this.d)throw M(new tc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw M(new tc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0,w(En,"AbstractIndexedListIterator",399),b(713,204,X4),o.Ob=function(){return X$(this)},o.Pb=function(){return MQ(this)},o.e=1,w(En,"AbstractIterator",713),b(2084,1,{229:1}),o.Zb=function(){return this.f||(this.f=this.ac())},o.Fb=function(e){return wF(this,e)},o.Hb=function(){return wt(this.Zb())},o.dc=function(){return 0==this.gc()},o.ec=function(){return Kv(this)},o.Ib=function(){return Jr(this.Zb())},w(En,"AbstractMultimap",2084),b(742,2084,Dd),o.$b=function(){$T(this)},o._b=function(e){return fEn(this,e)},o.ac=function(){return new j3(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new Kg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new Sjn(this)},o.lc=function(){return Cx(this.c.vc().Nc(),new Jl,64,this.d)},o.cc=function(e){return ut(this,e)},o.fc=function(e){return Vk(this,e)},o.gc=function(){return this.d},o.mc=function(e){return On(),new f3(e)},o.nc=function(){return new Ajn(this)},o.oc=function(){return Cx(this.c.Cc().Nc(),new bu,64,this.d)},o.pc=function(e,t){return new dT(this,e,t,null)},o.d=0,w(En,"AbstractMapBasedMultimap",742),b(1696,742,Dd),o.hc=function(){return new Vc(this.a)},o.jc=function(){return On(),On(),Vi},o.cc=function(e){return u(ut(this,e),15)},o.fc=function(e){return u(Vk(this,e),15)},o.Zb=function(){return zv(this)},o.Fb=function(e){return wF(this,e)},o.qc=function(e){return u(ut(this,e),15)},o.rc=function(e){return u(Vk(this,e),15)},o.mc=function(e){return JN(u(e,15))},o.pc=function(e,t){return ILn(this,e,u(t,15),null)},w(En,"AbstractListMultimap",1696),b(748,1,Ti),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(vs(this.a),16).dc()&&this.c.Qb(),--this.d.d},w(En,"AbstractMapBasedMultimap/Itr",748),b(1129,748,Ti,Ajn),o.sc=function(e,t){return t},w(En,"AbstractMapBasedMultimap/1",1129),b(1130,1,{},bu),o.Kb=function(e){return u(e,16).Nc()},w(En,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),b(1131,748,Ti,Sjn),o.sc=function(e,t){return new p0(e,t)},w(En,"AbstractMapBasedMultimap/2",1131);var Sun=Ot(le,"Map");b(2065,1,sb),o.wc=function(e){C5(this,e)},o.yc=function(e,t,i){return NF(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return ux(this,e)},o._b=function(e){return!!wnn(this,e,!1)},o.uc=function(e){var i,r;for(i=this.vc().Kc();i.Ob();)if(r=u(i.Pb(),44).md(),x(e)===x(r)||null!=e&&it(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!L(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return Rr(wnn(this,e,!1))},o.Hb=function(){return gY(this.vc())},o.dc=function(){return 0==this.gc()},o.ec=function(){return new rd(this)},o.zc=function(e,t){throw M(new Zl("Put not supported on this map"))},o.Ac=function(e){E5(this,e)},o.Bc=function(e){return Rr(wnn(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return $Kn(this)},o.Cc=function(){return new vl(this)},w(le,"AbstractMap",2065),b(2085,2065,sb),o.bc=function(){return new dC(this)},o.vc=function(){return TPn(this)},o.ec=function(){return this.g||(this.g=this.bc())},o.Cc=function(){return this.i||(this.i=new ZEn(this))},w(En,"Maps/ViewCachingAbstractMap",2085),b(402,2085,sb,j3),o.xc=function(e){return function c4e(n,e){var t;return(t=u(vw(n.d,e),16))?n.e.pc(e,t):null}(this,e)},o.Bc=function(e){return function S6e(n,e){var t,i;return(t=u(n.d.Bc(e),16))?((i=n.e.hc()).Gc(t),n.e.d-=t.gc(),t.$b(),i):null}(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():jM(new SV(this))},o._b=function(e){return oBn(this.d,e)},o.Ec=function(){return new O8n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||it(this.d,e)},o.Hb=function(){return wt(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return Jr(this.d)},w(En,"AbstractMapBasedMultimap/AsMap",402);var No=Ot(wc,"Iterable");b(31,1,Lw),o.Jc=function(e){_i(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new Pn(this,0)},o.Oc=function(){return new Mn(null,this.Nc())},o.Fc=function(e){throw M(new Zl("Add not supported on this collection"))},o.Gc=function(e){return Fi(this,e)},o.$b=function(){bJ(this)},o.Hc=function(e){return pw(this,e,!1)},o.Ic=function(e){return _k(this,e)},o.dc=function(){return 0==this.gc()},o.Mc=function(e){return pw(this,e,!0)},o.Pc=function(){return BV(this)},o.Qc=function(e){return H5(this,e)},o.Ib=function(){return pa(this)},w(le,"AbstractCollection",31);var As=Ot(le,"Set");b(Gf,31,Fu),o.Nc=function(){return new Pn(this,1)},o.Fb=function(e){return YBn(this,e)},o.Hb=function(){return gY(this)},w(le,"AbstractSet",Gf),b(2068,Gf,Fu),w(En,"Sets/ImprovedAbstractSet",2068),b(2069,2068,Fu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return FBn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return!(!this.Hc(e)||!L(e,44))&&(t=u(e,44),this.Rc().ec().Mc(t.ld()))},o.gc=function(){return this.Rc().gc()},w(En,"Maps/EntrySet",2069),b(1127,2069,Fu,O8n),o.Hc=function(e){return qY(this.a.d.vc(),e)},o.Kc=function(){return new SV(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return!!qY(this.a.d.vc(),e)&&(t=u(vs(u(e,44)),44),Xpe(this.a.e,t.ld()),!0)},o.Nc=function(){return Y7(this.a.d.vc().Nc(),new L8n(this.a))},w(En,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),b(1128,1,{},L8n),o.Kb=function(e){return SDn(this.a,u(e,44))},w(En,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),b(746,1,Ti,SV),o.Nb=function(e){Ri(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),SDn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){O3(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(En,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),b(542,2068,Fu,dC),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Se(e),this.b.wc(new V8n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new w6(this.b.vc().Kc())},o.Mc=function(e){return!!this.b._b(e)&&(this.b.Bc(e),!0)},o.gc=function(){return this.b.gc()},w(En,"Maps/KeySet",542),b(327,542,Fu,Kg),o.$b=function(){jM(new Yz(this,this.b.vc().Kc()))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||it(this.b.ec(),e)},o.Hb=function(){return wt(this.b.ec())},o.Kc=function(){return new Yz(this,this.b.vc().Kc())},o.Mc=function(e){var t,i;return i=0,(t=u(this.b.Bc(e),16))&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()},w(En,"AbstractMapBasedMultimap/KeySet",327),b(747,1,Ti,Yz),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;O3(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(En,"AbstractMapBasedMultimap/KeySet/1",747),b(503,402,{85:1,133:1},G7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new m7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){return this.b||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)},w(En,"AbstractMapBasedMultimap/SortedAsMap",503),b(446,503,xtn,V6),o.bc=function(){return new y3(this.a,u(u(this.d,133),139))},o.Sc=function(){return new y3(this.a,u(u(this.d,133),139))},o.ec=function(){return u(this.b||(this.b=new y3(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){return u(this.b||(this.b=new y3(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new V6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new V6(this.a,u(u(this.d,133),139).ad(e,t))},w(En,"AbstractMapBasedMultimap/NavigableAsMap",446),b(502,327,Lzn,m7),o.Nc=function(){return this.b.ec().Nc()},w(En,"AbstractMapBasedMultimap/SortedKeySet",502),b(401,502,Btn,y3),w(En,"AbstractMapBasedMultimap/NavigableKeySet",401),b(551,31,Lw,dT),o.Fc=function(e){var t,i;return to(this),i=this.d.dc(),(t=this.d.Fc(e))&&(++this.f.d,i&&V7(this)),t},o.Gc=function(e){var t,i,r;return!e.dc()&&(to(this),r=this.d.gc(),(t=this.d.Gc(e))&&(i=this.d.gc(),this.f.d+=i-r,0==r&&V7(this)),t)},o.$b=function(){var e;to(this),0!=(e=this.d.gc())&&(this.d.$b(),this.f.d-=e,SM(this))},o.Hc=function(e){return to(this),this.d.Hc(e)},o.Ic=function(e){return to(this),this.d.Ic(e)},o.Fb=function(e){return e===this||(to(this),it(this.d,e))},o.Hb=function(){return to(this),wt(this.d)},o.Kc=function(){return to(this),new lV(this)},o.Mc=function(e){var t;return to(this),(t=this.d.Mc(e))&&(--this.f.d,SM(this)),t},o.gc=function(){return _Mn(this)},o.Nc=function(){return to(this),this.d.Nc()},o.Ib=function(){return to(this),Jr(this.d)},w(En,"AbstractMapBasedMultimap/WrappedCollection",551);var ss=Ot(le,"List");b(744,551,{20:1,31:1,16:1,15:1},_V),o.jd=function(e){yd(this,e)},o.Nc=function(){return to(this),this.d.Nc()},o.bd=function(e,t){var i;to(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&V7(this)},o.cd=function(e,t){var i,r,c;return!t.dc()&&(to(this),c=this.d.gc(),(i=u(this.d,15).cd(e,t))&&(r=this.d.gc(),this.a.d+=r-c,0==c&&V7(this)),i)},o.Xb=function(e){return to(this),u(this.d,15).Xb(e)},o.dd=function(e){return to(this),u(this.d,15).dd(e)},o.ed=function(){return to(this),new vTn(this)},o.fd=function(e){return to(this),new KIn(this,e)},o.gd=function(e){var t;return to(this),t=u(this.d,15).gd(e),--this.a.d,SM(this),t},o.hd=function(e,t){return to(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return to(this),ILn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)},w(En,"AbstractMapBasedMultimap/WrappedList",744),b(1126,744,{20:1,31:1,16:1,15:1,59:1},uAn),w(En,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),b(628,1,Ti,lV),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return H3(this),this.b.Ob()},o.Pb=function(){return H3(this),this.b.Pb()},o.Qb=function(){UTn(this)},w(En,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),b(745,628,Jh,vTn,KIn),o.Qb=function(){UTn(this)},o.Rb=function(e){var t;t=0==_Mn(this.a),(H3(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&V7(this.a)},o.Sb=function(){return(H3(this),u(this.b,128)).Sb()},o.Tb=function(){return(H3(this),u(this.b,128)).Tb()},o.Ub=function(){return(H3(this),u(this.b,128)).Ub()},o.Vb=function(){return(H3(this),u(this.b,128)).Vb()},o.Wb=function(e){(H3(this),u(this.b,128)).Wb(e)},w(En,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),b(743,551,Lzn,IW),o.Nc=function(){return to(this),this.d.Nc()},w(En,"AbstractMapBasedMultimap/WrappedSortedSet",743),b(1125,743,Btn,aTn),w(En,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),b(1124,551,Fu,AAn),o.Nc=function(){return to(this),this.d.Nc()},w(En,"AbstractMapBasedMultimap/WrappedSet",1124),b(1133,1,{},Jl),o.Kb=function(e){return function i3e(n){var e;return e=n.ld(),Y7(u(n.md(),16).Nc(),new F8n(e))}(u(e,44))},w(En,"AbstractMapBasedMultimap/lambda$1$Type",1133),b(1132,1,{},F8n),o.Kb=function(e){return new p0(this.a,e)},w(En,"AbstractMapBasedMultimap/lambda$2$Type",1132);var l_,a_,d_,sQn,Ud=Ot(le,"Map/Entry");b(358,1,TB),o.Fb=function(e){var t;return!!L(e,44)&&(t=u(e,44),bh(this.ld(),t.ld())&&bh(this.md(),t.md()))},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(null==e?0:wt(e))^(null==t?0:wt(t))},o.nd=function(e){throw M(new Pe)},o.Ib=function(){return this.ld()+"="+this.md()},w(En,Dzn,358),b(2086,31,Lw),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return!!L(e,44)&&(t=u(e,44),function Cve(n,e,t){var i;return!!(i=u(n.Zb().xc(e),16))&&i.Hc(t)}(this.od(),t.ld(),t.md()))},o.Mc=function(e){var t;return!!L(e,44)&&(t=u(e,44),lLn(this.od(),t.ld(),t.md()))},o.gc=function(){return this.od().d},w(En,"Multimaps/Entries",2086),b(749,2086,Lw,OG),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()},w(En,"AbstractMultimap/Entries",749),b(750,749,Fu,Pz),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return $nn(this,e)},o.Hb=function(){return jFn(this)},w(En,"AbstractMultimap/EntrySet",750),b(751,31,Lw,LG),o.$b=function(){this.a.$b()},o.Hc=function(e){return function j6e(n,e){var i;for(i=n.Zb().Cc().Kc();i.Ob();)if(u(i.Pb(),16).Hc(e))return!0;return!1}(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()},w(En,"AbstractMultimap/Values",751),b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Se(e),Hg(this).Jc(new e9n(e))},o.Nc=function(){var e;return Cx(e=Hg(this).Nc(),new QO,64|1296&e.yd(),this.a.d)},o.Fc=function(e){return xz(),!0},o.Gc=function(e){return Se(this),Se(e),L(e,552)?Ave(u(e,849)):!e.dc()&&B$(this,e.Kc())},o.Hc=function(e){var t;return((t=u(vw(zv(this.a),e),16))?t.gc():0)>0},o.Fb=function(e){return function VCe(n,e){var t,i,r;if(e===n)return!0;if(L(e,552)){if(r=u(e,849),n.a.d!=r.a.d||Hg(n).gc()!=Hg(r).gc())return!1;for(i=Hg(r).Kc();i.Ob();)if(BOn(n,(t=u(i.Pb(),425)).a.ld())!=u(t.a.md(),16).gc())return!1;return!0}return!1}(this,e)},o.Hb=function(){return wt(Hg(this))},o.dc=function(){return Hg(this).dc()},o.Mc=function(e){return W_n(this,e,1)>0},o.Ib=function(){return Jr(Hg(this))},w(En,"AbstractMultiset",2087),b(2089,2068,Fu),o.$b=function(){$T(this.a.a)},o.Hc=function(e){var i;return!(!L(e,504)||(i=u(e,425),u(i.a.md(),16).gc()<=0||BOn(this.a,i.a.ld())!=u(i.a.md(),16).gc()))},o.Mc=function(e){var t,i,r;return!(!L(e,504)||(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),0==r))&&function REe(n,e,t){var i,c,s;return Ao(t,"oldCount"),Ao(0,"newCount"),((i=u(vw(zv(n.a),e),16))?i.gc():0)==t&&(Ao(0,"count"),(s=-((c=u(vw(zv(n.a),e),16))?c.gc():0))>0?xz():s<0&&W_n(n,e,-s),!0)}(this.a,t,r)},w(En,"Multisets/EntrySet",2089),b(1139,2089,Fu,x8n),o.Kc=function(){return new Djn(TPn(zv(this.a.a)).Kc())},o.gc=function(){return zv(this.a.a).gc()},w(En,"AbstractMultiset/EntrySet",1139),b(627,742,Dd),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){return this.f||(this.f=this.ac())},o.qd=function(){return On(),On(),PP},o.Fb=function(e){return wF(this,e)},o.rd=function(e){return u(ut(this,e),21)},o.sd=function(e){return u(Vk(this,e),21)},o.mc=function(e){return On(),new g3(u(e,21))},o.pc=function(e,t){return new AAn(this,e,u(t,21))},w(En,"AbstractSetMultimap",627),b(1723,627,Dd),o.hc=function(){return new i1(this.b)},o.pd=function(){return new i1(this.b)},o.jc=function(){return sJ(new i1(this.b))},o.qd=function(){return sJ(new i1(this.b))},o.cc=function(e){return u(u(ut(this,e),21),87)},o.rd=function(e){return u(u(ut(this,e),21),87)},o.fc=function(e){return u(u(Vk(this,e),21),87)},o.sd=function(e){return u(u(Vk(this,e),21),87)},o.mc=function(e){return L(e,277)?sJ(u(e,277)):(On(),new wW(u(e,87)))},o.Zb=function(){return this.f||(this.f=L(this.c,139)?new V6(this,u(this.c,139)):L(this.c,133)?new G7(this,u(this.c,133)):new j3(this,this.c))},o.pc=function(e,t){return L(t,277)?new aTn(this,e,u(t,277)):new IW(this,e,u(t,87))},w(En,"AbstractSortedSetMultimap",1723),b(1724,1723,Dd),o.Zb=function(){return u(u(this.f||(this.f=L(this.c,139)?new V6(this,u(this.c,139)):L(this.c,133)?new G7(this,u(this.c,133)):new j3(this,this.c)),133),139)},o.ec=function(){return u(u(this.i||(this.i=L(this.c,139)?new y3(this,u(this.c,139)):L(this.c,133)?new m7(this,u(this.c,133)):new Kg(this,this.c)),87),277)},o.bc=function(){return L(this.c,139)?new y3(this,u(this.c,139)):L(this.c,133)?new m7(this,u(this.c,133)):new Kg(this,this.c)},w(En,"AbstractSortedKeySortedSetMultimap",1724),b(2109,1,{2046:1}),o.Fb=function(e){return function kke(n,e){var r;return e===n||!!L(e,678)&&(r=u(e,2046),YBn(n.g||(n.g=new gL(n)),r.g||(r.g=new gL(r))))}(this,e)},o.Hb=function(){return gY(this.g||(this.g=new gL(this)))},o.Ib=function(){return $Kn(this.f||(this.f=new lW(this)))},w(En,"AbstractTable",2109),b(679,Gf,Fu,gL),o.$b=function(){Gjn()},o.Hc=function(e){var t,i;return!!L(e,479)&&(t=u(e,697),!!(i=u(vw(JPn(this.a),na(t.c.e,t.b)),85))&&qY(i.vc(),new p0(na(t.c.c,t.a),Zv(t.c,t.b,t.a))))},o.Kc=function(){return function Cge(n){return new GTn(n,n.e.Rd().gc()*n.c.Rd().gc())}(this.a)},o.Mc=function(e){var t,i;return!!L(e,479)&&(t=u(e,697),!!(i=u(vw(JPn(this.a),na(t.c.e,t.b)),85))&&function e5e(n,e){Se(n);try{return n.Mc(e)}catch(t){if(L(t=At(t),212)||L(t,169))return!1;throw M(t)}}(i.vc(),new p0(na(t.c.c,t.a),Zv(t.c,t.b,t.a))))},o.gc=function(){return ZSn(this.a)},o.Nc=function(){return function Ive(n){return vN(n.e.Rd().gc()*n.c.Rd().gc(),273,new D8n(n))}(this.a)},w(En,"AbstractTable/CellSet",679),b(2025,31,Lw,R8n),o.$b=function(){Gjn()},o.Hc=function(e){return function aye(n,e){var t,i,r,c,f,h,l;for(h=0,l=(f=n.a).length;h=0?"+":"")+(i/60|0),t=JC(y.Math.abs(i)%60),(XKn(),AQn)[this.q.getDay()]+" "+SQn[this.q.getMonth()]+" "+JC(this.q.getDate())+" "+JC(this.q.getHours())+":"+JC(this.q.getMinutes())+":"+JC(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var wQn,gQn,vQn,m_,Sa,Dun,pQn,Nun,$un,TP=w(le,"Date",206);b(2015,206,Gzn,gKn),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",2015),b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null},w(kp,"JSONValue",2064),b(221,2064,{221:1},td,NG),o.Fb=function(e){return!!L(e,221)&&LJ(this.a,u(e,221).a)},o.oe=function(){return Pfe},o.Hb=function(){return yJ(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new yo("["),t=0,e=this.a.length;t0&&(i.a+=","),Fc(i,lw(this,t));return i.a+="]",i.a},w(kp,"JSONArray",221),b(493,2064,{493:1},$G),o.oe=function(){return Ife},o.qe=function(){return this},o.Ib=function(){return Kn(),""+this.a},o.a=!1,w(kp,"JSONBoolean",493),b(997,63,Rl,Njn),w(kp,"JSONException",997),b(1036,2064,{},tL),o.oe=function(){return Ofe},o.Ib=function(){return yu},w(kp,"JSONNull",1036),b(263,2064,{263:1},zE),o.Fb=function(e){return!!L(e,263)&&this.a==u(e,263).a},o.oe=function(){return Afe},o.Hb=function(){return Ov(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0,w(kp,"JSONNumber",263),b(190,2064,{190:1},jv,s7),o.Fb=function(e){return!!L(e,190)&&LJ(this.a,u(e,190).a)},o.oe=function(){return Sfe},o.Hb=function(){return yJ(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,f;for(f=new yo("{"),e=!0,r=0,c=(i=Y$(this,K(fn,J,2,0,6,1))).length;r=0?":"+this.c:"")+")"},o.c=0;var Gun=w(wc,"StackTraceElement",319);oQn={3:1,484:1,34:1,2:1};var yQn,fn=w(wc,Ktn,2);b(111,427,{484:1},e1,p6,gs),w(wc,"StringBuffer",111),b(104,427,{484:1},V1,Cg,yo),w(wc,"StringBuilder",104),b(702,77,QB,Bz),w(wc,"StringIndexOutOfBoundsException",702),b(2145,1,{}),b(48,63,{3:1,103:1,63:1,82:1,48:1},Pe,Zl),w(wc,"UnsupportedOperationException",48),b(247,242,{3:1,34:1,242:1,247:1},Yk,Vz),o.Fd=function(e){return KUn(this,u(e,247))},o.ue=function(){return Ew(bGn(this))},o.Fb=function(e){var t;return this===e||!!L(e,247)&&(t=u(e,247),this.e==t.e&&0==KUn(this,t))},o.Hb=function(){var e;return 0!=this.b?this.b:this.a<54?(e=Ec(this.f),this.b=Ae(vi(e,-1)),this.b=33*this.b+Ae(vi(I0(e,32),-1)),this.b=17*this.b+di(this.e),this.b):(this.b=17*Zxn(this.c)+di(this.e),this.b)},o.Ib=function(){return bGn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var jQn,Gd,zun,Xun,Wun,Vun,Jun,Qun,y_=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},Tl,GOn,dd,nRn,ea),o.Fd=function(e){return JBn(this,u(e,92))},o.ue=function(){return Ew(EB(this,0))},o.Fb=function(e){return fZ(this,e)},o.Hb=function(){return Zxn(this)},o.Ib=function(){return EB(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var EQn,AP,CQn,j_,SP,G8,MQn,TQn,Lp,z8,T2=w("java.math","BigInteger",92);b(498,2065,sb),o.$b=function(){qu(this)},o._b=function(e){return tu(this,e)},o.uc=function(e){return Nxn(this,e,this.i)||Nxn(this,e,this.f)},o.vc=function(){return new cd(this)},o.xc=function(e){return ee(this,e)},o.zc=function(e,t){return Xe(this,e,t)},o.Bc=function(e){return Yv(this,e)},o.gc=function(){return k6(this)},o.g=0,w(le,"AbstractHashMap",498),b(267,Gf,Fu,cd),o.$b=function(){this.a.$b()},o.Hc=function(e){return yLn(this,e)},o.Kc=function(){return new Ed(this.a)},o.Mc=function(e){var t;return!!yLn(this,e)&&(t=u(e,44).ld(),this.a.Bc(t),!0)},o.gc=function(){return this.a.gc()},w(le,"AbstractHashMap/EntrySet",267),b(268,1,Ti,Ed),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return W0(this)},o.Ob=function(){return this.b},o.Qb=function(){JNn(this)},o.b=!1,o.d=0,w(le,"AbstractHashMap/EntrySetIterator",268),b(426,1,Ti,u6),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return tD(this)},o.Pb=function(){return gJ(this)},o.Qb=function(){vo(this)},o.b=0,o.c=-1,w(le,"AbstractList/IteratorImpl",426),b(98,426,Jh,Ni),o.Qb=function(){vo(this)},o.Rb=function(e){nw(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return oe(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){Yb(-1!=this.c),this.a.hd(this.c,e)},w(le,"AbstractList/ListIteratorImpl",98),b(244,56,Q4,f1),o.bd=function(e,t){ow(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return Ln(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return Ln(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return Ln(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0,w(le,"AbstractList/SubList",244),b(266,Gf,Fu,rd),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return new WE(this.a.vc().Kc())},o.Mc=function(e){return!!this.a._b(e)&&(this.a.Bc(e),!0)},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/1",266),b(541,1,Ti,WE),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).ld()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/1/1",541),b(231,31,Lw,vl),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){return new qb(this.a.vc().Kc())},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/2",231),b(301,1,Ti,qb),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).md()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/2/1",301),b(494,1,{494:1,44:1}),o.Fb=function(e){var t;return!!L(e,44)&&(t=u(e,44),jc(this.d,t.ld())&&jc(this.e,t.md()))},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return Fg(this.d)^Fg(this.e)},o.nd=function(e){return xW(this,e)},o.Ib=function(){return this.d+"="+this.e},w(le,"AbstractMap/AbstractEntry",494),b(397,494,{494:1,397:1,44:1},TC),w(le,"AbstractMap/SimpleEntry",397),b(2082,1,nR),o.Fb=function(e){var t;return!!L(e,44)&&(t=u(e,44),jc(this.ld(),t.ld())&&jc(this.md(),t.md()))},o.Hb=function(){return Fg(this.ld())^Fg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()},w(le,Dzn,2082),b(2090,2065,xtn),o.Xc=function(e){return VL(this.Ee(e))},o.tc=function(e){return ADn(this,e)},o._b=function(e){return BW(this,e)},o.vc=function(){return new EL(this)},o.Tc=function(){return _Pn(this.Ge())},o.Yc=function(e){return VL(this.He(e))},o.xc=function(e){return Rr(this.Fe(e))},o.$c=function(e){return VL(this.Ie(e))},o.ec=function(){return new h9n(this)},o.Vc=function(){return _Pn(this.Je())},o._c=function(e){return VL(this.Ke(e))},w(le,"AbstractNavigableMap",2090),b(629,Gf,Fu,EL),o.Hc=function(e){return L(e,44)&&ADn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return!!L(e,44)&&(t=u(e,44),this.b.Le(t))},o.gc=function(){return this.b.gc()},w(le,"AbstractNavigableMap/EntrySet",629),b(1146,Gf,Btn,h9n),o.Nc=function(){return new CC(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return BW(this.a,e)},o.Kc=function(){return new l9n(this.a.vc().b.De())},o.Mc=function(e){return!!BW(this.a,e)&&(this.a.Bc(e),!0)},o.gc=function(){return this.a.gc()},w(le,"AbstractNavigableMap/NavigableKeySet",1146),b(1147,1,Ti,l9n),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return tD(this.a.a)},o.Pb=function(){return hAn(this.a).ld()},o.Qb=function(){gSn(this.a)},w(le,"AbstractNavigableMap/NavigableKeySet/1",1147),b(2103,31,Lw),o.Fc=function(e){return Rv(D4(this,e),Z4),!0},o.Gc=function(e){return Jn(e),nk(e!=this,"Can't add a queue to itself"),Fi(this,e)},o.$b=function(){for(;null!=R$(this););},w(le,"AbstractQueue",2103),b(310,31,{4:1,20:1,31:1,16:1},Rg,gLn),o.Fc=function(e){return HJ(this,e),!0},o.$b=function(){WJ(this)},o.Hc=function(e){return txn(new f5(this),e)},o.dc=function(){return v6(this)},o.Kc=function(){return new f5(this)},o.Mc=function(e){return function a2e(n,e){return!!txn(n,e)&&(Y$n(n),!0)}(new f5(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new Pn(this,272)},o.Qc=function(e){var t;return e.length<(t=this.c-this.b&this.a.length-1)&&(e=sC(new Array(t),e)),wFn(this,e,t),e.length>t&&Dt(e,t,null),e},o.b=0,o.c=0,w(le,"ArrayDeque",310),b(459,1,Ti,f5),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return eA(this)},o.Qb=function(){Y$n(this)},o.a=0,o.b=0,o.c=-1,w(le,"ArrayDeque/IteratorImpl",459),b(13,56,Wzn,Z,Vc,Hu),o.bd=function(e,t){P0(this,e,t)},o.Fc=function(e){return nn(this,e)},o.cd=function(e,t){return $Y(this,e,t)},o.Gc=function(e){return si(this,e)},o.$b=function(){Ub(this.c,0)},o.Hc=function(e){return-1!=Hr(this,e,0)},o.Jc=function(e){iu(this,e)},o.Xb=function(e){return sn(this,e)},o.dd=function(e){return Hr(this,e,0)},o.dc=function(){return 0==this.c.length},o.Kc=function(){return new C(this)},o.gd=function(e){return l1(this,e)},o.Mc=function(e){return pu(this,e)},o.ce=function(e,t){ROn(this,e,t)},o.hd=function(e,t){return Vo(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){Jt(this,e)},o.Pc=function(){return pM(this.c)},o.Qc=function(e){return Hf(this,e)};var Vi,il,PP,ym,Yun,E_,Zun,AQn,SQn,eNe=w(le,"ArrayList",13);b(7,1,Ti,C),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return rc(this)},o.Pb=function(){return E(this)},o.Qb=function(){r5(this)},o.a=0,o.b=-1,w(le,"ArrayList/1",7),b(2112,y.Function,{},Gt),o.Me=function(e,t){return at(e,t)},b(151,56,Vzn,_u),o.Hc=function(e){return-1!=Z$n(this,e)},o.Jc=function(e){var i,r,c;for(Jn(e),r=0,c=(i=this.a).length;r0)throw M(new Un(Wtn+e+" greater than "+this.e));return this.f.Te()?sOn(this.c,this.b,this.a,e,t):KOn(this.c,e,t)},o.zc=function(e,t){if(!dx(this.c,this.f,e,this.b,this.a,this.e,this.d))throw M(new Un(e+" outside the range "+this.b+" to "+this.e));return mxn(this.c,e,t)},o.Bc=function(e){var t;return dx(this.c,this.f,t=e,this.b,this.a,this.e,this.d)?fOn(this.c,t):null},o.Le=function(e){return BM(this,e.ld())&&dQ(this.c,e)},o.gc=function(){var e,t,i;if(!((t=this.f.Te()?T4(this.c,this.b,!!this.a):EQ(this.c))&&BM(this,t.d)&&t))return 0;for(e=0,i=new Z$(this.c,this.f,this.b,this.a,this.e,this.d);tD(i.a);i.b=u(gJ(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw M(new Un(Wtn+e+Yzn+this.b));return this.f.Ue()?sOn(this.c,e,t,this.e,this.d):_On(this.c,e,t)},o.a=!1,o.d=!1,w(le,"TreeMap/SubMap",631),b(304,22,rR,MC),o.Te=function(){return!1},o.Ue=function(){return!1};var M_,T_,A_,S_,NQn,IP=we(le,"TreeMap/SubMapType",304,ke,function Rve(){return J3(),S(T(IP,1),G,304,0,[M_,T_,A_,S_])},function Vae(n){return J3(),Ee((CNn(),NQn),n)});b(1143,304,rR,bTn),o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/1",1143,IP,null,null),b(1144,304,rR,ETn),o.Te=function(){return!0},o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/2",1144,IP,null,null),b(1145,304,rR,dTn),o.Te=function(){return!0},we(le,"TreeMap/SubMapType/3",1145,IP,null,null),b(157,Gf,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},dz,i1,h3),o.Nc=function(){return new CC(this)},o.Fc=function(e){return ik(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return XD(this,e)},o.gc=function(){return this.a.gc()};var oNe=w(le,"TreeSet",157);b(1082,1,{},w9n),o.Ve=function(e,t){return function aae(n,e,t){return n.Ne(e,t)<=0?t:e}(this.a,e,t)},w(cR,"BinaryOperator/lambda$0$Type",1082),b(1083,1,{},g9n),o.Ve=function(e,t){return function dae(n,e,t){return n.Ne(e,t)<=0?e:t}(this.a,e,t)},w(cR,"BinaryOperator/lambda$1$Type",1083),b(952,1,{},bs),o.Kb=function(e){return e},w(cR,"Function/lambda$0$Type",952),b(395,1,Le,l3),o.Mb=function(e){return!this.a.Mb(e)},w(cR,"Predicate/lambda$2$Type",395),b(581,1,{581:1});var ron,P_,$Qn=w(w8,"Handler",581);b(2107,1,Fy),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()},w(w8,"Level",2107),b(1706,2107,Fy,W1),o.xe=function(){return"INFO"},w(w8,"Level/LevelInfo",1706),b(1843,1,{},Hyn),w(w8,"LogManager",1843),b(1896,1,Fy,wSn),o.b=null,w(w8,"LogRecord",1896),b(525,1,{525:1},p$),o.e=!1;var FQn=!1,xQn=!1,Vf=!1,BQn=!1,RQn=!1;w(w8,"Logger",525),b(835,581,{581:1},Ql),w(w8,"SimpleConsoleLogHandler",835),b(108,22,{3:1,34:1,22:1,108:1},cD);var con,Yr,Hw,KQn,Dr=we(hi,"Collector/Characteristics",108,ke,function T2e(){return zu(),S(T(Dr,1),G,108,0,[con,Yr,Hw])},function Jae(n){return zu(),Ee((bNn(),KQn),n)});b(758,1,{},VV),w(hi,"CollectorImpl",758),b(1074,1,{},wu),o.Ve=function(e,t){return function u5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Re(n.a,n.b):n.a=new yo(n.d),wLn(n.a,e.a,e.d.length,t)),n}(u(e,213),u(t,213))},w(hi,"Collectors/10methodref$merge$Type",1074),b(1075,1,{},dv),o.Kb=function(e){return vLn(u(e,213))},w(hi,"Collectors/11methodref$toString$Type",1075),b(1076,1,{},v9n),o.Kb=function(e){return Kn(),!!qX(e)},w(hi,"Collectors/12methodref$test$Type",1076),b(144,1,{},Br),o.Yd=function(e,t){u(e,16).Fc(t)},w(hi,"Collectors/20methodref$add$Type",144),b(146,1,{},yc),o.Xe=function(){return new Z},w(hi,"Collectors/21methodref$ctor$Type",146),b(359,1,{},Rh),o.Xe=function(){return new Yt},w(hi,"Collectors/23methodref$ctor$Type",359),b(360,1,{},Fs),o.Yd=function(e,t){oi(u(e,49),t)},w(hi,"Collectors/24methodref$add$Type",360),b(1069,1,{},Yl),o.Ve=function(e,t){return sCn(u(e,15),u(t,16))},w(hi,"Collectors/4methodref$addAll$Type",1069),b(1073,1,{},xE),o.Yd=function(e,t){Al(u(e,213),u(t,484))},w(hi,"Collectors/9methodref$add$Type",1073),b(1072,1,{},LSn),o.Xe=function(){return new Cd(this.a,this.b,this.c)},w(hi,"Collectors/lambda$15$Type",1072),b(1077,1,{},U0n),o.Xe=function(){var e;return y1(e=new h1,(Kn(),!1),new Z),y1(e,!0,new Z),e},w(hi,"Collectors/lambda$22$Type",1077),b(1078,1,{},p9n),o.Xe=function(){return S(T(pi,1),xn,1,5,[this.a])},w(hi,"Collectors/lambda$25$Type",1078),b(1079,1,{},m9n),o.Yd=function(e,t){!function Lbe(n,e){return Dt(e,0,PV(e[0],$l(1)))}(0,kd(e))},w(hi,"Collectors/lambda$26$Type",1079),b(1080,1,{},k9n),o.Ve=function(e,t){return function uwe(n,e,t){return Dt(e,0,PV(e[0],t[0])),e}(0,kd(e),kd(t))},w(hi,"Collectors/lambda$27$Type",1080),b(1081,1,{},G0n),o.Kb=function(e){return kd(e)[0]},w(hi,"Collectors/lambda$28$Type",1081),b(728,1,{},oG),o.Ve=function(e,t){return PV(e,t)},w(hi,"Collectors/lambda$4$Type",728),b(145,1,{},Tu),o.Ve=function(e,t){return function _he(n,e){return n.Gc(e),n}(u(e,16),u(t,16))},w(hi,"Collectors/lambda$42$Type",145),b(361,1,{},bv),o.Ve=function(e,t){return function Hhe(n,e){return Fi(n,e),n}(u(e,49),u(t,49))},w(hi,"Collectors/lambda$50$Type",361),b(362,1,{},wv),o.Kb=function(e){return u(e,49)},w(hi,"Collectors/lambda$51$Type",362),b(1068,1,{},y9n),o.Yd=function(e,t){!function a6e(n,e,t){var i,r;Kn(),i=!!qX(t),(r=u(e.xc(i),15))||(r=new Z,e.zc(i,r)),r.Fc(t)}(0,u(e,85),t)},w(hi,"Collectors/lambda$7$Type",1068),b(1070,1,{},z0n),o.Ve=function(e,t){return function Hme(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),44),n.yc(i.ld(),i.md(),t);return n}(u(e,85),u(t,85),new Yl)},w(hi,"Collectors/lambda$8$Type",1070),b(1071,1,{},j9n),o.Kb=function(e){return function R5e(n,e){var t,i,r;for(r=new de,i=e.vc().Kc();i.Ob();)Xe(r,(t=u(i.Pb(),44)).ld(),Eme(n,u(t.md(),15)));return r}(this.a,u(e,85))},w(hi,"Collectors/lambda$9$Type",1071),b(550,1,{}),o.$e=function(){s5(this)},o.d=!1,w(hi,"TerminatableStream",550),b(827,550,Vtn,SW),o.$e=function(){s5(this)},w(hi,"DoubleStreamImpl",827),b(1847,736,Lo,DSn),o.Re=function(e){return function H9e(n,e){var t;return n.a||(t=K(Ai,Mr,28,0,15,1),Tg(n.b.a,new E9n(t)),Lyn(t,D$n(Gt.prototype.Me,Gt,[])),n.a=new hSn(t,n.d)),bT(n.a,e)}(this,u(e,189))},o.a=null,w(hi,"DoubleStreamImpl/2",1847),b(1848,1,Gy,E9n),o.Pe=function(e){!function $le(n,e){return n[n.length]=e}(this.a,e)},w(hi,"DoubleStreamImpl/2/lambda$0$Type",1848),b(1845,1,Gy,C9n),o.Pe=function(e){!function Nle(n,e){return n[n.length]=e}(this.a,e)},w(hi,"DoubleStreamImpl/lambda$0$Type",1845),b(1846,1,Gy,M9n),o.Pe=function(e){DBn(this.a,e)},w(hi,"DoubleStreamImpl/lambda$2$Type",1846),b(1397,735,Lo,jDn),o.Re=function(e){return function Sve(n,e){return n.a<=n.b&&(e.Dd(n.a++),!0)}(this,u(e,202))},o.a=0,o.b=0,o.c=0,w(hi,"IntStream/5",1397),b(806,550,Vtn,PW),o.$e=function(){s5(this)},o._e=function(){return ua(this),this.a},w(hi,"IntStreamImpl",806),b(807,550,Vtn,nX),o.$e=function(){s5(this)},o._e=function(){return ua(this),hW(),DQn},w(hi,"IntStreamImpl/Empty",807),b(1687,1,By,T9n),o.Dd=function(e){qFn(this.a,e)},w(hi,"IntStreamImpl/lambda$4$Type",1687);var Dp,sNe=Ot(hi,"Stream");b(26,550,{533:1,687:1,848:1},Mn),o.$e=function(){s5(this)},w(hi,"StreamImpl",26),b(1102,500,Lo,oSn),o.Bd=function(e){for(;O3e(this);){if(this.a.Bd(e))return!0;s5(this.b),this.b=null,this.a=null}return!1},w(hi,"StreamImpl/1",1102),b(1103,1,re,A9n),o.Cd=function(e){!function rbe(n,e){e&&(n.b=e,n.a=(ua(e),e.a))}(this.a,u(e,848))},w(hi,"StreamImpl/1/lambda$0$Type",1103),b(1104,1,Le,S9n),o.Mb=function(e){return oi(this.a,e)},w(hi,"StreamImpl/1methodref$add$Type",1104),b(1105,500,Lo,_In),o.Bd=function(e){var t;return this.a||(t=new Z,this.b.a.Nb(new P9n(t)),On(),Jt(t,this.c),this.a=new Pn(t,16)),C$n(this.a,e)},o.a=null,w(hi,"StreamImpl/5",1105),b(1106,1,re,P9n),o.Cd=function(e){nn(this.a,e)},w(hi,"StreamImpl/5/2methodref$add$Type",1106),b(737,500,Lo,CQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new MCn(this,e)););return this.b},o.b=!1,w(hi,"StreamImpl/FilterSpliterator",737),b(1096,1,re,MCn),o.Cd=function(e){!function nwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}(this.a,this.b,e)},w(hi,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),b(1091,736,Lo,DDn),o.Re=function(e){return function Nae(n,e){return n.b.Bd(new TCn(n,e))}(this,u(e,189))},w(hi,"StreamImpl/MapToDoubleSpliterator",1091),b(1095,1,re,TCn),o.Cd=function(e){!function rle(n,e,t){e.Pe(n.a.Ye(t))}(this.a,this.b,e)},w(hi,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),b(1090,735,Lo,NDn),o.Re=function(e){return function $ae(n,e){return n.b.Bd(new ACn(n,e))}(this,u(e,202))},w(hi,"StreamImpl/MapToIntSpliterator",1090),b(1094,1,re,ACn),o.Cd=function(e){!function cle(n,e,t){e.Dd(n.a.Ze(t))}(this.a,this.b,e)},w(hi,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),b(734,500,Lo,fQ),o.Bd=function(e){return rSn(this,e)},w(hi,"StreamImpl/MapToObjSpliterator",734),b(1093,1,re,SCn),o.Cd=function(e){!function ule(n,e,t){e.Cd(n.a.Kb(t))}(this.a,this.b,e)},w(hi,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),b(1092,500,Lo,fFn),o.Bd=function(e){for(;iD(this.b,0);){if(!this.a.Bd(new X0n))return!1;this.b=ms(this.b,1)}return this.a.Bd(e)},o.b=0,w(hi,"StreamImpl/SkipSpliterator",1092),b(1097,1,re,X0n),o.Cd=function(e){},w(hi,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),b(626,1,re,iL),o.Cd=function(e){c9n(this,e)},w(hi,"StreamImpl/ValueConsumer",626),b(1098,1,re,W0n),o.Cd=function(e){fd()},w(hi,"StreamImpl/lambda$0$Type",1098),b(1099,1,re,V0n),o.Cd=function(e){fd()},w(hi,"StreamImpl/lambda$1$Type",1099),b(1100,1,{},I9n),o.Ve=function(e,t){return function dde(n,e,t){return fd(),n.a.Yd(e,t),e}(this.a,e,t)},w(hi,"StreamImpl/lambda$4$Type",1100),b(1101,1,re,PCn),o.Cd=function(e){!function mae(n,e,t){fd(),c9n(n,e.Ve(n.a,t))}(this.b,this.a,e)},w(hi,"StreamImpl/lambda$5$Type",1101),b(1107,1,re,O9n),o.Cd=function(e){!function Ime(n,e){try{e.de()}catch(i){if(!L(i=At(i),82))throw M(i);Rn(n.c,i)}}(this.a,u(e,380))},w(hi,"TerminatableStream/lambda$0$Type",1107),b(2142,1,{}),b(2014,1,{},J0n),w("javaemul.internal","ConsoleLogger",2014);var fNe=0;b(2134,1,{}),b(1830,1,re,Q0n),o.Cd=function(e){u(e,317)},w(nm,"BowyerWatsonTriangulation/lambda$0$Type",1830),b(1831,1,re,L9n),o.Cd=function(e){Fi(this.a,u(e,317).e)},w(nm,"BowyerWatsonTriangulation/lambda$1$Type",1831),b(1832,1,re,Y0n),o.Cd=function(e){u(e,177)},w(nm,"BowyerWatsonTriangulation/lambda$2$Type",1832),b(1827,1,Ne,D9n),o.Ne=function(e,t){return function dpe(n,e,t){return TN(R(Rr(br(n.f,e))),R(Rr(br(n.f,t))))}(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(nm,"NaiveMinST/lambda$0$Type",1827),b(449,1,{},o6),w(nm,"NodeMicroLayout",449),b(177,1,{177:1},Sv),o.Fb=function(e){var t;return!!L(e,177)&&(t=u(e,177),jc(this.a,t.a)&&jc(this.b,t.b)||jc(this.a,t.b)&&jc(this.b,t.a))},o.Hb=function(){return Fg(this.a)+Fg(this.b)};var hNe=w(nm,"TEdge",177);b(317,1,{317:1},ftn),o.Fb=function(e){var t;return!!L(e,317)&&yT(this,(t=u(e,317)).a)&&yT(this,t.b)&&yT(this,t.c)},o.Hb=function(){return Fg(this.a)+Fg(this.b)+Fg(this.c)},w(nm,"TTriangle",317),b(225,1,{225:1},YC),w(nm,"Tree",225),b(1218,1,{},TOn),w(eXn,"Scanline",1218);var _Qn=Ot(eXn,tXn);b(1758,1,{},y$n),w(nl,"CGraph",1758),b(316,1,{316:1},POn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=fi,w(nl,"CGroup",316),b(830,1,{},gz),w(nl,"CGroup/CGroupBuilder",830),b(60,1,{60:1},_An),o.Ib=function(){return this.j?Oe(this.j.Kb(this)):(yl(OP),OP.o+"@"+(T0(this)>>>0).toString(16))},o.f=0,o.i=fi;var HQn,OP=w(nl,"CNode",60);b(829,1,{},vz),w(nl,"CNode/CNodeBuilder",829),b(1590,1,{},Z0n),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0},w(nl,rXn,1590),b(1853,1,{},nbn),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j;for(a=Mt,r=new C(e.a.b);r.ar.d.c||r.d.c==s.d.c&&r.d.b0?e+this.n.d+this.n.a:0},o.kf=function(){var t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=oZ(this,wx(this,null,!0));else for(yf(),i=0,r=(t=S(T(qw,1),G,237,0,[vc,Zc,pc])).length;i0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=wx(this,null,!1),yf(),r=0,c=(i=S(T(qw,1),G,237,0,[vc,Zc,pc])).length;r0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),cQ(this,Zc,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var N_=0,LP=0;w($d,"GridContainerCell",1538),b(471,22,{3:1,34:1,22:1,471:1},oD);var Ia,Oh,Ys,ZQn,YQn=we($d,"HorizontalLabelAlignment",471,ke,function S2e(){return Gu(),S(T(YQn,1),G,471,0,[Oh,Ia,Ys])},function ede(n){return Gu(),Ee((lNn(),ZQn),n)});b(314,217,{217:1,314:1},aOn,E$n,cOn),o.jf=function(){return zSn(this)},o.kf=function(){return EV(this)},o.a=0,o.c=!1;var lNe=w($d,"LabelCell",314);b(252,336,{217:1,336:1,252:1},B5),o.jf=function(){return W5(this)},o.kf=function(){return V5(this)},o.lf=function(){iB(this)},o.mf=function(){rB(this)},o.b=0,o.c=0,o.d=!1,w($d,"StripContainerCell",252),b(1691,1,Le,obn),o.Mb=function(e){return function ehe(n){return!!n&&n.k}(u(e,217))},w($d,"StripContainerCell/lambda$0$Type",1691),b(1692,1,{},sbn),o.Ye=function(e){return u(e,217).kf()},w($d,"StripContainerCell/lambda$1$Type",1692),b(1693,1,Le,fbn),o.Mb=function(e){return function the(n){return!!n&&n.j}(u(e,217))},w($d,"StripContainerCell/lambda$2$Type",1693),b(1694,1,{},hbn),o.Ye=function(e){return u(e,217).jf()},w($d,"StripContainerCell/lambda$3$Type",1694),b(472,22,{3:1,34:1,22:1,472:1},sD);var Zs,Oa,Tf,eYn,nYn=we($d,"VerticalLabelAlignment",472,ke,function A2e(){return mu(),S(T(nYn,1),G,472,0,[Tf,Oa,Zs])},function tde(n){return mu(),Ee((dNn(),eYn),n)});b(800,1,{},Ttn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,o.F=!1,w(mS,"NodeContext",800),b(1536,1,Ne,lbn),o.Ne=function(e,t){return rTn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mS,"NodeContext/0methodref$comparePortSides$Type",1536),b(1537,1,Ne,abn),o.Ne=function(e,t){return function Oye(n,e){var t;if(0!=(t=rTn(n.b.ag(),e.b.ag())))return t;switch(n.b.ag().g){case 1:case 2:return Tc(n.b.Nf(),e.b.Nf());case 3:case 4:return Tc(e.b.Nf(),n.b.Nf())}return 0}(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(mS,"NodeContext/1methodref$comparePortContexts$Type",1537),b(164,22,{3:1,34:1,22:1,164:1},Yo);var tYn,iYn,rYn,cYn,uYn,oYn,sYn,fYn,hYn,lYn,aYn,dYn,bYn,wYn,gYn,vYn,pYn,mYn,kYn,yYn,jYn,$_,CYn,Aon,DP,EYn=we(mS,"NodeLabelLocation",164,ke,zF,function ide(n){return dS(),Ee((VMn(),CYn),n)});b(117,1,{117:1},lHn),o.a=!1,w(mS,"PortContext",117),b(1541,1,re,dbn),o.Cd=function(e){EEn(u(e,314))},w(Xy,vXn,1541),b(1542,1,Le,bbn),o.Mb=function(e){return!!u(e,117).c},w(Xy,pXn,1542),b(1543,1,re,wbn),o.Cd=function(e){EEn(u(e,117).c)},w(Xy,"LabelPlacer/lambda$2$Type",1543),b(1540,1,re,gbn),o.Cd=function(e){Zb(),function Nfe(n){n.b.Of(n.e)}(u(e,117))},w(Xy,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),b(801,1,re,tV),o.Cd=function(e){Whe(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1,w(Xy,"NodeLabelCellCreator/lambda$0$Type",801),b(1539,1,re,F9n),o.Cd=function(e){!function xfe(n,e){Fnn(n.c,e)}(this.a,u(e,187))},w(Xy,"PortContextCreator/lambda$0$Type",1539),b(1902,1,{},vbn),w(tm,"GreedyRectangleStripOverlapRemover",1902),b(1903,1,Ne,pbn),o.Ne=function(e,t){return function T1e(n,e){return at(n.c.d,e.c.d)}(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tm,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),b(1849,1,{},zyn),o.a=5,o.e=0,w(tm,"RectangleStripOverlapRemover",1849),b(1850,1,Ne,mbn),o.Ne=function(e,t){return function A1e(n,e){return at(n.c.c,e.c.c)}(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tm,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),b(1852,1,Ne,kbn),o.Ne=function(e,t){return function gwe(n,e){return at(n.c.c+n.c.b,e.c.c+e.c.b)}(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tm,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),b(417,22,{3:1,34:1,22:1,417:1},AC);var mj,F_,x_,kj,TYn,MYn=we(tm,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,ke,function Hve(){return V0(),S(T(MYn,1),G,417,0,[kj,mj,F_,x_])},function rde(n){return V0(),Ee((TNn(),TYn),n)});b(226,1,{226:1},EN),w(tm,"RectangleStripOverlapRemover/RectangleNode",226),b(1851,1,re,x9n),o.Cd=function(e){!function i7e(n,e){var t,i;switch(i=e.c,t=e.a,n.b.g){case 0:t.d=n.e-i.a-i.d;break;case 1:t.d+=n.e;break;case 2:t.c=n.e-i.a-i.d;break;case 3:t.c=n.e+i.d}}(this.a,u(e,226))},w(tm,"RectangleStripOverlapRemover/lambda$1$Type",1851),b(1323,1,Ne,ybn),o.Ne=function(e,t){return function jIe(n,e){var t,i,r,c;return t=new jbn,1==(r=2==(r=(i=u(Vr(Kr(new Mn(null,new Pn(n.f,16)),t),hw(new Rh,new Fs,new bv,new wv,S(T(Dr,1),G,108,0,[(zu(),Hw),Yr]))),21)).gc())?1:0)&&j0(ty(u(Vr(rt(i.Lc(),new Ebn),$Fn($l(0),new oG)),168).a,2),0)&&(r=0),1==(c=2==(c=(i=u(Vr(Kr(new Mn(null,new Pn(e.f,16)),t),hw(new Rh,new Fs,new bv,new wv,S(T(Dr,1),G,108,0,[Hw,Yr]))),21)).gc())?1:0)&&j0(ty(u(Vr(rt(i.Lc(),new Cbn),$Fn($l(0),new oG)),168).a,2),0)&&(c=0),r0?n.a:n.b,e,t)}(this,u(e,42),u(t,176))},w(Ch,"SuccessorCombination",782),b(649,1,{},rL),o.Ve=function(e,t){var i;return function JEe(n){var e,t,i,r,c;return t=r=u(n.a,17).a,i=c=u(n.b,17).a,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new ai(Y(t),Y(i))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorJitter",649),b(648,1,{},cL),o.Ve=function(e,t){var i;return function FTe(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new ai(Y(-e-1),Y(-e-1));if(e==-t)return new ai(Y(-e),Y(t+1))}return y.Math.abs(e)>y.Math.abs(t)?new ai(Y(-e),Y(e<0?t:t+1)):new ai(Y(e+1),Y(t))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorLineByLine",648),b(573,1,{},BE),o.Ve=function(e,t){var i;return function JCe(n){var e,t,i,r;return e=i=u(n.a,17).a,t=r=u(n.b,17).a,0==i&&0==r?t-=1:-1==i&&r<=0?(e=0,t-=2):i<=0&&r>0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new ai(Y(e),Y(t))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorManhattan",573),b(1344,1,{},Obn),o.Ve=function(e,t){var i;return function uTe(n){var e,t,i;return t=u(n.a,17).a,i=u(n.b,17).a,t<(e=y.Math.max(y.Math.abs(t),y.Math.abs(i)))&&i==-e?new ai(Y(t+1),Y(i)):t==e&&i=-e&&i==e?new ai(Y(t-1),Y(i)):new ai(Y(t),Y(i-1))}((i=u(e,42),u(t,176),i))},w(Ch,"SuccessorMaxNormWindingInMathPosSense",1344),b(409,1,{},a3),o.Ve=function(e,t){return XV(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1,w(Ch,"SuccessorQuadrantsGeneric",409),b(1345,1,{},Lbn),o.Kb=function(e){return u(e,334).a},w(Ch,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),b(332,22,{3:1,34:1,22:1,332:1},SC),o.a=!1;var yj,jj,Ej,Cj,SYn,AYn=we(yS,uin,332,ke,function Kve(){return sp(),S(T(AYn,1),G,332,0,[jj,yj,Ej,Cj])},function cde(n){return sp(),Ee((SNn(),SYn),n)});b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Y(0),c=0;c0&&ru(A,$*X),_>0&&cu(A,_*tn);for(C5(n.b,new Ubn),e=new Z,f=new Ed(new cd(n.c).a);f.b;)i=u((s=W0(f)).ld(),74),t=u(s.md(),407).a,r=s2(i,!1,!1),Py(d=xKn(Wh(i),wy(r),t),r),(O=JKn(i))&&-1==Hr(e,O,0)&&(Rn(e.c,O),MIn(O,(oe(0!=d.b),u(d.a.a.c,8)),t));for(j=new Ed(new cd(n.d).a);j.b;)i=u((k=W0(j)).ld(),74),t=u(k.md(),407).a,r=s2(i,!1,!1),d=xKn(va(i),zk(wy(r)),t),Py(d=zk(d),r),(O=QKn(i))&&-1==Hr(e,O,0)&&(Rn(e.c,O),MIn(O,(oe(0!=d.b),u(d.c.b.c,8)),t))}(s),ft(e,Don,this.b),t.Vg()},o.a=0,w(EXn,"DisCoLayoutProvider",1114),b(1208,1,{},xbn),o.c=!1,o.e=0,o.f=0,w(EXn,"DisCoPolyominoCompactor",1208),b(567,1,{567:1},sPn),o.b=!0,w(ES,"DCComponent",567),b(406,22,{3:1,34:1,22:1,406:1},PC),o.a=!1;var NP,Mj,$P,Tj,OYn,IYn=we(ES,"DCDirection",406,ke,function _ve(){return _5(),S(T(IYn,1),G,406,0,[Mj,NP,$P,Tj])},function ude(n){return _5(),Ee((ANn(),OYn),n)});b(272,137,{3:1,272:1,96:1,137:1},Bx),w(ES,"DCElement",272),b(407,1,{407:1},KZ),o.c=0,w(ES,"DCExtension",407),b(762,137,oin,Qjn),w(ES,"DCGraph",762),b(489,22,{3:1,34:1,22:1,489:1},vAn);var B_,LYn,DYn,Oon,Lon,NYn,$Yn,FYn,R_,xYn,Don,FP,K_,Non,BYn,RYn,KYn,_Yn,$on,__,H_,xP,Ion=we(pR,sin,489,ke,function Vwe(){return vC(),S(T(Ion,1),G,489,0,[B_])},function ode(n){return vC(),Ee((MLn(),LYn),n)});b(865,1,Es,$5n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,fin),CXn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),Lon),(C1(),Tt)),Ion),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,hin),CXn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),J2),fn),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,lin),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Zf),pi),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,ain),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Zf),pi),yn(Fn)))),nGn((new F5n,e))},w(pR,"DisCoMetaDataProvider",865),b(1010,1,Es,F5n),o.hf=function(e){nGn(e)},w(pR,"DisCoOptions",1010),b(1011,1,{},Bbn),o.sf=function(){return new Fbn},o.tf=function(e){},w(pR,"DisCoOptions/DiscoFactory",1011),b(568,176,{330:1,176:1,568:1},VHn),o.a=0,o.b=0,o.c=0,o.d=0,w("org.eclipse.elk.alg.disco.structures","DCPolyomino",568),b(1286,1,Le,Rbn),o.Mb=function(e){return qX(e)},w(v2,"ElkGraphComponentsProcessor/lambda$0$Type",1286),b(1287,1,{},Kbn),o.Kb=function(e){return Xv(),Wh(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$1$Type",1287),b(1288,1,Le,_bn),o.Mb=function(e){return function bbe(n){return Xv(),Wh(n)==Ct(va(n))}(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$2$Type",1288),b(1289,1,{},Hbn),o.Kb=function(e){return Xv(),va(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$3$Type",1289),b(1290,1,Le,qbn),o.Mb=function(e){return function wbe(n){return Xv(),va(n)==Ct(Wh(n))}(u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$4$Type",1290),b(1291,1,Le,B9n),o.Mb=function(e){return function s2e(n,e){return Xv(),n==Ct(Wh(e))||n==Ct(va(e))}(this.a,u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$5$Type",1291),b(1292,1,{},R9n),o.Kb=function(e){return function Swe(n,e){return Xv(),n==Wh(e)?va(e):Wh(e)}(this.a,u(e,74))},w(v2,"ElkGraphComponentsProcessor/lambda$6$Type",1292),b(1205,1,{},GLn),o.a=0,w(v2,"ElkGraphTransformer",1205),b(1206,1,{},Ubn),o.Yd=function(e,t){!function nCe(n,e,t){var i,r,c,s;n.a=t.b.d,L(e,326)?(_i(c=wy(r=s2(u(e,74),!1,!1)),i=new K9n(n)),Py(c,r),null!=e.of((Ue(),$b))&&_i(u(e.of($b),75),i)):((s=u(e,422)).rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}(this,u(e,167),u(t,272))},w(v2,"ElkGraphTransformer/OffsetApplier",1206),b(1207,1,re,K9n),o.Cd=function(e){!function h1e(n,e){A0(e,n.a.a.a,n.a.a.b)}(this,u(e,8))},w(v2,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),b(760,1,{},fG),w(jR,din,760),b(1195,1,Ne,Gbn),o.Ne=function(e,t){return function HEe(n,e){var t,i,r;return 0==(t=u(m(e,(Js(),Np)),17).a-u(m(n,Np),17).a)?(i=gi(Bi(u(m(n,(ha(),Aj)),8)),u(m(n,V8),8)),r=gi(Bi(u(m(e,Aj),8)),u(m(e,V8),8)),at(i.a*i.b,r.a*r.b)):t}(u(e,235),u(t,235))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(jR,TXn,1195),b(1196,1,re,ICn),o.Cd=function(e){!function z2e(n,e,t){var i;et(i=new ir(t.d),n),nZ(e,i.a,i.b)}(this.b,this.a,u(e,250))},w(jR,bin,1196),b(738,205,Fd,wz),o.rf=function(e,t){QHn(this,e,t)},w(jR,"ForceLayoutProvider",738),b(309,137,{3:1,309:1,96:1,137:1}),w(Vy,"FParticle",309),b(250,309,{3:1,250:1,309:1,96:1,137:1},XPn),o.Ib=function(){var e;return this.a?(e=Hr(this.a.a,this,0))>=0?"b"+e+"["+v$(this.a)+"]":"b["+v$(this.a)+"]":"b_"+T0(this)},w(Vy,"FBendpoint",250),b(290,137,{3:1,290:1,96:1,137:1},HAn),o.Ib=function(){return v$(this)},w(Vy,"FEdge",290),b(235,137,{3:1,235:1,96:1,137:1},lT);var HYn,qYn,Fon,UYn,GYn,zYn,XYn,WYn,dNe=w(Vy,"FGraph",235);b(454,309,{3:1,454:1,309:1,96:1,137:1},ULn),o.Ib=function(){return null==this.b||0==this.b.length?"l["+v$(this.a)+"]":"l_"+this.b},w(Vy,"FLabel",454),b(153,309,{3:1,153:1,309:1,96:1,137:1},jTn),o.Ib=function(){return NJ(this)},o.a=0,w(Vy,"FNode",153),b(2100,1,{}),o.vf=function(e){rtn(this,e)},o.wf=function(){GRn(this)},o.d=0,w(win,"AbstractForceModel",2100),b(641,2100,{641:1},HFn),o.uf=function(e,t){var i,r,c,f;return pGn(this.f,e,t),c=gi(Bi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-o5(e.e)/2-o5(t.e)/2),lh(c,((i=nHn(this.e,e,t))>0?-function dwe(n,e){return n>0?y.Math.log(n/e):-100}(r,this.c)*i:function H1e(n,e){return n>0?e/(n*n):100*e}(r,this.b)*u(m(e,(Js(),Np)),17).a)/f),c},o.vf=function(e){rtn(this,e),this.a=u(m(e,(Js(),RP)),17).a,this.c=F(R(m(e,KP))),this.b=F(R(m(e,U_)))},o.xf=function(e){return e0?e*e/n:e*e*100}(r=y.Math.max(0,f-o5(e.e)/2-o5(t.e)/2),this.a)*u(m(e,(Js(),Np)),17).a,(i=nHn(this.e,e,t))>0&&(s-=function Qfe(n,e){return n*n/e}(r,this.a)*i),lh(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for(rtn(this,e),this.b=F(R(m(e,(Js(),G_)))),this.c=this.b/u(m(e,RP),17).a,r=e.e.c.length,s=0,c=0,h=new C(e.e);h.a0},o.a=0,o.b=0,o.c=0,w(win,"FruchtermanReingoldModel",642),b(860,1,Es,x5n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,CS),""),"Force Model"),"Determines the model for force calculation."),Fon),(C1(),Tt)),xon),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,gin),""),"Iterations"),"The number of iterations on the force model."),Y(300)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,vin),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ER),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Mh),Ji),ui),yn(Fn)))),ti(e,ER,CS,WYn),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,CR),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Ji),ui),yn(Fn)))),ti(e,CR,CS,GYn),uzn((new B5n,e))},w(p8,"ForceMetaDataProvider",860),b(432,22,{3:1,34:1,22:1,432:1},wX);var q_,BP,VYn,JYn,QYn,Bon,RP,Ron,YYn,ZYn,nZn,eZn,Kon,tZn,_on,Hon,iZn,Np,rZn,U_,qon,cZn,uZn,KP,G_,oZn,sZn,fZn,Uon,hZn,Aj,V8,$p,_P,lZn,aZn,Gon,dZn,bZn,wZn,HP,zon,Xon,Won,Von,Jon,gZn,vZn,pZn,mZn,Qon,kZn,xon=we(p8,"ForceModelStrategy",432,ke,function Nge(){return MT(),S(T(xon,1),G,432,0,[q_,BP])},function sde(n){return MT(),Ee((eDn(),VYn),n)});b(T1,1,Es,B5n),o.hf=function(e){uzn(e)},w(p8,"ForceOptions",T1),b(1001,1,{},Vbn),o.sf=function(){return new wz},o.tf=function(e){},w(p8,"ForceOptions/ForceFactory",1001),b(861,1,Es,R5n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,kin),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Kn(),!1)),(C1(),mi)),qt),yn((Ef(),wi))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,yin),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[$h]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,jin),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Gon),Tt),Yon),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ein),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Mh),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Cin),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Y(nt)),Zr),qi),yn(Fn)))),NGn((new K5n,e))},w(p8,"StressMetaDataProvider",861),b(1004,1,Es,K5n),o.hf=function(e){NGn(e)},w(p8,"StressOptions",1004),b(1005,1,{},Xbn),o.sf=function(){return new qAn},o.tf=function(e){},w(p8,"StressOptions/StressFactory",1005),b(1110,205,Fd,qAn),o.rf=function(e,t){var r,c,s,f;for(t.Ug(IXn,1),on(un(z(e,(sy(),Von))))?on(un(z(e,Qon)))||lk(new o6((k0(),new a0(e)))):QHn(new wz,e,t.eh(1)),c=axn(e),f=(r=qUn(this.a,c)).Kc();f.Ob();)!((s=u(f.Pb(),235)).e.c.length<=1)&&(mIe(this.b,s),GCe(this.b),iu(s.d,new Wbn));dzn(c=izn(r)),t.Vg()},w(AS,"StressLayoutProvider",1110),b(1111,1,re,Wbn),o.Cd=function(e){atn(u(e,454))},w(AS,"StressLayoutProvider/lambda$0$Type",1111),b(1002,1,{},_yn),o.c=0,o.e=0,o.g=0,w(AS,"StressMajorization",1002),b(391,22,{3:1,34:1,22:1,391:1},fD);var z_,X_,W_,yZn,jZn,EZn,CZn,Yon=we(AS,"StressMajorization/Dimension",391,ke,function I2e(){return v5(),S(T(Yon,1),G,391,0,[X_,z_,W_])},function fde(n){return v5(),Ee((wNn(),yZn),n)});b(1003,1,Ne,_9n),o.Ne=function(e,t){return function xae(n,e,t){return at(n[e.a],n[t.a])}(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(AS,"StressMajorization/lambda$0$Type",1003),b(1192,1,{},VOn),w(Sp,"ElkLayered",1192),b(1193,1,re,H9n),o.Cd=function(e){!function kEe(n,e){var t;if((t=u(m(e,(cn(),o9)),322))!=n)throw M(new Cv("The hierarchy aware processor "+t+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}(this.a,u(e,36))},w(Sp,"ElkLayered/lambda$0$Type",1193),b(1194,1,re,q9n),o.Cd=function(e){!function Bae(n,e){return U(e,(cn(),Kj),n)}(this.a,u(e,36))},w(Sp,"ElkLayered/lambda$1$Type",1194),b(1281,1,{},LTn),w(Sp,"GraphConfigurator",1281),b(770,1,re,ZG),o.Cd=function(e){r_n(this.a,u(e,10))},w(Sp,"GraphConfigurator/lambda$0$Type",770),b(771,1,{},hG),o.Kb=function(e){return enn(),new Mn(null,new Pn(u(e,30).a,16))},w(Sp,"GraphConfigurator/lambda$1$Type",771),b(772,1,re,nz),o.Cd=function(e){r_n(this.a,u(e,10))},w(Sp,"GraphConfigurator/lambda$2$Type",772),b(1109,205,Fd,Xyn),o.rf=function(e,t){var i;i=nIe(new Vyn,e),x(z(e,(cn(),Zw)))===x((Ll(),B1))?L5e(this.a,i,t):_Ce(this.a,i,t),t.$g()||JGn(new _5n,i)},w(Sp,"LayeredLayoutProvider",1109),b(367,22,{3:1,34:1,22:1,367:1},M7);var nf,rl,$c,Uc,Gr,MZn,TZn,AZn,Zon=we(Sp,"LayeredPhases",367,ke,function Npe(){return zi(),S(T(Zon,1),G,367,0,[nf,rl,$c,Uc,Gr])},function hde(n){return zi(),Ee((f$n(),MZn),n)});b(1717,1,{},uFn),o.i=0,w(ej,"ComponentsToCGraphTransformer",1717),b(1718,1,{},zbn),o.yf=function(e,t){return y.Math.min(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},w(ej,"ComponentsToCGraphTransformer/1",1718),b(86,1,{86:1}),o.i=0,o.k=!0,o.o=fi;var J_,Q_,V_=w(j8,"CNode",86);b(470,86,{470:1,86:1},mW,PZ),o.Ib=function(){return""},w(ej,"ComponentsToCGraphTransformer/CRectNode",470),b(1688,1,{},Jbn),w(ej,"OneDimensionalComponentsCompaction",1688),b(1689,1,{},Qbn),o.Kb=function(e){return function y2e(n){return jF(),Kn(),0!=u(n.a,86).d.e}(u(e,42))},o.Fb=function(e){return this===e},w(ej,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),b(1690,1,{},Ybn),o.Kb=function(e){return function N5e(n){return jF(),Kn(),!!(CBn(u(n.a,86).j,u(n.b,88))||0!=u(n.a,86).d.e&&CBn(u(n.a,86).j,u(n.b,88)))}(u(e,42))},o.Fb=function(e){return this===e},w(ej,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),b(1720,1,{},tIn),w(j8,"CGraph",1720),b(194,1,{194:1},qF),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=fi,w(j8,"CGroup",194),b(1719,1,{},Zbn),o.yf=function(e,t){return y.Math.max(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(null!=e.a?F(e.a):e.c.i,null!=t.a?F(t.a):t.c.i)},w(j8,rXn,1719),b(1721,1,{},tHn),o.d=!1;var SZn,Y_=w(j8,oXn,1721);b(1722,1,{},nwn),o.Kb=function(e){return tX(),Kn(),0!=u(u(e,42).a,86).d.e},o.Fb=function(e){return this===e},w(j8,sXn,1722),b(833,1,{},IV),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(j8,fXn,833),b(1898,1,{},pPn),w(SS,hXn,1898);var Sj=Ot(Bd,tXn);b(1899,1,{382:1},YIn),o.bf=function(e){!function VTe(n,e){var t,i,r;e.a?(ik(n.b,e.b),n.a[e.b.i]=u(nD(n.b,e.b),86),(t=u(ZL(n.b,e.b),86))&&(n.a[t.i]=e.b)):((i=u(nD(n.b,e.b),86))&&i==n.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),(r=u(ZL(n.b,e.b),86))&&n.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),XD(n.b,e.b))}(this,u(e,476))},w(SS,lXn,1899),b(Ea,1,Ne,ewn),o.Ne=function(e,t){return function rge(n,e){return at(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(SS,aXn,Ea),b(476,1,{476:1},vX),o.a=!1,w(SS,dXn,476),b(1901,1,Ne,twn),o.Ne=function(e,t){return function cke(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),0==(t=at(i,r))){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}(u(e,476),u(t,476))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(SS,bXn,1901),b(148,1,{148:1},M3,dV),o.Fb=function(e){var t;return null!=e&&bNe==po(e)&&(t=u(e,148),jc(this.c,t.c)&&jc(this.d,t.d))},o.Hb=function(){return Wk(S(T(pi,1),xn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+cr+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var bNe=w(Bd,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},IC);var mb,Uw,S2,Gw,IZn,OZn,LZn,DZn,NZn,$Zn,nsn,dt,PZn=we(Bd,"Point/Quadrant",416,ke,function qve(){return a4(),S(T(PZn,1),G,416,0,[mb,Gw,Uw,S2])},function lde(n){return a4(),Ee((INn(),IZn),n)});b(1708,1,{},Gyn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null,w(Bd,"RectilinearConvexHull",1708),b(583,1,{382:1},kA),o.bf=function(e){!function D3e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new dV(e.c,e.d,n.d)),n.b=e.d)}(this,u(e,148))},o.b=0,w(Bd,"RectilinearConvexHull/MaximalElementsEventHandler",583),b(1710,1,Ne,iwn),o.Ne=function(e,t){return function cge(n,e){return iX(),at((Jn(n),n),(Jn(e),e))}(R(e),R(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),b(1709,1,{382:1},j$n),o.bf=function(e){hTe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null,w(Bd,"RectilinearConvexHull/RectangleEventHandler",1709),b(1711,1,Ne,rwn),o.Ne=function(e,t){return function dve(n,e){return p5(),n.c==e.c?at(e.d,n.d):at(n.c,e.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$0$Type",1711),b(1712,1,Ne,own),o.Ne=function(e,t){return function bve(n,e){return p5(),n.c==e.c?at(n.d,e.d):at(n.c,e.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$1$Type",1712),b(1713,1,Ne,swn),o.Ne=function(e,t){return function ave(n,e){return p5(),n.c==e.c?at(e.d,n.d):at(e.c,n.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$2$Type",1713),b(1714,1,Ne,uwn),o.Ne=function(e,t){return function wve(n,e){return p5(),n.c==e.c?at(n.d,e.d):at(e.c,n.c)}(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$3$Type",1714),b(1715,1,Ne,fwn),o.Ne=function(e,t){return zye(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Bd,"RectilinearConvexHull/lambda$4$Type",1715),b(1716,1,{},AOn),w(Bd,"Scanline",1716),b(2104,1,{}),w(Xf,"AbstractGraphPlacer",2104),b(335,1,{335:1},bAn),o.Ff=function(e){return!!this.Gf(e)&&(Sn(this.b,u(m(e,(V(),Ul)),21),e),!0)},o.Gf=function(e){var t,i,r;for(t=u(m(e,(V(),Ul)),21),r=u(ut(dt,t),21).Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ut(this.b,i),15).dc())return!1;return!0},w(Xf,"ComponentGroup",335),b(779,2104,{},pz),o.Hf=function(e){var i;for(i=new C(this.a);i.ai?1:0}(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Xf,"ComponentsProcessor/lambda$0$Type",1283),b(579,335,{335:1,579:1},EDn),o.Ff=function(e){return IY(this,e)},o.Gf=function(e){return cqn(this,e)},w(Xf,"ModelOrderComponentGroup",579),b(1310,2104,{},lwn),o.Ef=function(e,t){var i,r,c,s,f,l,a,d,g,v;if(1!=e.gc()){if(e.dc())return t.a.c.length=0,t.f.a=0,void(t.f.b=0);for(this.Jf(e,t),c=u(e.Xb(0),36),t.a.c.length=0,qr(t,c),a=0,v=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),a=y.Math.max(a,(d=s.f).a),v+=d.a*d.b;if(a=y.Math.max(a,y.Math.sqrt(v)*F(R(m(t,(cn(),TI))))),r=F(R(m(t,Hj))),this.If(e,t,a,r),on(un(m(c,AI)))){for(Otn(i=new oL,e,r),l=e.Kc();l.Ob();)et(wf(u(l.Pb(),36).c),i.e);et(wf(t.f),i.a)}yQ(t,e)}else(g=u(e.Xb(0),36))!=t&&(t.a.c.length=0,lUn(t,g,0,0),qr(t,g),vJ(t.d,g.d),t.f.a=g.f.a,t.f.b=g.f.b)},o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g;for(d=0,g=0,h=0,c=r,f=e.Kc();f.Ob();)d+(a=(s=u(f.Pb(),36)).f).a>i&&(d=0,g+=h+r,h=0),K4(s,d+(l=s.c).a,g+l.b),wf(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(x(m(t,(cn(),Yw)))===x((Sd(),zw))){for(r=e.Kc();r.Ob();){for(f=0,s=new C((i=u(r.Pb(),36)).a);s.ai&&!u(m(s,(V(),Ul)),21).Hc((en(),zn))||l&&u(m(l,(V(),Ul)),21).Hc((en(),Zn))||u(m(s,(V(),Ul)),21).Hc((en(),Wn)))&&(v=g,p+=h+r,h=0),a=s.c,u(m(s,(V(),Ul)),21).Hc((en(),zn))&&(v=c+r),K4(s,v+a.a,p+a.b),c=y.Math.max(c,v+d.a),u(m(s,Ul),21).Hc(ae)&&(g=y.Math.max(g,v+d.a+r)),wf(a),h=y.Math.max(h,d.b),v+=d.a+r,l=s;t.f.a=c,t.f.b=p+h},o.Jf=function(e,t){},w(Xf,"ModelOrderRowGraphPlacer",1313),b(1311,1,Ne,awn),o.Ne=function(e,t){return function Lme(n,e){var t;return 0==(t=e.p-n.p)?at(n.f.a*n.f.b,e.f.a*e.f.b):t}(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Xf,"SimpleRowGraphPlacer/1",1311),b(1280,1,Eh,dwn),o.Lb=function(e){var t;return!!(t=u(m(u(e,249).b,(cn(),Nr)),75))&&0!=t.b},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return!!(t=u(m(u(e,249).b,(cn(),Nr)),75))&&0!=t.b},w(PS,"CompoundGraphPostprocessor/1",1280),b(1279,1,gt,Jyn),o.Kf=function(e,t){MRn(this,u(e,36),t)},w(PS,"CompoundGraphPreprocessor",1279),b(453,1,{453:1},wBn),o.c=!1,w(PS,"CompoundGraphPreprocessor/ExternalPort",453),b(249,1,{249:1},lM),o.Ib=function(){return YD(this.c)+":"+J_n(this.b)},w(PS,"CrossHierarchyEdge",249),b(777,1,Ne,ez),o.Ne=function(e,t){return function D7e(n,e,t){var i,r;return e.c==(wr(),nu)&&t.c==Vu?-1:e.c==Vu&&t.c==nu?1:(i=Gxn(e.a,n.a),r=Gxn(t.a,n.a),e.c==nu?r-i:i-r)}(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(PS,"CrossHierarchyEdgeComparator",777),b(305,137,{3:1,305:1,96:1,137:1}),o.p=0,w(Hc,"LGraphElement",305),b(18,305,{3:1,18:1,305:1,96:1,137:1},B0),o.Ib=function(){return J_n(this)};var eH=w(Hc,"LEdge",18);b(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},GQ),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new C(this.b)},o.Ib=function(){return 0==this.b.c.length?"G-unlayered"+pa(this.a):0==this.a.c.length?"G-layered"+pa(this.b):"G[layerless"+pa(this.a)+", layers"+pa(this.b)+"]"};var RZn,BZn=w(Hc,"LGraph",36);b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return m(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return vt(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e},w(Hc,"LGraphAdapters/AbstractLShapeAdapter",666),b(474,1,{853:1},s6),o.Rf=function(){var e,t;if(!this.b)for(this.b=Kh(this.a.b.c.length),t=new C(this.a.b);t.a0&&zxn((Gn(t-1,e.length),e.charCodeAt(t-1)),")]}\"' \t\r\n");)--t;if(s> ",e),IA(i)),Re(Fc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var csn,iH,usn,rH,osn,ssn,HZn,qZn,_Zn=w(Hc,"LPort",12);b(408,1,Qh,d3),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new U9n(new C(this.a.e))},w(Hc,"LPort/1",408),b(1309,1,Ti,U9n),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return rc(this.a)},o.Qb=function(){r5(this.a)},w(Hc,"LPort/1/1",1309),b(369,1,Qh,vv),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new tz(new C(this.a.g))},w(Hc,"LPort/2",369),b(776,1,Ti,tz),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return rc(this.a)},o.Qb=function(){r5(this.a)},w(Hc,"LPort/2/1",776),b(1302,1,Qh,DCn),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new xf(this)},w(Hc,"LPort/CombineIter",1302),b(208,1,Ti,xf),o.Nb=function(e){Ri(this,e)},o.Qb=function(){lEn()},o.Ob=function(){return X6(this)},o.Pb=function(){return rc(this.a)?E(this.a):E(this.b)},w(Hc,"LPort/CombineIter/1",208),b(1303,1,Eh,wwn),o.Lb=function(e){return LPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),0!=u(e,12).g.c.length},w(Hc,"LPort/lambda$0$Type",1303),b(1304,1,Eh,gwn),o.Lb=function(e){return DPn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),0!=u(e,12).e.c.length},w(Hc,"LPort/lambda$1$Type",1304),b(1305,1,Eh,vwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),zn)},w(Hc,"LPort/lambda$2$Type",1305),b(1306,1,Eh,pwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),Zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),Zn)},w(Hc,"LPort/lambda$3$Type",1306),b(1307,1,Eh,mwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),ae)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),ae)},w(Hc,"LPort/lambda$4$Type",1307),b(1308,1,Eh,kwn),o.Lb=function(e){return Nu(),u(e,12).j==(en(),Wn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Nu(),u(e,12).j==(en(),Wn)},w(Hc,"LPort/lambda$5$Type",1308),b(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},xc),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new C(this.a)},o.Ib=function(){return"L_"+Hr(this.b.b,this,0)+pa(this.a)},w(Hc,"Layer",30),b(1330,1,{},Vyn),w(S1,KXn,1330),b(1334,1,{},ywn),o.Kb=function(e){return Ur(u(e,84))},w(S1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),b(1337,1,{},jwn),o.Kb=function(e){return Ur(u(e,84))},w(S1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),b(1331,1,re,G9n),o.Cd=function(e){dHn(this.a,u(e,123))},w(S1,bin,1331),b(1332,1,re,z9n),o.Cd=function(e){dHn(this.a,u(e,123))},w(S1,_Xn,1332),b(1333,1,{},Ewn),o.Kb=function(e){return new Mn(null,new Pn(aJ(u(e,74)),16))},w(S1,HXn,1333),b(1335,1,Le,X9n),o.Mb=function(e){return function Fle(n,e){return dw(e,Df(n))}(this.a,u(e,27))},w(S1,qXn,1335),b(1336,1,{},Cwn),o.Kb=function(e){return new Mn(null,new Pn(function Zwe(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}(u(e,74)),16))},w(S1,"ElkGraphImporter/lambda$5$Type",1336),b(1338,1,Le,W9n),o.Mb=function(e){return function xle(n,e){return dw(e,Df(n))}(this.a,u(e,27))},w(S1,"ElkGraphImporter/lambda$7$Type",1338),b(1339,1,Le,Mwn),o.Mb=function(e){return function dge(n){return tb(n)&&on(un(z(n,(cn(),Vd))))}(u(e,74))},w(S1,"ElkGraphImporter/lambda$8$Type",1339),b(1297,1,{},_5n),w(S1,"ElkGraphLayoutTransferrer",1297),b(1298,1,Le,V9n),o.Mb=function(e){return function Mae(n,e){return E7(),!f4(e.d.i,n)}(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),b(1299,1,re,J9n),o.Cd=function(e){E7(),nn(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),b(1300,1,Le,Q9n),o.Mb=function(e){return function hae(n,e){return E7(),f4(e.d.i,n)}(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),b(1301,1,re,Y9n),o.Cd=function(e){E7(),nn(this.a,u(e,18))},w(S1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),b(819,1,{},HW),w(Qn,"BiLinkedHashMultiMap",819),b(1550,1,gt,Twn),o.Kf=function(e,t){!function Y4e(n,e){e.Ug(UXn,1),_t(uc(new Mn(null,new Pn(n.b,16)),new Awn),new Swn),e.Vg()}(u(e,36),t)},w(Qn,"CommentNodeMarginCalculator",1550),b(1551,1,{},Awn),o.Kb=function(e){return new Mn(null,new Pn(u(e,30).a,16))},w(Qn,"CommentNodeMarginCalculator/lambda$0$Type",1551),b(1552,1,re,Swn),o.Cd=function(e){!function YPe(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(f=n.d,d=u(m(n,(V(),qp)),15),e=u(m(n,Bp),15),d||e){if(c=F(R(mw(n,(cn(),eq)))),s=F(R(mw(n,Bhn))),g=0,d){for(l=0,r=d.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),g+=i.o.a;g+=c*(d.gc()-1),f.d+=l+s}if(t=0,e){for(l=0,r=e.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),t+=i.o.a;t+=c*(e.gc()-1),f.a+=l+s}(h=y.Math.max(g,t))>n.o.a&&(f.b=y.Math.max(f.b,a=(h-n.o.a)/2),f.c=y.Math.max(f.c,a))}}(u(e,10))},w(Qn,"CommentNodeMarginCalculator/lambda$1$Type",1552),b(1553,1,gt,Pwn),o.Kf=function(e,t){!function tAe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Comment post-processing",1),c=new C(n.b);c.a0&&gUn((Ln(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&gUn(u(sn(t,t.c.length-1),30),n),e.Vg()}(u(e,36),t)},w(Qn,"HierarchicalPortPositionProcessor",1582),b(1583,1,gt,H5n),o.Kf=function(e,t){!function cDe(n,e){var t,i,r,c,s,f,h,l,a,g,v,k,j,A,I,O,$,X,tn,jn,kn,Bn;for(n.b=e,n.a=u(m(e,(cn(),phn)),17).a,n.c=u(m(e,khn),17).a,0==n.c&&(n.c=nt),j=new Ni(e.b,0);j.b=n.a&&(i=RPe(n,I),a=y.Math.max(a,i.b),$=y.Math.max($,i.d),nn(f,new ai(I,i)));for(jn=new Z,l=0;l0),j.a.Xb(j.c=--j.b),nw(j,kn=new xc(n.b)),oe(j.b=2){for(k=!0,t=u(E(g=new C(c.j)),12),v=null;g.a0)}(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$2$Type",1643),b(1644,1,re,Vgn),o.Cd=function(e){!function Jme(n){var e;cb(n,!0),e=T1,vt(n,(cn(),Bm))&&(e+=u(m(n,Bm),17).a),U(n,Bm,Y(e))}(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$3$Type",1644),b(1645,1,gt,Q5n),o.Kf=function(e,t){!function SSe(n,e){var i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(m(n,(cn(),Fhn)),430),i=new C(n.b);i.ae.d.c){if((v=n.c[e.a.d])==(j=n.c[d.a.d]))continue;Vs(Rs(Bs(Ks(xs(new ws,1),100),v),j))}}}(this),function UMe(n){var e,t,i,r,c,s,f;for(c=new yt,r=new C(n.d.a);r.a1)for(e=M0((t=new od,++n.b,t),n.d),f=ge(c,0);f.b!=f.d.c;)s=u(be(f),125),Vs(Rs(Bs(Ks(xs(new ws,1),0),e),s))}(this),Zx(sN(this.d),new yv),c=new C(this.a.a.b);c.a=j&&(nn(s,Y(d)),O=y.Math.max(O,$[d-1]-g),h+=k,A+=$[d-1]-A,g=$[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}(p=y.Math.min(1/O,1/t.b/h))>r&&(r=p,i=s)}return i},o.pg=function(){return!1},w(Ah,"MSDCutIndexHeuristic",816),b(1683,1,gt,qvn),o.Kf=function(e,t){DPe(u(e,36),t)},w(Ah,"SingleEdgeGraphWrapper",1683),b(232,22,{3:1,34:1,22:1,232:1},I6);var O2,Mm,Tm,Vw,Q8,L2,wne,Am=we(Ic,"CenterEdgeLabelPlacementStrategy",232,ke,function p3e(){return ap(),S(T(Am,1),G,232,0,[Tm,Q8,Mm,Vw,L2,O2])},function kde(n){return ap(),Ee(($$n(),wne),n)});b(431,22,{3:1,34:1,22:1,431:1},pX);var Xsn,kH,gne,Wsn=we(Ic,"ConstraintCalculationStrategy",431,ke,function Bge(){return gT(),S(T(Wsn,1),G,431,0,[Xsn,kH])},function yde(n){return gT(),Ee((sDn(),gne),n)});b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},lD),o.dg=function(){return q_n(this)},o.qg=function(){return q_n(this)};var Dj,Y8,Vsn,vne,Jsn=we(Ic,"CrossingMinimizationStrategy",322,ke,function L2e(){return k5(),S(T(Jsn,1),G,322,0,[Y8,Dj,Vsn])},function jde(n){return k5(),Ee((UDn(),vne),n)});b(351,22,{3:1,34:1,22:1,351:1},aD);var Qsn,yH,dI,pne,Ysn=we(Ic,"CuttingStrategy",351,ke,function D2e(){return DT(),S(T(Ysn,1),G,351,0,[Qsn,dI,yH])},function Ede(n){return DT(),Ee((GDn(),pne),n)});b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},A7),o.dg=function(){return DHn(this)},o.qg=function(){return DHn(this)};var Zsn,jH,Sm,EH,Pm,mne,nfn=we(Ic,"CycleBreakingStrategy",348,ke,function Fpe(){return k1(),S(T(nfn,1),G,348,0,[jH,Zsn,EH,Pm,Sm])},function Cde(n){return k1(),Ee((l$n(),mne),n)});b(428,22,{3:1,34:1,22:1,428:1},mX);var bI,efn,kne,tfn=we(Ic,"DirectionCongruency",428,ke,function xge(){return Dk(),S(T(tfn,1),G,428,0,[bI,efn])},function Mde(n){return Dk(),Ee((rDn(),kne),n)});b(460,22,{3:1,34:1,22:1,460:1},dD);var Im,CH,D2,jne,yne=we(Ic,"EdgeConstraint",460,ke,function N2e(){return Md(),S(T(yne,1),G,460,0,[CH,Im,D2])},function Lde(n){return Md(),Ee((XDn(),jne),n)});b(283,22,{3:1,34:1,22:1,283:1},O6);var MH,TH,AH,SH,wI,PH,Ene,ifn=we(Ic,"EdgeLabelSideSelection",283,ke,function w3e(){return BA(),S(T(ifn,1),G,283,0,[TH,MH,SH,AH,PH,wI])},function Dde(n){return BA(),Ee((F$n(),Ene),n)});b(488,22,{3:1,34:1,22:1,488:1},kX);var gI,rfn,Cne,cfn=we(Ic,"EdgeStraighteningStrategy",488,ke,function Gge(){return Tk(),S(T(cfn,1),G,488,0,[rfn,gI])},function Nde(n){return Tk(),Ee((cDn(),Cne),n)});b(281,22,{3:1,34:1,22:1,281:1},L6);var IH,ufn,ofn,vI,sfn,ffn,Mne,hfn=we(Ic,"FixedAlignment",281,ke,function g3e(){return ay(),S(T(hfn,1),G,281,0,[vI,ofn,ffn,ufn,sfn,IH])},function Ode(n){return ay(),Ee((x$n(),Mne),n)});b(282,22,{3:1,34:1,22:1,282:1},D6);var lfn,afn,dfn,bfn,Z8,wfn,Tne,gfn=we(Ic,"GraphCompactionStrategy",282,ke,function v3e(){return N4(),S(T(gfn,1),G,282,0,[Z8,afn,wfn,bfn,dfn,lfn])},function Tde(n){return N4(),Ee((B$n(),Tne),n)});b(259,22,{3:1,34:1,22:1,259:1},Xb);var Om,pI,Lm,fs,n9,mI,Dm,N2,kI,e9,Ane,OH=we(Ic,"GraphProperties",259,ke,function eme(){return gr(),S(T(OH,1),G,259,0,[pI,fs,n9,mI,Dm,N2,e9,Om,Lm,kI])},function Ade(n){return gr(),Ee((wxn(),Ane),n)});b(299,22,{3:1,34:1,22:1,299:1},bD);var Nj,LH,DH,Sne,NH=we(Ic,"GreedySwitchType",299,ke,function $2e(){return l4(),S(T(NH,1),G,299,0,[LH,DH,Nj])},function Sde(n){return l4(),Ee((WDn(),Sne),n)});b(311,22,{3:1,34:1,22:1,311:1},wD);var xp,$j,$2,Ine,Pne=we(Ic,"InLayerConstraint",311,ke,function F2e(){return Pl(),S(T(Pne,1),G,311,0,[$j,$2,xp])},function Pde(n){return Pl(),Ee((VDn(),Ine),n)});b(429,22,{3:1,34:1,22:1,429:1},yX);var $H,vfn,One,mfn,Bp,jb,yI,kfn,yfn,jI,jfn,Fj,EI,t9,Rp,Ul,FH,CI,mc,Efn,Da,zc,xH,BH,xj,zd,Eb,Kp,Cfn,_p,Bj,Jw,Af,Ss,RH,F2,lt,ot,Mfn,Tfn,Afn,Sfn,Pfn,KH,MI,Wu,Cb,_H,Hp,i9,Qf,x2,Mb,B2,R2,Nm,Xd,Ifn,HH,qH,qp,pfn=we(Ic,"InteractiveReferencePoint",429,ke,function Fge(){return cT(),S(T(pfn,1),G,429,0,[$H,vfn])},function Ide(n){return cT(),Ee((iDn(),One),n)});b(171,22,{3:1,34:1,22:1,171:1},S7);var r9,Na,c9,Qw,Rj,Lne,Dne,Nne,$ne,Lfn,Fne,Dfn,xne,Nfn,Bne,Rne,Kne,$fn,_ne,Hne,qne,Ffn,Une,Gne,zne,xfn,Xne,Wne,Vne,Bfn,Jne,Qne,Yne,Zne,nee,eee,tee,iee,ree,cee,Rfn,uee,Kfn,oee,_fn,see,Hfn,fee,qfn,hee,lee,aee,Ufn,dee,Gfn,bee,zfn,wee,gee,vee,pee,mee,kee,yee,jee,Eee,Cee,Xfn,Mee,Tee,Aee,See,Pee,Iee,Wfn,Oee,Lee,Dee,Nee,$ee,Fee,xee,Vfn,Bee,Jfn,Ree,Kee,_ee,Qfn,Hee,qee,Yfn,Uee,Gee,zee,Xee,Wee,Vee,Jee,Qee,Zfn,Yee,Zee,nte,nhn,ete,ehn,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,ate,dte,bte,wte,gte,vte,pte,mte,thn,kte,yte,ihn,jte,Ete,Cte,Mte,Tte,Ate,Ste,Pte,Ite,rhn,Ote,Lte,Dte,Nte,chn,$te,Fte,Lh,UH,TI,u9,AI,uhn,SI,Yw,PI,ohn,shn,II,GH,ul,zH,Tb,fhn,Kj,XH,hhn,xte,Bte,Rte,OI,WH,o9,Wd,Kte,$o,lhn,ahn,LI,VH,Dh,DI,Gl,dhn,bhn,whn,JH,QH,ghn,O1,YH,vhn,Zw,phn,mhn,khn,NI,ng,Vd,yhn,jhn,Nr,Ehn,_te,hu,$I,Chn,Mhn,Thn,$a,Jd,FI,Ahn,Shn,xI,Ab,Phn,ZH,s9,Ihn,Sb,f9,BI,Qd,nq,$m,RI,Yd,Ohn,Lhn,Dhn,Fm,Nhn,Hte,qte,Ute,Gte,Pb,eg,Kt,L1,zte,tg,$hn,xm,Fhn,ig,Xte,Bm,xhn,Up,Wte,Vte,_j,eq,Bhn,Hj,ef,K2,_2,Ib,Zd,KI,rg,tq,Rm,Km,Ob,H2,iq,qj,h9,l9,Jte,Qte,Yte,Rhn,Zte,rq,Khn,_hn,Hhn,qhn,cq,Uhn,Ghn,zhn,Xhn,uq,_I,nie,HI,eie,Ofn=we(Ic,"LayerConstraint",171,ke,function Bpe(){return ts(),S(T(Ofn,1),G,171,0,[Rj,r9,Na,c9,Qw])},function $de(n){return ts(),Ee((d$n(),Lne),n)});b(859,1,Es,r8n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Pin),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),_fn),(C1(),Tt)),tfn),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Iin),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Kn(),!1)),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,IS),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Xfn),Tt),pfn),yn(Fn)))),ti(e,IS,DR,Tee),ti(e,IS,C8,Mee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Oin),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Lin),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),mi),qt),yn(Fn)))),mn(e,new ln(function Ahe(n,e){return n.f=e,n}(vn(gn(pn(An(an(wn(dn(bn(new hn,Din),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),mi),qt),yn(e0)),S(T(fn,1),J,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Nin),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),ehn),Tt),hln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,$in),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Y(7)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Fin),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,xin),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,DR),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Kfn),Tt),nfn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,rj),iK),"Node Layering Strategy"),"Strategy for node layering."),Jfn),Tt),Yhn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Bin),iK),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Wfn),Tt),Ofn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Rin),iK),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Kin),iK),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,NR),nWn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Y(4)),Zr),qi),yn(Fn)))),ti(e,NR,rj,Dee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,$R),nWn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Y(2)),Zr),qi),yn(Fn)))),ti(e,$R,rj,$ee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,FR),eWn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Vfn),Tt),oln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,xR),eWn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Y(0)),Zr),qi),yn(Fn)))),ti(e,xR,FR,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,BR),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Y(nt)),Zr),qi),yn(Fn)))),ti(e,BR,rj,See),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,C8),om),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Rfn),Tt),Jsn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_in),om),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,RR),om),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Ji),ui),yn(Fn)))),ti(e,RR,qS,Yne),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,KR),om),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),mi),qt),yn(Fn)))),ti(e,KR,C8,ree),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Hin),om),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),J2),fn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,qin),om),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),J2),fn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Uin),om),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Gin),om),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zin),tWn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Y(40)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_R),tWn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Bfn),Tt),NH),yn(Fn)))),ti(e,_R,C8,Jne),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,OS),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),xfn),Tt),NH),yn(Fn)))),ti(e,OS,C8,Xne),ti(e,OS,qS,Wne),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,k2),iWn),"Node Placement Strategy"),"Strategy for node placement."),nhn),Tt),tln),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,LS),iWn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),mi),qt),yn(Fn)))),ti(e,LS,k2,zee),ti(e,LS,k2,Xee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,HR),rWn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Qfn),Tt),cfn),yn(Fn)))),ti(e,HR,k2,Hee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,qR),rWn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Yfn),Tt),hfn),yn(Fn)))),ti(e,qR,k2,Uee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,UR),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Ji),ui),yn(Fn)))),ti(e,UR,k2,Vee),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,GR),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Tt),lq),yn(wi)))),ti(e,GR,k2,Zee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zR),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Zfn),Tt),lq),yn(Fn)))),ti(e,zR,k2,Yee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Xin),cWn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Ufn),Tt),dln),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Win),cWn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Gfn),Tt),bln),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,DS),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),zfn),Tt),gln),yn(Fn)))),ti(e,DS,cj,wee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,NS),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Ji),ui),yn(Fn)))),ti(e,NS,cj,vee),ti(e,NS,DS,pee),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,XR),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Ji),ui),yn(Fn)))),ti(e,XR,cj,lee),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Vin),Wf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Jin),Wf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Qin),Wf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Yin),Wf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Zin),frn),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,nrn),frn),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ern),frn),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Y(0)),Zr),qi),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,WR),hrn),jXn),"Tries to further compact components (disconnected sub-graphs)."),!1),mi),qt),yn(Fn)))),ti(e,WR,m8,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,trn),uWn),"Post Compaction Strategy"),oWn),Dfn),Tt),gfn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,irn),uWn),"Post Compaction Constraint Calculation"),oWn),Lfn),Tt),Wsn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,$S),lrn),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,VR),lrn),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Y(16)),Zr),qi),yn(Fn)))),ti(e,VR,$S,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,JR),lrn),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Y(5)),Zr),qi),yn(Fn)))),ti(e,JR,$S,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_l),arn),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),rhn),Tt),kln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,FS),arn),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Ji),ui),yn(Fn)))),ti(e,FS,_l,ate),ti(e,FS,_l,dte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,xS),arn),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Ji),ui),yn(Fn)))),ti(e,xS,_l,wte),ti(e,xS,_l,gte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,M8),sWn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),ihn),Tt),Ysn),yn(Fn)))),ti(e,M8,_l,jte),ti(e,M8,_l,Ete),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,QR),sWn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Zf),ss),yn(Fn)))),ti(e,QR,M8,pte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,YR),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),thn),Zr),qi),yn(Fn)))),ti(e,YR,M8,kte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,BS),fWn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),chn),Tt),mln),yn(Fn)))),ti(e,BS,_l,$te),ti(e,BS,_l,Fte),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,RS),fWn),"Valid Indices for Wrapping"),null),Zf),ss),yn(Fn)))),ti(e,RS,_l,Lte),ti(e,RS,_l,Dte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,KS),drn),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),mi),qt),yn(Fn)))),ti(e,KS,_l,Ate),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_S),drn),"Distance Penalty When Improving Cuts"),null),2),Ji),ui),yn(Fn)))),ti(e,_S,_l,Mte),ti(e,_S,KS,!0),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ZR),drn),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),mi),qt),yn(Fn)))),ti(e,ZR,_l,Pte),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,rrn),rK),"Edge Label Side Selection"),"Method to decide on edge label sides."),qfn),Tt),ifn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,crn),rK),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Hfn),Tt),Am),pt(Fn,S(T(ol,1),G,170,0,[F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,HS),T8),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),Ffn),Tt),fln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,urn),T8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,orn),T8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,nK),T8),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),Nfn),Tt),tsn),yn(Fn)))),ti(e,nK,m8,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,srn),T8),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),$fn),Tt),nln),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,eK),T8),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Ji),ui),yn(Fn)))),ti(e,eK,HS,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,tK),T8),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Ji),ui),yn(Fn)))),ti(e,tK,HS,null),Azn((new c8n,e))},w(Ic,"LayeredMetaDataProvider",859),b(998,1,Es,c8n),o.hf=function(e){Azn(e)},w(Ic,"LayeredOptions",998),b(999,1,{},Uvn),o.sf=function(){return new Xyn},o.tf=function(e){},w(Ic,"LayeredOptions/LayeredFactory",999),b(1391,1,{}),o.a=0,w(gc,"ElkSpacings/AbstractSpacingsBuilder",1391),b(792,1391,{},wZ),w(Ic,"LayeredSpacings/LayeredSpacingsBuilder",792),b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},Sg),o.dg=function(){return Hqn(this)},o.qg=function(){return Hqn(this)};var _m,oq,Hm,Whn,Vhn,Jhn,qI,sq,Qhn,tie,Yhn=we(Ic,"LayeringStrategy",265,ke,function O4e(){return M1(),S(T(Yhn,1),G,265,0,[sq,Vhn,Jhn,oq,Whn,Qhn,qI,_m,Hm])},function Fde(n){return M1(),Ee((JFn(),tie),n)});b(390,22,{3:1,34:1,22:1,390:1},gD);var fq,Zhn,UI,iie,nln=we(Ic,"LongEdgeOrderingStrategy",390,ke,function x2e(){return I5(),S(T(nln,1),G,390,0,[fq,Zhn,UI])},function xde(n){return I5(),Ee((JDn(),iie),n)});b(203,22,{3:1,34:1,22:1,203:1},NC);var q2,U2,GI,hq,rie,lq=we(Ic,"NodeFlexibility",203,ke,function zve(){return kw(),S(T(lq,1),G,203,0,[GI,hq,U2,q2])},function Bde(n){return kw(),Ee((DNn(),rie),n)});b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},P7),o.dg=function(){return LHn(this)},o.qg=function(){return LHn(this)};var a9,aq,dq,d9,eln,cie,tln=we(Ic,"NodePlacementStrategy",323,ke,function xpe(){return K5(),S(T(tln,1),G,323,0,[eln,aq,dq,a9,d9])},function Rde(n){return K5(),Ee((a$n(),cie),n)});b(243,22,{3:1,34:1,22:1,243:1},Wb);var iln,Lb,cg,Uj,rln,cln,Gj,uln,zI,XI,uie,oln=we(Ic,"NodePromotionStrategy",243,ke,function tme(){return js(),S(T(oln,1),G,243,0,[zI,Uj,Gj,rln,cln,iln,uln,XI,Lb,cg])},function Kde(n){return js(),Ee((gxn(),uie),n)});b(284,22,{3:1,34:1,22:1,284:1},$C);var sln,D1,bq,wq,oie,fln=we(Ic,"OrderingStrategy",284,ke,function Xve(){return vh(),S(T(fln,1),G,284,0,[D1,sln,bq,wq])},function _de(n){return vh(),Ee((NNn(),oie),n)});b(430,22,{3:1,34:1,22:1,430:1},jX);var gq,vq,sie,hln=we(Ic,"PortSortingStrategy",430,ke,function Rge(){return Ok(),S(T(hln,1),G,430,0,[gq,vq])},function Hde(n){return Ok(),Ee((uDn(),sie),n)});b(463,22,{3:1,34:1,22:1,463:1},vD);var Vu,nu,b9,hie,fie=we(Ic,"PortType",463,ke,function B2e(){return wr(),S(T(fie,1),G,463,0,[b9,Vu,nu])},function qde(n){return wr(),Ee((ZDn(),hie),n)});b(387,22,{3:1,34:1,22:1,387:1},pD);var lln,pq,aln,lie,dln=we(Ic,"SelfLoopDistributionStrategy",387,ke,function R2e(){return XT(),S(T(dln,1),G,387,0,[lln,pq,aln])},function Ude(n){return XT(),Ee((QDn(),lie),n)});b(349,22,{3:1,34:1,22:1,349:1},mD);var mq,zj,kq,aie,bln=we(Ic,"SelfLoopOrderingStrategy",349,ke,function K2e(){return A5(),S(T(bln,1),G,349,0,[kq,mq,zj])},function Gde(n){return A5(),Ee((YDn(),aie),n)});b(312,1,{312:1},CGn),w(Ic,"Spacings",312),b(350,22,{3:1,34:1,22:1,350:1},kD);var yq,wln,w9,die,gln=we(Ic,"SplineRoutingMode",350,ke,function _2e(){return m4(),S(T(gln,1),G,350,0,[yq,wln,w9])},function zde(n){return m4(),Ee((nNn(),die),n)});b(352,22,{3:1,34:1,22:1,352:1},yD);var jq,vln,pln,bie,mln=we(Ic,"ValidifyStrategy",352,ke,function H2e(){return LT(),S(T(mln,1),G,352,0,[pln,jq,vln])},function Xde(n){return LT(),Ee((eNn(),bie),n)});b(388,22,{3:1,34:1,22:1,388:1},jD);var ug,Eq,qm,wie,gie,vie,pie,mie,kie,yie,jie,Eie,Cie,yln,jln,Mie,kln=we(Ic,"WrappingStrategy",388,ke,function q2e(){return QT(),S(T(kln,1),G,388,0,[Eq,qm,ug])},function Wde(n){return QT(),Ee((tNn(),wie),n)});b(1398,1,pr,J5n),o.rg=function(e){return u(e,36),gie},o.Kf=function(e,t){!function TIe(n,e,t){var r,c,s,h,l,a,d,v;for(t.Ug("Depth-first cycle removal",1),a=(d=e.a).c.length,n.c=new Z,n.d=K(fo,el,28,a,16,1),n.a=K(fo,el,28,a,16,1),n.b=new Z,s=0,l=new C(d);l.a0?te+1:1);for(s=new C(X.g);s.a0?te+1:1)}0==n.c[l]?xe(n.e,k):0==n.a[l]&&xe(n.f,k),++l}for(p=-1,v=1,d=new Z,n.d=u(m(e,(V(),Hp)),234);Ko>0;){for(;0!=n.e.b;)It=u(bN(n.e),10),n.b[It.p]=p--,Zen(n,It),--Ko;for(;0!=n.f.b;)Zu=u(bN(n.f),10),n.b[Zu.p]=v++,Zen(n,Zu),--Ko;if(Ko>0){for(g=Xi,I=new C(O);I.a=g&&($>g&&(d.c.length=0,g=$),Rn(d.c,k));a=n.sg(d),n.b[a.p]=v++,Zen(n,a),--Ko}}for(Fe=O.c.length+1,l=0;ln.b[(i=r[c]).d.i.p]&&(cb(i,!0),U(e,Fj,(Kn(),!0)));n.a=null,n.c=null,n.b=null,jo(n.f),jo(n.e),t.Vg()}(this,u(e,36),t)},o.sg=function(e){return u(sn(e,CA(this.d,e.c.length)),10)},w(XS,"GreedyCycleBreaker",793),b(1401,793,pr,qMn),o.sg=function(e){var t,i,r,c;for(c=null,t=nt,r=new C(e);r.a0&&v_n(n,f,d);for(r=new C(d);r.a0){for(O=ge(n.f,0);O.b!=O.d.c;)u(be(O),10).p+=g-n.e;_nn(n),jo(n.f),Fen(n,i,v)}else{for(xe(n.f,v),v.p=i,n.e=y.Math.max(n.e,i),c=new ie(ce(ki(v).a.Kc(),new Vn));ve(c);)!(r=u(fe(c),18)).c.i.c&&r.c.i.k==(Xn(),Oc)&&(xe(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else _nn(n),jo(n.f),i=0,ve(new ie(ce(ki(v).a.Kc(),new Vn)))?Fen(n,i=(g=yRn(g=0,v))+2,v):(xe(n.f,v),v.p=0,n.e=y.Math.max(n.e,0),n.b=u(sn(n.d.b,0),30),n.c=0);for(0==n.f.b||_nn(n),n.d.a.c.length=0,A=new Z,l=new C(n.d.b);l.a=f){oe(I.b>0),I.a.Xb(I.c=--I.b);break}j.a>h&&(i?(si(i.b,j.b),i.a=y.Math.max(i.a,j.a),vo(I)):(nn(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j))}i||((i=new Qyn).c=h,i.a=f,nw(I,i),nn(i.b,a))}for(s=n.b,l=0,A=new C(t);A.ae.p?-1:0}(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Hl,"StretchWidthLayerer/1",1409),b(413,1,Wrn),o.gg=function(e,t,i,r,c,s){},o.ug=function(e,t,i){return wUn(this,e,t,i)},o.fg=function(){this.g=K(kg,lWn,28,this.d,15,1),this.f=K(kg,lWn,28,this.d,15,1)},o.hg=function(e,t){this.e[e]=K(ye,_e,28,t[e].length,15,1)},o.ig=function(e,t,i){i[e][t].p=t,this.e[e][t]=t},o.jg=function(e,t,i,r){u(sn(r[e][t].j,i),12).p=this.d++},o.b=0,o.c=0,o.d=0,w(xu,"AbstractBarycenterPortDistributor",413),b(1698,1,Ne,x7n),o.Ne=function(e,t){return function Q8e(n,e,t){var i,r,c,s;return(c=e.j)!=(s=t.j)?c.g-s.g:(r=n.f[t.p],0==(i=n.f[e.p])&&0==r?0:0==i?-1:0==r?1:at(i,r))}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(xu,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),b(832,1,ij,KJ),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.jg=function(e,t,i,r){},o.eg=function(){return!1},o.fg=function(){this.c=this.e.a,this.g=this.f.g},o.hg=function(e,t){t[e][0].c.p=e},o.kg=function(){return!1},o.vg=function(e,t,i,r){i?pKn(this,e):(jKn(this,e,r),xGn(this,e,t)),e.c.length>1&&(on(un(m(Ki((Ln(0,e.c.length),u(e.c[0],10))),(cn(),Tb))))?GHn(e,this.d,u(this,669)):(On(),Jt(e,this.d)),zFn(this.e,e))},o.lg=function(e,t,i,r){var f,h,l,a,d;for(t!=fPn(i,e.length)&&hQ(this.f,e[t-(i?1:-1)],i?(wr(),nu):(wr(),Vu)),d=!r||e[t][0].k==(Xn(),Qt),a=Ff(e[t]),this.vg(a,d,!1,i),f=0,l=new C(a);l.a"),e0?t$(this.a,e[t-1],e[t]):!i&&t0&&(t+=h.n.a+h.o.a/2,++d),p=new C(h.j);p.a0&&(t/=d),A=K(Ai,Mr,28,i.a.c.length,15,1),f=0,l=new C(i.a);l.a1&&(on(un(m(Ki((Ln(0,e.c.length),u(e.c[0],10))),(cn(),Tb))))?GHn(e,this.d,this):(On(),Jt(e,this.d)),on(un(m(Ki((Ln(0,e.c.length),u(e.c[0],10))),Tb)))||zFn(this.e,e))},w(xu,"ModelOrderBarycenterHeuristic",669),b(1866,1,Ne,z7n),o.Ne=function(e,t){return Tje(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(xu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),b(1423,1,pr,o8n),o.rg=function(e){var t;return u(e,36),Ke(t=QC(Die),(zi(),$c),(nr(),tI)),t},o.Kf=function(e,t){!function fge(n){n.Ug("No crossing minimization",1),n.Vg()}((u(e,36),t))},w(xu,"NoCrossingMinimizer",1423),b(809,413,Wrn,Gz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p;switch(g=this.g,i.g){case 1:for(c=0,s=0,d=new C(e.j);d.a1&&(c.j==(en(),Zn)?this.b[e]=!0:c.j==Wn&&e>0&&(this.b[e-1]=!0))},o.f=0,w(tl,"AllCrossingsCounter",1861),b(595,1,{},HT),o.b=0,o.d=0,w(tl,"BinaryIndexedTree",595),b(532,1,{},J7),w(tl,"CrossingsCounter",532),b(1950,1,Ne,X7n),o.Ne=function(e,t){return function $be(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$0$Type",1950),b(1951,1,Ne,W7n),o.Ne=function(e,t){return function Fbe(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$1$Type",1951),b(1952,1,Ne,V7n),o.Ne=function(e,t){return function xbe(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$2$Type",1952),b(1953,1,Ne,J7n),o.Ne=function(e,t){return function Bbe(n,e,t){return Tc(n.d[e.p],n.d[t.p])}(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(tl,"CrossingsCounter/lambda$3$Type",1953),b(1954,1,re,Q7n),o.Cd=function(e){!function B3e(n,e){return L3(),nn(n,new ai(e,Y(e.e.c.length+e.g.c.length)))}(this.a,u(e,12))},w(tl,"CrossingsCounter/lambda$4$Type",1954),b(1955,1,Le,Y7n),o.Mb=function(e){return function fle(n,e){return L3(),e!=n}(this.a,u(e,12))},w(tl,"CrossingsCounter/lambda$5$Type",1955),b(1956,1,re,Z7n),o.Cd=function(e){NMn(this,e)},w(tl,"CrossingsCounter/lambda$6$Type",1956),b(1957,1,re,GCn),o.Cd=function(e){var t;L3(),sa(this.b,(t=this.a,u(e,12),t))},w(tl,"CrossingsCounter/lambda$7$Type",1957),b(839,1,Eh,kG),o.Lb=function(e){return L3(),vt(u(e,12),(V(),Wu))},o.Fb=function(e){return this===e},o.Mb=function(e){return L3(),vt(u(e,12),(V(),Wu))},w(tl,"CrossingsCounter/lambda$8$Type",839),b(1949,1,{},nkn),w(tl,"HyperedgeCrossingsCounter",1949),b(478,1,{34:1,478:1},WAn),o.Fd=function(e){return function x8e(n,e){return n.ee.e?1:n.fe.f?1:wt(n)-wt(e)}(this,u(e,478))},o.b=0,o.c=0,o.e=0,o.f=0;var vNe=w(tl,"HyperedgeCrossingsCounter/Hyperedge",478);b(374,1,{34:1,374:1},qM),o.Fd=function(e){return function QCe(n,e){return n.ce.c?1:n.be.b?1:n.a!=e.a?wt(n.a)-wt(e.a):n.d==(b5(),p9)&&e.d==v9?-1:n.d==v9&&e.d==p9?1:0}(this,u(e,374))},o.b=0,o.c=0;var Nie=w(tl,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},EX);var v9,p9,Fie,xie,Bie,JI,QI,$ie=we(tl,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,ke,function Kge(){return b5(),S(T($ie,1),G,531,0,[p9,v9])},function Jde(n){return b5(),Ee((oDn(),Fie),n)});b(1425,1,pr,s8n),o.rg=function(e){return u(m(u(e,36),(V(),zc)),21).Hc((gr(),fs))?xie:null},o.Kf=function(e,t){!function ske(n,e,t){var r;for(t.Ug("Interactive node placement",1),n.a=u(m(e,(V(),B2)),312),r=new C(e.b);r.a1},w(mr,"NetworkSimplexPlacer/lambda$18$Type",1451),b(1452,1,re,AIn),o.Cd=function(e){!function c8e(n,e,t,i,r){Eo(),Vs(Rs(Bs(xs(Ks(new ws,0),r.d.e-n),e),r.d)),Vs(Rs(Bs(xs(Ks(new ws,0),t-r.a.e),r.a),i))}(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0,w(mr,"NetworkSimplexPlacer/lambda$19$Type",1452),b(1435,1,{},lpn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$2$Type",1435),b(1453,1,re,rkn),o.Cd=function(e){!function t1e(n,e){return Eo(),e.n.b+=n}(this.a,u(e,12))},o.a=0,w(mr,"NetworkSimplexPlacer/lambda$20$Type",1453),b(1454,1,{},apn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$21$Type",1454),b(1455,1,re,ckn),o.Cd=function(e){b1e(this.a,u(e,10))},w(mr,"NetworkSimplexPlacer/lambda$22$Type",1455),b(1456,1,Le,dpn),o.Mb=function(e){return LAn(e)},w(mr,"NetworkSimplexPlacer/lambda$23$Type",1456),b(1457,1,{},bpn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$24$Type",1457),b(1458,1,Le,ukn),o.Mb=function(e){return function Ele(n,e){return 2==n.j[e.p]}(this.a,u(e,10))},w(mr,"NetworkSimplexPlacer/lambda$25$Type",1458),b(1459,1,re,WCn),o.Cd=function(e){!function Ije(n,e,t){var i,r,c;for(r=new ie(ce(Nl(t).a.Kc(),new Vn));ve(r);)!or(i=u(fe(r),18))&&(or(i)||i.c.i.c!=i.d.i.c)&&(c=YHn(n,i,t,new tjn)).c.length>1&&Rn(e.c,c)}(this.a,this.b,u(e,10))},w(mr,"NetworkSimplexPlacer/lambda$26$Type",1459),b(1460,1,Le,wpn),o.Mb=function(e){return Eo(),!or(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$27$Type",1460),b(1461,1,Le,gpn),o.Mb=function(e){return Eo(),!or(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$28$Type",1461),b(1462,1,{},okn),o.Ve=function(e,t){return e1e(this.a,u(e,30),u(t,30))},w(mr,"NetworkSimplexPlacer/lambda$29$Type",1462),b(1436,1,{},vpn),o.Kb=function(e){return Eo(),new Mn(null,new L0(new ie(ce(Vt(u(e,10)).a.Kc(),new Vn))))},w(mr,"NetworkSimplexPlacer/lambda$3$Type",1436),b(1437,1,Le,ppn),o.Mb=function(e){return Eo(),function Ove(n){return Eo(),!(or(n)||!or(n)&&n.c.i.c==n.d.i.c)}(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$4$Type",1437),b(1438,1,re,skn),o.Cd=function(e){!function PPe(n,e){var t,i,s,f,h,a,d,g,p;t=M0(new od,n.f),f=(h=e.c).a.b,d=(g=e.d).a.b,n.i[e.c.i.p].b||(f+=h.n.b),n.i[e.d.i.p].b||(d+=g.n.b),a=di(y.Math.max(0,f-d)),s=di(y.Math.max(0,d-f)),p=y.Math.max(1,u(m(e,(cn(),Up)),17).a)*XJ(e.c.i.k,e.d.i.k),i=new zCn(Vs(Rs(Bs(xs(Ks(new ws,p),s),t),u(ee(n.k,e.c),125))),Vs(Rs(Bs(xs(Ks(new ws,p),a),t),u(ee(n.k,e.d),125)))),n.c[e.p]=i}(this.a,u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$5$Type",1438),b(1439,1,{},mpn),o.Kb=function(e){return Eo(),new Mn(null,new Pn(u(e,30).a,16))},w(mr,"NetworkSimplexPlacer/lambda$6$Type",1439),b(1440,1,Le,kpn),o.Mb=function(e){return Eo(),u(e,10).k==(Xn(),Ut)},w(mr,"NetworkSimplexPlacer/lambda$7$Type",1440),b(1441,1,{},ypn),o.Kb=function(e){return Eo(),new Mn(null,new L0(new ie(ce(Nl(u(e,10)).a.Kc(),new Vn))))},w(mr,"NetworkSimplexPlacer/lambda$8$Type",1441),b(1442,1,Le,jpn),o.Mb=function(e){return Eo(),function pbe(n){return!or(n)&&n.c.i.c==n.d.i.c}(u(e,18))},w(mr,"NetworkSimplexPlacer/lambda$9$Type",1442),b(1424,1,pr,h8n),o.rg=function(e){return u(m(u(e,36),(V(),zc)),21).Hc((gr(),fs))?_ie:null},o.Kf=function(e,t){!function fIe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Simple node placement",1),d=u(m(n,(V(),B2)),312),f=0,c=new C(n.b);c.a0?(v=(p-1)*t,f&&(v+=i),a&&(v+=i),v0&&(O-=v),vtn(s,O),a=0,g=new C(s.a);g.a0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b"+this.b+" ("+function _1e(n){return null!=n.f?n.f:""+n.g}(this.c)+")"},o.d=0,w(Cf,"HyperEdgeSegmentDependency",132),b(528,22,{3:1,34:1,22:1,528:1},TX);var Fa,og,ure,ore,sre,fre,hre,lre,cre=we(Cf,"HyperEdgeSegmentDependency/DependencyType",528,ke,function Uge(){return pf(),S(T(cre,1),G,528,0,[og,Fa])},function Zde(n){return pf(),Ee((dDn(),ure),n)});b(1878,1,{},hkn),w(Cf,"HyperEdgeSegmentSplitter",1878),b(1879,1,{},tEn),o.a=0,o.b=0,w(Cf,"HyperEdgeSegmentSplitter/AreaRating",1879),b(339,1,{339:1},hN),o.a=0,o.b=0,o.c=0,w(Cf,"HyperEdgeSegmentSplitter/FreeArea",339),b(1880,1,Ne,Dpn),o.Ne=function(e,t){return function _ae(n,e){return at(n.c-n.s,e.c-e.s)}(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Cf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),b(1881,1,re,SIn),o.Cd=function(e){wpe(this.a,this.d,this.c,this.b,u(e,118))},o.b=0,w(Cf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),b(1882,1,{},Npn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).e,16))},w(Cf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),b(1883,1,{},$pn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).j,16))},w(Cf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),b(1884,1,{},Fpn),o.Ye=function(e){return F(R(e))},w(Cf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),b(664,1,{},$N),o.a=0,o.b=0,o.c=0,w(Cf,"OrthogonalRoutingGenerator",664),b(1703,1,{},xpn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).e,16))},w(Cf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),b(1704,1,{},Bpn),o.Kb=function(e){return new Mn(null,new Pn(u(e,118).j,16))},w(Cf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),b(670,1,{}),w(hK,"BaseRoutingDirectionStrategy",670),b(1870,670,{},cjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j;if(!e.r||e.q)for(d=t+e.o*i,a=new C(e.n);a.aMh&&(c=e,r=new W(g,s=d),xe(f.a,r),rb(this,f,c,r,!1),(v=e.r)&&(r=new W(p=F(R(is(v.e,0))),s),xe(f.a,r),rb(this,f,c,r,!1),c=v,r=new W(p,s=t+v.o*i),xe(f.a,r),rb(this,f,c,r,!1)),r=new W(j,s),xe(f.a,r),rb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),ae},o.Bg=function(){return en(),zn},w(hK,"NorthToSouthRoutingStrategy",1870),b(1871,670,{},ujn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j;if(!e.r||e.q)for(d=t-e.o*i,a=new C(e.n);a.aMh&&(c=e,r=new W(g,s=d),xe(f.a,r),rb(this,f,c,r,!1),(v=e.r)&&(r=new W(p=F(R(is(v.e,0))),s),xe(f.a,r),rb(this,f,c,r,!1),c=v,r=new W(p,s=t-v.o*i),xe(f.a,r),rb(this,f,c,r,!1)),r=new W(j,s),xe(f.a,r),rb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),zn},o.Bg=function(){return en(),ae},w(hK,"SouthToNorthRoutingStrategy",1871),b(1869,670,{},ojn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,v,p,k,j;if(!e.r||e.q)for(d=t+e.o*i,a=new C(e.n);a.aMh&&(c=e,r=new W(s=d,g),xe(f.a,r),rb(this,f,c,r,!0),(v=e.r)&&(r=new W(s,p=F(R(is(v.e,0)))),xe(f.a,r),rb(this,f,c,r,!0),c=v,r=new W(s=t+v.o*i,p),xe(f.a,r),rb(this,f,c,r,!0)),r=new W(s,j),xe(f.a,r),rb(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return en(),Zn},o.Bg=function(){return en(),Wn},w(hK,"WestToEastRoutingStrategy",1869),b(828,1,{},htn),o.Ib=function(){return pa(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0,w(xw,"NubSpline",828),b(418,1,{418:1},gqn,uOn),w(xw,"NubSpline/PolarCP",418),b(1480,1,pr,YRn),o.rg=function(e){return function oye(n){var e,t;return So(e=new ei,ore),(t=u(m(n,(V(),zc)),21)).Hc((gr(),e9))&&So(e,lre),t.Hc(Om)&&So(e,sre),t.Hc(N2)&&So(e,hre),t.Hc(Lm)&&So(e,fre),e}(u(e,36))},o.Kf=function(e,t){!function rDe(n,e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,I,O,$,_,X,tn,jn,kn,Bn,$n,te;if(t.Ug("Spline edge routing",1),0==e.b.c.length)return e.f.a=0,void t.Vg();I=F(R(m(e,(cn(),H2)))),f=F(R(m(e,Zd))),s=F(R(m(e,K2))),jn=u(m(e,QH),350)==(m4(),w9),tn=F(R(m(e,ghn))),n.d=e,n.j.c.length=0,n.a.c.length=0,qu(n.k),a=XC((h=u(sn(e.b,0),30)).a,(JA(),Wj)),d=XC((p=u(sn(e.b,e.b.c.length-1),30)).a,Wj),k=new C(e.b),j=null,te=0;do{for(BLe(n,j,O=k.a0?(l=0,j&&(l+=f),l+=(kn-1)*s,O&&(l+=f),jn&&O&&(l=y.Math.max(l,ETe(O,s,I,tn))),l("+this.c+") "+this.b},o.c=0,w(xw,"SplineEdgeRouter/Dependency",274),b(465,22,{3:1,34:1,22:1,465:1},AX);var xa,G2,dre,are=we(xw,"SplineEdgeRouter/SideToProcess",465,ke,function Jge(){return K0(),S(T(are,1),G,465,0,[xa,G2])},function n0e(n){return K0(),Ee((bDn(),dre),n)});b(1481,1,Le,Rpn),o.Mb=function(e){return e8(),!u(e,131).o},w(xw,"SplineEdgeRouter/lambda$0$Type",1481),b(1482,1,{},Kpn),o.Ze=function(e){return e8(),u(e,131).v+1},w(xw,"SplineEdgeRouter/lambda$1$Type",1482),b(1483,1,re,eMn),o.Cd=function(e){!function jbe(n,e,t){return Xe(n.b,u(t.b,18),e)}(this.a,this.b,u(e,42))},w(xw,"SplineEdgeRouter/lambda$2$Type",1483),b(1484,1,re,tMn),o.Cd=function(e){!function Ebe(n,e,t){return Xe(n.b,u(t.b,18),e)}(this.a,this.b,u(e,42))},w(xw,"SplineEdgeRouter/lambda$3$Type",1484),b(131,1,{34:1,131:1},I_n,gtn),o.Fd=function(e){return function Mhe(n,e){return n.s-e.s}(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0,w(xw,"SplineSegment",131),b(468,1,{468:1},_pn),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0,w(xw,"SplineSegment/EdgeInformation",468),b(1198,1,{},Hpn),w(ql,din,1198),b(1199,1,Ne,qpn),o.Ne=function(e,t){return function qEe(n,e){var t,i,r;return 0==(t=u(m(e,(bc(),tO)),17).a-u(m(n,tO),17).a)?(i=gi(Bi(u(m(n,(bt(),Jj)),8)),u(m(n,Um),8)),r=gi(Bi(u(m(e,Jj),8)),u(m(e,Um),8)),at(i.a*i.b,r.a*r.b)):t}(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ql,TXn,1199),b(1197,1,{},pEn),w(ql,"MrTree",1197),b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},FC),o.dg=function(){return Q_n(this)},o.qg=function(){return Q_n(this)};var YI,m9,k9,y9,bre,Mln=we(ql,"TreeLayoutPhases",405,ke,function Yve(){return lp(),S(T(Mln,1),G,405,0,[YI,m9,k9,y9])},function e0e(n){return lp(),Ee((_Nn(),bre),n)});b(1112,205,Fd,zAn),o.rf=function(e,t){var r,c,s,f,h,l,a;for(on(un(z(e,(bc(),Jln))))||lk(new o6((k0(),new a0(e)))),(f=t.eh(dK)).Ug("build tGraph",1),qr(l=new kk,e),U(l,(bt(),E9),e),function $Se(n,e,t){var i,r,c,s,f;for(c=0,r=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));r.e!=r.i.gc();)s="",0==(!(i=u(ue(r),27)).n&&(i.n=new q(Tr,i,1,7)),i.n).i||(s=u(D((!i.n&&(i.n=new q(Tr,i,1,7)),i.n),0),135).a),qr(f=new dF(c++,e,s),i),U(f,(bt(),E9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),xe(e.b,f),Yc(t.f,i,f)}(e,l,a=new de),function nPe(n,e,t){var i,r,c,s,f,h,l;for(s=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));s.e!=s.i.gc();)for(r=new ie(ce(xl(c=u(ue(s),27)).a.Kc(),new Vn));ve(r);)!Q5(i=u(fe(r),74))&&!Q5(i)&&!tb(i)&&(h=u(Rr(br(t.f,c)),40),l=u(ee(t,Ur(u(D((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),40),h&&l&&(U(f=new pJ(h,l),(bt(),E9),i),qr(f,i),xe(h.d,f),xe(l.b,f),xe(e.a,f)))}(e,l,a),h=l,f.Vg(),(f=t.eh(dK)).Ug("Split graph",1),s=_Se(this.a,h),f.Vg(),c=new C(s);c.ad&&($n=0,te+=a+tn,a=0),bUn(_,s,$n,te),e=y.Math.max(e,$n+X.a),a=y.Math.max(a,X.b),$n+=X.a+tn;for($=new de,t=new de,kn=new C(n);kn.a"+vd(e.c):"e_"+wt(e),n.b&&n.c?vd(n.b)+"->"+vd(n.c):"e_"+wt(n))}(this.a,u(e,65))},w(ql,"TreeUtil/lambda$3$Type",1886),b(1887,1,Ne,Upn),o.Ne=function(e,t){return function Hae(n,e){return at(n.b.e.a,e.b.e.a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ql,"TreeUtil/lambda$4$Type",1887),b(1888,1,Le,bkn),o.Mb=function(e){return function F5e(n,e){return Tn(e.b&&e.c?vd(e.b)+"->"+vd(e.c):"e_"+wt(e),n.b&&n.c?vd(n.b)+"->"+vd(n.c):"e_"+wt(n))}(this.a,u(e,65))},w(ql,"TreeUtil/lambda$7$Type",1888),b(1889,1,Ne,Wpn),o.Ne=function(e,t){return function qae(n,e){return at(n.c.e.a,e.c.e.a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ql,"TreeUtil/lambda$8$Type",1889),b(1890,1,{},Vpn),o.Kb=function(e){return u(e,65).b},w(ql,"TreeUtil/lambda$9$Type",1890),b(508,137,{3:1,508:1,96:1,137:1}),o.g=0,w(A8,"TGraphElement",508),b(65,508,{3:1,65:1,508:1,96:1,137:1},pJ),o.Ib=function(){return this.b&&this.c?vd(this.b)+"->"+vd(this.c):"e_"+wt(this)},w(A8,"TEdge",65),b(121,137,{3:1,121:1,96:1,137:1},kk),o.Ib=function(){var e,t,i,r,c;for(c=null,r=ge(this.b,0);r.b!=r.d.c;)c+=(null==(i=u(be(r),40)).c||0==i.c.length?"n_"+i.g:"n_"+i.c)+"\n";for(t=ge(this.a,0);t.b!=t.d.c;)c+=((e=u(be(t),65)).b&&e.c?vd(e.b)+"->"+vd(e.c):"e_"+wt(e))+"\n";return c};var kNe=w(A8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1}),w(A8,"TShape",643),b(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},dF),o.Ib=function(){return vd(this)};var ZI=w(A8,"TNode",40);b(236,1,Qh,pl),o.Jc=function(e){_i(this,e)},o.Kc=function(){return new Eg(ge(this.a.d,0))},w(A8,"TNode/2",236),b(329,1,Ti,Eg),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(be(this.a),65).c},o.Ob=function(){return w7(this.a)},o.Qb=function(){_$(this.a)},w(A8,"TNode/2/1",329),b(1923,1,gt,Jpn),o.Kf=function(e,t){NDe(this,u(e,121),t)},w(qc,"CompactionProcessor",1923),b(1924,1,Ne,wkn),o.Ne=function(e,t){return function yme(n,e,t){return at(Dv(P4(n),new W(e.e.a,e.e.b)),Dv(P4(n),new W(t.e.a,t.e.b)))}(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$0$Type",1924),b(1925,1,Le,rMn),o.Mb=function(e){return function Age(n,e,t){return F(R(t.a))<=n&&F(R(t.b))>=e}(this.b,this.a,u(e,42))},o.a=0,o.b=0,w(qc,"CompactionProcessor/lambda$1$Type",1925),b(1934,1,Ne,Qpn),o.Ne=function(e,t){return function pwe(n,e){return at(n.e.a+n.f.a,e.e.a+e.f.a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$10$Type",1934),b(1935,1,Ne,Ypn),o.Ne=function(e,t){return function L1e(n,e){return at(n.e.b,e.e.b)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$11$Type",1935),b(1936,1,Ne,Zpn),o.Ne=function(e,t){return function mwe(n,e){return at(n.e.b+n.f.b,e.e.b+e.f.b)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$12$Type",1936),b(1926,1,Le,gkn),o.Mb=function(e){return function w1e(n,e){return F(R(e.a))<=n}(this.a,u(e,42))},o.a=0,w(qc,"CompactionProcessor/lambda$2$Type",1926),b(1927,1,Le,vkn),o.Mb=function(e){return function g1e(n,e){return F(R(e.a))>=n}(this.a,u(e,42))},o.a=0,w(qc,"CompactionProcessor/lambda$3$Type",1927),b(1928,1,Le,n3n),o.Mb=function(e){return-1==u(e,40).c.indexOf(VS)},w(qc,"CompactionProcessor/lambda$4$Type",1928),b(1929,1,{},pkn),o.Kb=function(e){return function Pve(n,e){return new lN(e,W6(Bi(e.e),n,n),(Kn(),!0))}(this.a,u(e,40))},o.a=0,w(qc,"CompactionProcessor/lambda$5$Type",1929),b(1930,1,{},mkn),o.Kb=function(e){return function x3e(n,e){return new lN(e,A0(Bi(e.e),e.f.a+n,e.f.b+n),(Kn(),!1))}(this.a,u(e,40))},o.a=0,w(qc,"CompactionProcessor/lambda$6$Type",1930),b(1931,1,Ne,kkn),o.Ne=function(e,t){return function Wpe(n,e,t){return at(Dv(P4(n),Bi(e.b)),Dv(P4(n),Bi(t.b)))}(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$7$Type",1931),b(1932,1,Ne,ykn),o.Ne=function(e,t){return function Vpe(n,e,t){return at(Dv(P4(n),Bi(e.e)),Dv(P4(n),Bi(t.e)))}(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$8$Type",1932),b(1933,1,Ne,e3n),o.Ne=function(e,t){return function D1e(n,e){return at(n.e.a,e.e.a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(qc,"CompactionProcessor/lambda$9$Type",1933),b(1921,1,gt,t3n),o.Kf=function(e,t){!function IAe(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),(t=u(m(n,(bc(),Nb)),88))!=(ii(),nh))for(r=ge(n.b,0);r.b!=r.d.c;){switch(i=u(be(r),40),f=u(m(i,(bt(),Qj)),17).a,h=u(m(i,Yj),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,Qj,Y(f)),U(i,Yj,Y(h))}e.Vg()}(u(e,121),t)},w(qc,"DirectionProcessor",1921),b(1913,1,gt,GAn),o.Kf=function(e,t){YSe(this,u(e,121),t)},w(qc,"FanProcessor",1913),b(1937,1,gt,i3n),o.Kf=function(e,t){!function pAe(n,e){e.Ug("Process graph bounds",1),U(n,(bt(),Iq),I7(eF(cw(new Mn(null,new Pn(n.b,16)),new r3n)))),U(n,Oq,I7(eF(cw(new Mn(null,new Pn(n.b,16)),new c3n)))),U(n,Kln,I7(nF(cw(new Mn(null,new Pn(n.b,16)),new u3n)))),U(n,_ln,I7(nF(cw(new Mn(null,new Pn(n.b,16)),new o3n)))),e.Vg()}(u(e,121),t)},w(qc,"GraphBoundsProcessor",1937),b(1938,1,{},r3n),o.Ye=function(e){return u(e,40).e.a},w(qc,"GraphBoundsProcessor/lambda$0$Type",1938),b(1939,1,{},c3n),o.Ye=function(e){return u(e,40).e.b},w(qc,"GraphBoundsProcessor/lambda$1$Type",1939),b(1940,1,{},u3n),o.Ye=function(e){return function Yhe(n){return n.e.a+n.f.a}(u(e,40))},w(qc,"GraphBoundsProcessor/lambda$2$Type",1940),b(1941,1,{},o3n),o.Ye=function(e){return function Qhe(n){return n.e.b+n.f.b}(u(e,40))},w(qc,"GraphBoundsProcessor/lambda$3$Type",1941),b(262,22,{3:1,34:1,22:1,262:1,196:1},y0),o.dg=function(){switch(this.g){case 0:return new yjn;case 1:return new GAn;case 2:return new kjn;case 3:return new a3n;case 4:return new f3n;case 8:return new s3n;case 5:return new t3n;case 6:return new b3n;case 7:return new Jpn;case 9:return new i3n;case 10:return new w3n;default:throw M(new Un(PR+(null!=this.f?this.f:""+this.g)))}};var Tln,Aln,Sln,Pln,Iln,Oln,Lln,Dln,Nln,$ln,Mq,wre,yNe=we(qc,IR,262,ke,RFn,function t0e(n){return i8(),Ee((QMn(),wre),n)});b(1920,1,gt,s3n),o.Kf=function(e,t){!function OLe(n,e){var t,i,r,c,s;for(e.Ug("Processor determine the coords for each level",1),i=new Z,s=ge(n.b,0);s.b!=s.d.c;){for(r=u(be(s),40);u(m(r,(bc(),Nh)),17).a>i.c.length-1;)nn(i,new ai(p2,Jrn));t=u(m(r,Nh),17).a,kl(u(m(n,Nb),88))?(r.e.aF(R((Ln(t,i.c.length),u(i.c[t],42)).b))&&jL((Ln(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.bF(R((Ln(t,i.c.length),u(i.c[t],42)).b))&&jL((Ln(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=ge(n.b,0);c.b!=c.d.c;)r=u(be(c),40),t=u(m(r,(bc(),Nh)),17).a,U(r,(bt(),Sf),R((Ln(t,i.c.length),u(i.c[t],42)).a)),U(r,tf,R((Ln(t,i.c.length),u(i.c[t],42)).b));e.Vg()}(u(e,121),t)},w(qc,"LevelCoordinatesProcessor",1920),b(1918,1,gt,f3n),o.Kf=function(e,t){YMe(this,u(e,121),t)},o.a=0,w(qc,"LevelHeightProcessor",1918),b(1919,1,Qh,h3n),o.Jc=function(e){_i(this,e)},o.Kc=function(){return On(),E3(),ym},w(qc,"LevelHeightProcessor/1",1919),b(1914,1,gt,kjn),o.Kf=function(e,t){aAe(this,u(e,121),t)},w(qc,"LevelProcessor",1914),b(1915,1,Le,l3n),o.Mb=function(e){return on(un(m(u(e,40),(bt(),Ba))))},w(qc,"LevelProcessor/lambda$0$Type",1915),b(1916,1,gt,a3n),o.Kf=function(e,t){Vje(this,u(e,121),t)},o.a=0,w(qc,"NeighborsProcessor",1916),b(1917,1,Qh,d3n),o.Jc=function(e){_i(this,e)},o.Kc=function(){return On(),E3(),ym},w(qc,"NeighborsProcessor/1",1917),b(1922,1,gt,b3n),o.Kf=function(e,t){!function QSe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Processor set coordinates",1),n.a=0==e.b.b?1:e.b.b,l=null,i=ge(e.b,0);!l&&i.b!=i.d.c;)on(un(m(d=u(be(i),40),(bt(),Ba))))&&(l=d,(h=d.e).a=u(m(d,Qj),17).a,h.b=u(m(d,Yj),17).a);f=oF(l),a=1;do{a=(f=nje((r=f,t.eh(a),r))).b/n.a|0}while(0!=f.b);for(s=ge(e.b,0);s.b!=s.d.c;)gi((c=u(be(s),40)).e,new W(c.f.a/2,c.f.b/2));t.Vg()}(this,u(e,121),t)},o.a=0,w(qc,"NodePositionProcessor",1922),b(1912,1,gt,yjn),o.Kf=function(e,t){!function DIe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=ge(e.b,0);r.b!=r.d.c;)0==(i=u(be(r),40)).b.b&&(U(i,(bt(),Ba),(Kn(),!0)),nn(n.a,i));switch(n.a.c.length){case 0:U(c=new dF(0,e,"DUMMY_ROOT"),(bt(),Ba),(Kn(),!0)),U(c,Sq,!0),xe(e.b,c);break;case 1:break;default:for(s=new dF(0,e,VS),h=new C(n.a);h.a=0}(this.a,u(e,40))},w(sm,"NodeOrderer/lambda$2$Type",1490),b(1491,1,Le,jkn),o.Mb=function(e){return function Lve(n,e){return ep(),u(m(e,(bc(),z2)),17).a>=n.gc()}(this.a,u(e,40))},w(sm,"NodeOrderer/lambda$3$Type",1491),b(1492,1,Ne,$3n),o.Ne=function(e,t){return function o4e(n,e){return ep(),-Tc(u(m(n,(bc(),z2)),17).a,u(m(e,z2),17).a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(sm,"NodeOrderer/lambda$4$Type",1492),b(1493,1,Le,F3n),o.Mb=function(e){return ep(),0!=u(m(u(e,40),(bt(),Pq)),17).a},w(sm,"NodeOrderer/lambda$5$Type",1493),b(1495,1,pr,b8n),o.rg=function(e){return u(e,121),qre},o.Kf=function(e,t){CSe(this,u(e,121),t)},o.b=0,w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),b(1496,1,pr,d8n),o.rg=function(e){return u(e,121),Ure},o.Kf=function(e,t){uSe(u(e,121),t)},w(ko,"EdgeRouter",1496),b(1498,1,Ne,O3n),o.Ne=function(e,t){return Tc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/0methodref$compare$Type",1498),b(1503,1,{},p3n),o.Ye=function(e){return F(R(e))},w(ko,"EdgeRouter/1methodref$doubleValue$Type",1503),b(1505,1,Ne,m3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/2methodref$compare$Type",1505),b(1507,1,Ne,k3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/3methodref$compare$Type",1507),b(1509,1,{},v3n),o.Ye=function(e){return F(R(e))},w(ko,"EdgeRouter/4methodref$doubleValue$Type",1509),b(1511,1,Ne,y3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/5methodref$compare$Type",1511),b(1513,1,Ne,j3n),o.Ne=function(e,t){return at(F(R(e)),F(R(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/6methodref$compare$Type",1513),b(1497,1,{},E3n),o.Kb=function(e){return Il(),u(m(u(e,40),(bc(),Nh)),17)},w(ko,"EdgeRouter/lambda$0$Type",1497),b(1508,1,{},C3n),o.Kb=function(e){return function z1e(n){return Il(),n.e.a+n.f.a/2}(u(e,40))},w(ko,"EdgeRouter/lambda$11$Type",1508),b(1510,1,{},cMn),o.Kb=function(e){return function kbe(n,e,t){return Il(),t.e.a+t.f.a+n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$13$Type",1510),b(1512,1,{},uMn),o.Kb=function(e){return function X1e(n,e,t){return Il(),t.e.a-n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$15$Type",1512),b(1514,1,Ne,M3n),o.Ne=function(e,t){return function c9e(n,e){return Il(),at((0==n.a.b?new W(n.c.e.a,n.c.e.b):u(P3(n.a),8)).b,(0==e.a.b?new W(e.c.e.a,e.c.e.b):u(P3(e.a),8)).b)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$17$Type",1514),b(1515,1,Ne,T3n),o.Ne=function(e,t){return function u9e(n,e){return Il(),at((0==n.a.b?new W(n.c.e.a,n.c.e.b):u(P3(n.a),8)).a,(0==e.a.b?new W(e.c.e.a,e.c.e.b):u(P3(e.a),8)).a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$18$Type",1515),b(1516,1,Ne,A3n),o.Ne=function(e,t){return function s9e(n,e){return Il(),at((0==n.a.b?new W(n.b.e.a,n.b.e.b):u(_s(n.a),8)).b,(0==e.a.b?new W(e.b.e.a,e.b.e.b):u(_s(e.a),8)).b)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$19$Type",1516),b(1499,1,Le,Ckn),o.Mb=function(e){return function f2e(n,e){return Il(),u(m(e,(bc(),Nh)),17).a==n}(this.a,u(e,40))},o.a=0,w(ko,"EdgeRouter/lambda$2$Type",1499),b(1517,1,Ne,S3n),o.Ne=function(e,t){return function o9e(n,e){return Il(),at((0==n.a.b?new W(n.b.e.a,n.b.e.b):u(_s(n.a),8)).a,(0==e.a.b?new W(e.b.e.a,e.b.e.b):u(_s(e.a),8)).a)}(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$20$Type",1517),b(1500,1,Ne,P3n),o.Ne=function(e,t){return function ube(n,e){return Il(),at(n.e.b,e.e.b)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$3$Type",1500),b(1501,1,Ne,I3n),o.Ne=function(e,t){return function obe(n,e){return Il(),at(n.e.a,e.e.a)}(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"EdgeRouter/lambda$4$Type",1501),b(1502,1,{},x3n),o.Kb=function(e){return function W1e(n){return Il(),n.e.b+n.f.b/2}(u(e,40))},w(ko,"EdgeRouter/lambda$5$Type",1502),b(1504,1,{},oMn),o.Kb=function(e){return function ybe(n,e,t){return Il(),t.e.b+t.f.b+n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$7$Type",1504),b(1506,1,{},sMn),o.Kb=function(e){return function V1e(n,e,t){return Il(),t.e.b-n*e}(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(ko,"EdgeRouter/lambda$9$Type",1506),b(675,1,{675:1},KRn),o.e=0,o.f=!1,o.g=!1,w(ko,"MultiLevelEdgeNodeNodeGap",675),b(1943,1,Ne,B3n),o.Ne=function(e,t){return function m2e(n,e){return at(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),b(1944,1,Ne,R3n),o.Ne=function(e,t){return function k2e(n,e){return at(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ko,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944),b(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},PX),o.dg=function(){return TBn(this)},o.qg=function(){return TBn(this)};var rO,W2,Gre,u1n=we(rcn,"RadialLayoutPhases",501,ke,function _ge(){return KT(),S(T(u1n,1),G,501,0,[rO,W2])},function u0e(n){return KT(),Ee((hDn(),Gre),n)});b(1113,205,Fd,vEn),o.rf=function(e,t){var i,c,f,h;if(i=lqn(this,e),t.Ug("Radial layout",i.c.length),on(un(z(e,(ka(),v1n))))||lk(new o6((k0(),new a0(e)))),h=function hye(n){var e,t;for(t=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));t.e!=t.i.gc();)if(!ve(new ie(ce(yy(e=u(ue(t),27)).a.Kc(),new Vn))))return e;return null}(e),ft(e,(_g(),X2),h),!h)throw M(new Un("The given graph is not a tree!"));for(0==(c=F(R(z(e,oO))))&&(c=G_n(e)),ft(e,oO,c),f=new C(lqn(this,e));f.aRd&&(r-=Rd),f=u(z(i,Wp),8),(c=y.Math.atan2(f.b+n,f.a))<0&&(c+=Rd),(c+=e)>Rd&&(c-=Rd),Of(),zs(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:E0(isNaN(r),isNaN(c))}(this.a,this.b,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},o.a=0,o.b=0,w(rcn,"RadialUtil/lambda$0$Type",556),b(1395,1,gt,K3n),o.Kf=function(e,t){!function xLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X,tn,jn,kn;for(e.Ug("Calculate Graph Size",1),e.dh(n,ccn),d=p2,g=p2,l=ucn,a=ucn,k=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));k.e!=k.i.gc();)I=(v=u(ue(k),27)).i,O=v.j,kn=v.g,f=v.f,h=u(z(v,(Ue(),Wm)),140),d=y.Math.min(d,I-h.b),g=y.Math.min(g,O-h.d),l=y.Math.max(l,I+kn+h.c),a=y.Math.max(a,O+f+h.a);for(j=new W(d-(A=u(z(n,(Ue(),x1)),107)).b,g-A.d),jn=l-d+(A.b+A.c),s=a-g+(A.d+A.a),on(un(z(n,(ka(),g1n))))&&($=u(z(n,(_g(),X2)),27),_=u(z($,Wm),140),c=s-(tn=$.j+$.f/2+(_.d+_.a)/2-j.b),(r=jn-(X=$.i+$.g/2+(_.b+_.c)/2-j.a))=3)for(X=u(D($,0),27),tn=u(D($,1),27),s=0;s+2<$.i;){if(_=X,X=tn,tn=u(D($,s+2),27),_.f>=X.f+tn.f+d||tn.f>=_.f+X.f+d){kn=!0;break}++s}else kn=!0;if(!kn){for(v=$.i,h=new ne($);h.e!=h.i.gc();)ft(u(ue(h),27),(Ue(),aE),Y(v)),--v;return _Un(e,new yv),void t.Vg()}for(uk(this.a),gf(this.a,(aA(),nE),u(z(e,z1n),188)),gf(this.a,sO,u(z(e,K1n),188)),gf(this.a,Qq,u(z(e,q1n),188)),XX(this.a,(Ke($n=new ei,nE,(EA(),nU)),Ke($n,sO,Zq),on(un(z(e,B1n)))&&Ke($n,nE,Yq),$n)),a=1/(i=Ly(this.a,e)).c.length,k=new C(i);k.ai?1:0}(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(ZS,"InteractiveNodeReorderer/lambda$0$Type",1519),b(456,22,{3:1,34:1,22:1,456:1,196:1},PD),o.dg=function(){switch(this.g){case 0:return new e4n;case 1:return new r4n;case 2:return new i4n}return null};var Yq,Zq,nU,mce,M9,zm,Gp,kce,yce,fO,eU,tU,T9,hO,sg,pce=we(ZS,IR,456,ke,function Y2e(){return EA(),S(T(pce,1),G,456,0,[Yq,nU,Zq])},function d0e(n){return EA(),Ee((oNn(),mce),n)});b(1521,1,gt,i4n),o.Kf=function(e,t){!function A8e(n,e){e.Ug("Min Size Postprocessing",1),ft(n,(Vh(),sg),y.Math.max(F(R(z(n,sg))),F(R(z(n,T9))))),e.Vg()}(u(e,27),t)},w(ZS,"MinSizePostProcessor",1521),b(1520,1,gt,r4n),o.Kf=function(e,t){!function M6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=Unn(n),ft(n,(Vh(),T9),t.a),ft(n,fO,t.b),e.Vg()}(u(e,27),t)},w(ZS,"MinSizePreProcessor",1520),b(394,22,{3:1,34:1,22:1,394:1},ID);var O1n,L1n,iU,jce,Ece,Cce,Mce,Tce,Ace,Sce,N1n,Pce,Ice,Oce,Lce,$1n,Dce,F1n,Nce,lO,$ce,x1n,eE,B1n,Fce,tE,xce,Bce,Rce,Kce,_ce,rU,R1n,cU,K1n,A9,_1n,Hce,S9,H1n,q1n,U1n,G1n,z1n,uU,D1n=we(kK,"OptimizationGoal",394,ke,function J2e(){return uA(),S(T(D1n,1),G,394,0,[L1n,iU,O1n])},function b0e(n){return uA(),Ee((sNn(),jce),n)});b(867,1,Es,k8n),o.hf=function(e){mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,pcn),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(Kn(),!1)),(C1(),mi)),qt),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,mcn),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,kcn),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Y(-1)),Zr),qi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,ycn),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,jcn),yK),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),F1n),Tt),V1n),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ecn),yK),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ccn),yK),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),$1n),Tt),D1n),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Mcn),yK),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Tcn),"packing"),SWn),"Strategy for finding an initial placement on nodes."),N1n),Tt),Y1n),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Acn),PWn),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Scn),PWn),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Y(1)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Pcn),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),Tt),ean),yn(Fn)))),vzn((new y8n,e))},w(kK,"RectPackingMetaDataProvider",867),b(1016,1,Es,y8n),o.hf=function(e){vzn(e)},w(kK,"RectPackingOptions",1016),b(1017,1,{},c4n),o.sf=function(){return new mEn},o.tf=function(e){},w(kK,"RectPackingOptions/RectpackingFactory",1017),b(1705,1,{},jSn),o.a=0,o.c=!1,w(fm,"AreaApproximation",1705);var X1n=Ot(fm,"BestCandidateFilter");b(673,1,{535:1},sL),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=Mt,h=new C(e);h.a1;){if(r=ZMe(e),d=c.g,p=u(z(e,A9),107),k=F(R(z(e,lO))),(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i>1&&F(R(z(e,(Vh(),tU))))!=Mt&&(c.c+(p.b+p.c))/(c.b+(p.d+p.a))1&&F(R(z(e,(Vh(),eU))))!=Mt&&(c.c+(p.b+p.c))/(c.b+(p.d+p.a))>k&&ft(r,(Vh(),sg),y.Math.max(F(R(z(e,T9))),F(R(z(r,sg)))-F(R(z(e,eU))))),(l=(h=jzn(v=new $X(i,a),r,g)).g)>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new q(Qe,r,10,11)),r.a).i;s++)V_n(n,u(D((!r.a&&(r.a=new q(Qe,r,10,11)),r.a),s),27),u(D((!e.a&&(e.a=new q(Qe,e,10,11)),e.a),s),27));P$n(e,v),i2e(c,h.c),t2e(c,h.b)}--f}ft(e,(Vh(),zm),c.b),ft(e,Gp,c.c),t.Vg()}(this,u(e,27),t)},w(nP,"Compactor",1471),b(1473,1,pr,f4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){MTe(u(e,27),t)},w(nP,"NoPlacement",1473),b(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},OD),o.dg=function(){return iBn(this)},o.qg=function(){return iBn(this)};var sU,J1n,Q1n,Uce,Y1n=we(nP,"PackingStrategy",439,ke,function V2e(){return mT(),S(T(Y1n,1),G,439,0,[sU,Q1n,J1n])},function p0e(n){return mT(),Ee((fNn(),Uce),n)});b(810,1,{},$X),o.a=0,o.b=0,o.c=0,o.d=Mt,o.e=0,o.f=Mt,w(nP,"RowFillingAndCompaction",810),b(1472,1,pr,h4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){!function fOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,v,p;for(e.Ug(IWn,1),v=F(R(z(n,(Vh(),sg)))),s=F(R(z(n,(Uf(),S9)))),f=u(z(n,A9),107),tY((!n.a&&(n.a=new q(Qe,n,10,11)),n.a)),a=aGn((!n.a&&(n.a=new q(Qe,n,10,11)),n.a),v,s),!n.a&&(n.a=new q(Qe,n,10,11)),l=new C(a);l.a1)for(r=new C(n.a);r.a>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[15&n]<<28}(Ov(this.b))},o.cg=function(e){var t,r,c;for(r=0;r0&&Jxn((Gn(t-1,e.length),e.charCodeAt(t-1)),")]}\"' \t\r\n");)--t;if(r>=t)throw M(new Un("The given string does not contain any numbers."));if(2!=(c=Iw(($i(r,t,e.length),e.substr(r,t-r)),",|;|\r|\n")).length)throw M(new Un("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=Ew(Cw(c[0])),this.b=Ew(Cw(c[1]))}catch(s){throw L(s=At(s),130)?M(new Un(xXn+s)):M(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var yi=w(tj,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Su,hC,wAn),o.Pc=function(){return function T6e(n){var e,t,i;for(e=0,i=K(yi,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}(this)},o.cg=function(e){var i,r,c,s,f;r=Iw(e,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),jo(this);try{for(i=0,s=0,c=0,f=0;i0&&(s%2==0?c=Ew(r[i]):f=Ew(r[i]),s>0&&s%2!=0&&xe(this,new W(c,f)),++s),++i}catch(h){throw L(h=At(h),130)?M(new Un("The given string does not match the expected format for vectors."+h)):M(h)}},o.Ib=function(){var e,t,i;for(e=new yo("("),t=ge(this,0);t.b!=t.d.c;)Re(e,(i=u(be(t),8)).a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var Pan=w(tj,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},N6);var kU,pO,mO,cE,uE,kO,Tue,Oan,yU,Aue,Lan,Dan,Sue,Nan,Pue,Iue,$an,Fan,Oue,Ian=we(oo,"Alignment",255,ke,function E3e(){return Xh(),S(T(Ian,1),G,255,0,[kU,cE,uE,kO,pO,mO])},function I0e(n){return Xh(),Ee((K$n(),Tue),n)});b(991,1,Es,T8n),o.hf=function(e){CUn(e)},w(oo,"BoxLayouterOptions",991),b(992,1,{},W4n),o.sf=function(){return new Q4n},o.tf=function(e){},w(oo,"BoxLayouterOptions/BoxFactory",992),b(298,22,{3:1,34:1,22:1,298:1},$6);var L9,jU,D9,N9,$9,EU,Lue,Xm,Due,xan,Q2,Nue,$ue,Ban,Y2,Z2,Fue,oE,Ran,sE,t0,Kan,MU,TU,_an,Han,qan,Uan,Gan,xue,nv,zan,Bue,fE,AU,hE,SU,$b,Xan,Wm,Wan,Van,Jan,ev,Qan,i0,Yan,fg,tv,Zan,Ra,ndn,yO,lE,x1,edn,Rue,tdn,Kue,_ue,idn,rdn,PU,IU,OU,LU,cdn,so,F9,udn,DU,NU,hg,odn,sdn,iv,fdn,Wp,aE,$U,rv,Hue,FU,que,Uue,hdn,Gue,ldn,adn,Vp,ddn,jO,bdn,wdn,r0,zue,gdn,vdn,pdn,EO,dE,Vm,Jp,Xue,Wue,CO,Vue,mdn,Jue,CU=we(oo,"ContentAlignment",298,ke,function C3e(){return Id(),S(T(CU,1),G,298,0,[EU,$9,N9,jU,L9,D9])},function O0e(n){return Id(),Ee((_$n(),Lue),n)});b(699,1,Es,AG),o.hf=function(e){mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,BWn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(C1(),J2)),fn),yn((Ef(),Fn))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,RWn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Zf),MNe),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Arn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),xan),Tt),Ian),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Mp),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Kcn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Zf),Pan),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,US),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Ran),Xp),CU),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,uj),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Kn(),!1)),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,uK),""),uin),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Kan),Tt),x9),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,cj),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),qan),Tt),BU),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Bcn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,qS),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),zan),Tt),Ldn),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,hb),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),edn),Zf),rsn),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,k8),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zS),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,y8),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,TR),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),udn),Tt),$dn),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,GS),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Zf),yi),pt(wi,S(T(ol,1),G,170,0,[e0,F1]))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Jy),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zr),qi),pt(wi,S(T(ol,1),G,170,0,[$h]))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,MS),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,m8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Brn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Xan),Zf),Pan),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_rn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Hrn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,KWn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Zf),INe),pt(Fn,S(T(ol,1),G,170,0,[F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Urn),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Wan),Zf),isn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Mrn),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),mi),qt),pt(wi,S(T(ol,1),G,170,0,[$h,e0,F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_Wn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Ji),ui),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,HWn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,qWn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Qy),""),DWn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),mi),qt),yn(Fn)))),ti(e,Qy,lb,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,UWn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,GWn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Y(100)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,zWn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,XWn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Y(4e3)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,WWn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Y(400)),Zr),qi),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,VWn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,JWn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,QWn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,YWn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Rcn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Ban),Tt),Gdn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,brn),Wf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,wrn),Wf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,mR),Wf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,grn),Wf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,MR),Wf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,cK),Wf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,vrn),Wf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,krn),Wf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,prn),Wf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,mrn),Wf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Fw),Wf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,yrn),Wf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Ji),ui),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,jrn),Wf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Ern),Wf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Zf),moe),pt(wi,S(T(ol,1),G,170,0,[$h,e0,F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Grn),Wf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),vdn),Zf),isn),yn(Fn)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,sK),tVn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Zr),qi),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),ti(e,sK,oK,_ue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,oK),tVn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),tdn),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Irn),iVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Jan),Zf),rsn),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,cm),iVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Qan),Xp),kr),pt(wi,S(T(ol,1),G,170,0,[F1]))))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Drn),tP),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),rdn),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Nrn),tP),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,$rn),tP),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Frn),tP),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,xrn),tP),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Tt),_9),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,m2),IK),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Yan),Xp),U9),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Tp),IK),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),ndn),Xp),xdn),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Ap),IK),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Zan),Zf),yi),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,rm),IK),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),mi),qt),yn(Fn)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Rrn),rK),"Edge Label Placement"),"Gives a hint on where to put edge labels."),_an),Tt),kdn),yn(F1)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,TS),rK),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),mi),qt),yn(F1)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,ZWn),"font"),"Font Name"),"Font name used for a label."),J2),fn),yn(F1)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,nVn),"font"),"Font Size"),"Font size used for a label."),Zr),qi),yn(F1)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,qrn),OK),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Zf),yi),yn(e0)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Krn),OK),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Zr),qi),yn(e0)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Trn),OK),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),fdn),Tt),fr),yn(e0)))),mn(e,new ln(vn(gn(pn(an(wn(dn(bn(new hn,Crn),OK),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Ji),ui),yn(e0)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,um),qcn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),odn),Xp),TO),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Orn),qcn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Lrn),qcn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Yy),fj),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Ji),ui),yn(Fn)))),ti(e,Yy,lb,Vue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,_cn),fj),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Tt),LO),yn(wi)))),ti(e,_cn,lb,Jue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Zy),fj),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),ti(e,Zy,lb,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,nj),fj),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Ji),ui),pt(Fn,S(T(ol,1),G,170,0,[wi]))))),ti(e,nj,lb,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,lb),fj),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Tt),Rdn),yn(wi)))),ti(e,lb,rm,null),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Hcn),fj),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Ji),ui),yn(Fn)))),ti(e,Hcn,lb,Wue),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Srn),rVn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),mi),qt),yn(wi)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,Prn),rVn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),mi),qt),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,kR),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Ji),ui),yn($h)))),mn(e,new ln(vn(gn(pn(An(an(wn(dn(bn(new hn,eVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Gan),Tt),Tdn),yn($h)))),C6(e,new Wv(m6(p3(v3(new gv,Yn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),C6(e,new Wv(m6(p3(v3(new gv,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),C6(e,new Wv(m6(p3(v3(new gv,su),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),C6(e,new Wv(m6(p3(v3(new gv,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),C6(e,new Wv(m6(p3(v3(new gv,pWn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),C6(e,new Wv(m6(p3(v3(new gv,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),C6(e,new Wv(m6(p3(v3(new gv,cs),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),fUn((new A8n,e)),CUn((new T8n,e)),xqn((new S8n,e))},w(oo,"CoreOptions",699),b(88,22,{3:1,34:1,22:1,88:1},$7);var nh,$r,zr,eh,hs,Que,x9=we(oo,uin,88,ke,function Spe(){return ii(),S(T(x9,1),G,88,0,[eh,zr,$r,nh,hs])},function L0e(n){return ii(),Ee((v$n(),Que),n)});b(278,22,{3:1,34:1,22:1,278:1},DD);var Jm,lg,Qm,Yue,kdn=we(oo,"EdgeLabelPlacement",278,ke,function ive(){return Kf(),S(T(kdn,1),G,278,0,[Jm,lg,Qm])},function D0e(n){return Kf(),Ee((pNn(),Yue),n)});b(223,22,{3:1,34:1,22:1,223:1},RC);var Ym,bE,Qp,xU,Zue,BU=we(oo,"EdgeRouting",223,ke,function ipe(){return Dl(),S(T(BU,1),G,223,0,[xU,bE,Ym,Qp])},function N0e(n){return Dl(),Ee((HNn(),Zue),n)});b(321,22,{3:1,34:1,22:1,321:1},F6);var ydn,jdn,Edn,Cdn,RU,Mdn,noe,Adn,Sdn,Pdn,Idn,eoe,Odn,B9,Tdn=we(oo,"EdgeType",321,ke,function j3e(){return FA(),S(T(Tdn,1),G,321,0,[RU,Edn,Mdn,ydn,Cdn,jdn])},function $0e(n){return FA(),Ee((H$n(),noe),n)});b(989,1,Es,A8n),o.hf=function(e){fUn(e)},w(oo,"FixedLayouterOptions",989),b(990,1,{},V4n),o.sf=function(){return new umn},o.tf=function(e){},w(oo,"FixedLayouterOptions/FixedFactory",990),b(346,22,{3:1,34:1,22:1,346:1},ND);var B1,MO,R9,toe,Ldn=we(oo,"HierarchyHandling",346,ke,function eve(){return Ll(),S(T(Ldn,1),G,346,0,[MO,B1,R9])},function F0e(n){return Ll(),Ee((gNn(),toe),n)});b(291,22,{3:1,34:1,22:1,291:1},KC);var sl,Ka,wE,gE,roe,ioe=we(oo,"LabelSide",291,ke,function tpe(){return Po(),S(T(ioe,1),G,291,0,[gE,sl,Ka,wE])},function x0e(n){return Po(),Ee((qNn(),roe),n)});b(95,22,{3:1,34:1,22:1,95:1},Pg);var zl,rf,Ps,cf,Fo,uf,Is,fl,of,coe,kr=we(oo,"NodeLabelPlacement",95,ke,function E4e(){return Tw(),S(T(kr,1),G,95,0,[rf,zl,cf,of,fl,Is,Fo,uf,Ps])},function B0e(n){return Tw(),Ee((YFn(),coe),n)});b(256,22,{3:1,34:1,22:1,256:1},F7);var Ddn,K9,_a,Ndn,vE,uoe,_9=we(oo,"PortAlignment",256,ke,function qpe(){return Zg(),S(T(_9,1),G,256,0,[_a,vE,Ddn,K9,Ndn])},function R0e(n){return Zg(),Ee((m$n(),uoe),n)});b(101,22,{3:1,34:1,22:1,101:1},x6);var c0,Xc,hl,Zm,th,Ha,ooe,$dn=we(oo,"PortConstraints",101,ke,function y3e(){return Ii(),S(T($dn,1),G,101,0,[Ha,th,Zm,c0,hl,Xc])},function K0e(n){return Ii(),Ee((q$n(),ooe),n)});b(279,22,{3:1,34:1,22:1,279:1},B6);var H9,q9,Xl,pE,qa,Yp,soe,TO=we(oo,"PortLabelPlacement",279,ke,function k3e(){return Xu(),S(T(TO,1),G,279,0,[qa,Xl,pE,q9,H9,Yp])},function _0e(n){return Xu(),Ee((U$n(),soe),n)});b(64,22,{3:1,34:1,22:1,64:1},x7);var Zn,zn,ls,as,ju,lu,ih,sf,Ju,Ru,Wc,Qu,Eu,Cu,ff,xo,Bo,Os,ae,hc,Wn,foe,hoe,loe,Fdn,aoe,doe,fr=we(oo,"PortSide",64,ke,function Ppe(){return en(),S(T(fr,1),Pc,64,0,[hc,zn,Zn,ae,Wn])},function H0e(n){return en(),Ee((k$n(),foe),n)});b(993,1,Es,S8n),o.hf=function(e){xqn(e)},w(oo,"RandomLayouterOptions",993),b(994,1,{},J4n),o.sf=function(){return new imn},o.tf=function(e){},w(oo,"RandomLayouterOptions/RandomFactory",994),b(386,22,{3:1,34:1,22:1,386:1},_C);var ag,mE,kE,u0,boe,U9=we(oo,"SizeConstraint",386,ke,function epe(){return mo(),S(T(U9,1),G,386,0,[kE,u0,mE,ag])},function q0e(n){return mo(),Ee((UNn(),boe),n)});b(264,22,{3:1,34:1,22:1,264:1},Ig);var yE,AO,n6,KU,jE,G9,SO,PO,IO,woe,xdn=we(oo,"SizeOptions",264,ke,function $4e(){return ro(),S(T(xdn,1),G,264,0,[n6,jE,AO,G9,SO,IO,PO,KU,yE])},function U0e(n){return ro(),Ee((QFn(),woe),n)});b(280,22,{3:1,34:1,22:1,280:1},$D);var dg,Bdn,OO,goe,Rdn=we(oo,"TopdownNodeTypes",280,ke,function rve(){return cp(),S(T(Rdn,1),G,280,0,[Bdn,dg,OO])},function G0e(n){return cp(),Ee((mNn(),goe),n)});b(347,22,Ucn);var Kdn,_dn,voe,LO=we(oo,"TopdownSizeApproximator",347,ke,function Zge(){return fN(),S(T(LO,1),G,347,0,[Kdn,_dn])},function X0e(n){return fN(),Ee((kDn(),voe),n)});b(987,347,Ucn,QSn),o.Tg=function(e){return ARn(e)},we(oo,"TopdownSizeApproximator/1",987,LO,null,null),b(988,347,Ucn,FPn),o.Tg=function(e){var t,i,r,c,s,f,a,d,j,A,O,$,_,X,tn,jn,kn,Bn;for(t=u(z(e,(Ue(),rv)),143),Q1(),jy(tn=new d6,e),jn=new de,s=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));s.e!=s.i.gc();)r=u(ue(s),27),XA(O=new d6,tn),jy(O,r),Bn=ARn(r),$g(O,y.Math.max(r.g,Bn.a),y.Math.max(r.f,Bn.b)),Yc(jn.f,r,O);for(c=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));c.e!=c.i.gc();)for(d=new ne((!(r=u(ue(c),27)).e&&(r.e=new Dn(Xt,r,7,4)),r.e));d.e!=d.i.gc();)a=u(ue(d),74),_=u(Rr(br(jn.f,r)),27),X=u(ee(jn,D((!a.c&&(a.c=new Dn(he,a,5,8)),a.c),0)),27),me((!($=new aL).b&&($.b=new Dn(he,$,4,7)),$.b),_),me((!$.c&&($.c=new Dn(he,$,5,8)),$.c),X),zA($,Ct(_)),jy($,a);j=u(hk(t.f),205);try{j.rf(tn,new fmn),dIn(t.f,j)}catch($n){throw L($n=At($n),103),M($n)}return Bf(tn,Z2)||Bf(tn,Y2)||Ptn(tn),f=F(R(z(tn,Z2)))/F(R(z(tn,Y2))),i=F(R(z(tn,dE)))*y.Math.sqrt((!tn.a&&(tn.a=new q(Qe,tn,10,11)),tn.a).i),A=(kn=u(z(tn,x1),107)).d+kn.a+1,new W(y.Math.max(kn.b+kn.c+1,i),y.Math.max(A,i/f))},we(oo,"TopdownSizeApproximator/2",988,LO,null,null),b(344,1,{871:1},yv),o.Ug=function(e,t){return KKn(this,e,t)},o.Vg=function(){f_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?JN(this.f):null},o.Yg=function(){return JN(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return null!=this.p&&!this.b},o.bh=function(e){this.n&&nn(this.f,e)},o.dh=function(e,t){var i,r;this.n&&e&&function mve(n,e,t){var i;n.n&&e&&t&&(i=new smn,nn(n.e,i))}(this,(r=nB(i=new WPn,e),function nLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I,O,$,_,X;for(d=new rJ(new QG(n));d.c!=d.d.a.d;)for(f=u((a=YNn(d)).d,58),e=u(a.e,58),k=0,$=(null==(s=f.Dh()).i&&kh(s),s.i).length;k<$;++k)if(null==s.i&&kh(s),c=s.i,(l=k>=0&&k0?e-1:e,rEn(function Ihe(n,e){return n.j=e,n}(X$n(kV(new yv,t),n.n),n.j),n.k)}(this,this.g),xe(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&zQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0,w(gc,"BasicProgressMonitor",344),b(717,205,Fd,Q4n),o.rf=function(e,t){_Un(e,t)},w(gc,"BoxLayoutProvider",717),b(983,1,Ne,Fkn),o.Ne=function(e,t){return function nTe(n,e,t){var i,r,c;return!(r=u(z(e,(xA(),Fan)),17))&&(r=Y(0)),!(c=u(z(t,Fan),17))&&(c=Y(0)),r.a>c.a?-1:r.a0&&p.b>0&&ub(A,p.a,p.b,!0,!0)),g=y.Math.max(g,A.i+A.g),v=y.Math.max(v,A.j+A.f),a=new ne((!A.n&&(A.n=new q(Tr,A,1,7)),A.n));a.e!=a.i.gc();)h=u(ue(a),135),(kn=u(z(h,B9),8))&&qo(h,kn.a,kn.b),g=y.Math.max(g,A.i+h.i+h.g),v=y.Math.max(v,A.j+h.j+h.f);for(X=new ne((!A.c&&(A.c=new q(Yu,A,9,9)),A.c));X.e!=X.i.gc();)for(_=u(ue(X),123),(kn=u(z(_,B9),8))&&qo(_,kn.a,kn.b),jn=A.j+_.j,g=y.Math.max(g,(tn=A.i+_.i)+_.g),v=y.Math.max(v,jn+_.f),l=new ne((!_.n&&(_.n=new q(Tr,_,1,7)),_.n));l.e!=l.i.gc();)h=u(ue(l),135),(kn=u(z(h,B9),8))&&qo(h,kn.a,kn.b),g=y.Math.max(g,tn+h.i+h.g),v=y.Math.max(v,jn+h.j+h.f);for(c=new ie(ce(xl(A).a.Kc(),new Vn));ve(c);)d=ezn(i=u(fe(c),74)),g=y.Math.max(g,d.a),v=y.Math.max(v,d.b);for(r=new ie(ce(yy(A).a.Kc(),new Vn));ve(r);)Ct(Wh(i=u(fe(r),74)))!=e&&(d=ezn(i),g=y.Math.max(g,d.a),v=y.Math.max(v,d.b))}if(s==(Dl(),Ym))for(I=new ne((!e.a&&(e.a=new q(Qe,e,10,11)),e.a));I.e!=I.i.gc();)for(r=new ie(ce(xl(A=u(ue(I),27)).a.Kc(),new Vn));ve(r);)f=cPe(i=u(fe(r),74)),ft(i,$b,0==f.b?null:f);on(un(z(e,(ZT(),Pdn))))||ub(e,g+($=u(z(e,eoe),107)).b+$.c,v+$.d+$.a,!0,!0),t.Vg()},w(gc,"FixedLayoutProvider",1119),b(385,137,{3:1,423:1,385:1,96:1,137:1},lL,ZNn),o.cg=function(e){var i,r,s,f,h,l,a;if(e)try{for(l=Iw(e,";,;"),f=0,h=(s=l).length;f>16&ri|t^(s&ri)<<16},o.Kc=function(){return new Kkn(this)},o.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+Jr(this.b)+")":null==this.b?"pair("+Jr(this.a)+",null)":"pair("+Jr(this.a)+","+Jr(this.b)+")"},w(gc,"Pair",42),b(995,1,Ti,Kkn),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},o.Pb=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw M(new tc)},o.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),M(new Au)},o.b=!1,o.c=!1,w(gc,"Pair/1",995),b(455,1,{455:1},PIn),o.Fb=function(e){return jc(this.a,u(e,455).a)&&jc(this.c,u(e,455).c)&&jc(this.d,u(e,455).d)&&jc(this.b,u(e,455).b)},o.Hb=function(){return Wk(S(T(pi,1),xn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+cr+this.c+cr+this.d+cr+this.b+")"},w(gc,"Quadruple",455),b(1108,205,Fd,imn),o.rf=function(e,t){var s;t.Ug("Random Layout",1),0!=(!e.a&&(e.a=new q(Qe,e,10,11)),e.a).i?(function ELe(n,e,t,i,r){var c,f,h,l,a,d,g,v,p,k,j,A,I,O,_,X,tn,jn,kn,Bn;for(O=0,p=0,v=0,g=1,I=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));I.e!=I.i.gc();)g+=Ml(new ie(ce(xl(j=u(ue(I),27)).a.Kc(),new Vn))),p=y.Math.max(p,jn=j.g),v=y.Math.max(v,d=j.f),O+=jn*d;for(k=(!n.a&&(n.a=new q(Qe,n,10,11)),n.a).i,c=y.Math.sqrt(O+2*i*i*g*k),h=y.Math.max(c*t,p),f=y.Math.max(c/t,v),A=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));A.e!=A.i.gc();)j=u(ue(A),27),kn=r.b+(io(e,26)*d8+io(e,27)*b8)*(h-j.g),Bn=r.b+(io(e,26)*d8+io(e,27)*b8)*(f-j.f),ru(j,kn),cu(j,Bn);for(tn=h+(r.b+r.c),X=f+(r.d+r.a),_=new ne((!n.a&&(n.a=new q(Qe,n,10,11)),n.a));_.e!=_.i.gc();)for(a=new ie(ce(xl(u(ue(_),27)).a.Kc(),new Vn));ve(a);)Q5(l=u(fe(a),74))||SDe(l,e,tn,X);ub(n,tn+=r.b+r.c,X+=r.d+r.a,!1,!0)}(e,(s=u(z(e,(kZ(),aoe)),17))&&0!=s.a?new sT(s.a):new xF,b7(R(z(e,hoe))),b7(R(z(e,doe))),u(z(e,loe),107)),t.Vg()):t.Vg()},w(gc,"RandomLayoutProvider",1108),b(240,1,{240:1},lN),o.Fb=function(e){return jc(this.a,u(e,240).a)&&jc(this.b,u(e,240).b)&&jc(this.c,u(e,240).c)},o.Hb=function(){return Wk(S(T(pi,1),xn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+cr+this.b+cr+this.c+")"},w(gc,"Triple",240),b(562,1,{}),o.Lf=function(){return new W(this.f.i,this.f.j)},o.of=function(e){return iOn(e,(Ue(),so))?z(this.f,Eoe):z(this.f,e)},o.Mf=function(){return new W(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return Bf(this.f,e)},o.Of=function(e){ru(this.f,e.a),cu(this.f,e.b)},o.Pf=function(e){G0(this.f,e.a),U0(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0,w(I8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),b(563,1,{853:1},QE),o.Rf=function(){var e,t;if(!this.b)for(this.b=rT(_M(this.a).i),t=new ne(_M(this.a));t.e!=t.i.gc();)e=u(ue(t),135),nn(this.b,new _L(e));return this.b},o.b=null,w(I8,"ElkGraphAdapters/ElkEdgeAdapter",563),b(289,562,{},a0),o.Sf=function(){return VRn(this)},o.a=null,w(I8,"ElkGraphAdapters/ElkGraphAdapter",289),b(640,562,{187:1},_L),w(I8,"ElkGraphAdapters/ElkLabelAdapter",640),b(639,562,{695:1},VD),o.Rf=function(){return function h7e(n){var e,t;if(!n.b)for(n.b=rT(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new _L(e));return n.b}(this)},o.Vf=function(){var e;return!(e=u(z(this.f,(Ue(),Wm)),140))&&(e=new a6),e},o.Xf=function(){return function l7e(n){var e,t;if(!n.e)for(n.e=rT(HN(u(n.f,27)).i),t=new ne(HN(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),123),nn(n.e,new _kn(e));return n.e}(this)},o.Zf=function(e){var t;t=new dN(e),ft(this.f,(Ue(),Wm),t)},o.$f=function(e){ft(this.f,(Ue(),x1),new hV(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new Z,t=new ie(ce(yy(u(this.f,27)).a.Kc(),new Vn));ve(t);)e=u(fe(t),74),nn(this.a,new QE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new Z,t=new ie(ce(xl(u(this.f,27)).a.Kc(),new Vn));ve(t);)e=u(fe(t),74),nn(this.c,new QE(e));return this.c},o.Yf=function(){return 0!=zM(u(this.f,27)).i||on(un(u(this.f,27).of((Ue(),fE))))},o._f=function(){q3e(this,(k0(),joe))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null,w(I8,"ElkGraphAdapters/ElkNodeAdapter",639),b(1284,562,{852:1},_kn),o.Rf=function(){return function m7e(n){var e,t;if(!n.b)for(n.b=rT(u(n.f,123).kh().i),t=new ne(u(n.f,123).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new _L(e));return n.b}(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Kh(u(this.f,123).hh().i),t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.a,new QE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Kh(u(this.f,123).ih().i),t=new ne(u(this.f,123).ih());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.c,new QE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((Ue(),iv)),64)},o.bg=function(){var e,t,i,r,s,f,h;for(r=Df(u(this.f,123)),i=new ne(u(this.f,123).ih());i.e!=i.i.gc();)for(h=new ne((!(e=u(ue(i),74)).c&&(e.c=new Dn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(dw(Ur(f=u(ue(h),84)),r))return!0;if(Ur(f)==r&&on(un(z(e,(Ue(),AU)))))return!0}for(t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)for(s=new ne((!(e=u(ue(t),74)).b&&(e.b=new Dn(he,e,4,7)),e.b));s.e!=s.i.gc();)if(dw(Ur(u(ue(s),84)),r))return!0;return!1},o.a=null,o.b=null,o.c=null,w(I8,"ElkGraphAdapters/ElkPortAdapter",1284),b(1285,1,Ne,tmn),o.Ne=function(e,t){return function QAe(n,e){var t,i,r,c;if(0!=(c=u(z(n,(Ue(),iv)),64).g-u(z(e,iv),64).g))return c;if(t=u(z(n,DU),17),i=u(z(e,DU),17),t&&i&&0!=(r=t.a-i.a))return r;switch(u(z(n,iv),64).g){case 1:return at(n.i,e.i);case 2:return at(n.j,e.j);case 3:return at(e.i,n.i);case 4:return at(e.j,n.j);default:throw M(new Sr(Tin))}}(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(I8,"ElkGraphAdapters/PortComparator",1285);var Coe,Ci,Moe,Toe,Vdn,DO,Aoe,Jdn,Qdn,Ydn,ll,Soe,Poe,Ioe,X9,Zdn,Ooe,Loe,Ua=Ot(us,"EObject"),e6=Ot(j2,oVn),Ro=Ot(j2,sVn),EE=Ot(j2,fVn),CE=Ot(j2,"ElkShape"),he=Ot(j2,hVn),Xt=Ot(j2,Gcn),jt=Ot(j2,lVn),ME=Ot(us,aVn),z9=Ot(us,"EFactory"),qU=Ot(us,dVn),Pf=Ot(us,"EPackage"),Tr=Ot(j2,zcn),Qe=Ot(j2,Xcn),Yu=Ot(j2,Wcn);b(93,1,bVn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){tt(this,e)},w(Ip,"BasicNotifierImpl",93),b(99,93,pVn),o.Yh=function(){return ao(this)},o.yh=function(e,t){return e},o.zh=function(){throw M(new Pe)},o.Ah=function(e){var t;return t=dr(u(Nn(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw M(new Pe)},o.Ch=function(e,t,i){return Oo(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk())?e:this.ii()},o.Eh=function(){return xx(this)},o.Fh=function(){throw M(new Pe)},o.Gh=function(){var e,t;return!(t=this.$h().Ok())&&this.zh().Tk((T6(),t=null==(e=EJ(kh(this.Dh())))?QU:new H7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){return e.pk()?e.Lj():St(this.Dh(),e)},o.Jh=function(){var e;return(e=this.zh())?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return yA(this,e,t,i)},o.Mh=function(e){return W3(this,e)},o.Nh=function(e,t){return j$(this,e,t)},o.Oh=function(){var e;return!!(e=this.zh())&&e.Rk()},o.Ph=function(){throw M(new Pe)},o.Qh=function(){return bA(this)},o.Rh=function(e,t,i,r){return fp(this,e,t,r)},o.Sh=function(e,t,i){return u(Nn(this.Dh(),t),69).wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return JM(this,e,t,r)},o.Uh=function(e,t,i){return u(Nn(this.Dh(),t),69).wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return WF(this,e)},o.Xh=function(e){return vOn(this,e)},o.Zh=function(e){return RGn(this,e)},o.$h=function(){throw M(new Pe)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return bA(this)},o.bi=function(e,t){Lx(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return(s=this.Jh())&&e&&(t=rr(s.El(),this,t),s.Il(this)),(r=this.Ph())&&(Qx(this,this.Ph(),this.Fh()).Bb&sr?(c=r.Qh())&&(e?!s&&c.Il(this):c.Hl(this)):(t=(i=this.Fh())>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,l;if((s=St(i=this.Dh(),e))>=(t=this.ji()))return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1){if(!(f=a2(($u(),Ui),i,e)))throw M(new Un(Aa+e.xe()+LK));if(ar(),u(f,69).xk()||(f=Vv(Ir(Ui,f))),c=u((r=this.Ih(f))>=0?this.Lh(r,!0,!0):ib(this,f,!0),160),(l=f.Ik())>1||-1==l)return u(u(c,220).Sl(e,!1),79)}else if(e.Jk())return u((r=this.Ih(e))>=0?this.Lh(r,!1,!0):ib(this,e,!1),79);return new $Mn(this,e)},o.hi=function(){return SQ(this)},o.ii=function(){return(ra(),_n).S},o.ji=function(){return se(this.ii())},o.ki=function(e){Px(this,e)},o.Ib=function(){return Ws(this)},w(Hn,"BasicEObjectImpl",99),b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){return AQ(this)[e]},o.mi=function(e,t){Dt(AQ(this),e,t)},o.ni=function(e){Dt(AQ(this),e,null)},o.th=function(){return u(qn(this,4),129)},o.uh=function(){throw M(new Pe)},o.vh=function(){return 0!=(4&this.Db)},o.zh=function(){throw M(new Pe)},o.oi=function(e){op(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|255&this.Db,this.oi(e)},o.Dh=function(){return vu(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var t;return T6(),null==(t=EJ(kh(u(qn(this,16),29)||this.ii())))?QU:new H7(this,t)},o.wh=function(){return 0==(1&this.Db)},o.Jh=function(){return u(qn(this,128),2034)},o.Kh=function(){return u(qn(this,16),29)},o.Oh=function(){return 0!=(32&this.Db)},o.Ph=function(){return u(qn(this,2),54)},o.Vh=function(){return 0!=(64&this.Db)},o.$h=function(){throw M(new Pe)},o._h=function(){return u(qn(this,64),288)},o.ci=function(e){op(this,16,e)},o.di=function(e){op(this,128,e)},o.ei=function(e){op(this,64,e)},o.hi=function(){return uu(this)},o.Db=0,w(Hn,"MinimalEObjectImpl",119),b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb},w(Hn,"MinimalEObjectImpl/Container",120),b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return qZ(this,e,t,i)},o.Uh=function(e,t,i){return Lnn(this,e,t,i)},o.Wh=function(e){return xJ(this,e)},o.bi=function(e,t){SY(this,e,t)},o.ii=function(){return Sc(),Poe},o.ki=function(e){vY(this,e)},o.nf=function(){return wRn(this)},o.gh=function(){return!this.o&&(this.o=new Du((Sc(),ll),R1,this,0)),this.o},o.of=function(e){return z(this,e)},o.pf=function(e){return Bf(this,e)},o.qf=function(e,t){return ft(this,e,t)},w(Kd,"EMapPropertyHolderImpl",2083),b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},KE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return yA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return 0!=this.a;case 1:return 0!=this.b}return WF(this,e)},o.bi=function(e,t){switch(e){case 0:return void OT(this,F(R(t)));case 1:return void IT(this,F(R(t)))}Lx(this,e,t)},o.ii=function(){return Sc(),Moe},o.ki=function(e){switch(e){case 0:return void OT(this,0);case 1:return void IT(this,0)}Px(this,e)},o.Ib=function(){var e;return 64&this.Db?Ws(this):((e=new gs(Ws(this))).a+=" (x: ",Mg(e,this.a),e.a+=", y: ",Mg(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0,w(Kd,"ElkBendPointImpl",572),b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return QY(this,e,t,i)},o.Sh=function(e,t,i){return jx(this,e,t,i)},o.Uh=function(e,t,i){return cF(this,e,t,i)},o.Wh=function(e){return lY(this,e)},o.bi=function(e,t){snn(this,e,t)},o.ii=function(){return Sc(),Aoe},o.ki=function(e){HY(this,e)},o.jh=function(){return this.k},o.kh=function(){return _M(this)},o.Ib=function(){return OF(this)},o.k=null,w(Kd,"ElkGraphElementImpl",739),b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return cZ(this,e,t,i)},o.Wh=function(e){return lZ(this,e)},o.bi=function(e,t){fnn(this,e,t)},o.ii=function(){return Sc(),Soe},o.ki=function(e){pZ(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){$g(this,e,t)},o.qh=function(e,t){qo(this,e,t)},o.rh=function(e){ru(this,e)},o.sh=function(e){cu(this,e)},o.Ib=function(){return Ax(this)},o.f=0,o.g=0,o.i=0,o.j=0,w(Kd,"ElkShapeImpl",740),b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return FZ(this,e,t,i)},o.Sh=function(e,t,i){return tnn(this,e,t,i)},o.Uh=function(e,t,i){return inn(this,e,t,i)},o.Wh=function(e){return AY(this,e)},o.bi=function(e,t){gen(this,e,t)},o.ii=function(){return Sc(),Toe},o.ki=function(e){OZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Dn(Xt,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Dn(Xt,this,7,4)),this.e},w(Kd,"ElkConnectableShapeImpl",741),b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},aL),o.Ah=function(e){return YZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return ak(this);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new q(jt,this,6,6)),this.a;case 7:return Kn(),!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return Kn(),!!Q5(this);case 9:return Kn(),!!tb(this);case 10:return Kn(),!this.b&&(this.b=new Dn(he,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new Dn(he,this,5,8)),0!=this.c.i)}return QY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16)>=0?YZ(this,i):this.Cb.Th(this,-1-r,null,i)),DW(this,u(e,27),i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),Qc(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),Qc(this.c,e,i);case 6:return!this.a&&(this.a=new q(jt,this,6,6)),Qc(this.a,e,i)}return jx(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return DW(this,null,i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),rr(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),rr(this.c,e,i);case 6:return!this.a&&(this.a=new q(jt,this,6,6)),rr(this.a,e,i)}return cF(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!ak(this);case 4:return!!this.b&&0!=this.b.i;case 5:return!!this.c&&0!=this.c.i;case 6:return!!this.a&&0!=this.a.i;case 7:return!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return Q5(this);case 9:return tb(this);case 10:return!this.b&&(this.b=new Dn(he,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new Dn(he,this,5,8)),0!=this.c.i)}return lY(this,e)},o.bi=function(e,t){switch(e){case 3:return void zA(this,u(t,27));case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),pe(this.b),!this.b&&(this.b=new Dn(he,this,4,7)),void Bt(this.b,u(t,16));case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),pe(this.c),!this.c&&(this.c=new Dn(he,this,5,8)),void Bt(this.c,u(t,16));case 6:return!this.a&&(this.a=new q(jt,this,6,6)),pe(this.a),!this.a&&(this.a=new q(jt,this,6,6)),void Bt(this.a,u(t,16))}snn(this,e,t)},o.ii=function(){return Sc(),Vdn},o.ki=function(e){switch(e){case 3:return void zA(this,null);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),void pe(this.b);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),void pe(this.c);case 6:return!this.a&&(this.a=new q(jt,this,6,6)),void pe(this.a)}HY(this,e)},o.Ib=function(){return iGn(this)},w(Kd,"ElkEdgeImpl",326),b(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},_E),o.Ah=function(e){return WZ(this,e)},o.Lh=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new ni(Ro,this,5)),this.a;case 6:return dOn(this);case 7:return t?ZF(this):this.i;case 8:return t?YF(this):this.f;case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),this.e;case 11:return this.d}return qZ(this,e,t,i)},o.Sh=function(e,t,i){var c;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16)>=0?WZ(this,i):this.Cb.Th(this,-1-c,null,i)),LW(this,u(e,74),i);case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),Qc(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),Qc(this.e,e,i)}return u(Nn(u(qn(this,16),29)||(Sc(),DO),t),69).wk().zk(this,uu(this),t-se((Sc(),DO)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new ni(Ro,this,5)),rr(this.a,e,i);case 6:return LW(this,null,i);case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),rr(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),rr(this.e,e,i)}return Lnn(this,e,t,i)},o.Wh=function(e){switch(e){case 1:return 0!=this.j;case 2:return 0!=this.k;case 3:return 0!=this.b;case 4:return 0!=this.c;case 5:return!!this.a&&0!=this.a.i;case 6:return!!dOn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&0!=this.g.i;case 10:return!!this.e&&0!=this.e.i;case 11:return null!=this.d}return xJ(this,e)},o.bi=function(e,t){switch(e){case 1:return void n4(this,F(R(t)));case 2:return void t4(this,F(R(t)));case 3:return void Z3(this,F(R(t)));case 4:return void e4(this,F(R(t)));case 5:return!this.a&&(this.a=new ni(Ro,this,5)),pe(this.a),!this.a&&(this.a=new ni(Ro,this,5)),void Bt(this.a,u(t,16));case 6:return void tqn(this,u(t,74));case 7:return void BT(this,u(t,84));case 8:return void xT(this,u(t,84));case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),pe(this.g),!this.g&&(this.g=new Dn(jt,this,9,10)),void Bt(this.g,u(t,16));case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),pe(this.e),!this.e&&(this.e=new Dn(jt,this,10,9)),void Bt(this.e,u(t,16));case 11:return void ZQ(this,Oe(t))}SY(this,e,t)},o.ii=function(){return Sc(),DO},o.ki=function(e){switch(e){case 1:return void n4(this,0);case 2:return void t4(this,0);case 3:return void Z3(this,0);case 4:return void e4(this,0);case 5:return!this.a&&(this.a=new ni(Ro,this,5)),void pe(this.a);case 6:return void tqn(this,null);case 7:return void BT(this,null);case 8:return void xT(this,null);case 9:return!this.g&&(this.g=new Dn(jt,this,9,10)),void pe(this.g);case 10:return!this.e&&(this.e=new Dn(jt,this,10,9)),void pe(this.e);case 11:return void ZQ(this,null)}vY(this,e)},o.Ib=function(){return gHn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0,w(Kd,"ElkEdgeSectionImpl",452),b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){return 0==e?(!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab):Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Sh=function(e,t,i){return 0==t?(!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i)):u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().zk(this,uu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){return 0==t?(!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i)):u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){return 0==e?!!this.Ab&&0!=this.Ab.i:Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.Zh=function(e){return Atn(this,e)},o.bi=function(e,t){if(0===e)return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.di=function(e){op(this,128,e)},o.ii=function(){return In(),Voe},o.ki=function(e){if(0===e)return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return r8(this,e)},o.Bb=0,w(Hn,"EModelElementImpl",158),b(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},PG),o.ri=function(e,t){return LGn(this,e,t)},o.si=function(e){var i,r,c,s;if(this.a!=Mo(e)||256&e.Bb)throw M(new Un(NK+e.zb+wb));for(r=_r(e);0!=Lc(r.a).i;){if(eb(i=u(Dy(r,0,L(s=u(D(Lc(r.a),0),89).c,90)?u(s,29):(In(),$s)),29)))return u(c=Mo(i).wi().si(i),54).ci(e),c;r=_r(i)}return"java.util.Map$Entry"==(null!=e.D?e.D:e.B)?new VSn(e):new yV(e)},o.ti=function(e,t){return ob(this,e,t)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.a}return Jo(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e),t,i)},o.Sh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Pf,i)),_Y(this,u(e,241),i)}return u(Nn(u(qn(this,16),29)||(In(),Wa),t),69).wk().zk(this,uu(this),t-se((In(),Wa)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 1:return _Y(this,null,i)}return u(Nn(u(qn(this,16),29)||(In(),Wa),t),69).wk().Ak(this,uu(this),t-se((In(),Wa)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return Wo(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void ZKn(this,u(t,241))}ns(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e),t)},o.ii=function(){return In(),Wa},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void ZKn(this,null)}Zo(this,e-se((In(),Wa)),Nn(u(qn(this,16),29)||Wa,e))},w(Hn,"EFactoryImpl",720),b(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},lmn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return Jr(t);default:throw M(new Un(dm+e.xe()+wb))}},o.si=function(e){var t;switch(-1==e.G&&(e.G=(t=Mo(e))?j1(t.vi(),e):-1),e.G){case 4:return new EG;case 6:return new d6;case 7:return new Ez;case 8:return new aL;case 9:return new KE;case 10:return new _E;case 11:return new amn;default:throw M(new Un(NK+e.zb+wb))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw M(new Un(dm+e.xe()+wb))}},w(Kd,"ElkGraphFactoryImpl",1037),b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var t;return null==(t=EJ(kh(u(qn(this,16),29)||this.ii())))?(T6(),T6(),QU):new pAn(this,t)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.xe()}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void this.ui(Oe(t))}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),Joe},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void this.ui(null)}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.xe=function(){return this.zb},o.ui=function(e){Jc(this,e)},o.Ib=function(){return L5(this)},o.zb=null,w(Hn,"ENamedElementImpl",448),b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},GIn),o.Ah=function(e){return hKn(this,e)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new iw(this,If,this)),this.rb;case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:kOn(this)}return Jo(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,z9,i)),UY(this,u(e,480),i);case 5:return!this.rb&&(this.rb=new iw(this,If,this)),Qc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),Qc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16)>=0?hKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,7,i)}return u(Nn(u(qn(this,16),29)||(In(),q1),t),69).wk().zk(this,uu(this),t-se((In(),q1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 4:return UY(this,null,i);case 5:return!this.rb&&(this.rb=new iw(this,If,this)),rr(this.rb,e,i);case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),rr(this.vb,e,i);case 7:return Oo(this,null,7,i)}return u(Nn(u(qn(this,16),29)||(In(),q1),t),69).wk().Ak(this,uu(this),t-se((In(),q1)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.yb;case 3:return null!=this.xb;case 4:return!!this.sb;case 5:return!!this.rb&&0!=this.rb.i;case 6:return!!this.vb&&0!=this.vb.i;case 7:return!!kOn(this)}return Wo(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e))},o.Zh=function(e){return function aTe(n,e){var t,i,r,c,s,f;if(!n.tb){for(!n.rb&&(n.rb=new iw(n,If,n)),f=new Tv((c=n.rb).i),r=new ne(c);r.e!=r.i.gc();)i=u(ue(r),142),(t=u(null==(s=i.xe())?Yc(f.f,null,i):J0(f.i,s,i),142))&&(null==s?Yc(f.f,null,t):J0(f.i,s,t));n.tb=f}return u(Bc(n.tb,e),142)}(this,e)||Atn(this,e)},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return void UT(this,Oe(t));case 3:return void qT(this,Oe(t));case 4:return void Tx(this,u(t,480));case 5:return!this.rb&&(this.rb=new iw(this,If,this)),pe(this.rb),!this.rb&&(this.rb=new iw(this,If,this)),void Bt(this.rb,u(t,16));case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),pe(this.vb),!this.vb&&(this.vb=new Fv(Pf,this,6,7)),void Bt(this.vb,u(t,16))}ns(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new ne(this.rb);i.e!=i.i.gc();)L(t=ue(i),364)&&(u(t,364).w=null);op(this,64,e)},o.ii=function(){return In(),q1},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return void UT(this,null);case 3:return void qT(this,null);case 4:return void Tx(this,null);case 5:return!this.rb&&(this.rb=new iw(this,If,this)),void pe(this.rb);case 6:return!this.vb&&(this.vb=new Fv(Pf,this,6,7)),void pe(this.vb)}Zo(this,e-se((In(),q1)),Nn(u(qn(this,16),29)||q1,e))},o.pi=function(){ax(this)},o.vi=function(){return!this.rb&&(this.rb=new iw(this,If,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return 64&this.Db?L5(this):((e=new gs(L5(this))).a+=" (nsURI: ",jr(e,this.yb),e.a+=", nsPrefix: ",jr(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null,w(Hn,"EPackageImpl",184),b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},MHn),o.q=!1,o.r=!1;var Doe=!1;w(Kd,"ElkGraphPackageImpl",569),b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},EG),o.Ah=function(e){return VZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return yOn(this);case 8:return this.a}return cZ(this,e,t,i)},o.Sh=function(e,t,i){var r;return 7===t?(this.Cb&&(i=(r=this.Db>>16)>=0?VZ(this,i):this.Cb.Th(this,-1-r,null,i)),FV(this,u(e,167),i)):jx(this,e,t,i)},o.Uh=function(e,t,i){return 7==t?FV(this,null,i):cF(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!yOn(this);case 8:return!Tn("",this.a)}return lZ(this,e)},o.bi=function(e,t){switch(e){case 7:return void Pen(this,u(t,167));case 8:return void WQ(this,Oe(t))}fnn(this,e,t)},o.ii=function(){return Sc(),Jdn},o.ki=function(e){switch(e){case 7:return void Pen(this,null);case 8:return void WQ(this,"")}pZ(this,e)},o.Ib=function(){return d_n(this)},o.a="",w(Kd,"ElkLabelImpl",366),b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},d6),o.Ah=function(e){return ZZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),this.a;case 11:return Ct(this);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),this.b;case 13:return Kn(),!this.a&&(this.a=new q(Qe,this,10,11)),this.a.i>0}return FZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),Qc(this.c,e,i);case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),Qc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16)>=0?ZZ(this,i):this.Cb.Th(this,-1-r,null,i)),qW(this,u(e,27),i);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),Qc(this.b,e,i)}return tnn(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),rr(this.c,e,i);case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),rr(this.a,e,i);case 11:return qW(this,null,i);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),rr(this.b,e,i)}return inn(this,e,t,i)},o.Wh=function(e){switch(e){case 9:return!!this.c&&0!=this.c.i;case 10:return!!this.a&&0!=this.a.i;case 11:return!!Ct(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new q(Qe,this,10,11)),this.a.i>0}return AY(this,e)},o.bi=function(e,t){switch(e){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),pe(this.c),!this.c&&(this.c=new q(Yu,this,9,9)),void Bt(this.c,u(t,16));case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),pe(this.a),!this.a&&(this.a=new q(Qe,this,10,11)),void Bt(this.a,u(t,16));case 11:return void XA(this,u(t,27));case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),pe(this.b),!this.b&&(this.b=new q(Xt,this,12,3)),void Bt(this.b,u(t,16))}gen(this,e,t)},o.ii=function(){return Sc(),Qdn},o.ki=function(e){switch(e){case 9:return!this.c&&(this.c=new q(Yu,this,9,9)),void pe(this.c);case 10:return!this.a&&(this.a=new q(Qe,this,10,11)),void pe(this.a);case 11:return void XA(this,null);case 12:return!this.b&&(this.b=new q(Xt,this,12,3)),void pe(this.b)}OZ(this,e)},o.Ib=function(){return Gen(this)},w(Kd,"ElkNodeImpl",207),b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Ez),o.Ah=function(e){return JZ(this,e)},o.Lh=function(e,t,i){return 9==e?Df(this):FZ(this,e,t,i)},o.Sh=function(e,t,i){var r;return 9===t?(this.Cb&&(i=(r=this.Db>>16)>=0?JZ(this,i):this.Cb.Th(this,-1-r,null,i)),NW(this,u(e,27),i)):tnn(this,e,t,i)},o.Uh=function(e,t,i){return 9==t?NW(this,null,i):inn(this,e,t,i)},o.Wh=function(e){return 9==e?!!Df(this):AY(this,e)},o.bi=function(e,t){9!==e?gen(this,e,t):Men(this,u(t,27))},o.ii=function(){return Sc(),Ydn},o.ki=function(e){9!==e?OZ(this,e):Men(this,null)},o.Ib=function(){return eUn(this)},w(Kd,"ElkPortImpl",193);var Noe=Ot(ur,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},amn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return T0(this)},o.Di=function(e){VQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return yA(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return null!=this.c}return WF(this,e)},o.bi=function(e,t){switch(e){case 0:return void VQ(this,u(t,149));case 1:return void XQ(this,t)}Lx(this,e,t)},o.ii=function(){return Sc(),ll},o.ki=function(e){switch(e){case 0:return void VQ(this,null);case 1:return void XQ(this,null)}Px(this,e)},o.Bi=function(){var e;return-1==this.a&&(this.a=(e=this.b)?wt(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,XQ(this,e),t},o.Ib=function(){var e;return 64&this.Db?Ws(this):(Re(Re(Re(e=new V1,this.b?this.b.Pg():yu),AR),z6(this.c)),e.a)},o.a=-1,o.c=null;var R1=w(Kd,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},wmn),w(Hi,"JsonAdapter",996),b(216,63,Rl,oh),w(Hi,"JsonImportException",216),b(868,1,{},lKn),w(Hi,"JsonImporter",868),b(903,1,{},pMn),w(Hi,"JsonImporter/lambda$0$Type",903),b(904,1,{},mMn),w(Hi,"JsonImporter/lambda$1$Type",904),b(912,1,{},Hkn),w(Hi,"JsonImporter/lambda$10$Type",912),b(914,1,{},kMn),w(Hi,"JsonImporter/lambda$11$Type",914),b(915,1,{},yMn),w(Hi,"JsonImporter/lambda$12$Type",915),b(921,1,{},DIn),w(Hi,"JsonImporter/lambda$13$Type",921),b(920,1,{},NIn),w(Hi,"JsonImporter/lambda$14$Type",920),b(916,1,{},jMn),w(Hi,"JsonImporter/lambda$15$Type",916),b(917,1,{},EMn),w(Hi,"JsonImporter/lambda$16$Type",917),b(918,1,{},CMn),w(Hi,"JsonImporter/lambda$17$Type",918),b(919,1,{},MMn),w(Hi,"JsonImporter/lambda$18$Type",919),b(924,1,{},qkn),w(Hi,"JsonImporter/lambda$19$Type",924),b(905,1,{},Ukn),w(Hi,"JsonImporter/lambda$2$Type",905),b(922,1,{},Gkn),w(Hi,"JsonImporter/lambda$20$Type",922),b(923,1,{},zkn),w(Hi,"JsonImporter/lambda$21$Type",923),b(927,1,{},Xkn),w(Hi,"JsonImporter/lambda$22$Type",927),b(925,1,{},Wkn),w(Hi,"JsonImporter/lambda$23$Type",925),b(926,1,{},Vkn),w(Hi,"JsonImporter/lambda$24$Type",926),b(929,1,{},Jkn),w(Hi,"JsonImporter/lambda$25$Type",929),b(928,1,{},Qkn),w(Hi,"JsonImporter/lambda$26$Type",928),b(930,1,re,TMn),o.Cd=function(e){!function T3e(n,e,t){var i,r;r=null,(i=El(n,t))&&(r=Bnn(i)),fRn(e,t,r)}(this.b,this.a,Oe(e))},w(Hi,"JsonImporter/lambda$27$Type",930),b(931,1,re,AMn),o.Cd=function(e){!function A3e(n,e,t){var i,r;r=null,(i=El(n,t))&&(r=Bnn(i)),fRn(e,t,r)}(this.b,this.a,Oe(e))},w(Hi,"JsonImporter/lambda$28$Type",931),b(932,1,{},SMn),w(Hi,"JsonImporter/lambda$29$Type",932),b(908,1,{},Ykn),w(Hi,"JsonImporter/lambda$3$Type",908),b(933,1,{},PMn),w(Hi,"JsonImporter/lambda$30$Type",933),b(934,1,{},Zkn),w(Hi,"JsonImporter/lambda$31$Type",934),b(935,1,{},nyn),w(Hi,"JsonImporter/lambda$32$Type",935),b(936,1,{},eyn),w(Hi,"JsonImporter/lambda$33$Type",936),b(937,1,{},tyn),w(Hi,"JsonImporter/lambda$34$Type",937),b(870,1,{},iyn),w(Hi,"JsonImporter/lambda$35$Type",870),b(941,1,{},ESn),w(Hi,"JsonImporter/lambda$36$Type",941),b(938,1,re,ryn),o.Cd=function(e){!function Lpe(n,e){var t;wd(t=new jv,"x",e.a),wd(t,"y",e.b),Uv(n,t)}(this.a,u(e,377))},w(Hi,"JsonImporter/lambda$37$Type",938),b(939,1,re,IMn),o.Cd=function(e){!function dle(n,e,t){CKn(e,Ox(n,t))}(this.a,this.b,u(e,166))},w(Hi,"JsonImporter/lambda$38$Type",939),b(940,1,re,OMn),o.Cd=function(e){!function ble(n,e,t){CKn(e,Ox(n,t))}(this.a,this.b,u(e,166))},w(Hi,"JsonImporter/lambda$39$Type",940),b(906,1,{},cyn),w(Hi,"JsonImporter/lambda$4$Type",906),b(942,1,re,uyn),o.Cd=function(e){!function Dpe(n,e){var t;wd(t=new jv,"x",e.a),wd(t,"y",e.b),Uv(n,t)}(this.a,u(e,8))},w(Hi,"JsonImporter/lambda$40$Type",942),b(907,1,{},oyn),w(Hi,"JsonImporter/lambda$5$Type",907),b(911,1,{},syn),w(Hi,"JsonImporter/lambda$6$Type",911),b(909,1,{},fyn),w(Hi,"JsonImporter/lambda$7$Type",909),b(910,1,{},hyn),w(Hi,"JsonImporter/lambda$8$Type",910),b(913,1,{},lyn),w(Hi,"JsonImporter/lambda$9$Type",913),b(961,1,re,ayn),o.Cd=function(e){Uv(this.a,new rw(Oe(e)))},w(Hi,"JsonMetaDataConverter/lambda$0$Type",961),b(962,1,re,dyn),o.Cd=function(e){!function Cwe(n,e){Uv(n,new rw(null!=e.f?e.f:""+e.g))}(this.a,u(e,245))},w(Hi,"JsonMetaDataConverter/lambda$1$Type",962),b(963,1,re,byn),o.Cd=function(e){!function E2e(n,e){null!=e.c&&Uv(n,new rw(e.c))}(this.a,u(e,143))},w(Hi,"JsonMetaDataConverter/lambda$2$Type",963),b(964,1,re,wyn),o.Cd=function(e){!function Mwe(n,e){Uv(n,new rw(null!=e.f?e.f:""+e.g))}(this.a,u(e,170))},w(Hi,"JsonMetaDataConverter/lambda$3$Type",964),b(245,22,{3:1,34:1,22:1,245:1},Iv);var NO,$O,UU,FO,xO,BO,GU,zU,$oe,RO=we(Wy,"GraphFeature",245,ke,function s4e(){return F4(),S(T(RO,1),G,245,0,[zU,xO,BO,FO,GU,$O,NO,UU])},function Q0e(n){return F4(),Ee((xFn(),$oe),n)});b(11,1,{34:1,149:1},ct,Pt,Cn,Li),o.Fd=function(e){return function m1e(n,e){return oQ(n.b,e.Pg())}(this,u(e,149))},o.Fb=function(e){return iOn(this,e)},o.Sg=function(){return rn(this)},o.Pg=function(){return this.b},o.Hb=function(){return w1(this.b)},o.Ib=function(){return this.b},w(Wy,"Property",11),b(671,1,Ne,TL),o.Ne=function(e,t){return function P5e(n,e,t){var i,r;return i=u(e.of(n.a),34),r=u(t.of(n.a),34),null!=i&&null!=r?Fk(i,r):null!=i?-1:null!=r?1:0}(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Te(this)},w(Wy,"PropertyHolderComparator",671),b(709,1,Ti,rz),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return function I3e(n){var e;if(!n.a)throw M(new LIn);return e=n.a,n.a=Ct(n.a),e}(this)},o.Qb=function(){lEn()},o.Ob=function(){return!!this.a},w(uP,"ElkGraphUtil/AncestorIterator",709);var n0n=Ot(ur,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){N5(this,e,t)},o.Fc=function(e){return me(this,e)},o.cd=function(e,t){return pY(this,e,t)},o.Gc=function(e){return Bt(this,e)},o.Ii=function(){return new $v(this)},o.Ji=function(){return new q7(this)},o.Ki=function(e){return $k(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){T$(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return Rqn(this,e)},o.Hb=function(){return bY(this)},o.Si=function(){return!1},o.Kc=function(){return new ne(this)},o.ed=function(){return new Nv(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw M(new ew(e,t));return new ON(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return ET(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return n2(this,e,t)},o.Ib=function(){return sZ(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return g4(this,t)},w(ur,"AbstractEList",70),b(66,70,Ih,HE,q0,sY),o.Ei=function(e,t){return Ex(this,e,t)},o.Fi=function(e){return FRn(this,e)},o.Gi=function(e,t){Jk(this,e,t)},o.Hi=function(e){mk(this,e)},o.$i=function(e){return jQ(this,e)},o.$b=function(){g5(this)},o.Hc=function(e){return L4(this,e)},o.Xb=function(e){return D(this,e)},o._i=function(e){var t,i,r;++this.j,e>(i=null==this.g?0:this.g.length)&&(r=this.g,(t=i+(i/2|0)+4)=0&&(this.gd(t),!0)},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()},w(ur,"DelegatingEList",2093),b(2094,2093,tJn),o.Ei=function(e,t){return itn(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){THn(this,e,t)},o.Hi=function(e){bHn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){h8(this)},o.Ij=function(e,t,i,r,c){return new tOn(this,e,t,i,r,c)},o.Jj=function(e){tt(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=Pnn(this,e,t),this.Jj(this.Ij(7,Y(t),i,e,r)),i):Pnn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=yM(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i))?(i.nj(t),i.oj()):this.Jj(t):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=yM(this,e),this.Mj()&&c&&(i=this.Oj(c,null))&&i.oj(),c)},o.Xi=function(e,t){return DUn(this,e,t)},w(Ip,"DelegatingNotifyingListImpl",2094),b(152,1,lj),o.nj=function(e){return bnn(this,e)},o.oj=function(){N$(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return kqn(this)},o.jj=function(){return null},o.kj=function(){return Nen(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,r,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(e.gj()){case 1:case 2:if(x(e.jj())===x(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),1==e.gj()&&(this.d=1),!0}case 4:if(4===e.gj()&&x(e.jj())===x(this.jj())&&this.hj(null)==e.hj(null))return a=ktn(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new q0(2),l<=f?(me(g,this.n),me(g,e.kj()),this.g=S(T(ye,1),_e,28,15,[this.o=l,f+1])):(me(g,e.kj()),me(g,this.n),this.g=S(T(ye,1),_e,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break;case 6:if(4===e.gj()&&x(e.jj())===x(this.jj())&&this.hj(null)==e.hj(null)){for(a=ktn(this),f=e.lj(),d=u(this.g,53),r=K(ye,_e,28,d.length+1,15,1),t=0;t>>0).toString(16))).a+=" (eventType: ",this.d){case 1:r.a+="SET";break;case 2:r.a+="UNSET";break;case 3:r.a+="ADD";break;case 5:r.a+="ADD_MANY";break;case 4:r.a+="REMOVE";break;case 6:r.a+="REMOVE_MANY";break;case 7:r.a+="MOVE";break;case 8:r.a+="REMOVING_ADAPTER";break;case 9:r.a+="RESOLVE";break;default:JL(r,this.d)}if(oUn(this)&&(r.a+=", touch: true"),r.a+=", position: ",JL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",K6(r,this.jj()),r.a+=", feature: ",K6(r,this.Kj()),r.a+=", oldValue: ",K6(r,Nen(this)),r.a+=", newValue: ",6==this.d&&L(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new Y6(this),this.a=this.j),bf(this.b,e)):L4(this,e)},o.Yi=function(){return!0},o.a=0,w(ur,"AbstractEList/1",966),b(302,77,QB,ew),w(ur,"AbstractEList/BasicIndexOutOfBoundsException",302),b(37,1,Ti,ne),o.Nb=function(e){Ri(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw M(new Ho)},o.Yj=function(){return ue(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){z5(this)},o.e=0,o.f=0,o.g=-1,w(ur,"AbstractEList/EIterator",37),b(286,37,Jh,Nv,ON),o.Qb=function(){z5(this)},o.Rb=function(e){NBn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw L(t=At(t),77)?(this.Xj(),M(new tc)):M(t)}},o.$j=function(e){RRn(this,e)},o.Sb=function(){return 0!=this.e},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)},w(ur,"AbstractEList/EListIterator",286),b(355,37,Ti,$v),o.Yj=function(){return VF(this)},o.Qb=function(){throw M(new Pe)},w(ur,"AbstractEList/NonResolvingEIterator",355),b(398,286,Jh,q7,JW),o.Rb=function(e){throw M(new Pe)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw L(t=At(t),77)?(this.Xj(),M(new tc)):M(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw L(t=At(t),77)?(this.Xj(),M(new tc)):M(t)}},o.Qb=function(){throw M(new Pe)},o.Wb=function(e){throw M(new Pe)},w(ur,"AbstractEList/NonResolvingEListIterator",398),b(2080,70,iJn),o.Ei=function(e,t){var r,c,s,f,l,a,d,g;if(0!=(c=t.gc())){for(r=pF(this,(d=null==(a=u(qn(this.a,4),129))?0:a.length)+c),(g=d-e)>0&&Nc(a,e,r,e+c,g),l=t.Kc(),f=0;fi)throw M(new ew(e,i));return new CIn(this,e)},o.$b=function(){var e,t;++this.j,t=null==(e=u(qn(this.a,4),129))?0:e.length,S4(this,null),T$(this,t,e)},o.Hc=function(e){var t,r,c,s;if(null!=(t=u(qn(this.a,4),129)))if(null!=e){for(c=0,s=(r=t).length;c=(i=null==(t=u(qn(this.a,4),129))?0:t.length))throw M(new ew(e,i));return t[e]},o.dd=function(e){var t,i,r;if(null!=(t=u(qn(this.a,4),129)))if(null!=e){for(i=0,r=t.length;ii)throw M(new ew(e,i));return new EIn(this,e)},o.Ti=function(e,t){var i,r,c;if(e>=(c=null==(i=UBn(this))?0:i.length))throw M(new Ar(qK+e+_d+c));if(t>=c)throw M(new Ar(UK+t+_d+c));return r=i[t],e!=t&&(e=(s=null==(t=u(qn(n.a,4),129))?0:t.length))throw M(new ew(e,s));return r=t[e],1==s?i=null:(Nc(t,0,i=K(WU,VK,424,s-1,0,1),0,e),(c=s-e-1)>0&&Nc(t,e+1,i,e,c)),S4(n,i),O_n(n,e,r),r}(this,e)},o.Xi=function(e,t){var i,r;return r=(i=UBn(this))[e],HD(i,e,g4(this,t)),S4(this,i),r},o.gc=function(){var e;return null==(e=u(qn(this.a,4),129))?0:e.length},o.Pc=function(){var e,t,i;return e=u(qn(this.a,4),129),t=K(WU,VK,424,i=null==e?0:e.length,0,1),i>0&&Nc(e,0,t,0,i),t},o.Qc=function(e){var t,r;return(r=null==(t=u(qn(this.a,4),129))?0:t.length)>0&&(e.lengthr&&Dt(e,r,null),e},w(ur,"ArrayDelegatingEList",2080),b(1051,37,Ti,MDn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},o.Qb=function(){z5(this),this.a=u(qn(this.b.a,4),129)},w(ur,"ArrayDelegatingEList/EIterator",1051),b(722,286,Jh,xPn,EIn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},o.$j=function(e){RRn(this,e),this.a=u(qn(this.b.a,4),129)},o.Qb=function(){z5(this),this.a=u(qn(this.b.a,4),129)},w(ur,"ArrayDelegatingEList/EListIterator",722),b(1052,355,Ti,TDn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},w(ur,"ArrayDelegatingEList/NonResolvingEIterator",1052),b(723,398,Jh,BPn,CIn),o.Xj=function(){if(this.b.j!=this.f||x(u(qn(this.b.a,4),129))!==x(this.a))throw M(new Ho)},w(ur,"ArrayDelegatingEList/NonResolvingEListIterator",723),b(615,302,QB,FD),w(ur,"BasicEList/BasicIndexOutOfBoundsException",615),b(710,66,Ih,BX),o.bd=function(e,t){throw M(new Pe)},o.Fc=function(e){throw M(new Pe)},o.cd=function(e,t){throw M(new Pe)},o.Gc=function(e){throw M(new Pe)},o.$b=function(){throw M(new Pe)},o._i=function(e){throw M(new Pe)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw M(new Pe)},o.Ui=function(e,t){throw M(new Pe)},o.gd=function(e){throw M(new Pe)},o.Mc=function(e){throw M(new Pe)},o.hd=function(e,t){throw M(new Pe)},w(ur,"BasicEList/UnmodifiableEList",710),b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){!function o1e(n,e,t){n.c.bd(e,u(t,136))}(this,e,u(t,44))},o.Fc=function(e){return function nae(n,e){return n.c.Fc(u(e,136))}(this,u(e,44))},o.Jc=function(e){_i(this,e)},o.Xb=function(e){return u(D(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){!function s1e(n,e,t){n.c.Ui(e,u(t,136))}(this,e,u(t,44))},o.Lc=function(){return new Mn(null,new Pn(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return function Ewe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}(this,e,u(t,44))},o.jd=function(e){yd(this,e)},o.Nc=function(){return new Pn(this,16)},o.Oc=function(){return new Mn(null,new Pn(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return _k(this.c,e)},o._j=function(){var t,i;if(null==this.d){for(this.d=K(e0n,aun,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)MA(this,u(t.Yj(),136));this.e=i}},o.Fb=function(e){return lSn(this,e)},o.Hb=function(){return bY(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new gyn(this)},o.dc=function(){return 0==this.f},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return jk(this)},o.ck=function(e,t,i){return new CSn(e,t,i)},o.dk=function(){return new mmn},o.Mc=function(e){return Q$n(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new f1(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return sZ(this.c)},o.e=0,o.f=0,w(ur,"BasicEMap",721),b(1046,66,Ih,gyn),o.Mi=function(e,t){!function Rfe(n,e){MA(n.a,e)}(this,u(t,136))},o.Pi=function(e,t,i){++(this,u(t,136),this).a.e},o.Qi=function(e,t){!function Kfe(n,e){PF(n.a,e)}(this,u(t,136))},o.Ri=function(e,t,i){!function R1e(n,e,t){PF(n.a,t),MA(n.a,e)}(this,u(t,136),u(i,136))},o.Oi=function(e,t){UFn(this.a)},w(ur,"BasicEMap/1",1046),b(1047,66,Ih,mmn),o.aj=function(e){return K(ANe,rJn,621,e,0,1)},w(ur,"BasicEMap/2",1047),b(1048,Gf,Fu,vyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return RF(this.a,e)},o.Kc=function(){return 0==this.a.f?(I3(),SE.a):new Zjn(this.a)},o.Mc=function(e){var t;return t=this.a.f,dA(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f},w(ur,"BasicEMap/3",1048),b(1049,31,Lw,pyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return Kqn(this.a,e)},o.Kc=function(){return 0==this.a.f?(I3(),SE.a):new nEn(this.a)},o.gc=function(){return this.a.f},w(ur,"BasicEMap/4",1049),b(1050,Gf,Fu,myn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&L(e,44)&&(this.a._j(),c=null==(h=(l=u(e,44)).ld())?0:wt(h),s=$W(this.a,c),t=this.a.d[s]))for(i=u(t.g,379),a=t.i,f=0;f"+this.c},o.a=0;var SE,ANe=w(ur,"BasicEMap/EntryImpl",621);b(546,1,{},qE),w(ur,"BasicEMap/View",546),b(783,1,{}),o.Fb=function(e){return ven((On(),Vi),e)},o.Hb=function(){return TY((On(),Vi))},o.Ib=function(){return pa((On(),Vi))},w(ur,"ECollections/BasicEmptyUnmodifiableEList",783),b(1348,1,Jh,kmn),o.Nb=function(e){Ri(this,e)},o.Rb=function(e){throw M(new Pe)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw M(new tc)},o.Tb=function(){return 0},o.Ub=function(){throw M(new tc)},o.Vb=function(){return-1},o.Qb=function(){throw M(new Pe)},o.Wb=function(e){throw M(new Pe)},w(ur,"ECollections/BasicEmptyUnmodifiableEList/1",1348),b(1346,783,{20:1,16:1,15:1,61:1},fjn),o.bd=function(e,t){CEn()},o.Fc=function(e){return MEn()},o.cd=function(e,t){return TEn()},o.Gc=function(e){return AEn()},o.$b=function(){SEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){_i(this,e)},o.Xb=function(e){return _X((On(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return PEn()},o.Ui=function(e,t){IEn()},o.Lc=function(){return new Mn(null,new Pn(this,16))},o.gd=function(e){return OEn()},o.Mc=function(e){return LEn()},o.hd=function(e,t){return DEn()},o.gc=function(){return 0},o.jd=function(e){yd(this,e)},o.Nc=function(){return new Pn(this,16)},o.Oc=function(){return new Mn(null,new Pn(this,16))},o.kd=function(e,t){return On(),new f1(Vi,e,t)},o.Pc=function(){return BV((On(),Vi))},o.Qc=function(e){return On(),H5(Vi,e)},w(ur,"ECollections/EmptyUnmodifiableEList",1346),b(1347,783,{20:1,16:1,15:1,61:1,597:1},hjn),o.bd=function(e,t){CEn()},o.Fc=function(e){return MEn()},o.cd=function(e,t){return TEn()},o.Gc=function(e){return AEn()},o.$b=function(){SEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){_i(this,e)},o.Xb=function(e){return _X((On(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return PEn()},o.Ui=function(e,t){IEn()},o.Lc=function(){return new Mn(null,new Pn(this,16))},o.gd=function(e){return OEn()},o.Mc=function(e){return LEn()},o.hd=function(e,t){return DEn()},o.gc=function(){return 0},o.jd=function(e){yd(this,e)},o.Nc=function(){return new Pn(this,16)},o.Oc=function(){return new Mn(null,new Pn(this,16))},o.kd=function(e,t){return On(),new f1(Vi,e,t)},o.Pc=function(){return BV((On(),Vi))},o.Qc=function(e){return On(),H5(Vi,e)},o.bk=function(){return On(),On(),il},w(ur,"ECollections/EmptyUnmodifiableEMap",1347);var KO,i0n=Ot(ur,"Enumerator");b(288,1,{288:1},zx),o.Fb=function(e){var t;return this===e||!!L(e,288)&&(t=u(e,288),this.f==t.f&&function Rbe(n,e){return null==n?null==e:wA(n,e)}(this.i,t.i)&&mN(this.a,256&this.f?256&t.f?t.a:null:256&t.f?null:t.a)&&mN(this.d,t.d)&&mN(this.g,t.g)&&mN(this.e,t.e)&&function f9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t=0?n.ki(t):Qnn(n,e)}(this.a,this.b)},w(Hn,"BasicEObjectImpl/4",1040),b(2081,1,{114:1}),o.Mk=function(e){this.e=0==e?nse:K(pi,xn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw M(new Pe)},o.Pk=function(){throw M(new Pe)},o.Qk=function(){return this.d},o.Rk=function(){return null!=this.e},o.Sk=function(e){this.c=e},o.Tk=function(e){throw M(new Pe)},o.Uk=function(e){throw M(new Pe)},o.Vk=function(e){this.d=e},w(Hn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),b(192,2081,{114:1},af),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},w(Hn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(516,99,pVn,UE),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return 2&this.j?this.$h().Nk():this.ii()},o.Fh=function(){return this.i},o.wh=function(){return 0!=(1&this.j)},o.Ph=function(){return this.g},o.Vh=function(){return 0!=(4&this.j)},o.$h=function(){return!this.k&&(this.k=new af),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(ra(),_n).S},o.i=0,o.j=1,w(Hn,"EObjectImpl",516),b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},yV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return St(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return null!=this.e},o.$h=function(){return!this.k&&(this.k=new ymn),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return null==this.e&&(e=se(this.d),this.e=0==e?ese:K(pi,xn,1,e,5,1)),this},o.ji=function(){return 0},w(Hn,"DynamicEObjectImpl",798),b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},VSn),o.Fb=function(e){return this===e},o.Hb=function(){return T0(this)},o.ci=function(e){this.d=e,this.b=Ey(e,"key"),this.c=Ey(e,D8)},o.Bi=function(){var e;return-1==this.a&&(e=$$(this,this.b),this.a=null==e?0:wt(e)),this.a},o.ld=function(){return $$(this,this.b)},o.md=function(){return $$(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){TJ(this,this.b,e)},o.nd=function(e){var t;return t=$$(this,this.c),TJ(this,this.c,e),t},o.a=0,w(Hn,"DynamicEObjectImpl/BasicEMapEntry",1522),b(1523,1,{114:1},ymn),o.Mk=function(e){throw M(new Pe)},o.li=function(e){throw M(new Pe)},o.mi=function(e,t){throw M(new Pe)},o.ni=function(e){throw M(new Pe)},o.Nk=function(){throw M(new Pe)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw M(new Pe)},o.Sk=function(e){throw M(new Pe)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e},w(Hn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},CG),o.Ah=function(e){return QZ(this,e)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new wo((In(),hr),kc,this)),this.b):(!this.b&&(this.b=new wo((In(),hr),kc,this)),jk(this.b));case 3:return jOn(this);case 4:return!this.a&&(this.a=new ni(Ua,this,4)),this.a;case 5:return!this.c&&(this.c=new Bg(Ua,this,5)),this.c}return Jo(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16)>=0?QZ(this,i):this.Cb.Th(this,-1-c,null,i)),xV(this,u(e,155),i)}return u(Nn(u(qn(this,16),29)||(In(),K1),t),69).wk().zk(this,uu(this),t-se((In(),K1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 2:return!this.b&&(this.b=new wo((In(),hr),kc,this)),fM(this.b,e,i);case 3:return xV(this,null,i);case 4:return!this.a&&(this.a=new ni(Ua,this,4)),rr(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),K1),t),69).wk().Ak(this,uu(this),t-se((In(),K1)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.d;case 2:return!!this.b&&0!=this.b.f;case 3:return!!jOn(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return Wo(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void function Tbe(n,e){YQ(n,null==e?null:(Jn(e),e))}(this,Oe(t));case 2:return!this.b&&(this.b=new wo((In(),hr),kc,this)),void GT(this.b,t);case 3:return void oqn(this,u(t,155));case 4:return!this.a&&(this.a=new ni(Ua,this,4)),pe(this.a),!this.a&&(this.a=new ni(Ua,this,4)),void Bt(this.a,u(t,16));case 5:return!this.c&&(this.c=new Bg(Ua,this,5)),pe(this.c),!this.c&&(this.c=new Bg(Ua,this,5)),void Bt(this.c,u(t,16))}ns(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e),t)},o.ii=function(){return In(),K1},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void YQ(this,null);case 2:return!this.b&&(this.b=new wo((In(),hr),kc,this)),void this.b.c.$b();case 3:return void oqn(this,null);case 4:return!this.a&&(this.a=new ni(Ua,this,4)),void pe(this.a);case 5:return!this.c&&(this.c=new Bg(Ua,this,5)),void pe(this.c)}Zo(this,e-se((In(),K1)),Nn(u(qn(this,16),29)||K1,e))},o.Ib=function(){return lBn(this)},o.d=null,w(Hn,"EAnnotationImpl",519),b(141,721,dun,Du),o.Gi=function(e,t){!function Ule(n,e,t){u(n.c,71).Gi(e,t)}(this,e,u(t,44))},o.Wk=function(e,t){return function zae(n,e,t){return u(n.c,71).Wk(e,t)}(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return fM(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return(r=u(Mo(this.b).wi().si(this.b),136)).Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new uz(this)},o.Wb=function(e){GT(this,e)},o.Gk=function(){u(this.c,79).Gk()},w(Et,"EcoreEMap",141),b(165,141,dun,wo),o._j=function(){var e,t,i,c,s;if(null==this.d){for(s=K(e0n,aun,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)!(e=s[c=((t=u(i.Yj(),136)).Bi()&nt)%s.length])&&(e=s[c]=new uz(this)),e.Fc(t);this.d=s}},w(Hn,"EAnnotationImpl/1",165),b(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),!!this.Jk();case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.Jk();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i)}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void this.ui(Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void this.Zk(u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj())}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),Zoe},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void this.ui(null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void this.Zk(1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj())}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.pi=function(){ys(this),this.Bb|=1},o.Hk=function(){return ys(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return(e=this.t)>1||-1==e},o.Si=function(){return 0!=(512&this.Bb)},o.Yk=function(e,t){return GY(this,e,t)},o.Zk=function(e){bw(this,e)},o.Ib=function(){return sen(this)},o.s=0,o.t=1,w(Hn,"ETypedElementImpl",292),b(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),o.Ah=function(e){return nKn(this,e)},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),!!this.Jk();case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return Kn(),!!(this.Bb&Qs);case 11:return Kn(),!!(this.Bb&_w);case 12:return Kn(),!!(this.Bb&Nw);case 13:return this.j;case 14:return B4(this);case 15:return Kn(),!!(this.Bb&Bu);case 16:return Kn(),!!(this.Bb&yh);case 17:return uw(this)}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16)>=0?nKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,17,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().zk(this,uu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i);case 17:return Oo(this,null,17,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.Jk();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return 0==(this.Bb&Qs);case 11:return 0!=(this.Bb&_w);case 12:return 0!=(this.Bb&Nw);case 13:return null!=this.j;case 14:return null!=B4(this);case 15:return 0!=(this.Bb&Bu);case 16:return 0!=(this.Bb&yh);case 17:return!!uw(this)}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void o$(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void this.Zk(u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 10:return void y4(this,on(un(t)));case 11:return void C4(this,on(un(t)));case 12:return void j4(this,on(un(t)));case 13:return void xX(this,Oe(t));case 15:return void E4(this,on(un(t)));case 16:return void M4(this,on(un(t)))}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),Yoe},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,90)&&Mw(no(u(this.Cb,90)),4),void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void this.Zk(1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 10:return void y4(this,!0);case 11:return void C4(this,!1);case 12:return void j4(this,!1);case 13:return this.i=null,void RT(this,null);case 15:return void E4(this,!1);case 16:return void M4(this,!1)}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.pi=function(){_3(Ir(($u(),Ui),this)),ys(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return B4(this)},o.qk=function(){return uw(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return DA(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(null==(i=uw(this)).i&&kh(i),(r=this.uk())&&se(uw(r)),e=(f=(c=ys(this)).kk())?1&f.i?f==fo?qt:f==ye?qi:f==kg?km:f==Ai?ui:f==Ja?vb:f==fv?pb:f==Ku?Op:U8:f:null,t=B4(this),h=c.ik(),K5e(this),this.p=this.Bb&yh&&((s=rnn(($u(),Ui),i))&&s!=this||(s=Vv(Ir(Ui,this))))?new xMn(this,s):this.Jk()?this.al()?r?this.Bb&Bu?e?this.bl()?new bd(47,e,this,r):new bd(5,e,this,r):this.bl()?new md(46,this,r):new md(4,this,r):e?this.bl()?new bd(49,e,this,r):new bd(7,e,this,r):this.bl()?new md(48,this,r):new md(6,this,r):this.Bb&Bu?e?e==Ud?new u1(50,Noe,this):this.bl()?new u1(43,e,this):new u1(1,e,this):this.bl()?new s1(42,this):new s1(0,this):e?e==Ud?new u1(41,Noe,this):this.bl()?new u1(45,e,this):new u1(3,e,this):this.bl()?new s1(44,this):new s1(2,this):L(c,156)?e==qO?new s1(40,this):512&this.Bb?this.Bb&Bu?e?new u1(9,e,this):new s1(8,this):e?new u1(11,e,this):new s1(10,this):this.Bb&Bu?e?new u1(13,e,this):new s1(12,this):e?new u1(15,e,this):new s1(14,this):r?(l=r.t)>1||-1==l?this.bl()?this.Bb&Bu?e?new bd(25,e,this,r):new md(24,this,r):e?new bd(27,e,this,r):new md(26,this,r):this.Bb&Bu?e?new bd(29,e,this,r):new md(28,this,r):e?new bd(31,e,this,r):new md(30,this,r):this.bl()?this.Bb&Bu?e?new bd(33,e,this,r):new md(32,this,r):e?new bd(35,e,this,r):new md(34,this,r):this.Bb&Bu?e?new bd(37,e,this,r):new md(36,this,r):e?new bd(39,e,this,r):new md(38,this,r):this.bl()?this.Bb&Bu?e?new u1(17,e,this):new s1(16,this):e?new u1(19,e,this):new s1(18,this):this.Bb&Bu?e?new u1(21,e,this):new s1(20,this):e?new u1(23,e,this):new s1(22,this):this._k()?this.bl()?new MSn(u(c,29),this,r):new CJ(u(c,29),this,r):L(c,156)?e==qO?new s1(40,this):this.Bb&Bu?e?new CPn(t,h,this,(KF(),f==ye?p0n:f==fo?d0n:f==Ja?m0n:f==kg?v0n:f==Ai?g0n:f==fv?k0n:f==Ku?b0n:f==ds?w0n:YU)):new xIn(u(c,156),t,h,this):e?new EPn(t,h,this,(KF(),f==ye?p0n:f==fo?d0n:f==Ja?m0n:f==kg?v0n:f==Ai?g0n:f==fv?k0n:f==Ku?b0n:f==ds?w0n:YU)):new FIn(u(c,156),t,h,this):this.al()?r?this.Bb&Bu?this.bl()?new ASn(u(c,29),this,r):new fV(u(c,29),this,r):this.bl()?new TSn(u(c,29),this,r):new aN(u(c,29),this,r):this.Bb&Bu?this.bl()?new EAn(u(c,29),this):new EW(u(c,29),this):this.bl()?new jAn(u(c,29),this):new ZD(u(c,29),this):this.bl()?r?this.Bb&Bu?new SSn(u(c,29),this,r):new oV(u(c,29),this,r):this.Bb&Bu?new CAn(u(c,29),this):new CW(u(c,29),this):r?this.Bb&Bu?new PSn(u(c,29),this,r):new sV(u(c,29),this,r):this.Bb&Bu?new MAn(u(c,29),this):new TM(u(c,29),this)),this.p},o.rk=function(){return 0!=(this.Bb&Qs)},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return 0!=(this.Bb&yh)},o.xk=function(){return F$(this)},o.bl=function(){return!1},o.tk=function(){return 0!=(this.Bb&Bu)},o.cl=function(e){this.k=e},o.ui=function(e){o$(this,e)},o.Ib=function(){return nS(this)},o.e=!1,o.n=0,w(Hn,"EStructuralFeatureImpl",462),b(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},DL),o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),!!ten(this);case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return Kn(),!!(this.Bb&Qs);case 11:return Kn(),!!(this.Bb&_w);case 12:return Kn(),!!(this.Bb&Nw);case 13:return this.j;case 14:return B4(this);case 15:return Kn(),!!(this.Bb&Bu);case 16:return Kn(),!!(this.Bb&yh);case 17:return uw(this);case 18:return Kn(),!!(this.Bb&Cc);case 19:return t?uF(this):KDn(this)}return Jo(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return ten(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return 0==(this.Bb&Qs);case 11:return 0!=(this.Bb&_w);case 12:return 0!=(this.Bb&Nw);case 13:return null!=this.j;case 14:return null!=B4(this);case 15:return 0!=(this.Bb&Bu);case 16:return 0!=(this.Bb&yh);case 17:return!!uw(this);case 18:return 0!=(this.Bb&Cc);case 19:return!!KDn(this)}return Wo(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void o$(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void iEn(this,u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 10:return void y4(this,on(un(t)));case 11:return void C4(this,on(un(t)));case 12:return void j4(this,on(un(t)));case 13:return void xX(this,Oe(t));case 15:return void E4(this,on(un(t)));case 16:return void M4(this,on(un(t)));case 18:return void LF(this,on(un(t)))}ns(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e),t)},o.ii=function(){return In(),vg},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,90)&&Mw(no(u(this.Cb,90)),4),void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return this.b=0,void bw(this,1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 10:return void y4(this,!0);case 11:return void C4(this,!1);case 12:return void j4(this,!1);case 13:return this.i=null,void RT(this,null);case 15:return void E4(this,!1);case 16:return void M4(this,!1);case 18:return void LF(this,!1)}Zo(this,e-se((In(),vg)),Nn(u(qn(this,16),29)||vg,e))},o.pi=function(){uF(this),_3(Ir(($u(),Ui),this)),ys(this),this.Bb|=1},o.Jk=function(){return ten(this)},o.Yk=function(e,t){return this.b=0,this.a=null,GY(this,e,t)},o.Zk=function(e){iEn(this,e)},o.Ib=function(){var e;return 64&this.Db?nS(this):((e=new gs(nS(this))).a+=" (iD: ",t1(e,0!=(this.Bb&Cc)),e.a+=")",e.a)},o.b=0,w(Hn,"EAttributeImpl",331),b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return lx(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|255&this.Db,this.Cb=e},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return eb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?Mo(this):U3(this);case 7:return!this.A&&(this.A=new Pu(au,this,7)),this.A}return Jo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16)>=0?lx(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,6,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().zk(this,uu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 6:return Oo(this,null,6,i);case 7:return!this.A&&(this.A=new Pu(au,this,7)),rr(this.A,e,i)}return u(Nn(u(qn(this,16),29)||this.ii(),t),69).wk().Ak(this,uu(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!eb(this);case 4:return null!=this.ik();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!U3(this);case 7:return!!this.A&&0!=this.A.i}return Wo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void eT(this,Oe(t));case 2:return void RD(this,Oe(t));case 5:return void G4(this,Oe(t));case 7:return!this.A&&(this.A=new Pu(au,this,7)),pe(this.A),!this.A&&(this.A=new Pu(au,this,7)),void Bt(this.A,u(t,16))}ns(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e),t)},o.ii=function(){return In(),zoe},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,184)&&(u(this.Cb,184).tb=null),void Jc(this,null);case 2:return p4(this,null),void i4(this,this.D);case 5:return void G4(this,null);case 7:return!this.A&&(this.A=new Pu(au,this,7)),void pe(this.A)}Zo(this,e-se(this.ii()),Nn(u(qn(this,16),29)||this.ii(),e))},o.hk=function(){var e;return-1==this.G&&(this.G=(e=Mo(this))?j1(e.vi(),this):-1),this.G},o.ik=function(){return null},o.jk=function(){return Mo(this)},o.el=function(){return this.v},o.kk=function(){return eb(this)},o.lk=function(){return null!=this.D?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return eB(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){CFn(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){eT(this,e)},o.Ib=function(){return fA(this)},o.C=null,o.D=null,o.G=-1,w(Hn,"EClassifierImpl",364),b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},SG),o.dl=function(e){return function Pae(n,e){return e==n||L4(GA(e),n)}(this,e.Dh())},o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return eb(this);case 4:return null;case 5:return this.F;case 6:return t?Mo(this):U3(this);case 7:return!this.A&&(this.A=new Pu(au,this,7)),this.A;case 8:return Kn(),!!(256&this.Bb);case 9:return Kn(),!!(512&this.Bb);case 10:return _r(this);case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),this.q;case 12:return l2(this);case 13:return o8(this);case 14:return o8(this),this.r;case 15:return l2(this),this.k;case 16:return Gnn(this);case 17:return cB(this);case 18:return kh(this);case 19:return GA(this);case 20:return l2(this),this.o;case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),this.s;case 22:return Lc(this);case 23:return Gx(this)}return Jo(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16)>=0?lx(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,6,i);case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),Qc(this.q,e,i);case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),Qc(this.s,e,i)}return u(Nn(u(qn(this,16),29)||(In(),za),t),69).wk().zk(this,uu(this),t-se((In(),za)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 6:return Oo(this,null,6,i);case 7:return!this.A&&(this.A=new Pu(au,this,7)),rr(this.A,e,i);case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),rr(this.q,e,i);case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),rr(this.s,e,i);case 22:return rr(Lc(this),e,i)}return u(Nn(u(qn(this,16),29)||(In(),za),t),69).wk().Ak(this,uu(this),t-se((In(),za)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!eb(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!U3(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0!=(256&this.Bb);case 9:return 0!=(512&this.Bb);case 10:return!(!this.u||0==Lc(this.u.a).i||this.n&&nx(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=l2(this).i;case 13:return 0!=o8(this).i;case 14:return o8(this),0!=this.r.i;case 15:return l2(this),0!=this.k.i;case 16:return 0!=Gnn(this).i;case 17:return 0!=cB(this).i;case 18:return 0!=kh(this).i;case 19:return 0!=GA(this).i;case 20:return l2(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&nx(this.n);case 23:return 0!=Gx(this).i}return Wo(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e))},o.Zh=function(e){return(null==this.i||this.q&&0!=this.q.i?null:Ey(this,e))||Atn(this,e)},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void eT(this,Oe(t));case 2:return void RD(this,Oe(t));case 5:return void G4(this,Oe(t));case 7:return!this.A&&(this.A=new Pu(au,this,7)),pe(this.A),!this.A&&(this.A=new Pu(au,this,7)),void Bt(this.A,u(t,16));case 8:return void zY(this,on(un(t)));case 9:return void XY(this,on(un(t)));case 10:return h8(_r(this)),void Bt(_r(this),u(t,16));case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),pe(this.q),!this.q&&(this.q=new q(Ds,this,11,10)),void Bt(this.q,u(t,16));case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),pe(this.s),!this.s&&(this.s=new q(Mu,this,21,17)),void Bt(this.s,u(t,16));case 22:return pe(Lc(this)),void Bt(Lc(this),u(t,16))}ns(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e),t)},o.ii=function(){return In(),za},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,184)&&(u(this.Cb,184).tb=null),void Jc(this,null);case 2:return p4(this,null),void i4(this,this.D);case 5:return void G4(this,null);case 7:return!this.A&&(this.A=new Pu(au,this,7)),void pe(this.A);case 8:return void zY(this,!1);case 9:return void XY(this,!1);case 10:return void(this.u&&h8(this.u));case 11:return!this.q&&(this.q=new q(Ds,this,11,10)),void pe(this.q);case 21:return!this.s&&(this.s=new q(Mu,this,21,17)),void pe(this.s);case 22:return void(this.n&&pe(this.n))}Zo(this,e-se((In(),za)),Nn(u(qn(this,16),29)||za,e))},o.pi=function(){var e,t;if(l2(this),o8(this),Gnn(this),cB(this),kh(this),GA(this),Gx(this),g5(function ebe(n){return!n.c&&(n.c=new o3),n.c}(no(this))),this.s)for(e=0,t=this.s.i;e=0;--t)D(this,t);return vZ(this,e)},o.Gk=function(){pe(this)},o.Zi=function(e,t){return z$n(this,0,t)},w(Et,"EcoreEList",632),b(505,632,Qr,ek),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0,w(Et,"EObjectEList",505),b(83,505,Qr,ni),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0},w(Et,"EObjectContainmentEList",83),b(555,83,Qr,nM),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.b,this.b=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1,w(Et,"EObjectContainmentEList/Unsettable",555),b(1161,555,Qr,yPn),o.Ti=function(e,t){var i,r;return i=u($5(this,e,t),89),ao(this.e)&&b3(this,new Ek(this.a,7,(In(),Xoe),Y(t),L(r=i.c,90)?u(r,29):$s,e)),i},o.Uj=function(e,t){return function j8e(n,e,t){var i,r;return i=new Sl(n.e,3,10,null,L(r=e.c,90)?u(r,29):(In(),$s),j1(n,e),!1),t?t.nj(i):t=i,t}(this,u(e,89),t)},o.Vj=function(e,t){return function y8e(n,e,t){var i,r;return i=new Sl(n.e,4,10,L(r=e.c,90)?u(r,29):(In(),$s),null,j1(n,e),!1),t?t.nj(i):t=i,t}(this,u(e,89),t)},o.Wj=function(e,t,i){return function Mke(n,e,t,i){var r,c,s;return r=new Sl(n.e,1,10,L(s=e.c,90)?u(s,29):(In(),$s),L(c=t.c,90)?u(c,29):(In(),$s),j1(n,e),!1),i?i.nj(r):i=r,i}(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return h5(this,e,t,i,r,this.i>1);case 5:return h5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Sl(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return nx(this)},o.Gk=function(){pe(this)},w(Hn,"EClassImpl/1",1161),b(1175,1174,lun),o.dj=function(e){var t,i,r,c,s,f,h;if(8!=(i=e.gj())){if(0==(r=function i9e(n){switch(n.hj(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}(e)))switch(i){case 1:case 9:null!=(h=e.kj())&&(!(t=no(u(h,482))).c&&(t.c=new o3),ET(t.c,e.jj())),null!=(f=e.ij())&&(1&(c=u(f,482)).Bb||(!(t=no(c)).c&&(t.c=new o3),me(t.c,u(e.jj(),29))));break;case 3:null!=(f=e.ij())&&(1&(c=u(f,482)).Bb||(!(t=no(c)).c&&(t.c=new o3),me(t.c,u(e.jj(),29))));break;case 5:if(null!=(f=e.ij()))for(s=u(f,16).Kc();s.Ob();)1&(c=u(s.Pb(),482)).Bb||(!(t=no(c)).c&&(t.c=new o3),me(t.c,u(e.jj(),29)));break;case 4:null!=(h=e.kj())&&(1&(c=u(h,482)).Bb||(!(t=no(c)).c&&(t.c=new o3),ET(t.c,e.jj())));break;case 6:if(null!=(h=e.kj()))for(s=u(h,16).Kc();s.Ob();)1&(c=u(s.Pb(),482)).Bb||(!(t=no(c)).c&&(t.c=new o3),ET(t.c,e.jj()))}this.ql(r)}},o.ql=function(e){Xqn(this,e)},o.b=63,w(Hn,"ESuperAdapter",1175),b(1176,1175,lun,yyn),o.ql=function(e){Mw(this,e)},w(Hn,"EClassImpl/10",1176),b(1165,710,Qr),o.Ei=function(e,t){return Ex(this,e,t)},o.Fi=function(e){return FRn(this,e)},o.Gi=function(e,t){Jk(this,e,t)},o.Hi=function(e){mk(this,e)},o.$i=function(e){return jQ(this,e)},o.Xi=function(e,t){return x$(this,e,t)},o.Wk=function(e,t){throw M(new Pe)},o.Ii=function(){return new $v(this)},o.Ji=function(){return new q7(this)},o.Ki=function(e){return $k(this,e)},o.Xk=function(e,t){throw M(new Pe)},o.Fk=function(e){return this},o.Qj=function(){return 0!=this.i},o.Wb=function(e){throw M(new Pe)},o.Gk=function(){throw M(new Pe)},w(Et,"EcoreEList/UnmodifiableEList",1165),b(328,1165,Qr,Lg),o.Yi=function(){return!1},w(Et,"EcoreEList/UnmodifiableEList/FastCompare",328),b(1168,328,Qr,vxn),o.dd=function(e){var i,r;if(L(e,179)&&-1!=(i=u(e,179).Lj()))for(r=this.i;i4){if(!this.fk(e))return!1;if(this.al()){if(h=(i=(r=u(e,54)).Eh())==this.b&&(this.ml()?r.yh(r.Fh(),u(Nn(vu(this.b),this.Lj()).Hk(),29).kk())==dr(u(Nn(vu(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh())for(c=0;c1||-1==r)},o.ml=function(){var t;return!!L(t=Nn(vu(this.b),this.Lj()),102)&&!!dr(u(t,19))},o.nl=function(){var t;return!!L(t=Nn(vu(this.b),this.Lj()),102)&&0!=(u(t,19).Bb&sr)},o.dd=function(e){var i,r,c;if((r=this.zj(e))>=0)return r;if(this.ol())for(i=0,c=this.Ej();i=0;--e)Dy(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)Dy(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){h8(this)},o.Zi=function(e,t){return ENn(this,0,t)},w(Et,"DelegatingEcoreEList",756),b(1171,756,wun,xAn),o.qj=function(e,t){!function Z1e(n,e,t){N5(Lc(n.a),e,$On(t))}(this,e,u(t,29))},o.rj=function(e){!function _le(n,e){me(Lc(n.a),$On(e))}(this,u(e,29))},o.xj=function(e){var i;return L(i=u(D(Lc(this.a),e),89).c,90)?u(i,29):(In(),$s)},o.Cj=function(e){var i;return L(i=u(Sw(Lc(this.a),e),89).c,90)?u(i,29):(In(),$s)},o.Dj=function(e,t){return function J9e(n,e,t){var i,r,c;return(64&(c=L(r=(i=u(D(Lc(n.a),e),89)).c,90)?u(r,29):(In(),$s)).Db?ba(n.b,c):c)==t?iS(i):Y3(i,t),c}(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new Cyn(this)},o.tj=function(){pe(Lc(this.a))},o.uj=function(e){return dBn(this,e)},o.vj=function(e){var i;for(i=e.Kc();i.Ob();)if(!dBn(this,i.Pb()))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15)).gc()==Lc(this.a).i){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var t,i,r,c;for(i=1,t=new ne(Lc(this.a));t.e!=t.i.gc();)i=31*i+((r=L(c=u(ue(t),89).c,90)?u(c,29):(In(),$s))?T0(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(Lc(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x(L(c=t.c,90)?u(c,29):(In(),$s)))return r;++r}return-1},o.Aj=function(){return 0==Lc(this.a).i},o.Bj=function(){return null},o.Ej=function(){return Lc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Lc(this.a).i,c=K(pi,xn,1,s,5,1),i=0,t=new ne(Lc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=L(r=e.c,90)?u(r,29):(In(),$s);return c},o.Gj=function(e){var i,r,f,h;for(h=Lc(this.a).i,e.lengthh&&Dt(e,h,null),r=0,i=new ne(Lc(this.a));i.e!=i.i.gc();)Dt(e,r++,L(f=u(ue(i),89).c,90)?u(f,29):(In(),$s));return e},o.Hj=function(){var e,t,i,r,c;for((c=new e1).a+="[",e=Lc(this.a),t=0,r=Lc(this.a).i;t>16)>=0?lx(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,6,i);case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),Qc(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),Xa),t),69).wk().zk(this,uu(this),t-se((In(),Xa)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 6:return Oo(this,null,6,i);case 7:return!this.A&&(this.A=new Pu(au,this,7)),rr(this.A,e,i);case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),rr(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),Xa),t),69).wk().Ak(this,uu(this),t-se((In(),Xa)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!eb(this);case 4:return!!NY(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!U3(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0==(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return Wo(this,e-se((In(),Xa)),Nn(u(qn(this,16),29)||Xa,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void eT(this,Oe(t));case 2:return void RD(this,Oe(t));case 5:return void G4(this,Oe(t));case 7:return!this.A&&(this.A=new Pu(au,this,7)),pe(this.A),!this.A&&(this.A=new Pu(au,this,7)),void Bt(this.A,u(t,16));case 8:return void iA(this,on(un(t)));case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),pe(this.a),!this.a&&(this.a=new q(Wl,this,9,5)),void Bt(this.a,u(t,16))}ns(this,e-se((In(),Xa)),Nn(u(qn(this,16),29)||Xa,e),t)},o.ii=function(){return In(),Xa},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,184)&&(u(this.Cb,184).tb=null),void Jc(this,null);case 2:return p4(this,null),void i4(this,this.D);case 5:return void G4(this,null);case 7:return!this.A&&(this.A=new Pu(au,this,7)),void pe(this.A);case 8:return void iA(this,!0);case 9:return!this.a&&(this.a=new q(Wl,this,9,5)),void pe(this.a)}Zo(this,e-se((In(),Xa)),Nn(u(qn(this,16),29)||Xa,e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?u(this.Cb,685):null}return Jo(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16)>=0?fKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,5,i)}return u(Nn(u(qn(this,16),29)||(In(),_1),t),69).wk().zk(this,uu(this),t-se((In(),_1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 5:return Oo(this,null,5,i)}return u(Nn(u(qn(this,16),29)||(In(),_1),t),69).wk().Ak(this,uu(this),t-se((In(),_1)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0!=this.d;case 3:return!!this.b;case 4:return null!=this.c;case 5:return!(this.Db>>16!=5||!u(this.Cb,685))}return Wo(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return void q$(this,u(t,17).a);case 3:return void uHn(this,u(t,2039));case 4:return void G$(this,Oe(t))}ns(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e),t)},o.ii=function(){return In(),_1},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return void q$(this,0);case 3:return void uHn(this,null);case 4:return void G$(this,null)}Zo(this,e-se((In(),_1)),Nn(u(qn(this,16),29)||_1,e))},o.Ib=function(){return this.c??this.zb},o.b=null,o.c=null,o.d=0,w(Hn,"EEnumLiteralImpl",582);var a0n,QU,PE,SNe=Ot(Hn,"EFactoryImpl/InternalEDateTimeFormat");b(499,1,{2114:1},l7),w(Hn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},l0),o.Ch=function(e,t,i){var r;return i=Oo(this,e,t,i),this.e&&L(e,179)&&(r=UA(this,this.e))!=this.c&&(i=z4(this,r,i)),i},o.Lh=function(e,t,i){switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new ni(yr,this,1)),this.d;case 2:return t?iS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?ix(this):this.a}return Jo(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e),t,i)},o.Uh=function(e,t,i){switch(t){case 0:return nBn(this,null,i);case 1:return!this.d&&(this.d=new ni(yr,this,1)),rr(this.d,e,i);case 3:return eBn(this,null,i)}return u(Nn(u(qn(this,16),29)||(In(),xb),t),69).wk().Ak(this,uu(this),t-se((In(),xb)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.f;case 1:return!!this.d&&0!=this.d.i;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Wo(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e))},o.bi=function(e,t){switch(e){case 0:return void SKn(this,u(t,89));case 1:return!this.d&&(this.d=new ni(yr,this,1)),pe(this.d),!this.d&&(this.d=new ni(yr,this,1)),void Bt(this.d,u(t,16));case 3:return void ann(this,u(t,89));case 4:return void Onn(this,u(t,850));case 5:return void Y3(this,u(t,142))}ns(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e),t)},o.ii=function(){return In(),xb},o.ki=function(e){switch(e){case 0:return void SKn(this,null);case 1:return!this.d&&(this.d=new ni(yr,this,1)),void pe(this.d);case 3:return void ann(this,null);case 4:return void Onn(this,null);case 5:return void Y3(this,null)}Zo(this,e-se((In(),xb)),Nn(u(qn(this,16),29)||xb,e))},o.Ib=function(){var e;return(e=new yo(Ws(this))).a+=" (expression: ",lB(this,e),e.a+=")",e.a},w(Hn,"EGenericTypeImpl",248),b(2067,2062,lP),o.Gi=function(e,t){NAn(this,e,t)},o.Wk=function(e,t){return NAn(this,this.gc(),e),t},o.$i=function(e){return is(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new Syn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return pw(this,e,!0),t},o.Ti=function(e,t){var r;return r=bx(this,t),this.fd(e).Rb(r),r},o.Ui=function(e,t){pw(this,t,!0),this.fd(e).Rb(t)},w(Et,"AbstractSequentialInternalEList",2067),b(496,2067,lP,H7),o.$i=function(e){return is(this.pj(),e)},o.Ii=function(){return null==this.b?(r1(),r1(),PE):this.sl()},o.pj=function(){return new ZMn(this.a,this.b)},o.Ji=function(){return null==this.b?(r1(),r1(),PE):this.sl()},o.Ki=function(e){var t,i;if(null==this.b){if(e<0||e>1)throw M(new Ar(N8+e+", size=0"));return r1(),r1(),PE}for(i=this.sl(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.pk()!=e6||0!=t.Lj())&&(!this.vl()||this.b.Xh(t)))if(s=this.b.Nh(t,this.ul()),this.f=(ar(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?j_n(this,this.p):D_n(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?((e=u(c,76)).Lk(),i=e.md(),this.i=i):this.i=i=c,this.g=-3,!0}else if(null!=s)return this.k=null,this.p=null,this.i=i=s,this.g=-2,!0;return this.k=null,this.p=null,this.g=-1,!1}},o.Pb=function(){return WT(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw M(new tc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw M(new Pe)},o.ul=function(){return!1},o.Wb=function(e){throw M(new Pe)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0,w(Et,"EContentsEList/FeatureIteratorImpl",287),b(711,287,aP,jW),o.ul=function(){return!0},w(Et,"EContentsEList/ResolvingFeatureIteratorImpl",711),b(1178,711,aP,mAn),o.vl=function(){return!1},w(Hn,"ENamedElementImpl/1/1",1178),b(1179,287,aP,kAn),o.vl=function(){return!1},w(Hn,"ENamedElementImpl/1/2",1179),b(39,152,lj,fw,b$,ji,P$,Sl,Gs,$Q,ZOn,FQ,nLn,ZJ,eLn,RQ,tLn,nQ,iLn,xQ,rLn,i5,Ek,VN,BQ,cLn,eQ,uLn),o.Kj=function(){return pQ(this)},o.Rj=function(){var e;return(e=pQ(this))?e.ik():null},o.hj=function(e){return-1==this.b&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return!!(e=pQ(this))&&e.tk()},o.b=-1,w(Hn,"ENotificationImpl",39),b(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},NL),o.Ah=function(e){return aKn(this,e)},o.Lh=function(e,t,i){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),(s=this.t)>1||-1==s;case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Pu(au,this,11)),this.d;case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),this.c;case 13:return!this.a&&(this.a=new X7(this,this)),this.a;case 14:return eo(this)}return Jo(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16)>=0?aKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,10,i);case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),Qc(this.c,e,i)}return u(Nn(u(qn(this,16),29)||(In(),H1),t),69).wk().zk(this,uu(this),t-se((In(),H1)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i);case 10:return Oo(this,null,10,i);case 11:return!this.d&&(this.d=new Pu(au,this,11)),rr(this.d,e,i);case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),rr(this.c,e,i);case 14:return rr(eo(this),e,i)}return u(Nn(u(qn(this,16),29)||(In(),H1),t),69).wk().Ak(this,uu(this),t-se((In(),H1)),e,i)},o.Wh=function(e){var r;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(r=this.t)>1||-1==r;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return!(this.Db>>16!=10||!u(this.Cb,29));case 11:return!!this.d&&0!=this.d.i;case 12:return!!this.c&&0!=this.c.i;case 13:return!(!this.a||0==eo(this.a.a).i||this.b&&ex(this.b));case 14:return!!this.b&&ex(this.b)}return Wo(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void bw(this,u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 11:return!this.d&&(this.d=new Pu(au,this,11)),pe(this.d),!this.d&&(this.d=new Pu(au,this,11)),void Bt(this.d,u(t,16));case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),pe(this.c),!this.c&&(this.c=new q(Fb,this,12,10)),void Bt(this.c,u(t,16));case 13:return!this.a&&(this.a=new X7(this,this)),h8(this.a),!this.a&&(this.a=new X7(this,this)),void Bt(this.a,u(t,16));case 14:return pe(eo(this)),void Bt(eo(this),u(t,16))}ns(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e),t)},o.ii=function(){return In(),H1},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void bw(this,1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 11:return!this.d&&(this.d=new Pu(au,this,11)),void pe(this.d);case 12:return!this.c&&(this.c=new q(Fb,this,12,10)),void pe(this.c);case 13:return void(this.a&&h8(this.a));case 14:return void(this.b&&pe(this.b))}Zo(this,e-se((In(),H1)),Nn(u(qn(this,16),29)||H1,e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;eh&&Dt(e,h,null),r=0,i=new ne(eo(this.a));i.e!=i.i.gc();)Dt(e,r++,u(ue(i),89).c||(In(),rh));return e},o.Hj=function(){var e,t,r,c;for((c=new e1).a+="[",e=eo(this.a),t=0,r=eo(this.a).i;t1);case 5:return h5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Sl(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return ex(this)},o.Gk=function(){pe(this)},w(Hn,"EOperationImpl/2",1377),b(507,1,{2037:1,507:1},FMn),w(Hn,"EPackageImpl/1",507),b(14,83,Qr,q),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0,w(Et,"EObjectContainmentWithInverseEList",14),b(365,14,Qr,Fv),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentWithInverseEList/Resolving",365),b(308,365,Qr,iw),o.Ni=function(){this.a.tb=null},w(Hn,"EPackageImpl/2",308),b(1278,1,{},Amn),w(Hn,"EPackageImpl/3",1278),b(733,45,w2,Cz),o._b=function(e){return Mi(e)?QN(this,e):!!br(this.f,e)},w(Hn,"EPackageRegistryImpl",733),b(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},$L),o.Ah=function(e){return dKn(this,e)},o.Lh=function(e,t,i){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),(s=this.t)>1||-1==s;case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return Jo(this,e-se((In(),pg)),Nn(u(qn(this,16),29)||pg,e),t,i)},o.Sh=function(e,t,i){var c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),Qc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16)>=0?dKn(this,i):this.Cb.Th(this,-1-c,null,i)),Oo(this,e,10,i)}return u(Nn(u(qn(this,16),29)||(In(),pg),t),69).wk().zk(this,uu(this),t-se((In(),pg)),e,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 9:return NN(this,i);case 10:return Oo(this,null,10,i)}return u(Nn(u(qn(this,16),29)||(In(),pg),t),69).wk().Ak(this,uu(this),t-se((In(),pg)),e,i)},o.Wh=function(e){var r;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(r=this.t)>1||-1==r;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return!(this.Db>>16!=10||!u(this.Cb,62))}return Wo(this,e-se((In(),pg)),Nn(u(qn(this,16),29)||pg,e))},o.ii=function(){return In(),pg},w(Hn,"EParameterImpl",518),b(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},AW),o.Lh=function(e,t,i){var s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Kn(),!!(256&this.Bb);case 3:return Kn(),!!(512&this.Bb);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return Kn(),(f=this.t)>1||-1==f;case 7:return Kn(),this.s>=1;case 8:return t?ys(this):this.r;case 9:return this.q;case 10:return Kn(),!!(this.Bb&Qs);case 11:return Kn(),!!(this.Bb&_w);case 12:return Kn(),!!(this.Bb&Nw);case 13:return this.j;case 14:return B4(this);case 15:return Kn(),!!(this.Bb&Bu);case 16:return Kn(),!!(this.Bb&yh);case 17:return uw(this);case 18:return Kn(),!!(this.Bb&Cc);case 19:return Kn(),!!((s=dr(this))&&s.Bb&Cc);case 20:return Kn(),!!(this.Bb&sr);case 21:return t?dr(this):this.b;case 22:return t?CY(this):IDn(this);case 23:return!this.a&&(this.a=new Bg(wg,this,23)),this.a}return Jo(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e),t,i)},o.Wh=function(e){var r,c;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(c=this.t)>1||-1==c;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==N0(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==N0(this.q).i);case 10:return 0==(this.Bb&Qs);case 11:return 0!=(this.Bb&_w);case 12:return 0!=(this.Bb&Nw);case 13:return null!=this.j;case 14:return null!=B4(this);case 15:return 0!=(this.Bb&Bu);case 16:return 0!=(this.Bb&yh);case 17:return!!uw(this);case 18:return 0!=(this.Bb&Cc);case 19:return!!(r=dr(this))&&0!=(r.Bb&Cc);case 20:return 0==(this.Bb&sr);case 21:return!!this.b;case 22:return!!IDn(this);case 23:return!!this.a&&0!=this.a.i}return Wo(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e))},o.bi=function(e,t){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void o$(this,Oe(t));case 2:return void p1(this,on(un(t)));case 3:return void m1(this,on(un(t)));case 4:return void b1(this,u(t,17).a);case 5:return void bw(this,u(t,17).a);case 8:return void Ad(this,u(t,142));case 9:return void((r=qf(this,u(t,89),null))&&r.oj());case 10:return void y4(this,on(un(t)));case 11:return void C4(this,on(un(t)));case 12:return void j4(this,on(un(t)));case 13:return void xX(this,Oe(t));case 15:return void E4(this,on(un(t)));case 16:return void M4(this,on(un(t)));case 18:return void function j2e(n,e){eZ(n,e),L(n.Cb,90)&&Mw(no(u(n.Cb,90)),2)}(this,on(un(t)));case 20:return void tZ(this,on(un(t)));case 21:return void nY(this,u(t,19));case 23:return!this.a&&(this.a=new Bg(wg,this,23)),pe(this.a),!this.a&&(this.a=new Bg(wg,this,23)),void Bt(this.a,u(t,16))}ns(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e),t)},o.ii=function(){return In(),cv},o.ki=function(e){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return L(this.Cb,90)&&Mw(no(u(this.Cb,90)),4),void Jc(this,null);case 2:return void p1(this,!0);case 3:return void m1(this,!0);case 4:return void b1(this,0);case 5:return void bw(this,1);case 8:return void Ad(this,null);case 9:return void((i=qf(this,null,null))&&i.oj());case 10:return void y4(this,!0);case 11:return void C4(this,!1);case 12:return void j4(this,!1);case 13:return this.i=null,void RT(this,null);case 15:return void E4(this,!1);case 16:return void M4(this,!1);case 18:return eZ(this,!1),void(L(this.Cb,90)&&Mw(no(u(this.Cb,90)),2));case 20:return void tZ(this,!0);case 21:return void nY(this,null);case 23:return!this.a&&(this.a=new Bg(wg,this,23)),void pe(this.a)}Zo(this,e-se((In(),cv)),Nn(u(qn(this,16),29)||cv,e))},o.pi=function(){CY(this),_3(Ir(($u(),Ui),this)),ys(this),this.Bb|=1},o.uk=function(){return dr(this)},o._k=function(){var e;return!!(e=dr(this))&&0!=(e.Bb&Cc)},o.al=function(){return 0!=(this.Bb&Cc)},o.bl=function(){return 0!=(this.Bb&sr)},o.Yk=function(e,t){return this.c=null,GY(this,e,t)},o.Ib=function(){var e;return 64&this.Db?nS(this):((e=new gs(nS(this))).a+=" (containment: ",t1(e,0!=(this.Bb&Cc)),e.a+=", resolveProxies: ",t1(e,0!=(this.Bb&sr)),e.a+=")",e.a)},w(Hn,"EReferenceImpl",102),b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Smn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return T0(this)},o.Di=function(e){!function Abe(n,e){JQ(n,null==e?null:(Jn(e),e))}(this,Oe(e))},o.nd=function(e){return function abe(n,e){var t;return t=n.c,QQ(n,e),t}(this,Oe(e))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return Jo(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e),t,i)},o.Wh=function(e){switch(e){case 0:return null!=this.b;case 1:return null!=this.c}return Wo(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e))},o.bi=function(e,t){switch(e){case 0:return void function Sbe(n,e){JQ(n,null==e?null:(Jn(e),e))}(this,Oe(t));case 1:return void QQ(this,Oe(t))}ns(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e),t)},o.ii=function(){return In(),hr},o.ki=function(e){switch(e){case 0:return void JQ(this,null);case 1:return void QQ(this,null)}Zo(this,e-se((In(),hr)),Nn(u(qn(this,16),29)||hr,e))},o.Bi=function(){var e;return-1==this.a&&(this.a=null==(e=this.b)?0:w1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return 64&this.Db?Ws(this):((e=new gs(Ws(this))).a+=" (key: ",jr(e,this.b),e.a+=", value: ",jr(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var al,d0n,b0n,w0n,g0n,v0n,p0n,m0n,YU,k0n,kc=w(Hn,"EStringToStringMapEntryImpl",561),ise=Ot(Et,"FeatureMap/Entry/Internal");b(576,1,dP),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e||!!L(e,76)&&(t=u(e,76)).Lk()==this.c&&(null==(i=this.md())?null==t.md():it(i,t.md()))},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),wt(this.c)^(null==e?0:wt(e))},o.Ib=function(){var e,t;return t=Mo((e=this.c).qk()).yi(),e.xe(),(null!=t&&0!=t.length?t+":"+e.xe():e.xe())+"="+this.md()},w(Hn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),b(791,576,dP,FW),o.yl=function(e){return new FW(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return function lme(n,e,t,i,r){var c;return t&&(c=St(e.Dh(),n.c),r=t.Rh(e,-1-(-1==c?i:c),null,r)),r}(this,e,this.a,t,i)},o.Al=function(e,t,i){return function ame(n,e,t,i,r){var c;return t&&(c=St(e.Dh(),n.c),r=t.Th(e,-1-(-1==c?i:c),null,r)),r}(this,e,this.a,t,i)},w(Hn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),b(1350,1,{},xMn),o.yk=function(e,t,i,r,c){return u(W3(e,this.b),220).Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){return u(W3(e,this.b),220).Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){return u(W3(e,this.b),220).Ql(this.a,r,c)},o.Bk=function(e,t,i){return u(W3(e,this.b),220).Yl(this.a).Qj()},o.Ck=function(e,t,i,r){u(W3(e,this.b),220).Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u(W3(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){u(W3(e,this.b),220).Yl(this.a).Gk()},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),b(91,1,{},u1,bd,s1,md),o.yk=function(e,t,i,r,c){var s;if(null==(s=t.li(i))&&t.mi(i,s=aS(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var f;return null==(f=t.li(i))&&t.mi(i,f=aS(this,e)),u(f,71).Wk(r,c)},o.Ak=function(e,t,i,r,c){var s;return null!=(s=t.li(i))&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return null!=(r=t.li(i))&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;!(c=u(t.li(i),79))&&t.mi(i,c=aS(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var c;return null==(c=t.li(i))&&t.mi(i,c=aS(this,e)),L(c,79)?u(c,79):new Tyn(u(t.li(i),15))},o.Ek=function(e,t,i){var r;!(r=u(t.li(i),79))&&t.mi(i,r=aS(this,e)),r.Gk()},o.b=0,o.e=0,w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),b(512,1,{}),o.zk=function(e,t,i,r,c){throw M(new Pe)},o.Ak=function(e,t,i,r,c){throw M(new Pe)},o.Dk=function(e,t,i){return new $In(this,e,t,i)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),b(1367,1,JK,$In),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0,w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),b(784,512,{},CJ),o.yk=function(e,t,i,r,c){return Qx(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?xx(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh())>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c)),f=St(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=St(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=St(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(null!=r&&!eB(this.a,r))throw M(new w3(bP+(L(r,58)?lnn(u(r,58).Dh()):OQ(po(r)))+wP+this.a+"'"));if(c=e.Ph(),f=St(e.Dh(),this.e),x(r)!==x(c)||e.Fh()!=f&&null!=r){if(I4(e,u(r,58)))throw M(new Un(L8+e.Ib()));l=null,c&&(l=(s=e.Fh())>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l)),(h=u(r,54))&&(l=h.Rh(e,St(h.Dh(),this.b),null,l)),(l=e.Ch(h,f,l))&&l.oj()}else e.vh()&&e.wh()&&tt(e,new ji(e,1,f,r,r))},o.Ek=function(e,t,i){var c,s,f;e.Ph()?(f=(c=e.Fh())>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null),s=St(e.Dh(),this.e),(f=e.Ch(null,s,f))&&f.oj()):e.vh()&&e.wh()&&tt(e,new i5(e,1,this.e,null,null))},o.bl=function(){return!1},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),b(1351,784,{},MSn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return null==(s=t.li(i))?this.b:x(s)===x(al)?null:s},o.Bk=function(e,t,i){var r;return null!=(r=t.li(i))&&(x(r)===x(al)||!it(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=null==(s=t.li(i))?this.b:x(s)===x(al)?null:s,null==r?null!=this.c?(t.mi(i,null),r=this.b):t.mi(i,null!=this.b?al:null):(this.Bl(r),t.mi(i,r)),tt(e,this.d.Cl(e,1,this.e,c,r))):null==r?t.mi(i,null!=this.c?null:null!=this.b?al:null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=null==(c=t.li(i))?this.b:x(c)===x(al)?null:c,t.ni(i),tt(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw M(new xyn)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),b(M2,1,{},Pmn),o.Cl=function(e,t,i,r,c){return new i5(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new VN(e,t,i,r,c,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",M2),b(1368,M2,{},Imn),o.Cl=function(e,t,i,r,c){return new eQ(e,t,i,on(un(r)),on(un(c)))},o.Dl=function(e,t,i,r,c,s){return new uLn(e,t,i,on(un(r)),on(un(c)),s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),b(1369,M2,{},Omn),o.Cl=function(e,t,i,r,c){return new $Q(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new ZOn(e,t,i,u(r,222).a,u(c,222).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),b(1370,M2,{},Lmn),o.Cl=function(e,t,i,r,c){return new FQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new nLn(e,t,i,u(r,180).a,u(c,180).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),b(1371,M2,{},Dmn),o.Cl=function(e,t,i,r,c){return new ZJ(e,t,i,F(R(r)),F(R(c)))},o.Dl=function(e,t,i,r,c,s){return new eLn(e,t,i,F(R(r)),F(R(c)),s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),b(1372,M2,{},Nmn),o.Cl=function(e,t,i,r,c){return new RQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new tLn(e,t,i,u(r,161).a,u(c,161).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),b(1373,M2,{},$mn),o.Cl=function(e,t,i,r,c){return new nQ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new iLn(e,t,i,u(r,17).a,u(c,17).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),b(1374,M2,{},Fmn),o.Cl=function(e,t,i,r,c){return new xQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new rLn(e,t,i,u(r,168).a,u(c,168).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),b(1375,M2,{},xmn),o.Cl=function(e,t,i,r,c){return new BQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new cLn(e,t,i,u(r,191).a,u(c,191).a,s)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),b(1353,574,{},FIn),o.Bl=function(e){if(!this.a.fk(e))throw M(new w3(bP+po(e)+wP+this.a+"'"))},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),b(1354,574,{},EPn),o.Bl=function(e){},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),b(785,574,{}),o.Bk=function(e,t,i){return null!=t.li(i)},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,null==(s=t.li(i))?(c=!1,s=this.b):x(s)===x(al)&&(s=null),null==r?null!=this.c?(t.mi(i,null),r=this.b):t.mi(i,al):(this.Bl(r),t.mi(i,r)),tt(e,this.d.Dl(e,1,this.e,s,r,!c))):null==r?t.mi(i,null!=this.c?null:al):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,null==(c=t.li(i))?(r=!1,c=this.b):x(c)===x(al)&&(c=null),t.ni(i),tt(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),b(1355,785,{},xIn),o.Bl=function(e){if(!this.a.fk(e))throw M(new w3(bP+po(e)+wP+this.a+"'"))},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),b(1356,785,{},CPn),o.Bl=function(e){},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),b(410,512,{},TM),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&x(a)===x(al))return null;if(this.bl()&&r&&null!=a){if((h=u(a,54)).Vh()&&h!=(l=ba(e,h))){if(!eB(this.a,l))throw M(new w3(bP+po(l)+wP+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?St(h.Dh(),this.b):-1-St(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?St(s.Dh(),this.b):-1-St(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&tt(e,new i5(e,9,this.e,h,l))}return a}return a},o.zk=function(e,t,i,r,c){var s,f;return x(f=t.li(i))===x(al)&&(f=null),t.mi(i,r),this.Mj()?x(f)!==x(r)&&null!=f&&(c=(s=u(f,54)).Th(e,St(s.Dh(),this.b),null,c)):this.al()&&null!=f&&(c=u(f,54).Th(e,-1-St(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new J1(4)),c.nj(new i5(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return x(s=t.li(i))===x(al)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new J1(4)),this.tk()?c.nj(new i5(e,2,this.e,s,null)):c.nj(new i5(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){return null!=t.li(i)},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(null!=r&&!eB(this.a,r))throw M(new w3(bP+(L(r,58)?lnn(u(r,58).Dh()):OQ(po(r)))+wP+this.a+"'"));h=null!=(l=t.li(i)),this.tk()&&x(l)===x(al)&&(l=null),f=null,this.Mj()?x(l)!==x(r)&&(null!=l&&(f=(c=u(l,54)).Th(e,St(c.Dh(),this.b),null,f)),null!=r&&(f=(c=u(r,54)).Rh(e,St(c.Dh(),this.b),null,f))):this.al()&&x(l)!==x(r)&&(null!=l&&(f=u(l,54).Th(e,-1-St(e.Dh(),this.e),null,f)),null!=r&&(f=u(r,54).Rh(e,-1-St(e.Dh(),this.e),null,f))),null==r&&this.tk()?t.mi(i,al):t.mi(i,r),e.vh()&&e.wh()?(s=new VN(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):tt(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;f=null!=(h=t.li(i)),this.tk()&&x(h)===x(al)&&(h=null),s=null,null!=h&&(this.Mj()?s=(r=u(h,54)).Th(e,St(r.Dh(),this.b),null,s):this.al()&&(s=u(h,54).Th(e,-1-St(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new VN(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):tt(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),b(575,410,{},ZD),o.al=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),b(1359,575,{},jAn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),b(787,575,{},EW),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),b(1361,787,{},EAn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),b(650,575,{},aN),o.Mj=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),b(1360,650,{},TSn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),b(788,650,{},fV),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),b(1362,788,{},ASn),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),b(651,410,{},CW),o.bl=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),b(1363,651,{},CAn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),b(789,651,{},oV),o.Mj=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),b(1364,789,{},SSn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),b(1357,410,{},MAn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),b(786,410,{},sV),o.Mj=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),b(1358,786,{},PSn),o.tk=function(){return!0},w(Hn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),b(790,576,dP,cJ),o.yl=function(e){return new cJ(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return function f3e(n,e,t,i){return t&&(i=t.Rh(e,St(t.Dh(),n.c.uk()),null,i)),i}(this,e,this.b,i)},o.Al=function(e,t,i){return function h3e(n,e,t,i){return t&&(i=t.Th(e,St(t.Dh(),n.c.uk()),null,i)),i}(this,e,this.b,i)},w(Hn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),b(1365,1,JK,Tyn),o.Fk=function(e){return this.a},o.Qj=function(){return L(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){L(this.a,97)?u(this.a,97).Gk():this.a.$b()},w(Hn,"EStructuralFeatureImpl/SettingMany",1365),b(1366,576,dP,QLn),o.xl=function(e){return new tN((ht(),Z9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(Hn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),b(652,576,dP,tN),o.xl=function(e){return new tN(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(Hn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),b(403,506,Ih,o3),o.aj=function(e){return K(Ls,xn,29,e,0,1)},o.Yi=function(){return!1},w(Hn,"ESuperAdapter/1",403),b(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},bL),o.Lh=function(e,t,i){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new Z6(this,yr,this)),this.a}return Jo(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e),t,i)},o.Uh=function(e,t,i){switch(t){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),rr(this.Ab,e,i);case 2:return!this.a&&(this.a=new Z6(this,yr,this)),rr(this.a,e,i)}return u(Nn(u(qn(this,16),29)||(In(),Bb),t),69).wk().Ak(this,uu(this),t-se((In(),Bb)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!!this.a&&0!=this.a.i}return Wo(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e))},o.bi=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),pe(this.Ab),!this.Ab&&(this.Ab=new q(qe,this,0,3)),void Bt(this.Ab,u(t,16));case 1:return void Jc(this,Oe(t));case 2:return!this.a&&(this.a=new Z6(this,yr,this)),pe(this.a),!this.a&&(this.a=new Z6(this,yr,this)),void Bt(this.a,u(t,16))}ns(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e),t)},o.ii=function(){return In(),Bb},o.ki=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new q(qe,this,0,3)),void pe(this.Ab);case 1:return void Jc(this,null);case 2:return!this.a&&(this.a=new Z6(this,yr,this)),void pe(this.a)}Zo(this,e-se((In(),Bb)),Nn(u(qn(this,16),29)||Bb,e))},w(Hn,"ETypeParameterImpl",457),b(458,83,Qr,Z6),o.Nj=function(e,t){return function Cye(n,e,t){var r,c;for(t=fp(e,n.e,-1-n.c,t),c=new nC(new Ed(new cd(fJ(n.a).a).a));c.a.b;)t=z4(r=u(W0(c.a).ld(),89),UA(r,n.a),t);return t}(this,u(e,89),t)},o.Oj=function(e,t){return function Mye(n,e,t){var r,c;for(t=JM(e,n.e,-1-n.c,t),c=new nC(new Ed(new cd(fJ(n.a).a).a));c.a.b;)t=z4(r=u(W0(c.a).ld(),89),UA(r,n.a),t);return t}(this,u(e,89),t)},w(Hn,"ETypeParameterImpl/1",458),b(647,45,w2,FL),o.ec=function(){return new ZE(this)},w(Hn,"ETypeParameterImpl/2",647),b(570,Gf,Fu,ZE),o.Fc=function(e){return QAn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),null==Xe(this.a,t,"")&&(r=!0);return r},o.$b=function(){qu(this.a)},o.Hc=function(e){return tu(this.a,e)},o.Kc=function(){return new nC(new Ed(new cd(this.a).a))},o.Mc=function(e){return _Dn(this,e)},o.gc=function(){return k6(this.a)},w(Hn,"ETypeParameterImpl/2/1",570),b(571,1,Ti,nC),o.Nb=function(e){Ri(this,e)},o.Pb=function(){return u(W0(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){JNn(this.a)},w(Hn,"ETypeParameterImpl/2/1/1",571),b(1329,45,w2,gjn),o._b=function(e){return Mi(e)?QN(this,e):!!br(this.f,e)},o.xc=function(e){var t;return L(t=Mi(e)?Bc(this,e):Rr(br(this.f,e)),851)?(t=u(t,851).Kk(),Xe(this,u(e,241),t),t):t??(null==e?(eD(),cse):null)},w(Hn,"EValidatorRegistryImpl",1329),b(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},Bmn),o.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==t?null:Jr(t);case 25:return y4e(t);case 27:return function $3e(n){return L(n,180)?""+u(n,180).a:null==n?null:Jr(n)}(t);case 28:return function F3e(n){return L(n,180)?""+u(n,180).a:null==n?null:Jr(n)}(t);case 29:return null==t?null:STn(X9[0],u(t,206));case 41:return null==t?"":sd(u(t,297));case 42:return Jr(t);case 50:return Oe(t);default:throw M(new Un(dm+e.xe()+wb))}},o.si=function(e){var v;switch(-1==e.G&&(e.G=(v=Mo(e))?j1(v.vi(),e):-1),e.G){case 0:return new DL;case 1:return new CG;case 2:return new SG;case 4:return new eC;case 5:return new wjn;case 6:return new Kyn;case 7:return new PG;case 10:return new UE;case 11:return new NL;case 12:return new GIn;case 13:return new $L;case 14:return new AW;case 17:return new Smn;case 18:return new l0;case 19:return new bL;default:throw M(new Un(NK+e.zb+wb))}},o.ti=function(e,t){switch(e.hk()){case 20:return null==t?null:new Vz(t);case 21:return null==t?null:new ea(t);case 23:case 22:return null==t?null:function N8e(n){if(wA(am,n))return Kn(),mm;if(wA(PK,n))return Kn(),Pa;throw M(new Un("Expecting true or false"))}(t);case 26:case 24:return null==t?null:Ik(Io(t,-128,127)<<24>>24);case 25:return function ZCe(n){var e,t,i,r,c,s,f;if(null==n)return null;for(s=K(Ku,E2,28,r=((f=n.length)+1)/2|0,15,1),f%2!=0&&(s[--r]=Ken((Gn(f-1,n.length),n.charCodeAt(f-1)))),t=0,i=0;t>24;return s}(t);case 27:return function y7e(n){var t;if(null==n)return null;t=0;try{t=Io(n,Xi,nt)&ri}catch(i){if(!L(i=At(i),130))throw M(i);t=jT(n)[0]}return xk(t)}(t);case 28:return function j7e(n){var t;if(null==n)return null;t=0;try{t=Io(n,Xi,nt)&ri}catch(i){if(!L(i=At(i),130))throw M(i);t=jT(n)[0]}return xk(t)}(t);case 29:return function Gye(n){var e,t;if(null==n)return null;for(e=null,t=0;t>16);case 50:return t;default:throw M(new Un(dm+e.xe()+wb))}},w(Hn,"EcoreFactoryImpl",1349),b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},wIn),o.gb=!1,o.hb=!1;var y0n,rse=!1;w(Hn,"EcorePackageImpl",560),b(1234,1,{851:1},Rmn),o.Kk=function(){return _Tn(),use},w(Hn,"EcorePackageImpl/1",1234),b(1243,1,ze,Kmn),o.fk=function(e){return L(e,155)},o.gk=function(e){return K(ME,xn,155,e,0,1)},w(Hn,"EcorePackageImpl/10",1243),b(1244,1,ze,_mn),o.fk=function(e){return L(e,197)},o.gk=function(e){return K(qU,xn,197,e,0,1)},w(Hn,"EcorePackageImpl/11",1244),b(1245,1,ze,Hmn),o.fk=function(e){return L(e,58)},o.gk=function(e){return K(Ua,xn,58,e,0,1)},w(Hn,"EcorePackageImpl/12",1245),b(1246,1,ze,qmn),o.fk=function(e){return L(e,411)},o.gk=function(e){return K(Ds,bun,62,e,0,1)},w(Hn,"EcorePackageImpl/13",1246),b(1247,1,ze,Umn),o.fk=function(e){return L(e,241)},o.gk=function(e){return K(Pf,xn,241,e,0,1)},w(Hn,"EcorePackageImpl/14",1247),b(1248,1,ze,Gmn),o.fk=function(e){return L(e,518)},o.gk=function(e){return K(Fb,xn,2116,e,0,1)},w(Hn,"EcorePackageImpl/15",1248),b(1249,1,ze,zmn),o.fk=function(e){return L(e,102)},o.gk=function(e){return K(gg,C2,19,e,0,1)},w(Hn,"EcorePackageImpl/16",1249),b(1250,1,ze,Xmn),o.fk=function(e){return L(e,179)},o.gk=function(e){return K(Mu,C2,179,e,0,1)},w(Hn,"EcorePackageImpl/17",1250),b(1251,1,ze,Wmn),o.fk=function(e){return L(e,481)},o.gk=function(e){return K(bg,xn,481,e,0,1)},w(Hn,"EcorePackageImpl/18",1251),b(1252,1,ze,Vmn),o.fk=function(e){return L(e,561)},o.gk=function(e){return K(kc,rJn,561,e,0,1)},w(Hn,"EcorePackageImpl/19",1252),b(1235,1,ze,Jmn),o.fk=function(e){return L(e,331)},o.gk=function(e){return K(wg,C2,35,e,0,1)},w(Hn,"EcorePackageImpl/2",1235),b(1253,1,ze,Qmn),o.fk=function(e){return L(e,248)},o.gk=function(e){return K(yr,yJn,89,e,0,1)},w(Hn,"EcorePackageImpl/20",1253),b(1254,1,ze,Ymn),o.fk=function(e){return L(e,457)},o.gk=function(e){return K(au,xn,850,e,0,1)},w(Hn,"EcorePackageImpl/21",1254),b(1255,1,ze,Zmn),o.fk=function(e){return Vb(e)},o.gk=function(e){return K(qt,J,485,e,8,1)},w(Hn,"EcorePackageImpl/22",1255),b(1256,1,ze,n6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return K(Ku,J,195,e,0,2)},w(Hn,"EcorePackageImpl/23",1256),b(1257,1,ze,e6n),o.fk=function(e){return L(e,222)},o.gk=function(e){return K(Op,J,222,e,0,1)},w(Hn,"EcorePackageImpl/24",1257),b(1258,1,ze,t6n),o.fk=function(e){return L(e,180)},o.gk=function(e){return K(U8,J,180,e,0,1)},w(Hn,"EcorePackageImpl/25",1258),b(1259,1,ze,i6n),o.fk=function(e){return L(e,206)},o.gk=function(e){return K(TP,J,206,e,0,1)},w(Hn,"EcorePackageImpl/26",1259),b(1260,1,ze,r6n),o.fk=function(e){return!1},o.gk=function(e){return K(R0n,xn,2215,e,0,1)},w(Hn,"EcorePackageImpl/27",1260),b(1261,1,ze,c6n),o.fk=function(e){return Jb(e)},o.gk=function(e){return K(ui,J,345,e,7,1)},w(Hn,"EcorePackageImpl/28",1261),b(1262,1,ze,u6n),o.fk=function(e){return L(e,61)},o.gk=function(e){return K(n0n,$w,61,e,0,1)},w(Hn,"EcorePackageImpl/29",1262),b(1236,1,ze,o6n),o.fk=function(e){return L(e,519)},o.gk=function(e){return K(qe,{3:1,4:1,5:1,2033:1},598,e,0,1)},w(Hn,"EcorePackageImpl/3",1236),b(1263,1,ze,s6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return K(i0n,xn,2039,e,0,1)},w(Hn,"EcorePackageImpl/30",1263),b(1264,1,ze,f6n),o.fk=function(e){return L(e,160)},o.gk=function(e){return K(T0n,$w,160,e,0,1)},w(Hn,"EcorePackageImpl/31",1264),b(1265,1,ze,h6n),o.fk=function(e){return L(e,76)},o.gk=function(e){return K(qO,IJn,76,e,0,1)},w(Hn,"EcorePackageImpl/32",1265),b(1266,1,ze,l6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return K(km,J,161,e,0,1)},w(Hn,"EcorePackageImpl/33",1266),b(1267,1,ze,a6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return K(qi,J,17,e,0,1)},w(Hn,"EcorePackageImpl/34",1267),b(1268,1,ze,d6n),o.fk=function(e){return L(e,297)},o.gk=function(e){return K(Aun,xn,297,e,0,1)},w(Hn,"EcorePackageImpl/35",1268),b(1269,1,ze,b6n),o.fk=function(e){return L(e,168)},o.gk=function(e){return K(vb,J,168,e,0,1)},w(Hn,"EcorePackageImpl/36",1269),b(1270,1,ze,w6n),o.fk=function(e){return L(e,85)},o.gk=function(e){return K(Sun,xn,85,e,0,1)},w(Hn,"EcorePackageImpl/37",1270),b(1271,1,ze,g6n),o.fk=function(e){return L(e,599)},o.gk=function(e){return K(j0n,xn,599,e,0,1)},w(Hn,"EcorePackageImpl/38",1271),b(1272,1,ze,v6n),o.fk=function(e){return!1},o.gk=function(e){return K(K0n,xn,2216,e,0,1)},w(Hn,"EcorePackageImpl/39",1272),b(1237,1,ze,p6n),o.fk=function(e){return L(e,90)},o.gk=function(e){return K(Ls,xn,29,e,0,1)},w(Hn,"EcorePackageImpl/4",1237),b(1273,1,ze,m6n),o.fk=function(e){return L(e,191)},o.gk=function(e){return K(pb,J,191,e,0,1)},w(Hn,"EcorePackageImpl/40",1273),b(1274,1,ze,k6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(Hn,"EcorePackageImpl/41",1274),b(1275,1,ze,y6n),o.fk=function(e){return L(e,596)},o.gk=function(e){return K(t0n,xn,596,e,0,1)},w(Hn,"EcorePackageImpl/42",1275),b(1276,1,ze,j6n),o.fk=function(e){return!1},o.gk=function(e){return K(_0n,J,2217,e,0,1)},w(Hn,"EcorePackageImpl/43",1276),b(1277,1,ze,E6n),o.fk=function(e){return L(e,44)},o.gk=function(e){return K(Ud,bS,44,e,0,1)},w(Hn,"EcorePackageImpl/44",1277),b(1238,1,ze,C6n),o.fk=function(e){return L(e,142)},o.gk=function(e){return K(If,xn,142,e,0,1)},w(Hn,"EcorePackageImpl/5",1238),b(1239,1,ze,M6n),o.fk=function(e){return L(e,156)},o.gk=function(e){return K(VU,xn,156,e,0,1)},w(Hn,"EcorePackageImpl/6",1239),b(1240,1,ze,T6n),o.fk=function(e){return L(e,469)},o.gk=function(e){return K(HO,xn,685,e,0,1)},w(Hn,"EcorePackageImpl/7",1240),b(1241,1,ze,A6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return K(Wl,xn,694,e,0,1)},w(Hn,"EcorePackageImpl/8",1241),b(1242,1,ze,S6n),o.fk=function(e){return L(e,480)},o.gk=function(e){return K(z9,xn,480,e,0,1)},w(Hn,"EcorePackageImpl/9",1242),b(1038,2080,iJn,xjn),o.Mi=function(e,t){!function f5e(n,e){var i,r,c;if(e.ej(n.a),null!=(c=u(qn(n.a,8),2035)))for(i=0,r=c.length;i0){if(Gn(0,e.length),47==e.charCodeAt(0)){for(s=new Vc(4),c=1,t=1;t0&&($i(0,i,e.length),e=e.substr(0,i))}return function BEe(n,e){var t,i,r,c,s,f;for(c=null,r=new $Pn((!n.a&&(n.a=new AL(n)),n.a));cen(r);)if(l2(s=(t=u(qA(r),58)).Dh()),null!=(i=(f=s.o)&&t.Xh(f)?XW(uF(f),t.Mh(f)):null)&&Tn(i,e)){c=t;break}return c}(this,e)},o.Gl=function(){return this.c},o.Ib=function(){return sd(this.Rm)+"@"+(wt(this)>>>0).toString(16)+" uri='"+this.d+"'"},o.b=!1,w(QK,"ResourceImpl",799),b(1525,799,LJn,Ayn),w(QK,"BinaryResourceImpl",1525),b(1190,708,GK),o.bj=function(e){return L(e,58)?function Pge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}(this,u(e,58)):L(e,599)?new ne(u(e,599).El()):x(e)===x(this.f)?u(e,16).Kc():(I3(),SE.a)},o.Ob=function(){return cen(this)},o.a=!1,w(Et,"EcoreUtil/ContentTreeIterator",1190),b(1526,1190,GK,$Pn),o.bj=function(e){return x(e)===x(this.f)?u(e,15).Kc():new LLn(u(e,58))},w(QK,"ResourceImpl/5",1526),b(658,2092,kJn,AL),o.Hc=function(e){return this.i<=4?L4(this,e):L(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){0==e?this.a.b||(this.a.b=!0):T$(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){return u(e,54).fi(this.a,t)},o.Oj=function(e,t){return u(e,54).fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return K(Ua,xn,58,e,0,1)},o.Yi=function(){return!1},w(QK,"ResourceImpl/ContentsEList",658),b(970,2062,Q4,Syn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()},w(Et,"AbstractSequentialInternalEList/1",970),b(634,1,{},xSn),w(Et,"BasicExtendedMetaData",634),b(1181,1,{},RMn),o.Jl=function(){return null},o.Kl=function(){return-2==this.a&&function ffe(n,e){n.a=e}(this,function Bye(n,e){var t,i,r;if((t=e.qi(n.a))&&null!=(r=jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),Cs)))for(i=1;i<($u(),E0n).length;++i)if(Tn(E0n[i],r))return i;return 0}(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return On(),On(),Vi},o.xe=function(){return this.c==gm&&function hfe(n,e){n.c=e}(this,eRn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=gm,w(Et,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),b(1182,1,{},sLn),o.Jl=function(){return this.a==(X3(),UO)&&function dfe(n,e){n.a=e}(this,function xAe(n,e){var t,r,c,s;return(r=e.qi(n.a))&&(!r.b&&(r.b=new wo((In(),hr),kc,r)),null!=(t=Oe(jf(r.b,Wi)))&&L(s=-1==(c=t.lastIndexOf("#"))?MW(n,e.jk(),t):0==c?Mk(n,null,(Gn(1,t.length+1),t.substr(1))):Mk(n,($i(0,c,t.length),t.substr(0,c)),(Gn(c+1,t.length+1),t.substr(c+1))),156))?u(s,156):null}(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==(X3(),UO)&&function lfe(n,e){n.c=e}(this,function BAe(n,e){var i,r,c,s;return(i=e.qi(n.a))&&(!i.b&&(i.b=new wo((In(),hr),kc,i)),null!=(c=Oe(jf(i.b,ZK)))&&L(s=-1==(r=c.lastIndexOf("#"))?MW(n,e.jk(),c):0==r?Mk(n,null,(Gn(1,c.length+1),c.substr(1))):Mk(n,($i(0,r,c.length),c.substr(0,r)),(Gn(r+1,c.length+1),c.substr(r+1))),156))?u(s,156):null}(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&function wfe(n,e){n.d=e}(this,function jPe(n,e){var t,i,r,c,s,f,h,l,a;if((t=e.qi(n.a))&&null!=(h=Oe(jf((!t.b&&(t.b=new wo((In(),hr),kc,t)),t.b),"memberTypes")))){for(l=new Z,s=0,f=(c=Iw(h,"\\w")).length;st?e:t;l<=d;++l)l==t?f=i++:(a=p.am(r[l].Lk()),l==e&&(h=l!=d||a?i:i-1),a&&++i);return g=u($5(n,e,t),76),f!=h&&b3(n,new Ek(n.e,7,s,Y(f),v.md(),h)),g}return u($5(n,e,t),76)}(this,e,t)},o.Wi=function(e,t){return function bOe(n,e,t){var i,c,s,f,h,l,a,d,g,v,p,k,j;if(L(s=t.Lk(),102)&&u(s,19).Bb&sr&&(g=u(t.md(),54),(k=ba(n.e,g))!=g)){if(G6(n,e,kx(n,0,a=Gh(s,k))),d=null,ao(n.e)&&(i=a2(($u(),Ui),n.e.Dh(),s))!=Nn(n.e.Dh(),n.c)){for(j=ou(n.e.Dh(),s),f=0,c=u(n.g,124),h=0;h=0;)if(this.k.am((t=e[this.c]).Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(Et,"BasicFeatureMap/FeatureEIterator",420),b(676,420,Jh,xD),o.ul=function(){return!0},w(Et,"BasicFeatureMap/ResolvingFeatureEIterator",676),b(968,496,lP,PTn),o.pj=function(){return this},w(Et,"EContentsEList/1",968),b(969,496,lP,ZMn),o.ul=function(){return!1},w(Et,"EContentsEList/2",969),b(967,287,aP,ITn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1},w(Et,"EContentsEList/FeatureIteratorImpl/1",967),b(840,593,Qr,rW),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EDataTypeEList/Unsettable",840),b(1958,593,Qr,xTn),o.Si=function(){return!0},w(Et,"EDataTypeUniqueEList",1958),b(1959,840,Qr,BTn),o.Si=function(){return!0},w(Et,"EDataTypeUniqueEList/Unsettable",1959),b(147,83,Qr,Pu),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentEList/Resolving",147),b(1184,555,Qr,RTn),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentEList/Unsettable/Resolving",1184),b(766,14,Qr,UW),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EObjectContainmentWithInverseEList/Unsettable",766),b(1222,766,Qr,YAn),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),b(757,505,Qr,cW),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EObjectEList/Unsettable",757),b(338,505,Qr,Bg),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectResolvingEList",338),b(1844,757,Qr,KTn),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectResolvingEList/Unsettable",1844),b(1527,1,{},P6n),w(Et,"EObjectValidator",1527),b(559,505,Qr,DM),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0,w(Et,"EObjectWithInverseEList",559),b(1225,559,Qr,ZAn),o.ll=function(){return!0},w(Et,"EObjectWithInverseEList/ManyInverse",1225),b(635,559,Qr,rN),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EObjectWithInverseEList/Unsettable",635),b(1224,635,Qr,nSn),o.ll=function(){return!0},w(Et,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),b(767,559,Qr,GW),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectWithInverseResolvingEList",767),b(32,767,Qr,Dn),o.ll=function(){return!0},w(Et,"EObjectWithInverseResolvingEList/ManyInverse",32),b(768,635,Qr,zW),o.nl=function(){return!0},o.Wi=function(e,t){return wp(this,e,u(t,58))},w(Et,"EObjectWithInverseResolvingEList/Unsettable",768),b(1223,768,Qr,eSn),o.ll=function(){return!0},w(Et,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),b(1185,632,Qr),o.Li=function(){return 0==(1792&this.b)},o.Ni=function(){this.b|=1},o.kl=function(){return 0!=(4&this.b)},o.Mj=function(){return 0!=(40&this.b)},o.ll=function(){return 0!=(16&this.b)},o.ml=function(){return 0!=(8&this.b)},o.nl=function(){return 0!=(this.b&_w)},o.al=function(){return 0!=(32&this.b)},o.ol=function(){return 0!=(this.b&Qs)},o.fk=function(e){return this.d?_Ln(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return 2&this.b?0!=(1&this.b):0!=this.i},o.Si=function(){return 0!=(128&this.b)},o.Gk=function(){var e;pe(this),2&this.b&&(ao(this.e)?(e=0!=(1&this.b),this.b&=-2,b3(this,new Gs(this.e,2,St(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return 0==(1536&this.b)},o.b=0,w(Et,"EcoreEList/Generic",1185),b(1186,1185,Qr,XIn),o.Lk=function(){return this.a},w(Et,"EcoreEList/Dynamic",1186),b(765,66,Ih,uz),o.aj=function(e){return Nk(this.a.a,e)},w(Et,"EcoreEMap/1",765),b(764,83,Qr,UV),o.Mi=function(e,t){MA(this.b,u(t,136))},o.Oi=function(e,t){UFn(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){PF(this.b,u(t,136))},o.Ri=function(e,t,i){PF(this.b,u(i,136)),x(i)===x(t)&&u(i,136).Ci(function Gle(n){return null==n?0:wt(n)}(u(t,136).ld())),MA(this.b,u(t,136))},w(Et,"EcoreEMap/DelegateEObjectContainmentEList",764),b(1220,141,dun,oFn),w(Et,"EcoreEMap/Unsettable",1220),b(1221,764,Qr,tSn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;pe(this),ao(this.e)?(e=this.a,this.a=!1,tt(this.e,new Gs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Et,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),b(1189,215,w2,WPn),o.a=!1,o.b=!1,w(Et,"EcoreUtil/Copier",1189),b(759,1,Ti,LLn),o.Nb=function(e){Ri(this,e)},o.Ob=function(){return KBn(this)},o.Pb=function(){var e;return KBn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()},w(Et,"EcoreUtil/ProperContentIterator",759),b(1528,1527,{},P8n),w(Et,"EcoreValidator",1528),Ot(Et,"FeatureMapUtil/Validator"),b(1295,1,{2041:1},I6n),o.am=function(e){return!0},w(Et,"FeatureMapUtil/1",1295),b(773,1,{2041:1},Mtn),o.am=function(e){var t;return this.c==e||(null==(t=un(ee(this.a,e)))?function UAe(n,e){var t;return n.f==ZU?(t=F0(Ir(($u(),Ui),e)),n.e?4==t&&e!=(bp(),e3)&&e!=(bp(),n3)&&e!=(bp(),nG)&&e!=(bp(),eG):2==t):!(!n.d||!(n.d.Hc(e)||n.d.Hc(Vv(Ir(($u(),Ui),e)))||n.d.Hc(a2(($u(),Ui),n.b,e))))||!(!n.f||!Ten(($u(),n.f),ok(Ir(Ui,e))))&&(t=F0(Ir(Ui,e)),n.e?4==t:2==t)}(this,e)?(LDn(this.a,e,(Kn(),mm)),!0):(LDn(this.a,e,(Kn(),Pa)),!1):t==(Kn(),mm))},o.e=!1,w(Et,"FeatureMapUtil/BasicValidator",773),b(774,45,w2,tW),w(Et,"FeatureMapUtil/BasicValidator/Cache",774),b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},B7),o.bd=function(e,t){yqn(this.c,this.b,e,t)},o.Fc=function(e){return Jen(this.c,this.b,e)},o.cd=function(e,t){return function lIe(n,e,t,i){var r,c,s,f,h,l,a,d;if(0==i.gc())return!1;if(ar(),s=(h=u(e,69).xk())?i:new q0(i.gc()),Bl(n.e,e)){if(e.Si())for(a=i.Kc();a.Ob();)rS(n,e,l=a.Pb(),L(e,102)&&0!=(u(e,19).Bb&sr))||(c=Gh(e,l),s.Fc(c));else if(!h)for(a=i.Kc();a.Ob();)c=Gh(e,l=a.Pb()),s.Fc(c)}else{for(d=ou(n.e.Dh(),e),r=u(n.g,124),f=0;f1)throw M(new Un(wj));h||(c=Gh(e,i.Kc().Pb()),s.Fc(c))}return pY(n,Rnn(n,e,t),s)}(this.c,this.b,e,t)},o.Gc=function(e){return U6(this,e)},o.Gi=function(e,t){!function u4e(n,e,t,i){n.j=-1,oen(n,Rnn(n,e,t),(ar(),u(e,69).vk().xl(i)))}(this.c,this.b,e,t)},o.Wk=function(e,t){return Hen(this.c,this.b,e,t)},o.$i=function(e){return uS(this.c,this.b,e,!1)},o.Ii=function(){return lTn(this.c,this.b)},o.Ji=function(){return function Lle(n,e){return new h4(e,n)}(this.c,this.b)},o.Ki=function(e){return function l3e(n,e,t){var i,r;for(r=new h4(e,n),i=0;i0)if((t-=i.length-e)>=0){for(r.a+="0.";t>Gd.length;t-=Gd.length)nPn(r,Gd);BAn(r,Gd,di(t)),Re(r,(Gn(e,i.length+1),i.substr(e)))}else Re(r,Xo(i,e,di(t=e-t))),r.a+=".",Re(r,iJ(i,di(t)));else{for(Re(r,(Gn(e,i.length+1),i.substr(e)));t<-Gd.length;t+=Gd.length)nPn(r,Gd);BAn(r,Gd,di(-t))}return r.a}(u(t,247));case 15:case 14:return null==t?null:function kwe(n){return n==Mt?gj:n==fi?"-INF":""+n}(F(R(t)));case 17:return PKn((ht(),t));case 18:return PKn(t);case 21:case 20:return null==t?null:function ywe(n){return n==Mt?gj:n==fi?"-INF":""+n}(u(t,161).a);case 27:return cae(u(t,195));case 30:return qRn((ht(),u(t,15)));case 31:return qRn(u(t,15));case 40:return function oae(n){return null==n?null:Jr(n)}((ht(),t));case 42:return IKn((ht(),t));case 43:return IKn(t);case 59:case 48:return function uae(n){return null==n?null:Jr(n)}((ht(),t));default:throw M(new Un(dm+e.xe()+wb))}},o.si=function(e){var i;switch(-1==e.G&&(e.G=(i=Mo(e))?j1(i.vi(),e):-1),e.G){case 0:return new Mz;case 1:return new _6n;case 2:return new vjn;case 3:return new pjn;default:throw M(new Un(NK+e.zb+wb))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,v,p,k,j,A,I;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return d9e(t);case 8:case 7:return null==t?null:function Zke(n){if(n=_c(n,!0),Tn(am,n)||Tn("1",n))return Kn(),mm;if(Tn(PK,n)||Tn("0",n))return Kn(),Pa;throw M(new UL("Invalid boolean value: '"+n+"'"))}(t);case 9:return null==t?null:Ik(Io((r=_c(t,!0)).length>0&&(Gn(0,r.length),43==r.charCodeAt(0))?(Gn(1,r.length+1),r.substr(1)):r,-128,127)<<24>>24);case 10:return null==t?null:Ik(Io((c=_c(t,!0)).length>0&&(Gn(0,c.length),43==c.charCodeAt(0))?(Gn(1,c.length+1),c.substr(1)):c,-128,127)<<24>>24);case 11:return Oe(ob(this,(ht(),ase),t));case 12:return Oe(ob(this,(ht(),dse),t));case 13:return null==t?null:new Vz(_c(t,!0));case 15:case 14:return function jMe(n){var e,t,i,r;if(null==n)return null;if(Tn((i=_c(n,!0)).substr(i.length-(r=gj.length),r),gj))if(4==(t=i.length)){if(Gn(0,i.length),43==(e=i.charCodeAt(0)))return P0n;if(45==e)return Cse}else if(3==t)return P0n;return Ew(i)}(t);case 16:return Oe(ob(this,(ht(),bse),t));case 17:return GBn((ht(),t));case 18:return GBn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return _c(t,!0);case 21:case 20:return function LMe(n){var e,t,i,r;if(null==n)return null;if(Tn((i=_c(n,!0)).substr(i.length-(r=gj.length),r),gj))if(4==(t=i.length)){if(Gn(0,i.length),43==(e=i.charCodeAt(0)))return I0n;if(45==e)return Mse}else if(3==t)return I0n;return new az(i)}(t);case 22:return Oe(ob(this,(ht(),wse),t));case 23:return Oe(ob(this,(ht(),gse),t));case 24:return Oe(ob(this,(ht(),vse),t));case 25:return Oe(ob(this,(ht(),pse),t));case 26:return Oe(ob(this,(ht(),mse),t));case 27:return e9e(t);case 30:return zBn((ht(),t));case 31:return zBn(t);case 32:return null==t?null:Y(Io((d=_c(t,!0)).length>0&&(Gn(0,d.length),43==d.charCodeAt(0))?(Gn(1,d.length+1),d.substr(1)):d,Xi,nt));case 33:return null==t?null:new ea((g=_c(t,!0)).length>0&&(Gn(0,g.length),43==g.charCodeAt(0))?(Gn(1,g.length+1),g.substr(1)):g);case 34:return null==t?null:Y(Io((v=_c(t,!0)).length>0&&(Gn(0,v.length),43==v.charCodeAt(0))?(Gn(1,v.length+1),v.substr(1)):v,Xi,nt));case 36:return null==t?null:$l(lS((p=_c(t,!0)).length>0&&(Gn(0,p.length),43==p.charCodeAt(0))?(Gn(1,p.length+1),p.substr(1)):p));case 37:return null==t?null:$l(lS((k=_c(t,!0)).length>0&&(Gn(0,k.length),43==k.charCodeAt(0))?(Gn(1,k.length+1),k.substr(1)):k));case 40:return function Y9e(n){var e;return null==n?null:new ea((e=_c(n,!0)).length>0&&(Gn(0,e.length),43==e.charCodeAt(0))?(Gn(1,e.length+1),e.substr(1)):e)}((ht(),t));case 42:return XBn((ht(),t));case 43:return XBn(t);case 44:return null==t?null:new ea((j=_c(t,!0)).length>0&&(Gn(0,j.length),43==j.charCodeAt(0))?(Gn(1,j.length+1),j.substr(1)):j);case 45:return null==t?null:new ea((A=_c(t,!0)).length>0&&(Gn(0,A.length),43==A.charCodeAt(0))?(Gn(1,A.length+1),A.substr(1)):A);case 46:return _c(t,!1);case 47:return Oe(ob(this,(ht(),kse),t));case 59:case 48:return function Q9e(n){var e;return null==n?null:new ea((e=_c(n,!0)).length>0&&(Gn(0,e.length),43==e.charCodeAt(0))?(Gn(1,e.length+1),e.substr(1)):e)}((ht(),t));case 49:return Oe(ob(this,(ht(),yse),t));case 50:return null==t?null:k4(Io((I=_c(t,!0)).length>0&&(Gn(0,I.length),43==I.charCodeAt(0))?(Gn(1,I.length+1),I.substr(1)):I,gP,32767)<<16>>16);case 51:return null==t?null:k4(Io((s=_c(t,!0)).length>0&&(Gn(0,s.length),43==s.charCodeAt(0))?(Gn(1,s.length+1),s.substr(1)):s,gP,32767)<<16>>16);case 53:return Oe(ob(this,(ht(),jse),t));case 55:return null==t?null:k4(Io((f=_c(t,!0)).length>0&&(Gn(0,f.length),43==f.charCodeAt(0))?(Gn(1,f.length+1),f.substr(1)):f,gP,32767)<<16>>16);case 56:return null==t?null:k4(Io((h=_c(t,!0)).length>0&&(Gn(0,h.length),43==h.charCodeAt(0))?(Gn(1,h.length+1),h.substr(1)):h,gP,32767)<<16>>16);case 57:return null==t?null:$l(lS((l=_c(t,!0)).length>0&&(Gn(0,l.length),43==l.charCodeAt(0))?(Gn(1,l.length+1),l.substr(1)):l));case 58:return null==t?null:$l(lS((a=_c(t,!0)).length>0&&(Gn(0,a.length),43==a.charCodeAt(0))?(Gn(1,a.length+1),a.substr(1)):a));case 60:return null==t?null:Y(Io((i=_c(t,!0)).length>0&&(Gn(0,i.length),43==i.charCodeAt(0))?(Gn(1,i.length+1),i.substr(1)):i,Xi,nt));case 61:return null==t?null:Y(Io(_c(t,!0),Xi,nt));default:throw M(new Un(dm+e.xe()+wb))}},w(ci,"XMLTypeFactoryImpl",2028),b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},gIn),o.N=!1,o.O=!1;var ch,U1,n7,XO,P,Tse=!1;w(ci,"XMLTypePackageImpl",594),b(1961,1,{851:1},L6n),o.Kk=function(){return ctn(),$se},w(ci,"XMLTypePackageImpl/1",1961),b(1970,1,ze,D6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/10",1970),b(1971,1,ze,N6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/11",1971),b(1972,1,ze,$6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/12",1972),b(1973,1,ze,F6n),o.fk=function(e){return Jb(e)},o.gk=function(e){return K(ui,J,345,e,7,1)},w(ci,"XMLTypePackageImpl/13",1973),b(1974,1,ze,x6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/14",1974),b(1975,1,ze,B6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/15",1975),b(1976,1,ze,R6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/16",1976),b(1977,1,ze,K6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/17",1977),b(1978,1,ze,H6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return K(km,J,161,e,0,1)},w(ci,"XMLTypePackageImpl/18",1978),b(1979,1,ze,q6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/19",1979),b(1962,1,ze,U6n),o.fk=function(e){return L(e,857)},o.gk=function(e){return K(IE,xn,857,e,0,1)},w(ci,"XMLTypePackageImpl/2",1962),b(1980,1,ze,G6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/20",1980),b(1981,1,ze,z6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/21",1981),b(1982,1,ze,X6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/22",1982),b(1983,1,ze,W6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/23",1983),b(1984,1,ze,V6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return K(Ku,J,195,e,0,2)},w(ci,"XMLTypePackageImpl/24",1984),b(1985,1,ze,J6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/25",1985),b(1986,1,ze,Q6n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/26",1986),b(1987,1,ze,Y6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/27",1987),b(1988,1,ze,Z6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/28",1988),b(1989,1,ze,n5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/29",1989),b(1963,1,ze,e5n),o.fk=function(e){return L(e,681)},o.gk=function(e){return K(zO,xn,2119,e,0,1)},w(ci,"XMLTypePackageImpl/3",1963),b(1990,1,ze,t5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return K(qi,J,17,e,0,1)},w(ci,"XMLTypePackageImpl/30",1990),b(1991,1,ze,i5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/31",1991),b(1992,1,ze,r5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return K(vb,J,168,e,0,1)},w(ci,"XMLTypePackageImpl/32",1992),b(1993,1,ze,c5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/33",1993),b(1994,1,ze,u5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/34",1994),b(1995,1,ze,o5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/35",1995),b(1996,1,ze,s5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/36",1996),b(1997,1,ze,f5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/37",1997),b(1998,1,ze,h5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return K(ss,$w,15,e,0,1)},w(ci,"XMLTypePackageImpl/38",1998),b(1999,1,ze,l5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/39",1999),b(1964,1,ze,a5n),o.fk=function(e){return L(e,682)},o.gk=function(e){return K(OE,xn,2120,e,0,1)},w(ci,"XMLTypePackageImpl/4",1964),b(2e3,1,ze,d5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/40",2e3),b(2001,1,ze,b5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/41",2001),b(2002,1,ze,w5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/42",2002),b(2003,1,ze,g5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/43",2003),b(2004,1,ze,v5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/44",2004),b(2005,1,ze,p5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return K(pb,J,191,e,0,1)},w(ci,"XMLTypePackageImpl/45",2005),b(2006,1,ze,m5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/46",2006),b(2007,1,ze,k5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/47",2007),b(2008,1,ze,y5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/48",2008),b(2009,1,ze,j5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return K(pb,J,191,e,0,1)},w(ci,"XMLTypePackageImpl/49",2009),b(1965,1,ze,E5n),o.fk=function(e){return L(e,683)},o.gk=function(e){return K(A0n,xn,2121,e,0,1)},w(ci,"XMLTypePackageImpl/5",1965),b(2010,1,ze,C5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return K(vb,J,168,e,0,1)},w(ci,"XMLTypePackageImpl/50",2010),b(2011,1,ze,M5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/51",2011),b(2012,1,ze,T5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return K(qi,J,17,e,0,1)},w(ci,"XMLTypePackageImpl/52",2012),b(1966,1,ze,A5n),o.fk=function(e){return Mi(e)},o.gk=function(e){return K(fn,J,2,e,6,1)},w(ci,"XMLTypePackageImpl/6",1966),b(1967,1,ze,S5n),o.fk=function(e){return L(e,195)},o.gk=function(e){return K(Ku,J,195,e,0,2)},w(ci,"XMLTypePackageImpl/7",1967),b(1968,1,ze,P5n),o.fk=function(e){return Vb(e)},o.gk=function(e){return K(qt,J,485,e,8,1)},w(ci,"XMLTypePackageImpl/8",1968),b(1969,1,ze,I5n),o.fk=function(e){return L(e,222)},o.gk=function(e){return K(Op,J,222,e,0,1)},w(ci,"XMLTypePackageImpl/9",1969),b(55,63,Rl,De),w(I1,"RegEx/ParseException",55),b(836,1,{},TG),o.bm=function(e){return e16*i)throw M(new De($e((Ie(),XVn))));i=16*i+c}if(125!=this.a)throw M(new De($e((Ie(),WVn))));if(i>vm)throw M(new De($e((Ie(),VVn))));e=i}else{if(c=0,0!=this.c||(c=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(i=c,Ye(this),0!=this.c||(c=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));e=i=16*i+c}break;case 117:if(r=0,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));e=t=16*t+r;break;case 118:if(Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if(t=16*t+r,Ye(this),0!=this.c||(r=Pd(this.a))<0)throw M(new De($e((Ie(),P1))));if((t=16*t+r)>vm)throw M(new De($e((Ie(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw M(new De($e((Ie(),JVn))))}return e},o.dm=function(e){var i;switch(e){case 100:i=32==(32&this.e)?ya("Nd",!0):(Ze(),WO);break;case 68:i=32==(32&this.e)?ya("Nd",!1):(Ze(),F0n);break;case 119:i=32==(32&this.e)?ya("IsWord",!0):(Ze(),r6);break;case 87:i=32==(32&this.e)?ya("IsWord",!1):(Ze(),B0n);break;case 115:i=32==(32&this.e)?ya("IsSpace",!0):(Ze(),t3);break;case 83:i=32==(32&this.e)?ya("IsSpace",!1):(Ze(),x0n);break;default:throw M(new ic(JJn+e.toString(16)))}return i},o.em=function(e){var t,i,r,c,f,h,l,a,d,g,v;for(this.b=1,Ye(this),t=null,0==this.c&&94==this.a?(Ye(this),e?(Ze(),Ze(),d=new Co(5)):(Ze(),Ze(),Kc(t=new Co(4),0,vm),d=new Co(4))):(Ze(),Ze(),d=new Co(4)),c=!0;1!=(v=this.c)&&(0!=v||93!=this.a||c);){if(c=!1,i=this.a,r=!1,10==v)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:Ow(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:(i=this.um(d,i))<0&&(r=!0);break;case 112:case 80:if(!(g=ien(this,i)))throw M(new De($e((Ie(),XK))));Ow(d,g),r=!0;break;default:i=this.cm()}else if(20==v){if((f=A3(this.i,58,this.d))<0)throw M(new De($e((Ie(),oun))));if(h=!0,94==Gi(this.i,this.d)&&(++this.d,h=!1),!(l=yNn(Xo(this.i,this.d,f),h,512==(512&this.e))))throw M(new De($e((Ie(),HVn))));if(Ow(d,l),r=!0,f+1>=this.j||93!=Gi(this.i,f+1))throw M(new De($e((Ie(),oun))));this.d=f+2}if(Ye(this),!r)if(0!=this.c||45!=this.a)Kc(d,i,i);else{if(Ye(this),1==(v=this.c))throw M(new De($e((Ie(),fP))));0==v&&93==this.a?(Kc(d,i,i),Kc(d,45,45)):(a=this.a,10==v&&(a=this.cm()),Ye(this),Kc(d,i,a))}(this.e&Qs)==Qs&&0==this.c&&44==this.a&&Ye(this)}if(1==this.c)throw M(new De($e((Ie(),fP))));return t&&(l8(t,d),d=t),u2(d),f8(d),this.b=0,Ye(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);7!=(r=this.c);){if(e=this.a,(0!=r||45!=e&&38!=e)&&4!=r)throw M(new De($e((Ie(),GVn))));if(Ye(this),9!=this.c)throw M(new De($e((Ie(),UVn))));if(t=this.em(!1),4==r)Ow(i,t);else if(45==e)l8(i,t);else{if(38!=e)throw M(new ic("ASSERT"));SGn(i,t)}}return Ye(this),i},o.gm=function(){var e,t;return e=this.a-48,Ze(),Ze(),t=new n$(12,null,e),!this.g&&(this.g=new iC),tC(this.g,new oz(e)),Ye(this),t},o.hm=function(){return Ye(this),Ze(),Pse},o.im=function(){return Ye(this),Ze(),Sse},o.jm=function(){throw M(new De($e((Ie(),os))))},o.km=function(){throw M(new De($e((Ie(),os))))},o.lm=function(){return Ye(this),g6e()},o.mm=function(){return Ye(this),Ze(),Ose},o.nm=function(){return Ye(this),Ze(),Dse},o.om=function(){var e;if(this.d>=this.j||64!=(65504&(e=Gi(this.i,this.d++))))throw M(new De($e((Ie(),RVn))));return Ye(this),Ze(),Ze(),new Hh(0,e-64)},o.pm=function(){return Ye(this),function mPe(){var n,e,t,i,r,c;if(Ze(),iG)return iG;for(Ow(n=new Co(4),ya(o_,!0)),l8(n,ya("M",!0)),l8(n,ya("C",!0)),c=new Co(4),i=0;i<11;i++)Kc(c,i,i);return Ow(e=new Co(4),ya("M",!0)),Kc(e,4448,4607),Kc(e,65438,65439),Ld(r=new q6(2),n),Ld(r,t7),(t=new q6(2)).Jm(MM(c,ya("L",!0))),t.Jm(e),t=new JV(r,t=new sw(3,t)),iG=t}()},o.qm=function(){return Ye(this),Ze(),Nse},o.rm=function(){var e;return Ze(),Ze(),e=new Hh(0,105),Ye(this),e},o.sm=function(){return Ye(this),Ze(),Lse},o.tm=function(){return Ye(this),Ze(),Ise},o.um=function(e,t){return this.cm()},o.vm=function(){return Ye(this),Ze(),N0n},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw M(new De($e((Ie(),FVn))));if(r=-1,t=null,49<=(e=Gi(this.i,this.d))&&e<=57){if(r=e-48,!this.g&&(this.g=new iC),tC(this.g,new oz(r)),++this.d,41!=Gi(this.i,this.d))throw M(new De($e((Ie(),Hd))));++this.d}else switch(63==e&&--this.d,Ye(this),t=Itn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw M(new De($e((Ie(),Hd))));break;default:throw M(new De($e((Ie(),xVn))))}if(Ye(this),i=null,2==(c=Z0(this)).e){if(2!=c.Pm())throw M(new De($e((Ie(),BVn))));i=c.Lm(1),c=c.Lm(0)}if(7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),Ze(),Ze(),new t$n(r,t,c,i)},o.xm=function(){return Ye(this),Ze(),$0n},o.ym=function(){var e;if(Ye(this),e=NM(24,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.zm=function(){var e;if(Ye(this),e=NM(20,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Am=function(){var e;if(Ye(this),e=NM(22,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d=this.j)throw M(new De($e((Ie(),cun))));if(45==t){for(++this.d;this.d=this.j)throw M(new De($e((Ie(),cun))))}if(58==t){if(++this.d,Ye(this),r=QPn(Z0(this),e,i),7!=this.c)throw M(new De($e((Ie(),Hd))));Ye(this)}else{if(41!=t)throw M(new De($e((Ie(),$Vn))));++this.d,Ye(this),r=QPn(Z0(this),e,i)}return r},o.Cm=function(){var e;if(Ye(this),e=NM(21,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Dm=function(){var e;if(Ye(this),e=NM(23,Z0(this)),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Em=function(){var e,t;if(Ye(this),e=this.f++,t=SN(Z0(this),e),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),t},o.Fm=function(){var e;if(Ye(this),e=SN(Z0(this),0),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Gm=function(e){return Ye(this),5==this.c?(Ye(this),MM(e,(Ze(),Ze(),new sw(9,e)))):MM(e,(Ze(),Ze(),new sw(3,e)))},o.Hm=function(e){var t;return Ye(this),Ze(),Ze(),t=new q6(2),5==this.c?(Ye(this),Ld(t,t7),Ld(t,e)):(Ld(t,e),Ld(t,t7)),t},o.Im=function(e){return Ye(this),5==this.c?(Ye(this),Ze(),Ze(),new sw(9,e)):(Ze(),Ze(),new sw(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0,w(I1,"RegEx/RegexParser",836),b(1947,836,{},mjn),o.bm=function(e){return!1},o.cm=function(){return Ben(this)},o.dm=function(e){return H4(e)},o.em=function(e){return Ezn(this)},o.fm=function(){throw M(new De($e((Ie(),os))))},o.gm=function(){throw M(new De($e((Ie(),os))))},o.hm=function(){throw M(new De($e((Ie(),os))))},o.im=function(){throw M(new De($e((Ie(),os))))},o.jm=function(){return Ye(this),H4(67)},o.km=function(){return Ye(this),H4(73)},o.lm=function(){throw M(new De($e((Ie(),os))))},o.mm=function(){throw M(new De($e((Ie(),os))))},o.nm=function(){throw M(new De($e((Ie(),os))))},o.om=function(){return Ye(this),H4(99)},o.pm=function(){throw M(new De($e((Ie(),os))))},o.qm=function(){throw M(new De($e((Ie(),os))))},o.rm=function(){return Ye(this),H4(105)},o.sm=function(){throw M(new De($e((Ie(),os))))},o.tm=function(){throw M(new De($e((Ie(),os))))},o.um=function(e,t){return Ow(e,H4(t)),-1},o.vm=function(){return Ye(this),Ze(),Ze(),new Hh(0,94)},o.wm=function(){throw M(new De($e((Ie(),os))))},o.xm=function(){return Ye(this),Ze(),Ze(),new Hh(0,36)},o.ym=function(){throw M(new De($e((Ie(),os))))},o.zm=function(){throw M(new De($e((Ie(),os))))},o.Am=function(){throw M(new De($e((Ie(),os))))},o.Bm=function(){throw M(new De($e((Ie(),os))))},o.Cm=function(){throw M(new De($e((Ie(),os))))},o.Dm=function(){throw M(new De($e((Ie(),os))))},o.Em=function(){var e;if(Ye(this),e=SN(Z0(this),0),7!=this.c)throw M(new De($e((Ie(),Hd))));return Ye(this),e},o.Fm=function(){throw M(new De($e((Ie(),os))))},o.Gm=function(e){return Ye(this),MM(e,(Ze(),Ze(),new sw(3,e)))},o.Hm=function(e){var t;return Ye(this),Ze(),Ze(),Ld(t=new q6(2),e),Ld(t,t7),t},o.Im=function(e){return Ye(this),Ze(),Ze(),new sw(3,e)};var sv=null,t6=null;w(I1,"RegEx/ParserForXMLSchema",1947),b(122,1,pm,h0),o.Jm=function(e){throw M(new ic("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return 11==this.e?".":""},o.e=0;var O0n,i6,e7,Ase,L0n,WO,D0n,t7,N0n,$0n,F0n,x0n,B0n,Sse,t3,Pse,Ise,Ose,Lse,r6,Dse,Nse,$se,Va,mg=null,tG=null,iG=null,PNe=w(I1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},Co),o.Qm=function(e){var t,i,r;if(4==this.e)if(this==D0n)i=".";else if(this==WO)i="\\d";else if(this==r6)i="\\w";else if(this==t3)i="\\s";else{for((r=new e1).a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?jr(r,Iy(this.b[t])):(jr(r,Iy(this.b[t])),r.a+="-",jr(r,Iy(this.b[t+1])));r.a+="]",i=r.a}else if(this==F0n)i="\\D";else if(this==B0n)i="\\W";else if(this==x0n)i="\\S";else{for((r=new e1).a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?jr(r,Iy(this.b[t])):(jr(r,Iy(this.b[t])),r.a+="-",jr(r,Iy(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1,w(I1,"RegEx/RangeToken",138),b(592,1,{592:1},oz),o.a=0,w(I1,"RegEx/RegexParser/ReferencePosition",592),b(591,1,{3:1,591:1},NEn),o.Fb=function(e){var t;return!(null==e||!L(e,591))&&(t=u(e,591),Tn(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return w1(this.b+"/"+Oen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0,w(I1,"RegEx/RegularExpression",591),b(228,122,pm,Hh),o.Km=function(){return this.a},o.Qm=function(e){var i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+iN(this.a&ri);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:r=this.a>=sr?"\\v"+Xo(i="0"+(this.a>>>0).toString(16),i.length-6,i.length):""+iN(this.a&ri)}break;case 8:r=this==N0n||this==$0n?""+iN(this.a&ri):"\\"+iN(this.a&ri);break;default:r=null}return r},o.a=0,w(I1,"RegEx/Token/CharToken",228),b(318,122,pm,sw),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(3==this.e)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else{if(!(this.c>=0&&this.b<0))throw M(new ic("Token#toString(): CLOSURE "+this.c+cr+this.b));t=this.a.Qm(e)+"{"+this.c+",}"}else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else{if(!(this.c>=0&&this.b<0))throw M(new ic("Token#toString(): NONGREEDYCLOSURE "+this.c+cr+this.b));t=this.a.Qm(e)+"{"+this.c+",}?"}return t},o.b=0,o.c=0,w(I1,"RegEx/Token/ClosureToken",318),b(837,122,pm,JV),o.Lm=function(e){return 0==e?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){return 3==this.b.e&&this.b.Lm(0)==this.a?this.a.Qm(e)+"+":9==this.b.e&&this.b.Lm(0)==this.a?this.a.Qm(e)+"+?":this.a.Qm(e)+""+this.b.Qm(e)},w(I1,"RegEx/Token/ConcatToken",837),b(1945,122,pm,t$n),o.Lm=function(e){if(0==e)return this.d;if(1==e)return this.b;throw M(new ic("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){return(this.c>0?"(?("+this.c+")":8==this.a.e?"(?("+this.a+")":"(?"+this.a)+(this.b?this.d+"|"+this.b+")":this.d+")")},o.c=0,w(I1,"RegEx/Token/ConditionToken",1945),b(1946,122,pm,zOn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(0==this.a?"":Oen(this.a))+(0==this.c?"":Oen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0,w(I1,"RegEx/Token/ModifierToken",1946),b(838,122,pm,uJ),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:t=0==this.b?"(?:"+this.a.Qm(e)+")":"("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?"+this.a.Qm(e)+")"}return t},o.b=0,w(I1,"RegEx/Token/ParenToken",838),b(530,122,{3:1,122:1,530:1},n$),o.Mm=function(){return this.b},o.Qm=function(e){return 12==this.e?"\\"+this.a:function lMe(n){var e,t,i,r;for(r=n.length,e=null,i=0;i=0?(e||(e=new p6,i>0&&jr(e,($i(0,i,n.length),n.substr(0,i)))),e.a+="\\",B3(e,t&ri)):e&&B3(e,t&ri);return e?e.a:n}(this.b)},o.a=0,w(I1,"RegEx/Token/StringToken",530),b(477,122,pm,q6),o.Jm=function(e){Ld(this,e)},o.Lm=function(e){return u($0(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(1==this.e){if(2==this.a.a.c.length)t=u($0(this.a,0),122),c=3==(i=u($0(this.a,1),122)).e&&i.Lm(0)==t?t.Qm(e)+"+":9==i.e&&i.Lm(0)==t?t.Qm(e)+"+?":t.Qm(e)+""+i.Qm(e);else{for(s=new e1,r=0;r=n.c.b:n.a<=n.c.b))throw M(new tc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}(this)},o.Ub=function(){return function P3e(n){if(n.b<=0)throw M(new tc);return--n.b,n.a-=n.c.c,Y(n.a)}(this)},o.Wb=function(e){u(e,17),function Vle(){throw M(new Zl(tQn))}()},o.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw M(new Zl(iQn))},o.a=0,o.b=0,w(Tun,"ExclusiveRange/RangeIterator",258);var ds=R3(hP,"C"),ye=R3(B8,"I"),fo=R3(vp,"Z"),Ja=R3(R8,"J"),Ku=R3($8,"B"),Ai=R3(F8,"D"),kg=R3(x8,"F"),fv=R3(K8,"S"),INe=Ot("org.eclipse.elk.core.labels","ILabelManager"),R0n=Ot(ur,"DiagnosticChain"),K0n=Ot(OJn,"ResourceSet"),_0n=w(ur,"InvocationTargetException",null),Fse=(oC(),function Upe(n){return oC(),function(){return $ve(n,this,arguments)}}),xse=xse=function $ke(n,e,t,i){$En();var r=f_;function c(){for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function Xr(xr,Lt){if(!(xr instanceof Lt))throw new TypeError("Cannot call a class as a function")}(this,Lt);var lc=Object.assign({},xi),bu=!1;try{Za.resolve("web-worker"),bu=!0}catch{}if(xi.workerUrl)if(bu){var Jl=Za("web-worker");lc.workerFactory=function(Vn){return new Jl(Vn)}}else console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.");if(!lc.workerFactory){var bl=Za("./elk-worker.min.js").Worker;lc.workerFactory=function(Vn){return new bl(Vn)}}return function y(xr,Lt){if(!xr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Lt||"object"!=typeof Lt&&"function"!=typeof Lt?xr:Lt}(this,(Lt.__proto__||Object.getPrototypeOf(Lt)).call(this,lc))}return function av(xr,Lt){if("function"!=typeof Lt&&null!==Lt)throw new TypeError("Super expression must either be null or a function, not "+typeof Lt);xr.prototype=Object.create(Lt&&Lt.prototype,{constructor:{value:xr,enumerable:!1,writable:!0,configurable:!0}}),Lt&&(Object.setPrototypeOf?Object.setPrototypeOf(xr,Lt):xr.__proto__=Lt)}(Lt,xr),Lt}(Za("./elk-api.js").default);Object.defineProperty(ho.exports,"__esModule",{value:!0}),ho.exports=du,du.default=du},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(Za,ho,uh){ho.exports=Worker},{}]},{},[3])(3)},1687:(q0n,NE,Ya)=>{"use strict";Ya.r(NE),Ya.d(NE,{diagram:()=>Hb});var VO=Ya(5861),Za=Ya(3070),ho=Ya(8586),uh=Ya(1196),Xr=Ya(8080),y=Ya(7942);Ya(1764),Ya(6780),Ya(2735);const Lt=new y;let xi={};const lc={};let bu={};const Jl=function(){var N=(0,VO.Z)(function*(xt,Gt,Si,lr,er,lo,Wt){const nc=Si.select(`[id="${Gt}"]`).insert("g").attr("class","nodes"),_o=Object.keys(xt);return yield Promise.all(_o.map(function(){var nd=(0,VO.Z)(function*(z1){const ec=xt[z1];let zt="default";ec.classes.length>0&&(zt=ec.classes.join(" ")),zt+=" flowchart-label";const X1=(0,Xr.k)(ec.styles);let gl=void 0!==ec.text?ec.text:ec.id;const bs={width:0,height:0},W1=[{id:ec.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:ec.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:ec.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:ec.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Ql=0,wu="",dv={};switch(ec.type){case"round":Ql=5,wu="rect";break;case"square":case"group":default:wu="rect";break;case"diamond":wu="question",dv={portConstraints:"FIXED_SIDE"};break;case"hexagon":wu="hexagon";break;case"odd":case"odd_right":wu="rect_left_inv_arrow";break;case"lean_right":wu="lean_right";break;case"lean_left":wu="lean_left";break;case"trapezoid":wu="trapezoid";break;case"inv_trapezoid":wu="inv_trapezoid";break;case"circle":wu="circle";break;case"ellipse":wu="ellipse";break;case"stadium":wu="stadium";break;case"subroutine":wu="subroutine";break;case"cylinder":wu="cylinder";break;case"doublecircle":wu="doublecircle"}const Br={labelStyle:X1.labelStyle,shape:wu,labelText:gl,labelType:ec.labelType,rx:Ql,ry:Ql,class:zt,style:X1.style,id:ec.id,link:ec.link,linkTarget:ec.linkTarget,tooltip:er.db.getTooltip(ec.id)||"",domId:er.db.lookUpDomId(ec.id),haveCallback:ec.haveCallback,width:"group"===ec.type?500:void 0,dir:ec.dir,type:ec.type,props:ec.props,padding:(0,Xr.F)().flowchart.padding};let yc,Rh;if("group"!==Br.type)Rh=yield(0,uh.e)(nc,Br,ec.dir),yc=Rh.node().getBBox();else{lr.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:Yl,bbox:xE}=yield(0,uh.l)(nc,Br,void 0,!0);bs.width=xE.width,bs.wrappingWidth=(0,Xr.F)().flowchart.wrappingWidth,bs.height=xE.height,bs.labelNode=Yl.node(),Br.labelData=bs}const Fs={id:ec.id,ports:"diamond"===ec.type?W1:[],layoutOptions:dv,labelText:gl,labelData:bs,domId:er.db.lookUpDomId(ec.id),width:yc?.width,height:yc?.height,type:ec.type,el:Rh,parent:lo.parentById[ec.id]};bu[Br.id]=Fs});return function(z1){return nd.apply(this,arguments)}}())),Wt});return function(Gt,Si,lr,er,lo,Wt,wl){return N.apply(this,arguments)}}(),Bh=(N,xt,Gt)=>{const Si={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return Si.TD=Si.TB,Si[Gt][xt][N]},bl=(N,xt,Gt)=>{if(Xr.l.info("getNextPort",{node:N,edgeDirection:xt,graphDirection:Gt}),!xi[N])switch(Gt){case"TB":case"TD":xi[N]={inPosition:"north",outPosition:"south"};break;case"BT":xi[N]={inPosition:"south",outPosition:"north"};break;case"RL":xi[N]={inPosition:"east",outPosition:"west"};break;case"LR":xi[N]={inPosition:"west",outPosition:"east"}}const Si="in"===xt?xi[N].inPosition:xi[N].outPosition;return"in"===xt?xi[N].inPosition=Bh(xi[N].inPosition,xt,Gt):xi[N].outPosition=Bh(xi[N].outPosition,xt,Gt),Si},YO=function(N,xt,Gt,Si,lr,er){const lo=function(N,xt,Gt){const Si=((N,xt,Gt)=>{const{parentById:Si}=Gt,lr=new Set;let er=N;for(;er;){if(lr.add(er),er===xt)return er;er=Si[er]}for(er=xt;er;){if(lr.has(er))return er;er=Si[er]}return"root"})(N,xt,Gt);if(void 0===Si||"root"===Si)return{x:0,y:0};const lr=bu[Si].offset;return{x:lr.posX,y:lr.posY}}(xt.sourceId,xt.targetId,lr),Wt=xt.sections[0].startPoint,wl=xt.sections[0].endPoint,_o=(xt.sections[0].bendPoints?xt.sections[0].bendPoints:[]).map(Ql=>[Ql.x+lo.x,Ql.y+lo.y]),nd=[[Wt.x+lo.x,Wt.y+lo.y],..._o,[wl.x+lo.x,wl.y+lo.y]],{x:z1,y:ec}=(0,uh.k)(xt.edgeData),zt=(0,ho.jvg)().x(z1).y(ec).curve(ho.c_6),X1=N.insert("path").attr("d",zt(nd)).attr("class","path "+Gt.classes).attr("fill","none"),gl=N.insert("g").attr("class","edgeLabel"),bs=(0,ho.Ys)(gl.node().appendChild(xt.labelEl)),W1=bs.node().firstChild.getBoundingClientRect();bs.attr("width",W1.width),bs.attr("height",W1.height),gl.attr("transform",`translate(${xt.labels[0].x+lo.x}, ${xt.labels[0].y+lo.y})`),function(N,xt,Gt,Si,lr){let er="";Si&&(er=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,er=er.replace(/\(/g,"\\("),er=er.replace(/\)/g,"\\)")),(0,uh.m)(N,xt,er,lr,Gt)}(X1,Gt,Si.type,Si.arrowMarkerAbsolute,er)},$E=(N,xt)=>{N.forEach(Gt=>{Gt.children||(Gt.children=[]);const Si=xt.childrenById[Gt.id];Si&&Si.forEach(lr=>{Gt.children.push(bu[lr])}),$E(Gt.children,xt)})},ZO=function(){var N=(0,VO.Z)(function*(xt,Gt,Si,lr){var er;lr.db.clear(),bu={},xi={},lr.db.setGen("gen-2"),lr.parser.parse(xt);const lo=(0,ho.Ys)("body").append("div").attr("style","height:400px").attr("id","cy");let Wt={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Xr.l.info("Drawing flowchart using v3 renderer",Lt),lr.db.getDirection()){case"BT":Wt.layoutOptions["elk.direction"]="UP";break;case"TB":Wt.layoutOptions["elk.direction"]="DOWN";break;case"LR":Wt.layoutOptions["elk.direction"]="RIGHT";break;case"RL":Wt.layoutOptions["elk.direction"]="LEFT"}const{securityLevel:nc,flowchart:_o}=(0,Xr.F)();let nd;"sandbox"===nc&&(nd=(0,ho.Ys)("#i"+Gt));const z1=(0,ho.Ys)("sandbox"===nc?nd.nodes()[0].contentDocument.body:"body"),ec="sandbox"===nc?nd.nodes()[0].contentDocument:document,zt=z1.select(`[id="${Gt}"]`);(0,uh.a)(zt,["point","circle","cross"],lr.type,Gt);const gl=lr.db.getVertices();let bs;const W1=lr.db.getSubGraphs();Xr.l.info("Subgraphs - ",W1);for(let Fs=W1.length-1;Fs>=0;Fs--)bs=W1[Fs],lr.db.addVertex(bs.id,{text:bs.title,type:bs.labelType},"group",void 0,bs.classes,bs.dir);const Ql=zt.insert("g").attr("class","subgraphs"),wu=function(N){const xt={parentById:{},childrenById:{}},Gt=N.getSubGraphs();return Xr.l.info("Subgraphs - ",Gt),Gt.forEach(function(Si){Si.nodes.forEach(function(lr){xt.parentById[lr]=Si.id,void 0===xt.childrenById[Si.id]&&(xt.childrenById[Si.id]=[]),xt.childrenById[Si.id].push(lr)})}),Gt.forEach(function(Si){}),xt}(lr.db);Wt=yield Jl(gl,Gt,z1,ec,lr,wu,Wt);const dv=zt.insert("g").attr("class","edges edgePath"),Br=lr.db.getEdges();Wt=function(N,xt,Gt,Si){Xr.l.info("abc78 edges = ",N);const lr=Si.insert("g").attr("class","edgeLabels");let Wt,wl,er={},lo=xt.db.getDirection();if(void 0!==N.defaultStyle){const nc=(0,Xr.k)(N.defaultStyle);Wt=nc.style,wl=nc.labelStyle}return N.forEach(function(nc){const _o="L-"+nc.start+"-"+nc.end;void 0===er[_o]?(er[_o]=0,Xr.l.info("abc78 new entry",_o,er[_o])):(er[_o]++,Xr.l.info("abc78 new entry",_o,er[_o]));let nd=_o+"-"+er[_o];Xr.l.info("abc78 new link id to be used is",_o,nd,er[_o]);const z1="LS-"+nc.start,ec="LE-"+nc.end,zt={style:"",labelStyle:""};switch(zt.minlen=nc.length||1,zt.arrowhead="arrow_open"===nc.type?"none":"normal",zt.arrowTypeStart="arrow_open",zt.arrowTypeEnd="arrow_open",nc.type){case"double_arrow_cross":zt.arrowTypeStart="arrow_cross";case"arrow_cross":zt.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":zt.arrowTypeStart="arrow_point";case"arrow_point":zt.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":zt.arrowTypeStart="arrow_circle";case"arrow_circle":zt.arrowTypeEnd="arrow_circle"}let X1="",gl="";switch(nc.stroke){case"normal":X1="fill:none;",void 0!==Wt&&(X1=Wt),void 0!==wl&&(gl=wl),zt.thickness="normal",zt.pattern="solid";break;case"dotted":zt.thickness="normal",zt.pattern="dotted",zt.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":zt.thickness="thick",zt.pattern="solid",zt.style="stroke-width: 3.5px;fill:none;"}if(void 0!==nc.style){const Br=(0,Xr.k)(nc.style);X1=Br.style,gl=Br.labelStyle}zt.style=zt.style+=X1,zt.labelStyle=zt.labelStyle+=gl,zt.curve=(0,Xr.n)(void 0!==nc.interpolate?nc.interpolate:void 0!==N.defaultInterpolate?N.defaultInterpolate:lc.curve,ho.c_6),void 0===nc.text?void 0!==nc.style&&(zt.arrowheadStyle="fill: #333"):(zt.arrowheadStyle="fill: #333",zt.labelpos="c"),zt.labelType=nc.labelType,zt.label=nc.text.replace(Xr.e.lineBreakRegex,"\n"),void 0===nc.style&&(zt.style=zt.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),zt.labelStyle=zt.labelStyle.replace("color:","fill:"),zt.id=nd,zt.classes="flowchart-link "+z1+" "+ec;const bs=(0,uh.f)(lr,zt),{source:W1,target:Ql,sourceId:wu,targetId:dv}=((N,xt)=>{let Gt=N.start,Si=N.end;const lr=Gt,er=Si,lo=bu[Gt],Wt=bu[Si];return lo&&Wt?("diamond"===lo.type&&(Gt=`${Gt}-${bl(Gt,"out",xt)}`),"diamond"===Wt.type&&(Si=`${Si}-${bl(Si,"in",xt)}`),{source:Gt,target:Si,sourceId:lr,targetId:er}):{source:Gt,target:Si}})(nc,lo);Xr.l.debug("abc78 source and target",W1,Ql),Gt.edges.push({id:"e"+nc.start+nc.end,sources:[W1],targets:[Ql],sourceId:wu,targetId:dv,labelEl:bs,labels:[{width:zt.width,height:zt.height,orgWidth:zt.width,orgHeight:zt.height,text:zt.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:zt})}),Gt}(Br,lr,Wt,zt),Object.keys(bu).forEach(Fs=>{const Yl=bu[Fs];Yl.parent||Wt.children.push(Yl),void 0!==wu.childrenById[Fs]&&(Yl.labels=[{text:Yl.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:Yl.labelData.width,height:Yl.labelData.height}],delete Yl.x,delete Yl.y,delete Yl.width,delete Yl.height)}),$E(Wt.children,wu),Xr.l.info("after layout",JSON.stringify(Wt,null,2));const Rh=yield Lt.layout(Wt);FE(0,0,Rh.children,zt,Ql,lr,0),Xr.l.info("after layout",Rh),null==(er=Rh.edges)||er.map(Fs=>{YO(dv,Fs,Fs.edgeData,lr,wu,Gt)}),(0,Xr.o)({},zt,_o.diagramPadding,_o.useMaxWidth),lo.remove()});return function(Gt,Si,lr,er){return N.apply(this,arguments)}}(),FE=(N,xt,Gt,Si,lr,er,lo)=>{Gt.forEach(function(Wt){if(Wt)if(bu[Wt.id].offset={posX:Wt.x+N,posY:Wt.y+xt,x:N,y:xt,depth:lo,width:Wt.width,height:Wt.height},"group"===Wt.type){const wl=lr.insert("g").attr("class","subgraph");wl.insert("rect").attr("class","subgraph subgraph-lvl-"+lo%5+" node").attr("x",Wt.x+N).attr("y",Wt.y+xt).attr("width",Wt.width).attr("height",Wt.height);const nc=wl.insert("g").attr("class","label"),_o=(0,Xr.F)().flowchart.htmlLabels?Wt.labelData.width/2:0;nc.attr("transform",`translate(${Wt.labels[0].x+N+Wt.x+_o}, ${Wt.labels[0].y+xt+Wt.y+3})`),nc.node().appendChild(Wt.labelData.labelNode),Xr.l.info("Id (UGH)= ",Wt.type,Wt.labels)}else Xr.l.info("Id (UGH)= ",Wt.id),Wt.el.attr("transform",`translate(${Wt.x+N+Wt.width/2}, ${Wt.y+xt+Wt.height/2})`)}),Gt.forEach(function(Wt){Wt&&"group"===Wt.type&&FE(N+Wt.x,xt+Wt.y,Wt.children,Si,lr,er,lo+1)})},Hb={db:Za.d,renderer:{getClasses:function(N,xt){return Xr.l.info("Extracting classes"),xt.db.getClasses()},draw:ZO},parser:Za.p,styles:N=>`.label {\n font-family: ${N.fontFamily};\n color: ${N.nodeTextColor||N.textColor};\n }\n .cluster-label text {\n fill: ${N.titleColor};\n }\n .cluster-label span {\n color: ${N.titleColor};\n }\n\n .label text,span {\n fill: ${N.nodeTextColor||N.textColor};\n color: ${N.nodeTextColor||N.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${N.mainBkg};\n stroke: ${N.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${N.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${N.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${N.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${N.edgeLabelBackground};\n rect {\n opacity: 0.85;\n background-color: ${N.edgeLabelBackground};\n fill: ${N.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${N.clusterBkg};\n stroke: ${N.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${N.titleColor};\n }\n\n .cluster span {\n color: ${N.titleColor};\n }\n /* .cluster div {\n color: ${N.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${N.fontFamily};\n font-size: 12px;\n background: ${N.tertiaryColor};\n border: 1px solid ${N.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${N.textColor};\n }\n .subgraph {\n stroke-width:2;\n rx:3;\n }\n // .subgraph-lvl-1 {\n // fill:#ccc;\n // // stroke:black;\n // }\n\n .flowchart-label text {\n text-anchor: middle;\n }\n\n ${(N=>{let xt="";for(let Gt=0;Gt<5;Gt++)xt+=`\n .subgraph-lvl-${Gt} {\n fill: ${N[`surface${Gt}`]};\n stroke: ${N[`surfacePeer${Gt}`]};\n }\n `;return xt})(N)}\n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/70.20b5cf127910a277.js b/pkg/apiserver-impl/ui/70.20b5cf127910a277.js new file mode 100644 index 0000000000..e76be5f7e0 --- /dev/null +++ b/pkg/apiserver-impl/ui/70.20b5cf127910a277.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[70],{3070:(Pe,_e,nt)=>{nt.d(_e,{d:()=>Le,f:()=>Xt,p:()=>Ce});var R1=nt(8586),C=nt(8080),rt=function(){var e=function(p1,a,o,f){for(o=o||{},f=p1.length;f--;o[p1[f]]=a);return o},u=[1,4],i=[1,3],r=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],M=[1,14],F=[1,15],w=[1,16],H=[1,23],l1=[1,25],A1=[1,26],d1=[1,27],S=[1,49],k=[1,48],h1=[1,29],W1=[1,30],H1=[1,31],Q1=[1,32],q1=[1,33],x=[1,44],m=[1,46],y=[1,42],v=[1,47],V=[1,43],L=[1,50],I=[1,45],R=[1,51],N=[1,52],Z1=[1,34],J1=[1,35],$1=[1,36],tt=[1,37],w1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Z=[1,61],J=[1,60],$=[1,62],et=[8,9,11,73,75],D1=[1,88],F1=[1,93],T1=[1,92],_1=[1,89],C1=[1,85],S1=[1,91],B1=[1,87],x1=[1,94],m1=[1,90],y1=[1,95],v1=[1,86],st=[8,9,10,11,73,75],O=[8,9,10,11,44,73,75],K=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Wt=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],P1=[42,58,86,99,102,103,106,108,111,112,113],Ht=[1,121],Qt=[1,120],qt=[1,128],Zt=[1,142],Jt=[1,143],$t=[1,144],te=[1,145],ee=[1,130],se=[1,132],ue=[1,136],ie=[1,137],ne=[1,138],re=[1,139],ae=[1,140],ce=[1,141],oe=[1,146],le=[1,147],he=[1,126],fe=[1,127],pe=[1,134],Ae=[1,129],de=[1,133],Ee=[1,131],ct=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ke=[1,149],T=[8,9,11],Y=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],P=[1,165],U=[1,166],A=[1,170],d=[1,167],E=[1,168],V1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],be=[10,103],f1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],t1=[1,235],e1=[1,233],s1=[1,237],u1=[1,231],i1=[1,232],n1=[1,234],r1=[1,236],a1=[1,238],L1=[1,255],ge=[8,9,11,103],Q=[8,9,10,11,58,81,102,103,106,107,108,109],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,n,_,t,U1){var s=t.length-1;switch(_){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:case 49:case 71:case 174:this.$=t[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 33:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:case 121:case 123:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 50:this.$=t[s-2],n.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],n.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 72:var z=n.destructLink(t[s],t[s-2]);this.$={type:z.type,stroke:z.stroke,length:z.length,text:t[s-1]};break;case 73:case 79:case 94:case 96:this.$={text:t[s],type:"text"};break;case 74:case 80:case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:case 81:this.$={text:t[s],type:"string"};break;case 76:case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 77:z=n.destructLink(t[s]),this.$={type:z.type,stroke:z.stroke,length:z.length};break;case 78:this.$=t[s-1];break;case 98:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],n.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],n.setLink(t[s-4],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],n.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],n.setLink(t[s-6],t[s-4],t[s]),n.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 175:case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,9:u,10:i,12:r},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:r},{4:8,9:u,10:i,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:w1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:Z,9:J,11:$,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Z,9:J,11:$,21:66},{8:Z,9:J,11:$,21:67},{8:Z,9:J,11:$,21:68},{8:Z,9:J,11:$,21:69},{8:Z,9:J,11:$,21:70},{8:Z,9:J,10:[1,71],11:$,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(et,[2,46],{18:75,10:w1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:D1,42:F1,58:T1,77:[1,83],86:_1,92:[1,80],94:[1,81],98:82,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(st,[2,47]),e(st,[2,49],{44:[1,96]}),e(O,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:m,102:y,103:v,106:V,108:L,111:I,112:R,113:N}),e(K,[2,174]),e(K,[2,135]),e(K,[2,136]),e(K,[2,137]),e(K,[2,138]),e(K,[2,139]),e(K,[2,140]),e(K,[2,141]),e(K,[2,142]),e(K,[2,143]),e(K,[2,144]),e(K,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Wt,[2,26],{18:111,10:w1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(P1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:Ht,116:Qt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:qt,12:Zt,14:Jt,27:$t,28:122,32:te,42:ee,58:se,73:ue,77:[1,124],78:[1,125],80:135,81:ie,82:ne,83:re,84:ae,85:ce,86:oe,87:le,88:123,102:he,106:fe,108:pe,111:Ae,112:de,113:Ee},e(ct,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(et,[2,45],{42:ke}),{42:S,45:150,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{42:S,45:155,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:D1,42:F1,58:T1,86:_1,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1}),e(T,[2,110],{10:[1,161]}),e(Y,[2,176]),e(Y,[2,163]),e(Y,[2,164]),e(Y,[2,165]),e(Y,[2,166]),e(Y,[2,167]),e(Y,[2,168]),e(Y,[2,169]),e(Y,[2,170]),e(Y,[2,171]),e(Y,[2,172]),e(Y,[2,173]),{42:S,45:162,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{30:163,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:171,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:174,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:175,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:176,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:181,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:182,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:183,65:p,77:P,78:U,79:164,113:A,114:d,115:E},e(K,[2,175]),e(c,[2,20]),e(Wt,[2,25]),e(et,[2,43],{18:184,10:w1}),e(P1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:Ht,116:Qt},e(V1,[2,73]),e(V1,[2,75]),e(V1,[2,76]),e(V1,[2,161]),e(V1,[2,162]),{8:Z,9:J,10:qt,11:$,12:Zt,14:Jt,21:191,27:$t,29:[1,190],32:te,42:ee,58:se,73:ue,80:135,81:ie,82:ne,83:re,84:ae,85:ce,86:oe,87:le,88:192,102:he,106:fe,108:pe,111:Ae,112:de,113:Ee},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},{10:w1,18:194},{10:[1,195],42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:109,111:I,112:R,113:N},{10:[1,196]},{10:[1,197],103:[1,198]},e(be,[2,121]),{10:[1,199],42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:109,111:I,112:R,113:N},{10:[1,200],42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:109,111:I,112:R,113:N},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(Y,[2,177]),{77:[1,205],95:[1,206]},e(st,[2,50],{110:109,42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,111:I,112:R,113:N}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(f1,[2,79]),e(f1,[2,81]),e(f1,[2,82]),e(f1,[2,146]),e(f1,[2,147]),e(f1,[2,148]),e(f1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(et,[2,44],{42:ke}),e(P1,[2,70]),e(P1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(P1,[2,72]),e(V1,[2,74]),{30:225,65:p,77:P,78:U,79:164,113:A,114:d,115:E},e(ct,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{10:t1,58:e1,81:s1,89:228,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{10:t1,58:e1,81:s1,89:239,101:[1,240],102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{10:t1,58:e1,81:s1,89:241,101:[1,242],102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{102:[1,243]},{10:t1,58:e1,81:s1,89:244,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{42:S,45:245,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(O,[2,51]),e(f1,[2,80]),e(O,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(O,[2,59]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),{106:[1,251]},e(O,[2,58]),e(O,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(O,[2,62]),e(O,[2,63]),e(O,[2,65]),e(O,[2,64]),e(O,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},e(st,[2,48]),e(T,[2,114],{103:L1}),e(ge,[2,123],{105:256,10:t1,58:e1,81:s1,102:u1,106:i1,107:n1,108:r1,109:a1}),e(Q,[2,125]),e(Q,[2,127]),e(Q,[2,128]),e(Q,[2,129]),e(Q,[2,130]),e(Q,[2,131]),e(Q,[2,132]),e(Q,[2,133]),e(Q,[2,134]),e(T,[2,115],{103:L1}),{10:[1,257]},e(T,[2,116],{103:L1}),{10:[1,258]},e(be,[2,122]),e(T,[2,98],{103:L1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,111:I,112:R,113:N}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Z,9:J,11:$,21:264},e(b,[2,34]),{10:t1,58:e1,81:s1,102:u1,104:265,105:230,106:i1,107:n1,108:r1,109:a1},e(Q,[2,126]),{14:D1,42:F1,58:T1,86:_1,98:266,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1,117:84},{14:D1,42:F1,58:T1,86:_1,98:267,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1,117:84},{95:[1,268]},e(T,[2,113]),e(O,[2,53]),{30:269,65:p,77:P,78:U,79:164,113:A,114:d,115:E},e(O,[2,61]),e(ct,l,{5:270}),e(ge,[2,124],{105:256,10:t1,58:e1,81:s1,102:u1,106:i1,107:n1,108:r1,109:a1}),e(T,[2,119],{117:160,10:[1,271],14:D1,42:F1,58:T1,86:_1,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1}),e(T,[2,120],{117:160,10:[1,272],14:D1,42:F1,58:T1,86:_1,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},{10:t1,58:e1,81:s1,89:275,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{10:t1,58:e1,81:s1,89:276,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},e(O,[2,57]),e(b,[2,33]),e(T,[2,117],{103:L1}),e(T,[2,118],{103:L1})],defaultActions:{},parseError:function(a,o){if(!o.recoverable){var f=new Error(a);throw f.hash=o,f}this.trace(a)},parse:function(a){var f=[0],n=[],_=[null],t=[],U1=this.table,s="",z=0,De=0,Ne=t.slice.call(arguments,1),B=Object.create(this.lexer),E1={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(E1.yy[ht]=this.yy[ht]);B.setInput(a,E1.yy),E1.yy.lexer=B,E1.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var ft=B.yylloc;t.push(ft);var o1,Oe=B.options&&B.options.ranges;this.parseError="function"==typeof E1.yy.parseError?E1.yy.parseError:Object.getPrototypeOf(this).parseError;for(var G,k1,X,pt,ut,c1,it,I1={};;){if(this.defaultActions[k1=f[f.length-1]]?X=this.defaultActions[k1]:((null===G||typeof G>"u")&&(o1=void 0,"number"!=typeof(o1=n.pop()||B.lex()||1)&&(o1 instanceof Array&&(o1=(n=o1).pop()),o1=this.symbols_[o1]||o1),G=o1),X=U1[k1]&&U1[k1][G]),typeof X>"u"||!X.length||!X[0]){var At;for(ut in it=[],U1[k1])this.terminals_[ut]&&ut>2&&it.push("'"+this.terminals_[ut]+"'");At=B.showPosition?"Parse error on line "+(z+1)+":\n"+B.showPosition()+"\nExpecting "+it.join(", ")+", got '"+(this.terminals_[G]||G)+"'":"Parse error on line "+(z+1)+": Unexpected "+(1==G?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(At,{text:B.match,token:this.terminals_[G]||G,line:B.yylineno,loc:ft,expected:it})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k1+", token: "+G);switch(X[0]){case 1:f.push(G),_.push(B.yytext),t.push(B.yylloc),f.push(X[1]),G=null,De=B.yyleng,s=B.yytext,z=B.yylineno,ft=B.yylloc;break;case 2:if(I1.$=_[_.length-(c1=this.productions_[X[1]][1])],I1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Oe&&(I1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),typeof(pt=this.performAction.apply(I1,[s,De,z,E1.yy,X[1],_,t].concat(Ne)))<"u")return pt;c1&&(f=f.slice(0,-1*c1*2),_=_.slice(0,-1*c1),t=t.slice(0,-1*c1)),f.push(this.productions_[X[1]][0]),_.push(I1.$),t.push(I1._$),f.push(U1[f[f.length-2]][f[f.length-1]]);break;case 3:return!0}}return!0}};function lt(){this.yy={}}return ot.lexer={EOF:1,parseError:function(o,f){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,f)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var n=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),f.length-1&&(this.yylineno-=f.length-1);var _=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:f?(f.length===n.length?this.yylloc.first_column:0)+n[n.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+o+"^"},test_match:function(a,o){var f,n,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),(n=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var t in _)this[t]=_[t];return!1}return!1},next:function(){if(this.done)return this.EOF;var a,o,f,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),t=0;t<_.length;t++)if((f=this._input.match(this.rules[_[t]]))&&(!o||f[0].length>o[0].length)){if(o=f,n=t,this.options.backtrack_lexer){if(!1!==(a=this.test_match(f,_[t])))return a;if(this._backtrack){o=!1;continue}return!1}if(!this.options.flex)break}return o?!1!==(a=this.test_match(o,_[n]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return(o=this.conditionStack.length-1-Math.abs(o||0))>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,f,n,_){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 8:case 11:case 14:case 17:case 27:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 12:return 93;case 13:return"MD_STR";case 15:this.begin("md_string");break;case 16:return"STR";case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 28:return 85;case 29:case 30:case 31:return o.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:case 35:case 36:case 37:return 95;case 38:return this.popState(),13;case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:case 95:return 108;case 55:return 44;case 56:return 58;case 57:case 96:return 42;case 58:return 8;case 59:return 103;case 60:case 94:return 112;case 61:case 64:case 67:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:case 66:case 69:return 116;case 65:return this.pushState("thickEdgeText"),73;case 68:return this.pushState("dottedEdgeText"),73;case 70:return 75;case 71:return this.popState(),51;case 72:case 108:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}},lt.prototype=ot,ot.Parser=lt,new lt}();rt.parser=rt;const Ce=rt;let j,Y1,dt=0,b1=(0,C.c)(),D={},W=[],g1={},q=[],M1={},G1={},K1=0,at=!0,j1=[];const z1=e=>C.e.sanitizeText(e,b1),N1=function(e){const u=Object.keys(D);for(const i of u)if(D[i].id===e)return D[i].domId;return e},Et=function(e,u,i,r,c,l,h={}){let M,F=e;void 0!==F&&0!==F.trim().length&&(void 0===D[F]&&(D[F]={id:F,labelType:"text",domId:"flowchart-"+F+"-"+dt,styles:[],classes:[]}),dt++,void 0!==u?(b1=(0,C.c)(),M=z1(u.text.trim()),D[F].labelType=u.type,'"'===M[0]&&'"'===M[M.length-1]&&(M=M.substring(1,M.length-1)),D[F].text=M):void 0===D[F].text&&(D[F].text=e),void 0!==i&&(D[F].type=i),r?.forEach(function(w){D[F].styles.push(w)}),c?.forEach(function(w){D[F].classes.push(w)}),void 0!==l&&(D[F].dir=l),void 0===D[F].props?D[F].props=h:void 0!==h&&Object.assign(D[F].props,h))},kt=function(e,u,i){const l={start:e,end:u,type:void 0,text:"",labelType:"text"};C.l.info("abc78 Got edge...",l);const h=i.text;if(void 0!==h&&(l.text=z1(h.text.trim()),'"'===l.text[0]&&'"'===l.text[l.text.length-1]&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=h.type),void 0!==i&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length),l?.length>10&&(l.length=10),!(W.length<(b1.maxEdges??500)))throw new Error(`Edge limit exceeded. ${W.length} edges found, but the limit is ${b1.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);C.l.info("abc78 pushing edge..."),W.push(l)},bt=function(e,u,i){let r,c;for(C.l.info("addLink (abc78)",e,u,i),r=0;r=W.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${W.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===i?W.defaultStyle=u:(-1===C.u.isSubstringInArray("fill",u)&&u.push("fill:none"),W[i].style=u)})},Ft=function(e,u){e.split(",").forEach(function(i){void 0===g1[i]&&(g1[i]={id:i,styles:[],textStyles:[]}),u?.forEach(function(r){if(r.match("color")){const c=r.replace("fill","bgFill").replace("color","fill");g1[i].textStyles.push(c)}g1[i].styles.push(r)})})},Tt=function(e){j=e,j.match(/.*/)&&(j="LR"),j.match(/.*v/)&&(j="TB"),"TD"===j&&(j="TB")},X1=function(e,u){e.split(",").forEach(function(i){let r=i;void 0!==D[r]&&D[r].classes.push(u),void 0!==M1[r]&&M1[r].classes.push(u)})},_t=function(e,u,i){e.split(",").forEach(function(r){void 0!==D[r]&&(D[r].link=C.u.formatUrl(u,b1),D[r].linkTarget=i)}),X1(e,"clickable")},Ct=function(e){if(G1.hasOwnProperty(e))return G1[e]},St=function(e,u,i){e.split(",").forEach(function(r){!function(e,u,i){let r=N1(e);if("loose"!==(0,C.c)().securityLevel||void 0===u)return;let c=[];if("string"==typeof i){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),(0,R1.Ys)(this).classed("hover",!1)})};j1.push(Vt);const Lt=function(e="gen-1"){D={},g1={},W=[],j1=[Vt],q=[],M1={},K1=0,G1={},at=!0,Y1=e,b1=(0,C.c)(),(0,C.v)()},It=e=>{Y1=e||"gen-2"},Rt=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},Nt=function(e,u,i){let r=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(r=void 0);let h=[];const{nodeList:M,dir:F}=function l(H){const l1={boolean:{},number:{},string:{}},A1=[];let d1;return{nodeList:H.filter(function(k){const h1=typeof k;return k.stmt&&"dir"===k.stmt?(d1=k.value,!1):""!==k.trim()&&(h1 in l1?!l1[h1].hasOwnProperty(k)&&(l1[h1][k]=!0):!A1.includes(k)&&A1.push(k))}),dir:d1}}(h.concat.apply(h,u));if(h=M,"gen-1"===Y1)for(let H=0;H2e3)return;if(Ot[O1]=u,q[u].id===e)return{result:!0,count:0};let r=0,c=1;for(;r=0){const h=wt(e,l);if(h.result)return{result:!0,count:c+h.count};c+=h.count}r+=1}return{result:!1,count:c}},Pt=function(e){return Ot[e]},Ut=function(){O1=-1,q.length>0&&wt("none",q.length-1)},Mt=function(){return q},Gt=()=>!!at&&(at=!1,!0),Kt=(e,u)=>{const i=(e=>{const u=e.trim();let i=u.slice(0,-1),r="arrow_open";switch(u.slice(-1)){case"x":r="arrow_cross","x"===u[0]&&(r="double_"+r,i=i.slice(1));break;case">":r="arrow_point","<"===u[0]&&(r="double_"+r,i=i.slice(1));break;case"o":r="arrow_circle","o"===u[0]&&(r="double_"+r,i=i.slice(1))}let c="normal",l=i.length-1;"="===i[0]&&(c="thick"),"~"===i[0]&&(c="invisible");let h=((e,u)=>{const i=u.length;let r=0;for(let c=0;c{let u=e.trim(),i="arrow_open";switch(u[0]){case"<":i="arrow_point",u=u.slice(1);break;case"x":i="arrow_cross",u=u.slice(1);break;case"o":i="arrow_circle",u=u.slice(1)}let r="normal";return u.includes("=")&&(r="thick"),u.includes(".")&&(r="dotted"),{type:i,stroke:r}})(u),r.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=i.type;else{if(r.type!==i.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=i.length,r}return i},Yt=(e,u)=>{let i=!1;return e.forEach(r=>{r.nodes.indexOf(u)>=0&&(i=!0)}),i},jt=(e,u)=>{const i=[];return e.nodes.forEach((r,c)=>{Yt(u,r)||i.push(e.nodes[c])}),{nodes:i}},zt={firstGraph:Gt},Xt={defaultConfig:()=>C.K.flowchart,setAccTitle:C.s,getAccTitle:C.g,getAccDescription:C.a,setAccDescription:C.b,addVertex:Et,lookUpDomId:N1,addLink:bt,updateLinkInterpolate:gt,updateLink:Dt,addClass:Ft,setDirection:Tt,setClass:X1,setTooltip:function(e,u){e.split(",").forEach(function(i){void 0!==u&&(G1["gen-1"===Y1?N1(i):i]=z1(u))})},getTooltip:Ct,setClickEvent:St,setLink:_t,bindFunctions:Bt,getDirection:xt,getVertices:mt,getEdges:yt,getClasses:vt,clear:Lt,setGen:It,defaultStyle:Rt,addSubGraph:Nt,getDepthFirstPos:Pt,indexNodes:Ut,getSubGraphs:Mt,destructLink:Kt,lex:zt,exists:Yt,makeUniq:jt,setDiagramTitle:C.q,getDiagramTitle:C.t},Le=Object.freeze(Object.defineProperty({__proto__:null,addClass:Ft,addLink:bt,addSingleLink:kt,addSubGraph:Nt,addVertex:Et,bindFunctions:Bt,clear:Lt,default:Xt,defaultStyle:Rt,destructLink:Kt,firstGraph:Gt,getClasses:vt,getDepthFirstPos:Pt,getDirection:xt,getEdges:yt,getSubGraphs:Mt,getTooltip:Ct,getVertices:mt,indexNodes:Ut,lex:zt,lookUpDomId:N1,setClass:X1,setClickEvent:St,setDirection:Tt,setGen:It,setLink:_t,updateLink:Dt,updateLinkInterpolate:gt},Symbol.toStringTag,{value:"Module"}))}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/706.98213c0edcceba9b.js b/pkg/apiserver-impl/ui/706.98213c0edcceba9b.js new file mode 100644 index 0000000000..8bffa9fb78 --- /dev/null +++ b/pkg/apiserver-impl/ui/706.98213c0edcceba9b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[706],{4706:(Ot,yt,Z)=>{Z.r(yt),Z.d(yt,{diagram:()=>Wt});var d=Z(8080),it=Z(8586),ct=(Z(1764),Z(6780),Z(2735),function(){var e=function($,n,r,l){for(r=r||{},l=$.length;l--;r[$[l]]=n);return r},s=[1,3],h=[1,4],f=[1,5],g=[1,6],u=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],p=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],q=[2,7],y=[1,13],R=[1,17],U=[1,18],w=[1,19],z=[1,20],b=[1,21],Q=[1,22],H=[1,23],E=[1,24],nt=[1,25],st=[1,26],rt=[1,27],M=[1,30],N=[1,31],T=[1,32],A=[1,33],m=[1,34],t=[1,35],S=[1,36],k=[1,37],P=[1,38],F=[1,39],v=[1,40],L=[1,41],C=[1,42],Y=[1,57],j=[1,58],B=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,_,a,at){var x=a.length-1;switch(_){case 12:this.$=a[x].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[x].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[x].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[x].substr(8)),this.$=a[x].substr(8);break;case 17:o.addPoint(a[x-3],a[x-1],a[x]);break;case 18:o.setXAxisLeftText(a[x-2]),o.setXAxisRightText(a[x]);break;case 19:a[x-1].text+=" \u27f6 ",o.setXAxisLeftText(a[x-1]);break;case 20:o.setXAxisLeftText(a[x]);break;case 21:o.setYAxisBottomText(a[x-2]),o.setYAxisTopText(a[x]);break;case 22:a[x-1].text+=" \u27f6 ",o.setYAxisBottomText(a[x-1]);break;case 23:o.setYAxisBottomText(a[x]);break;case 24:o.setQuadrant1Text(a[x]);break;case 25:o.setQuadrant2Text(a[x]);break;case 26:o.setQuadrant3Text(a[x]);break;case 27:o.setQuadrant4Text(a[x]);break;case 31:case 33:this.$={text:a[x],type:"text"};break;case 32:this.$={text:a[x-1].text+""+a[x],type:a[x-1].type};break;case 34:this.$={text:a[x],type:"markdown"};break;case 35:this.$=a[x];break;case 36:this.$=a[x-1]+""+a[x]}},table:[{3:1,4:2,5:s,6:h,32:f,33:g,34:u},{1:[3]},{3:8,4:2,5:s,6:h,32:f,33:g,34:u},{3:9,4:2,5:s,6:h,32:f,33:g,34:u},e(c,[2,4],{7:10}),e(p,[2,28]),e(p,[2,29]),e(p,[2,30]),{1:[2,1]},{1:[2,2]},e(i,q,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:y,13:R,15:U,17:w,19:z,20:b,25:Q,27:H,28:E,29:nt,30:st,31:rt,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),e(c,[2,5]),{4:43,32:f,33:g,34:u},e(i,q,{10:14,11:15,12:16,21:28,35:29,9:44,5:y,13:R,15:U,17:w,19:z,20:b,25:Q,27:H,28:E,29:nt,30:st,31:rt,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:49,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:50,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:51,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:52,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{21:53,35:29,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C},{5:Y,22:[1,54],35:56,36:55,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j},e(B,[2,31]),e(B,[2,33]),e(B,[2,34]),e(B,[2,37]),e(B,[2,38]),e(B,[2,39]),e(B,[2,40]),e(B,[2,41]),e(B,[2,42]),e(B,[2,43]),e(B,[2,44]),e(B,[2,45]),e(B,[2,46]),e(B,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:Y,26:[1,59],40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,23],{36:55,35:56,5:Y,26:[1,60],40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,24],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,25],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,26],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,27],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),{23:[1,61]},e(B,[2,32]),e(B,[2,48]),e(B,[2,49]),e(B,[2,50]),e(i,[2,19],{35:29,21:62,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),e(i,[2,22],{35:29,21:63,37:M,38:N,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,21],{36:55,35:56,5:Y,40:T,41:A,42:m,43:t,44:S,45:k,46:P,47:F,48:v,49:L,50:C,51:j}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(!r.recoverable){var l=new Error(n);throw l.hash=r,l}this.trace(n)},parse:function(n){var l=[0],o=[],_=[null],a=[],at=this.table,x="",lt=0,qt=0,Ut=a.slice.call(arguments,1),D=Object.create(this.lexer),J={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(J.yy[xt]=this.yy[xt]);D.setInput(n,J.yy),J.yy.lexer=D,J.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ft=D.yylloc;a.push(ft);var G,Mt=D.options&&D.options.ranges;this.parseError="function"==typeof J.yy.parseError?J.yy.parseError:Object.getPrototypeOf(this).parseError;for(var V,tt,O,gt,ot,K,ht,et={};;){if(this.defaultActions[tt=l[l.length-1]]?O=this.defaultActions[tt]:((null===V||typeof V>"u")&&(G=void 0,"number"!=typeof(G=o.pop()||D.lex()||1)&&(G instanceof Array&&(G=(o=G).pop()),G=this.symbols_[G]||G),V=G),O=at[tt]&&at[tt][V]),typeof O>"u"||!O.length||!O[0]){var pt;for(ot in ht=[],at[tt])this.terminals_[ot]&&ot>2&&ht.push("'"+this.terminals_[ot]+"'");pt=D.showPosition?"Parse error on line "+(lt+1)+":\n"+D.showPosition()+"\nExpecting "+ht.join(", ")+", got '"+(this.terminals_[V]||V)+"'":"Parse error on line "+(lt+1)+": Unexpected "+(1==V?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(pt,{text:D.match,token:this.terminals_[V]||V,line:D.yylineno,loc:ft,expected:ht})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+tt+", token: "+V);switch(O[0]){case 1:l.push(V),_.push(D.yytext),a.push(D.yylloc),l.push(O[1]),V=null,qt=D.yyleng,x=D.yytext,lt=D.yylineno,ft=D.yylloc;break;case 2:if(et.$=_[_.length-(K=this.productions_[O[1]][1])],et._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},Mt&&(et._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),typeof(gt=this.performAction.apply(et,[x,qt,lt,J.yy,O[1],_,a].concat(Ut)))<"u")return gt;K&&(l=l.slice(0,-1*K*2),_=_.slice(0,-1*K),a=a.slice(0,-1*K)),l.push(this.productions_[O[1]][0]),_.push(et.$),a.push(et._$),l.push(at[l[l.length-2]][l[l.length-1]]);break;case 3:return!0}}return!0}};function ut(){this.yy={}}return dt.lexer={EOF:1,parseError:function(r,l){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,l)},setInput:function(n,r){return this.yy=r||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},input: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},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=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),l.length-1&&(this.yylineno-=l.length-1);var _=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:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+r+"^"},test_match:function(n,r){var l,o,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),(o=n[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.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],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in _)this[a]=_[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var n,r,l,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),a=0;a<_.length;a++)if((l=this._input.match(this.rules[_[a]]))&&(!r||l[0].length>r[0].length)){if(r=l,o=a,this.options.backtrack_lexer){if(!1!==(n=this.test_match(l,_[a])))return n;if(this._backtrack){r=!1;continue}return!1}if(!this.options.flex)break}return r?!1!==(n=this.test_match(r,_[o]))&&n:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return(r=this.conditionStack.length-1-Math.abs(r||0))>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,_){switch(o){case 0:case 1:case 3:break;case 2:return 32;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 22:case 24:case 28:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 23:this.begin("string");break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}},ut.prototype=dt,dt.Parser=ut,new ut}());ct.parser=ct;const mt=ct,W=(0,d.E)(),bt=(0,d.c)();function X(e){return(0,d.d)(e.trim(),bt)}const I=new class At{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,f,g,u,c,p,i,q,y,R,U,w,z,b,Q,H,E;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(s=d.B.quadrantChart)?void 0:s.chartWidth)||500,chartWidth:(null==(h=d.B.quadrantChart)?void 0:h.chartHeight)||500,titlePadding:(null==(f=d.B.quadrantChart)?void 0:f.titlePadding)||10,titleFontSize:(null==(g=d.B.quadrantChart)?void 0:g.titleFontSize)||20,quadrantPadding:(null==(u=d.B.quadrantChart)?void 0:u.quadrantPadding)||5,xAxisLabelPadding:(null==(c=d.B.quadrantChart)?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(p=d.B.quadrantChart)?void 0:p.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(i=d.B.quadrantChart)?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(q=d.B.quadrantChart)?void 0:q.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(y=d.B.quadrantChart)?void 0:y.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(R=d.B.quadrantChart)?void 0:R.quadrantTextTopPadding)||5,pointTextPadding:(null==(U=d.B.quadrantChart)?void 0:U.pointTextPadding)||5,pointLabelFontSize:(null==(w=d.B.quadrantChart)?void 0:w.pointLabelFontSize)||12,pointRadius:(null==(z=d.B.quadrantChart)?void 0:z.pointRadius)||5,xAxisPosition:(null==(b=d.B.quadrantChart)?void 0:b.xAxisPosition)||"top",yAxisPosition:(null==(Q=d.B.quadrantChart)?void 0:Q.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(H=d.B.quadrantChart)?void 0:H.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(E=d.B.quadrantChart)?void 0:E.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:W.quadrant1Fill,quadrant2Fill:W.quadrant2Fill,quadrant3Fill:W.quadrant3Fill,quadrant4Fill:W.quadrant4Fill,quadrant1TextFill:W.quadrant1TextFill,quadrant2TextFill:W.quadrant2TextFill,quadrant3TextFill:W.quadrant3TextFill,quadrant4TextFill:W.quadrant4TextFill,quadrantPointFill:W.quadrantPointFill,quadrantPointTextFill:W.quadrantPointTextFill,quadrantXAxisTextFill:W.quadrantXAxisTextFill,quadrantYAxisTextFill:W.quadrantYAxisTextFill,quadrantTitleFill:W.quadrantTitleFill,quadrantInternalBorderStrokeFill:W.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:W.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),d.l.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){d.l.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){d.l.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,f,g){const u=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,c={top:"top"===s&&h?u:0,bottom:"bottom"===s&&h?u:0},p=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,i={left:"left"===this.config.yAxisPosition&&f?p:0,right:"right"===this.config.yAxisPosition&&f?p:0},y={top:g?this.config.titleFontSize+2*this.config.titlePadding:0},w=this.config.chartWidth-2*this.config.quadrantPadding-i.left-i.right,z=this.config.chartHeight-2*this.config.quadrantPadding-c.top-c.bottom-y.top;return{xAxisSpace:c,yAxisSpace:i,titleSpace:y,quadrantSpace:{quadrantLeft:this.config.quadrantPadding+i.left,quadrantTop:this.config.quadrantPadding+c.top+y.top,quadrantWidth:w,quadrantHalfWidth:w/2,quadrantHeight:z,quadrantHalfHeight:z/2}}}getAxisLabels(s,h,f,g){const{quadrantSpace:u,titleSpace:c}=g,{quadrantHalfHeight:p,quadrantHeight:i,quadrantLeft:q,quadrantHalfWidth:y,quadrantTop:R,quadrantWidth:U}=u,w=Boolean(this.data.xAxisRightText),z=Boolean(this.data.yAxisTopText),b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+(w?y/2:0),y:"top"===s?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+y+(w?y/2:0),y:"top"===s?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&f&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+U+this.config.quadrantPadding,y:R+i-(z?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:z?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&f&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+U+this.config.quadrantPadding,y:R+p-(z?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:z?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:f,quadrantLeft:g,quadrantHalfWidth:u,quadrantTop:c}=h,p=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:c,width:u,height:f,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:c,width:u,height:f,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:c+f,width:u,height:f,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:c+f,width:u,height:f,fill:this.themeConfig.quadrant4Fill}];for(const i of p)i.text.x=i.x+i.width/2,0===this.data.points.length?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return p}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:f,quadrantLeft:g,quadrantTop:u,quadrantWidth:c}=h,p=(0,it.BYU)().domain([0,1]).range([g,c+g]),i=(0,it.BYU)().domain([0,1]).range([f+u,u]);return this.data.points.map(y=>({x:p(y.x),y:i(y.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:y.text,fill:this.themeConfig.quadrantPointTextFill,x:p(y.x),y:i(y.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:f}=s,{quadrantHalfHeight:g,quadrantHeight:u,quadrantLeft:c,quadrantHalfWidth:p,quadrantTop:i,quadrantWidth:q}=f;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+q+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+q,y1:i+h,x2:c+q,y2:i+u-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+u,x2:c+q+h,y2:i+u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+p,y1:i+h,x2:c+p,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+g,x2:c+q-h,y2:i+g}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),h=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),f=this.config.showTitle&&!!this.data.titleText,g=this.data.points.length>0?"bottom":this.config.xAxisPosition,u=this.calculateSpace(g,s,h,f);return{points:this.getQuadrantPoints(u),quadrants:this.getQuadrants(u),axisLabels:this.getAxisLabels(g,s,h,u),borderLines:this.getBorders(u),title:this.getTitle(f)}}},Wt={parser:mt,db:{setWidth:function Dt(e){I.setConfig({chartWidth:e})},setHeight:function zt(e){I.setConfig({chartHeight:e})},setQuadrant1Text:function St(e){I.setData({quadrant1Text:X(e.text)})},setQuadrant2Text:function kt(e){I.setData({quadrant2Text:X(e.text)})},setQuadrant3Text:function Pt(e){I.setData({quadrant3Text:X(e.text)})},setQuadrant4Text:function Ft(e){I.setData({quadrant4Text:X(e.text)})},setXAxisLeftText:function vt(e){I.setData({xAxisLeftText:X(e.text)})},setXAxisRightText:function Lt(e){I.setData({xAxisRightText:X(e.text)})},setYAxisTopText:function Ct(e){I.setData({yAxisTopText:X(e.text)})},setYAxisBottomText:function Et(e){I.setData({yAxisBottomText:X(e.text)})},addPoint:function Bt(e,s,h){I.addPoints([{x:s,y:h,text:X(e.text)}])},getQuadrantData:function It(){const e=(0,d.c)(),{themeVariables:s,quadrantChart:h}=e;return h&&I.setConfig(h),I.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),I.setData({titleText:(0,d.t)()}),I.build()},clear:function(){I.clear(),(0,d.v)()},setAccTitle:d.s,getAccTitle:d.g,setDiagramTitle:d.q,getDiagramTitle:d.t,getAccDescription:d.a,setAccDescription:d.b},renderer:{draw:(e,s,h,f)=>{var g,u,c;function p(t){return"top"===t?"hanging":"middle"}function i(t){return"left"===t?"start":"middle"}function q(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const y=(0,d.c)();d.l.debug("Rendering quadrant chart\n"+e);const R=y.securityLevel;let U;"sandbox"===R&&(U=(0,it.Ys)("#i"+s));const z=(0,it.Ys)("sandbox"===R?U.nodes()[0].contentDocument.body:"body").select(`[id="${s}"]`),b=z.append("g").attr("class","main"),Q=(null==(g=y.quadrantChart)?void 0:g.chartWidth)||500,H=(null==(u=y.quadrantChart)?void 0:u.chartHeight)||500;(0,d.i)(z,H,Q,(null==(c=y.quadrantChart)?void 0:c.useMaxWidth)||!0),z.attr("viewBox","0 0 "+Q+" "+H),f.db.setHeight(H),f.db.setWidth(Q);const E=f.db.getQuadrantData(),nt=b.append("g").attr("class","quadrants"),st=b.append("g").attr("class","border"),rt=b.append("g").attr("class","data-points"),M=b.append("g").attr("class","labels"),N=b.append("g").attr("class","title");E.title&&N.append("text").attr("x",0).attr("y",0).attr("fill",E.title.fill).attr("font-size",E.title.fontSize).attr("dominant-baseline",p(E.title.horizontalPos)).attr("text-anchor",i(E.title.verticalPos)).attr("transform",q(E.title)).text(E.title.text),E.borderLines&&st.selectAll("line").data(E.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=nt.selectAll("g.quadrant").data(E.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text)).text(t=>t.text.text),M.selectAll("g.label").data(E.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>p(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>q(t));const m=rt.selectAll("g.data-point").data(E.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text))}},styles:()=>""}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/919.c655383a313f29b4.js b/pkg/apiserver-impl/ui/725.ef7067e12041f0a5.js similarity index 88% rename from pkg/apiserver-impl/ui/919.c655383a313f29b4.js rename to pkg/apiserver-impl/ui/725.ef7067e12041f0a5.js index 34a31a453a..b695b9a370 100644 --- a/pkg/apiserver-impl/ui/919.c655383a313f29b4.js +++ b/pkg/apiserver-impl/ui/725.ef7067e12041f0a5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[919],{6919:(W,D,f)=>{f.r(D),f.d(D,{diagram:()=>C});var S=f(9037),O=(f(1764),f(6780),f(8586),f(2735),function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},p=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(r){case 1:return s;case 4:break;case 6:s.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},a(p,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(p,[2,3]),a(p,[2,4]),a(p,[2,5]),a(p,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var n=[0],s=[],r=[null],i=[],k=this.table,R="",b=0,$=0,B=i.slice.call(arguments,1),o=Object.create(this.lexer),g={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(g.yy[A]=this.yy[A]);o.setInput(t,g.yy),g.yy.lexer=o,g.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var P=o.yylloc;i.push(P);var y,z=o.options&&o.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var l,_,h,L,E,c,I,d={};;){if(this.defaultActions[_=n[n.length-1]]?h=this.defaultActions[_]:((null===l||typeof l>"u")&&(y=void 0,"number"!=typeof(y=s.pop()||o.lex()||1)&&(y instanceof Array&&(y=(s=y).pop()),y=this.symbols_[y]||y),l=y),h=k[_]&&k[_][l]),typeof h>"u"||!h.length||!h[0]){var T;for(E in I=[],k[_])this.terminals_[E]&&E>2&&I.push("'"+this.terminals_[E]+"'");T=o.showPosition?"Parse error on line "+(b+1)+":\n"+o.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[l]||l)+"'":"Parse error on line "+(b+1)+": Unexpected "+(1==l?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(T,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:P,expected:I})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,$=o.yyleng,R=o.yytext,b=o.yylineno,P=o.yylloc;break;case 2:if(d.$=r[r.length-(c=this.productions_[h[1]][1])],d._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(d._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),typeof(L=this.performAction.apply(d,[R,$,b,g.yy,h[1],r,i].concat(B)))<"u")return L;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(d.$),i.push(d._$),n.push(k[n[n.length-2]][n[n.length-1]]);break;case 3:return!0}}return!0}};function x(){this.yy={}}return m.lexer={EOF:1,parseError:function(e,n){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,n)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=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 r=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===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;ie[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[i])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}},x.prototype=m,m.Parser=x,new x}());O.parser=O;let w=false;const C={parser:O,db:{clear:()=>{w=false},setInfo:a=>{w=a},getInfo:()=>w},renderer:{draw:(a,p,m)=>{S.l.debug("rendering info diagram\n"+a);const v=(0,S.A)(p);(0,S.i)(v,100,400,!0),v.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)}}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[725],{1725:(W,D,f)=>{f.r(D),f.d(D,{diagram:()=>C});var S=f(8080),O=(f(1764),f(6780),f(8586),f(2735),function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},p=[6,9,10],d={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(r){case 1:return s;case 4:break;case 6:s.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},a(p,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(p,[2,3]),a(p,[2,4]),a(p,[2,5]),a(p,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var n=[0],s=[],r=[null],i=[],k=this.table,R="",b=0,$=0,B=i.slice.call(arguments,1),o=Object.create(this.lexer),g={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(g.yy[A]=this.yy[A]);o.setInput(t,g.yy),g.yy.lexer=o,g.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var P=o.yylloc;i.push(P);var y,z=o.options&&o.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var l,_,h,L,E,c,I,m={};;){if(this.defaultActions[_=n[n.length-1]]?h=this.defaultActions[_]:((null===l||typeof l>"u")&&(y=void 0,"number"!=typeof(y=s.pop()||o.lex()||1)&&(y instanceof Array&&(y=(s=y).pop()),y=this.symbols_[y]||y),l=y),h=k[_]&&k[_][l]),typeof h>"u"||!h.length||!h[0]){var T;for(E in I=[],k[_])this.terminals_[E]&&E>2&&I.push("'"+this.terminals_[E]+"'");T=o.showPosition?"Parse error on line "+(b+1)+":\n"+o.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[l]||l)+"'":"Parse error on line "+(b+1)+": Unexpected "+(1==l?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(T,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:P,expected:I})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,$=o.yyleng,R=o.yytext,b=o.yylineno,P=o.yylloc;break;case 2:if(m.$=r[r.length-(c=this.productions_[h[1]][1])],m._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(m._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),typeof(L=this.performAction.apply(m,[R,$,b,g.yy,h[1],r,i].concat(B)))<"u")return L;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(m.$),i.push(m._$),n.push(k[n[n.length-2]][n[n.length-1]]);break;case 3:return!0}}return!0}};function x(){this.yy={}}return d.lexer={EOF:1,parseError:function(e,n){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,n)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=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 r=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===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;ie[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[i])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}},x.prototype=d,d.Parser=x,new x}());O.parser=O;let w=false;const C={parser:O,db:{clear:()=>{w=false},setInfo:a=>{w=a},getInfo:()=>w},renderer:{draw:(a,p,d)=>{S.l.debug("rendering info diagram\n"+a);const v=(0,S.A)(p);(0,S.i)(v,100,400,!0),v.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${d}`)}}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/728.d855df7b4e9659d2.js b/pkg/apiserver-impl/ui/728.d855df7b4e9659d2.js deleted file mode 100644 index 7a76b381da..0000000000 --- a/pkg/apiserver-impl/ui/728.d855df7b4e9659d2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[728],{2405:function(aa,Be,_e){var be;aa.exports=(be=_e(5982),function(z){var P={};function S(L){if(P[L])return P[L].exports;var R=P[L]={i:L,l:!1,exports:{}};return z[L].call(R.exports,R,R.exports,S),R.l=!0,R.exports}return S.m=z,S.c=P,S.i=function(L){return L},S.d=function(L,R,V){S.o(L,R)||Object.defineProperty(L,R,{configurable:!1,enumerable:!0,get:V})},S.n=function(L){var R=L&&L.__esModule?function(){return L.default}:function(){return L};return S.d(R,"a",R),R},S.o=function(L,R){return Object.prototype.hasOwnProperty.call(L,R)},S.p="",S(S.s=7)}([function(z,P){z.exports=be},function(z,P,S){"use strict";var L=S(0).FDLayoutConstants;function R(){}for(var V in L)R[V]=L[V];R.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,R.DEFAULT_RADIAL_SEPARATION=L.DEFAULT_EDGE_LENGTH,R.DEFAULT_COMPONENT_SEPERATION=60,R.TILE=!0,R.TILING_PADDING_VERTICAL=10,R.TILING_PADDING_HORIZONTAL=10,R.TREE_REDUCTION_ON_INCREMENTAL=!1,z.exports=R},function(z,P,S){"use strict";var L=S(0).FDLayoutEdge;function R(F,K,O){L.call(this,F,K,O)}for(var V in R.prototype=Object.create(L.prototype),L)R[V]=L[V];z.exports=R},function(z,P,S){"use strict";var L=S(0).LGraph;function R(F,K,O){L.call(this,F,K,O)}for(var V in R.prototype=Object.create(L.prototype),L)R[V]=L[V];z.exports=R},function(z,P,S){"use strict";var L=S(0).LGraphManager;function R(F){L.call(this,F)}for(var V in R.prototype=Object.create(L.prototype),L)R[V]=L[V];z.exports=R},function(z,P,S){"use strict";var L=S(0).FDLayoutNode,R=S(0).IMath;function V(K,O,G,U){L.call(this,K,O,G,U)}for(var F in V.prototype=Object.create(L.prototype),L)V[F]=L[F];V.prototype.move=function(){var K=this.graphManager.getLayout();this.displacementX=K.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=K.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>K.coolingFactor*K.maxNodeDisplacement&&(this.displacementX=K.coolingFactor*K.maxNodeDisplacement*R.sign(this.displacementX)),Math.abs(this.displacementY)>K.coolingFactor*K.maxNodeDisplacement&&(this.displacementY=K.coolingFactor*K.maxNodeDisplacement*R.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),K.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},V.prototype.propogateDisplacementToChildren=function(K,O){for(var U,G=this.getChild().getNodes(),_=0;_0?this.positionNodesRadially(I):(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),Y=new Set(this.getAllNodes()),X=this.nodesWithGravity.filter(function(J){return Y.has(J)}),this.graphManager.setAllNodesToApplyGravitation(X),this.positionNodesRandomly())}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},Ce.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%G.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var I=new Set(this.getAllNodes()),Y=this.nodesWithGravity.filter(function(Ee){return I.has(Ee)});this.graphManager.setAllNodesToApplyGravitation(Y),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=G.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=G.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var X=!this.isTreeGrowing&&!this.isGrowthFinished,J=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(X,J),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Ce.prototype.getPositionsData=function(){for(var I=this.graphManager.getAllNodes(),Y={},X=0;X1)for(Me=0;MeJ&&(J=Math.floor(Ne.y)),ee=Math.floor(Ne.x+O.DEFAULT_COMPONENT_SEPERATION)}this.transform(new Q(U.WORLD_CENTER_X-Ne.x/2,U.WORLD_CENTER_Y-Ne.y/2))},Ce.radialLayout=function(I,Y,X){var J=Math.max(this.maxDiagonalInTree(I),O.DEFAULT_RADIAL_SEPARATION);Ce.branchRadialLayout(Y,null,0,359,0,J);var Ee=le.calculateBounds(I),ee=new Ie;ee.setDeviceOrgX(Ee.getMinX()),ee.setDeviceOrgY(Ee.getMinY()),ee.setWorldOrgX(X.x),ee.setWorldOrgY(X.y);for(var Ne=0;Ne1;){var Xt=bt[0];bt.splice(0,1);var nr=Ue.indexOf(Xt);nr>=0&&Ue.splice(nr,1),ft--,je--}Qt=null!=Y?(Ue.indexOf(bt[0])+1)%ft:0;for(var Jt=Math.abs(J-X)/je,Wt=Qt;tt!=je;Wt=++Wt%ft){var Ma=Ue[Wt].getOtherEnd(I);if(Ma!=Y){var Ra=(X+tt*Jt)%360;Ce.branchRadialLayout(Ma,I,Ra,(Ra+Jt)%360,Ee+ee,ee),tt++}}},Ce.maxDiagonalInTree=function(I){for(var Y=se.MIN_VALUE,X=0;XY&&(Y=Ee)}return Y},Ce.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Ce.prototype.groupZeroDegreeMembers=function(){var I=this,Y={};this.memberGroups={},this.idToDummyNode={};for(var X=[],J=this.graphManager.getAllNodes(),Ee=0;Ee"u"&&(Y[Me]=[]),Y[Me]=Y[Me].concat(ee)}Object.keys(Y).forEach(function($e){if(Y[$e].length>1){var Qe="DummyCompound_"+$e;I.memberGroups[Qe]=Y[$e];var vt=Y[$e][0].getParent(),pt=new F(I.graphManager);pt.id=Qe,pt.paddingLeft=vt.paddingLeft||0,pt.paddingRight=vt.paddingRight||0,pt.paddingBottom=vt.paddingBottom||0,pt.paddingTop=vt.paddingTop||0,I.idToDummyNode[Qe]=pt;var Ue=I.getGraphManager().add(I.newGraph(),pt),je=vt.getChild();je.add(pt);for(var tt=0;tt=0;I--){var Y=this.compoundOrder[I];this.adjustLocations(this.tiledMemberPack[Y.id],Y.rect.x,Y.rect.y,Y.paddingLeft,Y.paddingTop)}},Ce.prototype.repopulateZeroDegreeMembers=function(){var I=this,Y=this.tiledZeroDegreePack;Object.keys(Y).forEach(function(X){var J=I.idToDummyNode[X];I.adjustLocations(Y[X],J.rect.x,J.rect.y,J.paddingLeft,J.paddingTop)})},Ce.prototype.getToBeTiled=function(I){var Y=I.id;if(null!=this.toBeTiled[Y])return this.toBeTiled[Y];var X=I.getChild();if(null==X)return this.toBeTiled[Y]=!1,!1;for(var J=X.getNodes(),Ee=0;Ee0)return this.toBeTiled[Y]=!1,!1;if(null!=ee.getChild()){if(!this.getToBeTiled(ee))return this.toBeTiled[Y]=!1,!1}else this.toBeTiled[ee.id]=!1}return this.toBeTiled[Y]=!0,!0},Ce.prototype.getNodeDegree=function(I){for(var X=I.getEdges(),J=0,Ee=0;Ee$e&&($e=vt.rect.height)}X+=$e+I.verticalPadding}},Ce.prototype.tileCompoundMembers=function(I,Y){var X=this;this.tiledMemberPack=[],Object.keys(I).forEach(function(J){var Ee=Y[J];X.tiledMemberPack[J]=X.tileNodes(I[J],Ee.paddingLeft+Ee.paddingRight),Ee.rect.width=X.tiledMemberPack[J].width,Ee.rect.height=X.tiledMemberPack[J].height})},Ce.prototype.tileNodes=function(I,Y){var Ee={rows:[],rowWidth:[],rowHeight:[],width:0,height:Y,verticalPadding:O.TILING_PADDING_VERTICAL,horizontalPadding:O.TILING_PADDING_HORIZONTAL};I.sort(function(Me,$e){return Me.rect.width*Me.rect.height>$e.rect.width*$e.rect.height?-1:Me.rect.width*Me.rect.height<$e.rect.width*$e.rect.height?1:0});for(var ee=0;ee0&&(Ne+=I.horizontalPadding),I.rowWidth[X]=Ne,I.width0&&(Me+=I.verticalPadding);var $e=0;Me>I.rowHeight[X]&&($e=I.rowHeight[X],I.rowHeight[X]=Me,$e=I.rowHeight[X]-$e),I.height+=$e,I.rows[X].push(Y)},Ce.prototype.getShortestRowIndex=function(I){for(var Y=-1,X=Number.MAX_VALUE,J=0;JX&&(Y=J,X=I.rowWidth[J]);return Y},Ce.prototype.canAddHorizontal=function(I,Y,X){var J=this.getShortestRowIndex(I);if(J<0)return!0;var Ee=I.rowWidth[J];if(Ee+I.horizontalPadding+Y<=I.width)return!0;var Ne,Me,ee=0;return I.rowHeight[J]0&&(ee=X+I.verticalPadding-I.rowHeight[J]),Ne=I.width-Ee>=Y+I.horizontalPadding?(I.height+ee)/(Ee+Y+I.horizontalPadding):(I.height+ee)/I.width,ee=X+I.verticalPadding,(Me=I.widthee&&Y!=X){J.splice(-1,1),I.rows[X].push(Ee),I.rowWidth[Y]=I.rowWidth[Y]-ee,I.rowWidth[X]=I.rowWidth[X]+ee,I.width=I.rowWidth[instance.getLongestRowIndex(I)];for(var Ne=Number.MIN_VALUE,Me=0;MeNe&&(Ne=J[Me].height);Y>0&&(Ne+=I.verticalPadding);var $e=I.rowHeight[Y]+I.rowHeight[X];I.rowHeight[Y]=Ne,I.rowHeight[X]0)for(var je=Ee;je<=ee;je++)Ue[0]+=this.grid[je][Ne-1].length+this.grid[je][Ne].length-1;if(ee0)for(je=Ne;je<=Me;je++)Ue[3]+=this.grid[Ee-1][je].length+this.grid[Ee][je].length-1;for(var ft,Qt,tt=se.MAX_VALUE,bt=0;bt0&&(Me=Ie.getGraphManager().add(Ie.newGraph(),X),this.processChildrenList(Me,Y,Ie))}},Q.prototype.stop=function(){return this.stopped=!0,this};var se=function(le){le("layout","cose-bilkent",Q)};typeof cytoscape<"u"&&se(cytoscape),z.exports=se}]))},5982:function(aa){aa.exports=function(Be){var _e={};function be(z){if(_e[z])return _e[z].exports;var P=_e[z]={i:z,l:!1,exports:{}};return Be[z].call(P.exports,P,P.exports,be),P.l=!0,P.exports}return be.m=Be,be.c=_e,be.i=function(z){return z},be.d=function(z,P,S){be.o(z,P)||Object.defineProperty(z,P,{configurable:!1,enumerable:!0,get:S})},be.n=function(z){var P=z&&z.__esModule?function(){return z.default}:function(){return z};return be.d(P,"a",P),P},be.o=function(z,P){return Object.prototype.hasOwnProperty.call(z,P)},be.p="",be(be.s=26)}([function(Be,_e,be){"use strict";function z(){}z.QUALITY=1,z.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,z.DEFAULT_INCREMENTAL=!1,z.DEFAULT_ANIMATION_ON_LAYOUT=!0,z.DEFAULT_ANIMATION_DURING_LAYOUT=!1,z.DEFAULT_ANIMATION_PERIOD=50,z.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,z.DEFAULT_GRAPH_MARGIN=15,z.NODE_DIMENSIONS_INCLUDE_LABELS=!1,z.SIMPLE_NODE_HALF_SIZE=(z.SIMPLE_NODE_SIZE=40)/2,z.EMPTY_COMPOUND_NODE_SIZE=40,z.MIN_EDGE_LENGTH=1,z.INITIAL_WORLD_BOUNDARY=(z.WORLD_BOUNDARY=1e6)/1e3,z.WORLD_CENTER_X=1200,z.WORLD_CENTER_Y=900,Be.exports=z},function(Be,_e,be){"use strict";var z=be(2),P=be(8),S=be(9);function L(V,F,K){z.call(this,K),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=K,this.bendpoints=[],this.source=V,this.target=F}for(var R in L.prototype=Object.create(z.prototype),z)L[R]=z[R];L.prototype.getSource=function(){return this.source},L.prototype.getTarget=function(){return this.target},L.prototype.isInterGraph=function(){return this.isInterGraph},L.prototype.getLength=function(){return this.length},L.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},L.prototype.getBendpoints=function(){return this.bendpoints},L.prototype.getLca=function(){return this.lca},L.prototype.getSourceInLca=function(){return this.sourceInLca},L.prototype.getTargetInLca=function(){return this.targetInLca},L.prototype.getOtherEnd=function(V){if(this.source===V)return this.target;if(this.target===V)return this.source;throw"Node is not incident with this edge"},L.prototype.getOtherEndInGraph=function(V,F){for(var K=this.getOtherEnd(V),O=F.getGraphManager().getRoot();;){if(K.getOwner()==F)return K;if(K.getOwner()==O)break;K=K.getOwner().getParent()}return null},L.prototype.updateLength=function(){var V=new Array(4);this.isOverlapingSourceAndTarget=P.getIntersection(this.target.getRect(),this.source.getRect(),V),this.isOverlapingSourceAndTarget||(this.lengthX=V[0]-V[2],this.lengthY=V[1]-V[3],Math.abs(this.lengthX)<1&&(this.lengthX=S.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=S.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},L.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=S.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=S.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},Be.exports=L},function(Be,_e,be){"use strict";Be.exports=function z(P){this.vGraphObject=P}},function(Be,_e,be){"use strict";var z=be(2),P=be(10),S=be(13),L=be(0),R=be(16),V=be(4);function F(O,G,U,_){null==U&&null==_&&(_=G),z.call(this,_),null!=O.graphManager&&(O=O.graphManager),this.estimatedSize=P.MIN_VALUE,this.inclusionTreeDepth=P.MAX_VALUE,this.vGraphObject=_,this.edges=[],this.graphManager=O,this.rect=null!=U&&null!=G?new S(G.x,G.y,U.width,U.height):new S}for(var K in F.prototype=Object.create(z.prototype),z)F[K]=z[K];F.prototype.getEdges=function(){return this.edges},F.prototype.getChild=function(){return this.child},F.prototype.getOwner=function(){return this.owner},F.prototype.getWidth=function(){return this.rect.width},F.prototype.setWidth=function(O){this.rect.width=O},F.prototype.getHeight=function(){return this.rect.height},F.prototype.setHeight=function(O){this.rect.height=O},F.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},F.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},F.prototype.getCenter=function(){return new V(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},F.prototype.getLocation=function(){return new V(this.rect.x,this.rect.y)},F.prototype.getRect=function(){return this.rect},F.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},F.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},F.prototype.setRect=function(O,G){this.rect.x=O.x,this.rect.y=O.y,this.rect.width=G.width,this.rect.height=G.height},F.prototype.setCenter=function(O,G){this.rect.x=O-this.rect.width/2,this.rect.y=G-this.rect.height/2},F.prototype.setLocation=function(O,G){this.rect.x=O,this.rect.y=G},F.prototype.moveBy=function(O,G){this.rect.x+=O,this.rect.y+=G},F.prototype.getEdgeListToNode=function(O){var G=[],_=this;return _.edges.forEach(function(Q){if(Q.target==O){if(Q.source!=_)throw"Incorrect edge source!";G.push(Q)}}),G},F.prototype.getEdgesBetween=function(O){var G=[],_=this;return _.edges.forEach(function(Q){if(Q.source!=_&&Q.target!=_)throw"Incorrect edge source and/or target";(Q.target==O||Q.source==O)&&G.push(Q)}),G},F.prototype.getNeighborsList=function(){var O=new Set,G=this;return G.edges.forEach(function(U){if(U.source==G)O.add(U.target);else{if(U.target!=G)throw"Incorrect incidency!";O.add(U.source)}}),O},F.prototype.withChildren=function(){var O=new Set;if(O.add(this),null!=this.child)for(var _=this.child.getNodes(),Q=0;Q<_.length;Q++)_[Q].withChildren().forEach(function(ie){O.add(ie)});return O},F.prototype.getNoOfChildren=function(){var O=0;if(null==this.child)O=1;else for(var U=this.child.getNodes(),_=0;_G&&(this.rect.x-=(this.labelWidth-G)/2,this.setWidth(this.labelWidth)),this.labelHeight>U&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-U)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-U),this.setHeight(this.labelHeight))}}},F.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==P.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},F.prototype.transform=function(O){var G=this.rect.x;G>L.WORLD_BOUNDARY?G=L.WORLD_BOUNDARY:G<-L.WORLD_BOUNDARY&&(G=-L.WORLD_BOUNDARY);var U=this.rect.y;U>L.WORLD_BOUNDARY?U=L.WORLD_BOUNDARY:U<-L.WORLD_BOUNDARY&&(U=-L.WORLD_BOUNDARY);var _=new V(G,U),Q=O.inverseTransformPoint(_);this.setLocation(Q.x,Q.y)},F.prototype.getLeft=function(){return this.rect.x},F.prototype.getRight=function(){return this.rect.x+this.rect.width},F.prototype.getTop=function(){return this.rect.y},F.prototype.getBottom=function(){return this.rect.y+this.rect.height},F.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},Be.exports=F},function(Be,_e,be){"use strict";function z(P,S){null==P&&null==S?(this.x=0,this.y=0):(this.x=P,this.y=S)}z.prototype.getX=function(){return this.x},z.prototype.getY=function(){return this.y},z.prototype.setX=function(P){this.x=P},z.prototype.setY=function(P){this.y=P},z.prototype.getDifference=function(P){return new DimensionD(this.x-P.x,this.y-P.y)},z.prototype.getCopy=function(){return new z(this.x,this.y)},z.prototype.translate=function(P){return this.x+=P.width,this.y+=P.height,this},Be.exports=z},function(Be,_e,be){"use strict";var z=be(2),P=be(10),S=be(0),L=be(6),R=be(3),V=be(1),F=be(13),K=be(12),O=be(11);function G(_,Q,ie){z.call(this,ie),this.estimatedSize=P.MIN_VALUE,this.margin=S.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=_,null!=Q&&Q instanceof L?this.graphManager=Q:null!=Q&&Q instanceof Layout&&(this.graphManager=Q.graphManager)}for(var U in G.prototype=Object.create(z.prototype),z)G[U]=z[U];G.prototype.getNodes=function(){return this.nodes},G.prototype.getEdges=function(){return this.edges},G.prototype.getGraphManager=function(){return this.graphManager},G.prototype.getParent=function(){return this.parent},G.prototype.getLeft=function(){return this.left},G.prototype.getRight=function(){return this.right},G.prototype.getTop=function(){return this.top},G.prototype.getBottom=function(){return this.bottom},G.prototype.isConnected=function(){return this.isConnected},G.prototype.add=function(_,Q,ie){if(null==Q&&null==ie){var se=_;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(se)>-1)throw"Node already in graph!";return se.owner=this,this.getNodes().push(se),se}var ue=_;if(!(this.getNodes().indexOf(Q)>-1&&this.getNodes().indexOf(ie)>-1))throw"Source or target not in graph!";if(Q.owner!=ie.owner||Q.owner!=this)throw"Both owners must be this graph!";return Q.owner!=ie.owner?null:(ue.source=Q,ue.target=ie,ue.isInterGraph=!1,this.getEdges().push(ue),Q.edges.push(ue),ie!=Q&&ie.edges.push(ue),ue)},G.prototype.remove=function(_){var Q=_;if(_ instanceof R){if(null==Q)throw"Node is null!";if(null==Q.owner||Q.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var ie=Q.edges.slice(),ue=ie.length,le=0;le-1&&ke>-1))throw"Source and/or target doesn't know this edge!";if(se.source.edges.splice(Ce,1),se.target!=se.source&&se.target.edges.splice(ke,1),-1==(Ie=se.source.owner.getEdges().indexOf(se)))throw"Not in owner's edge list!";se.source.owner.getEdges().splice(Ie,1)}},G.prototype.updateLeftTop=function(){for(var ie,se,ue,_=P.MAX_VALUE,Q=P.MAX_VALUE,le=this.getNodes(),Ie=le.length,Ce=0;Ce(ie=ke.getTop())&&(_=ie),Q>(se=ke.getLeft())&&(Q=se)}return _==P.MAX_VALUE?null:(ue=null!=le[0].getParent().paddingLeft?le[0].getParent().paddingLeft:this.margin,this.left=Q-ue,this.top=_-ue,new K(this.left,this.top))},G.prototype.updateBounds=function(_){for(var le,Ie,Ce,ke,I,Q=P.MAX_VALUE,ie=-P.MAX_VALUE,se=P.MAX_VALUE,ue=-P.MAX_VALUE,Y=this.nodes,X=Y.length,J=0;J(le=Ee.getLeft())&&(Q=le),ie<(Ie=Ee.getRight())&&(ie=Ie),se>(Ce=Ee.getTop())&&(se=Ce),ue<(ke=Ee.getBottom())&&(ue=ke)}var ee=new F(Q,se,ie-Q,ue-se);Q==P.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),I=null!=Y[0].getParent().paddingLeft?Y[0].getParent().paddingLeft:this.margin,this.left=ee.x-I,this.right=ee.x+ee.width+I,this.top=ee.y-I,this.bottom=ee.y+ee.height+I},G.calculateBounds=function(_){for(var le,Ie,Ce,ke,Q=P.MAX_VALUE,ie=-P.MAX_VALUE,se=P.MAX_VALUE,ue=-P.MAX_VALUE,I=_.length,Y=0;Y(le=X.getLeft())&&(Q=le),ie<(Ie=X.getRight())&&(ie=Ie),se>(Ce=X.getTop())&&(se=Ce),ue<(ke=X.getBottom())&&(ue=ke)}return new F(Q,se,ie-Q,ue-se)},G.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},G.prototype.getEstimatedSize=function(){if(this.estimatedSize==P.MIN_VALUE)throw"assert failed";return this.estimatedSize},G.prototype.calcEstimatedSize=function(){for(var _=0,Q=this.nodes,ie=Q.length,se=0;se=this.nodes.length){var X=0;ie.forEach(function(J){J.owner==_&&X++}),X==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},Be.exports=G},function(Be,_e,be){"use strict";var z,P=be(1);function S(L){z=be(5),this.layout=L,this.graphs=[],this.edges=[]}S.prototype.addRoot=function(){var L=this.layout.newGraph(),R=this.layout.newNode(null),V=this.add(L,R);return this.setRootGraph(V),this.rootGraph},S.prototype.add=function(L,R,V,F,K){if(null==V&&null==F&&null==K){if(null==L)throw"Graph is null!";if(null==R)throw"Parent node is null!";if(this.graphs.indexOf(L)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(L),null!=L.parent)throw"Already has a parent!";if(null!=R.child)throw"Already has a child!";return L.parent=R,R.child=L,L}K=V,V=L;var O=(F=R).getOwner(),G=K.getOwner();if(null==O||O.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==G||G.getGraphManager()!=this)throw"Target not in this graph mgr!";if(O==G)return V.isInterGraph=!1,O.add(V,F,K);if(V.isInterGraph=!0,V.source=F,V.target=K,this.edges.indexOf(V)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(V),null==V.source||null==V.target)throw"Edge source and/or target is null!";if(-1!=V.source.edges.indexOf(V)||-1!=V.target.edges.indexOf(V))throw"Edge already in source and/or target incidency list!";return V.source.edges.push(V),V.target.edges.push(V),V},S.prototype.remove=function(L){if(L instanceof z){var R=L;if(R.getGraphManager()!=this)throw"Graph not in this graph mgr";if(R!=this.rootGraph&&(null==R.parent||R.parent.graphManager!=this))throw"Invalid parent node!";for(var F,V=[],K=(V=V.concat(R.getEdges())).length,O=0;O=L.getRight()?R[0]+=Math.min(L.getX()-S.getX(),S.getRight()-L.getRight()):L.getX()<=S.getX()&&L.getRight()>=S.getRight()&&(R[0]+=Math.min(S.getX()-L.getX(),L.getRight()-S.getRight())),S.getY()<=L.getY()&&S.getBottom()>=L.getBottom()?R[1]+=Math.min(L.getY()-S.getY(),S.getBottom()-L.getBottom()):L.getY()<=S.getY()&&L.getBottom()>=S.getBottom()&&(R[1]+=Math.min(S.getY()-L.getY(),L.getBottom()-S.getBottom()));var K=Math.abs((L.getCenterY()-S.getCenterY())/(L.getCenterX()-S.getCenterX()));L.getCenterY()===S.getCenterY()&&L.getCenterX()===S.getCenterX()&&(K=1);var O=K*R[0],G=R[1]/K;R[0]O)return R[0]=V,R[1]=U,R[2]=K,R[3]=Y,!1;if(FK)return R[0]=G,R[1]=F,R[2]=ke,R[3]=O,!1;if(VK?(R[0]=Q,R[1]=ie,ee=!0):(R[0]=_,R[1]=U,ee=!0):Me===Qe&&(V>K?(R[0]=G,R[1]=U,ee=!0):(R[0]=se,R[1]=ie,ee=!0)),-$e===Qe?K>V?(R[2]=I,R[3]=Y,Ne=!0):(R[2]=ke,R[3]=Ce,Ne=!0):$e===Qe&&(K>V?(R[2]=Ie,R[3]=Ce,Ne=!0):(R[2]=X,R[3]=Y,Ne=!0)),ee&&Ne)return!1;if(V>K?F>O?(vt=this.getCardinalDirection(Me,Qe,4),pt=this.getCardinalDirection($e,Qe,2)):(vt=this.getCardinalDirection(-Me,Qe,3),pt=this.getCardinalDirection(-$e,Qe,1)):F>O?(vt=this.getCardinalDirection(-Me,Qe,1),pt=this.getCardinalDirection(-$e,Qe,3)):(vt=this.getCardinalDirection(Me,Qe,2),pt=this.getCardinalDirection($e,Qe,4)),!ee)switch(vt){case 1:je=U,R[0]=V+-le/Qe,R[1]=je;break;case 2:je=F+ue*Qe,R[0]=se,R[1]=je;break;case 3:je=ie,R[0]=V+le/Qe,R[1]=je;break;case 4:je=F+-ue*Qe,R[0]=Q,R[1]=je}if(!Ne)switch(pt){case 1:ft=Ce,R[2]=K+-Ee/Qe,R[3]=ft;break;case 2:ft=O+J*Qe,R[2]=X,R[3]=ft;break;case 3:ft=Y,R[2]=K+Ee/Qe,R[3]=ft;break;case 4:ft=O+-J*Qe,R[2]=I,R[3]=ft}}return!1},P.getCardinalDirection=function(S,L,R){return S>L?R:1+R%4},P.getIntersection=function(S,L,R,V){if(null==V)return this.getIntersection2(S,L,R);var le,Ie,Ce,ke,I,Y,X,F=S.x,K=S.y,O=L.x,G=L.y,U=R.x,_=R.y,Q=V.x,ie=V.y;return I=O*K-F*G,Y=Q*_-U*ie,0==(X=(le=G-K)*(ke=U-Q)-(Ie=ie-_)*(Ce=F-O))?null:new z((Ce*Y-ke*I)/X,(Ie*I-le*Y)/X)},P.angleOfVector=function(S,L,R,V){var F=void 0;return S!==R?(F=Math.atan((V-L)/(R-S)),R0?1:P<0?-1:0},z.floor=function(P){return P<0?Math.ceil(P):Math.floor(P)},z.ceil=function(P){return P<0?Math.floor(P):Math.ceil(P)},Be.exports=z},function(Be,_e,be){"use strict";function z(){}z.MAX_VALUE=2147483647,z.MIN_VALUE=-2147483648,Be.exports=z},function(Be,_e,be){"use strict";var z=function(){function F(K,O){for(var G=0;G"u"?"undefined":z(S);return null==S||"object"!=L&&"function"!=L},Be.exports=P},function(Be,_e,be){"use strict";function z(U){if(Array.isArray(U)){for(var _=0,Q=Array(U.length);_0&&_;){for(le.push(Ce[0]);le.length>0&&_;){var ke=le[0];le.splice(0,1),ue.add(ke);var I=ke.getEdges();for(se=0;se-1&&Ce.splice(Ee,1)}ue=new Set,Ie=new Map}else U=[]}return U},G.prototype.createDummyNodesForBendpoints=function(U){for(var _=[],Q=U.source,ie=this.graphManager.calcLowestCommonAncestor(U.source,U.target),se=0;se0){for(var ie=this.edgeToDummyNodes.get(Q),se=0;se=0&&_.splice(Y,1),Ie.getNeighborsList().forEach(function(ee){if(Q.indexOf(ee)<0){var Me=ie.get(ee)-1;1==Me&&ke.push(ee),ie.set(ee,Me)}})}Q=Q.concat(ke),(1==_.length||2==_.length)&&(se=!0,ue=_[0])}return ue},G.prototype.setGraphManager=function(U){this.graphManager=U},Be.exports=G},function(Be,_e,be){"use strict";function z(){}z.seed=1,z.x=0,z.nextDouble=function(){return(z.x=1e4*Math.sin(z.seed++))-Math.floor(z.x)},Be.exports=z},function(Be,_e,be){"use strict";var z=be(4);function P(S,L){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}P.prototype.getWorldOrgX=function(){return this.lworldOrgX},P.prototype.setWorldOrgX=function(S){this.lworldOrgX=S},P.prototype.getWorldOrgY=function(){return this.lworldOrgY},P.prototype.setWorldOrgY=function(S){this.lworldOrgY=S},P.prototype.getWorldExtX=function(){return this.lworldExtX},P.prototype.setWorldExtX=function(S){this.lworldExtX=S},P.prototype.getWorldExtY=function(){return this.lworldExtY},P.prototype.setWorldExtY=function(S){this.lworldExtY=S},P.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},P.prototype.setDeviceOrgX=function(S){this.ldeviceOrgX=S},P.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},P.prototype.setDeviceOrgY=function(S){this.ldeviceOrgY=S},P.prototype.getDeviceExtX=function(){return this.ldeviceExtX},P.prototype.setDeviceExtX=function(S){this.ldeviceExtX=S},P.prototype.getDeviceExtY=function(){return this.ldeviceExtY},P.prototype.setDeviceExtY=function(S){this.ldeviceExtY=S},P.prototype.transformX=function(S){var L=0,R=this.lworldExtX;return 0!=R&&(L=this.ldeviceOrgX+(S-this.lworldOrgX)*this.ldeviceExtX/R),L},P.prototype.transformY=function(S){var L=0,R=this.lworldExtY;return 0!=R&&(L=this.ldeviceOrgY+(S-this.lworldOrgY)*this.ldeviceExtY/R),L},P.prototype.inverseTransformX=function(S){var L=0,R=this.ldeviceExtX;return 0!=R&&(L=this.lworldOrgX+(S-this.ldeviceOrgX)*this.lworldExtX/R),L},P.prototype.inverseTransformY=function(S){var L=0,R=this.ldeviceExtY;return 0!=R&&(L=this.lworldOrgY+(S-this.ldeviceOrgY)*this.lworldExtY/R),L},P.prototype.inverseTransformPoint=function(S){return new z(this.inverseTransformX(S.x),this.inverseTransformY(S.y))},Be.exports=P},function(Be,_e,be){"use strict";var P=be(15),S=be(7),L=be(0),R=be(8),V=be(9);function F(){P.call(this),this.useSmartIdealEdgeLengthCalculation=S.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=S.DEFAULT_EDGE_LENGTH,this.springConstant=S.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=S.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=S.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=S.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=S.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=S.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*S.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=S.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=S.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=S.MAX_ITERATIONS}for(var K in F.prototype=Object.create(P.prototype),P)F[K]=P[K];F.prototype.initParameters=function(){P.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=S.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},F.prototype.calcIdealEdgeLengths=function(){for(var O,G,U,_,Q,ie,se=this.getGraphManager().getAllEdges(),ue=0;ueS.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*S.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(O-S.ADAPTATION_LOWER_NODE_LIMIT)/(S.ADAPTATION_UPPER_NODE_LIMIT-S.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-S.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=S.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=O>S.ADAPTATION_LOWER_NODE_LIMIT?Math.max(S.COOLING_ADAPTATION_FACTOR,1-(O-S.ADAPTATION_LOWER_NODE_LIMIT)/(S.ADAPTATION_UPPER_NODE_LIMIT-S.ADAPTATION_LOWER_NODE_LIMIT)*(1-S.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=S.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},F.prototype.calcSpringForces=function(){for(var G,O=this.getAllEdges(),U=0;U0&&void 0!==arguments[0])||arguments[0],G=arguments.length>1&&void 0!==arguments[1]&&arguments[1],se=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%S.GRID_CALCULATION_CHECK_PERIOD==1&&O&&this.updateGrid(),ue=new Set,U=0;U(le=G.getEstimatedSize()*this.gravityRangeFactor)||ue>le)&&(O.gravitationForceX=-this.gravityConstant*Q,O.gravitationForceY=-this.gravityConstant*ie):(se>(le=G.getEstimatedSize()*this.compoundGravityRangeFactor)||ue>le)&&(O.gravitationForceX=-this.gravityConstant*Q*this.compoundGravityConstant,O.gravitationForceY=-this.gravityConstant*ie*this.compoundGravityConstant)},F.prototype.isConverged=function(){var O,G=!1;return this.totalIterations>this.maxIterations/3&&(G=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),O=this.totalDisplacement=se.length||le>=se[0].length))for(var Ie=0;IeF}}]),R}();Be.exports=L},function(Be,_e,be){"use strict";var z=function(){function L(R,V){for(var F=0;F2&&void 0!==arguments[2]?arguments[2]:1,K=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,O=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;(function P(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")})(this,L),this.sequence1=R,this.sequence2=V,this.match_score=F,this.mismatch_penalty=K,this.gap_penalty=O,this.iMax=R.length+1,this.jMax=V.length+1,this.grid=new Array(this.iMax);for(var G=0;G=0;R--){var V=this.listeners[R];V.event===S&&V.callback===L&&this.listeners.splice(R,1)}},P.emit=function(S,L){for(var R=0;R{"use strict";_e.r(Be),_e.d(Be,{diagram:()=>Zp});var be=_e(5861),z=_e(9037);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(s)throw o}}}}var ie=typeof window>"u"?null:window,se=ie?ie.navigator:null,ue=P(""),le=P({}),Ie=P(function(){}),Ce=typeof HTMLElement>"u"?"undefined":P(HTMLElement),ke=function(e){return e&&e.instanceString&&Y(e.instanceString)?e.instanceString():null},I=function(e){return null!=e&&P(e)==ue},Y=function(e){return null!=e&&P(e)===Ie},X=function(e){return!$e(e)&&(Array.isArray?Array.isArray(e):null!=e&&e instanceof Array)},J=function(e){return null!=e&&P(e)===le&&!X(e)&&e.constructor===Object},ee=function(e){return null!=e&&P(e)===P(1)&&!isNaN(e)},Me=function(e){if("undefined"!==Ce)return null!=e&&e instanceof HTMLElement},$e=function(e){return Qe(e)||vt(e)},Qe=function(e){return"collection"===ke(e)&&e._private.single},vt=function(e){return"collection"===ke(e)&&!e._private.single},pt=function(e){return"core"===ke(e)},Ue=function(e){return"stylesheet"===ke(e)},tt=function(e){return null==e||!(""!==e&&!e.match(/^\s+$/))},bt=function(e){return function(e){return null!=e&&P(e)===le}(e)&&Y(e.then)},Xt=function(){return se&&se.userAgent.match(/msie|trident|edge/i)},nr=function(e,r){r||(r=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var i=[],s=0;sr?1:0},Ze=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r=e||E<0||h&&x-u>=i}function g(){var x=oi();if(p(x))return m(x);o=setTimeout(g,function y(x){var C=e-(x-l);return h?Ql(C,i-(x-u)):C}(x))}function m(x){return o=void 0,c&&a?d(x):(a=n=void 0,s)}function T(){var x=oi(),E=p(x);if(a=arguments,n=this,l=x,E){if(void 0===o)return function v(x){return u=x,o=setTimeout(g,e),f?d(x):s}(l);if(h)return clearTimeout(o),o=setTimeout(g,e),d(l)}return void 0===o&&(o=setTimeout(g,e)),s}return e=vs(e)||0,$r(r)&&(f=!!r.leading,i=(h="maxWait"in r)?Zl(vs(r.maxWait)||0,e):i,c="trailing"in r?!!r.trailing:c),T.cancel=function b(){void 0!==o&&clearTimeout(o),u=0,a=l=n=o=void 0},T.flush=function w(){return void 0===o?s:m(oi())},T},ui=ie?ie.performance:null,ds=ui&&ui.now?function(){return ui.now()}:function(){return Date.now()},jl=function(){if(ie){if(ie.requestAnimationFrame)return function(t){ie.requestAnimationFrame(t)};if(ie.mozRequestAnimationFrame)return function(t){ie.mozRequestAnimationFrame(t)};if(ie.webkitRequestAnimationFrame)return function(t){ie.webkitRequestAnimationFrame(t)};if(ie.msRequestAnimationFrame)return function(t){ie.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(ds())},1e3/60)}}(),dn=function(e){return jl(e)},xr=ds,ia=9261,gs=65599,Fa=5381,ps=function(e){for(var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ia;!(n=e.next()).done;)a=a*gs+n.value|0;return a},Ga=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ia)*gs+e|0},za=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fa;return(r<<5)+r+e|0},Or=function(e){return 2097152*e[0]+e[1]},gn=function(e,r){return[Ga(e[0],r[0]),za(e[1],r[1])]},Yr=function(e,r){var a={value:0,done:!1},n=0,i=e.length;return ps({next:function(){return n=0&&(e[n]!==r||(e.splice(n,1),!a));n--);},hi=function(e){e.splice(0,e.length)},ir=function(e,r,a){return a&&(r=Ma(a,r)),e[r]},Ir=function(e,r,a,n){a&&(r=Ma(a,r)),e[r]=n},ff=function(){function t(){S(this,t),this._obj={}}return R(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return void 0!==this._obj[r]}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),dr=typeof Map<"u"?Map:ff,cf=function(){function t(e){if(S(this,t),this._obj=Object.create(null),this.size=0,null!=e){var r;r=null!=e.instanceString&&e.instanceString()===this.instanceString()?e.toArray():e;for(var a=0;a"u"?"undefined":P(Set))?Set:cf,yn=function(e,r){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==r&&pt(e)){var n=r.group;if(null==n&&(n=r.data&&null!=r.data.source&&null!=r.data.target?"edges":"nodes"),"nodes"===n||"edges"===n){this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:void 0===r.selectable||!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:void 0===r.grabbable||!!r.grabbable,pannable:void 0===r.pannable?"edges"===n:!!r.pannable,active:!1,classes:new sa,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];X(r.classes)?u=r.classes:I(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;fm?1:0},f=function(g,m,b,w,T){var x;if(null==b&&(b=0),null==T&&(T=a),b<0)throw new Error("lo must be non-negative");for(null==w&&(w=g.length);bA;0<=A?C++:C--)D.push(C);return D}.apply(this).reverse()).length;wB;0<=B?++D:--D)M.push(s(g,b));return M},y=function(g,m,b,w){var T,x,E;for(null==w&&(w=a),T=g[b];b>m&&w(T,x=g[E=b-1>>1])<0;)g[b]=x,b=E;return g[b]=T},p=function(g,m,b){var w,T,x,E,D;for(null==b&&(b=a),T=g.length,D=m,x=g[m],w=2*m+1;w0;){var x=m.pop(),E=p(x),D=x.id();if(c[D]=E,E!==1/0)for(var C=x.neighborhood().intersect(v),A=0;A0)for(Z.unshift(W);h[oe];){var ae=h[oe];Z.unshift(ae.edge),Z.unshift(ae.node),oe=(re=ae.node).id()}return o.spawn(Z)}}}},pf={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(w){for(var T=0;T0;){if(w=(b=v.pop()).id(),y.delete(w),E++,w===f){for(var D=[],C=i,A=f,B=g[A];D.unshift(C),null!=B&&D.unshift(B),null!=(C=p[A]);)B=g[A=C.id()];return{found:!0,distance:h[w],path:this.spawn(D),steps:E}}d[w]=!0;for(var M=b._private.edges,$=0;$B&&(v[A]=B,m[A]=C,b[A]=T),!i){var M=C*f+D;!i&&v[M]>B&&(v[M]=B,m[M]=D,b[M]=T)}}}for(var $=0;$1&&void 0!==arguments[1]?arguments[1]:s,at=[],et=b(ze);;){if(null==et)return r.spawn();var st=m(et),Te=st.edge,N=st.pred;if(at.unshift(et[0]),et.same(We)&&at.length>0)break;null!=Te&&at.unshift(Te),et=N}return l.spawn(at)},hasNegativeWeightCycle:y,negativeWeightCycles:p}}},Tf=Math.sqrt(2),Cf=function(e,r,a){0===a.length&&Et("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],o=r[n[1]],l=r[n[2]],u=a,f=u.length-1;f>=0;f--){var h=u[f],c=h[1],d=h[2];(r[c]===o&&r[d]===l||r[c]===l&&r[d]===o)&&u.splice(f,1)}for(var v=0;vn;){var i=Math.floor(Math.random()*r.length);r=Cf(i,e,r),a--}return r},Df={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(Z){return Z.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Tf);if(!(i<2)){for(var u=[],f=0;f0?1:e<0?-1:0},Hr=function(e,r){return Math.sqrt(Xr(e,r))},Xr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Mf=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(null!=e.w&&null!=e.h&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Ls=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Ff=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},En=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},wn=function(e){var a,n,i,s,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===r.length)a=n=i=s=r[0];else if(2===r.length)a=i=r[0],s=n=r[1];else if(4===r.length){var o=F(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},As=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},di=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},la=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Gf=function(e,r){return la(e,r.x,r.y)},Os=function(e,r){return la(e,r.x1,r.y1)&&la(e,r.x2,r.y2)},Ns=function(e,r,a,n,i,s,o){var v,q,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"auto",u="auto"===l?qr(i,s):l,f=i/2,h=s/2,c=(u=Math.min(u,f,h))!==f,d=u!==h;if(c){var p=n-h-o;if((v=Mr(e,r,a,n,a-f+u-o,p,a+f-u+o,p,!1)).length>0)return v}if(d){var b=a+f+o;if((v=Mr(e,r,a,n,b,n-h+u-o,b,n+h-u+o,!1)).length>0)return v}if(c){var D=n+h+o;if((v=Mr(e,r,a,n,a-f+u-o,D,a+f-u+o,D,!1)).length>0)return v}if(d){var B=a-f-o;if((v=Mr(e,r,a,n,B,n-h+u-o,B,n+h-u+o,!1)).length>0)return v}var H=a-f+u,W=n-h+u;if((q=Ya(e,r,a,n,H,W,u+o)).length>0&&q[0]<=H&&q[1]<=W)return[q[0],q[1]];var Z=a+f-u,re=n-h+u;if((q=Ya(e,r,a,n,Z,re,u+o)).length>0&&q[0]>=Z&&q[1]<=re)return[q[0],q[1]];var oe=a+f-u,ae=n+h-u;if((q=Ya(e,r,a,n,oe,ae,u+o)).length>0&&q[0]>=oe&&q[1]>=ae)return[q[0],q[1]];var te=a-f+u,ge=n+h-u;return(q=Ya(e,r,a,n,te,ge,u+o)).length>0&&q[0]<=te&&q[1]>=ge?[q[0],q[1]]:[]},zf=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},Vf=function(e,r,a,n,i,s,o,l,u){var f_x1=Math.min(a,o,i)-u,f_x2=Math.max(a,o,i)+u,f_y1=Math.min(n,l,s)-u,f_y2=Math.max(n,l,s)+u;return!(ef_x2||rf_y2)},Yf=function(e,r,a,n,i,s,o,l){var d=[];!function(e,r,a,n,i){var o,l,u,f,h,c,d,v;0===e&&(e=1e-5),u=-27*(n/=e)+(r/=e)*(9*(a/=e)-r*r*2),o=(l=(3*a-r*r)/9)*l*l+(u/=54)*u,i[1]=0,d=r/3,o>0?(h=(h=u+Math.sqrt(o))<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=(c=u-Math.sqrt(o))<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+h+c,i[4]=i[2]=-(d+=(h+c)/2),d=Math.sqrt(3)*(-c+h)/2,i[3]=d,i[5]=-d):(i[5]=i[3]=0,0===o?(v=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=2*v-d,i[4]=i[2]=-(v+d)):(f=(l=-l)*l*l,f=Math.acos(u/Math.sqrt(f)),v=2*Math.sqrt(l),i[0]=-d+v*Math.cos(f/3),i[2]=-d+v*Math.cos((f+2*Math.PI)/3),i[4]=-d+v*Math.cos((f+4*Math.PI)/3)))}(1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,d);for(var y=[],p=0;p<6;p+=2)Math.abs(d[p+1])<1e-7&&d[p]>=0&&d[p]<=1&&y.push(d[p]);y.push(1),y.push(0);for(var m,b,w,g=-1,T=0;T=0?wu?(e-i)*(e-i)+(r-s)*(r-s):f-c},Kt=function(e,r,a){for(var n,i,s,o,u=0,f=0;f=e&&e>=s||n<=e&&e<=s))continue;(e-n)/(s-n)*(o-i)+i>r&&u++}return u%2!=0},Tr=function(e,r,a,n,i,s,o,l,u){var h,y,f=new Array(a.length);null!=l[0]?(h=Math.atan(l[1]/l[0]),l[0]<0?h+=Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),d=Math.sin(-h),v=0;v0){var p=Tn(f,-u);y=xn(p)}else y=f;return Kt(e,r,y)},xn=function(e){for(var o,l,u,f,r=new Array(e.length/2),h=0;h=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),0===m.length)return[];var b=m[0]*l[0]+e,w=m[0]*l[1]+r;return m.length>1?m[0]==m[1]?[b,w]:[b,w,m[1]*l[0]+e,m[1]*l[1]+r]:[b,w]},gi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Mr=function(e,r,a,n,i,s,o,l,u){var f=e-i,h=a-e,c=o-i,d=r-s,v=n-r,y=l-s,p=c*d-y*f,g=h*d-v*f,m=y*h-c*v;if(0!==m){var b=p/m,w=g/m,x=-.001;return x<=b&&b<=1.001&&x<=w&&w<=1.001||u?[e+b*h,r+b*v]:[]}return 0===p||0===g?gi(e,a,o)===o?[o,l]:gi(e,a,i)===i?[i,s]:gi(i,o,a)===a?[a,n]:[]:[]},Ha=function(e,r,a,n,i,s,o,l){var f,d,u=[],h=new Array(a.length),c=!0;if(null==s&&(c=!1),c){for(var v=0;v0){var y=Tn(h,-l);d=xn(y)}else d=h}else d=a;for(var m,b,w=0;wf&&(f=w)},get:function(b){return u[b]}},c=0;c0?q.edgesTo(k)[0]:k.edgesTo(q)[0];var W=n(H);k=k.id(),D[k]>D[M]+W&&(D[k]=D[M]+W,C.nodes.indexOf(k)<0?C.push(k):C.updateItem(k),E[k]=0,x[k]=[]),D[k]==D[M]+W&&(E[k]=E[k]+E[M],x[k].push(M))}else for(var Z=0;Z0;){for(var te=T.pop(),ge=0;ge0&&o.push(a[l]);0!==o.length&&i.push(n.collection(o))}return i}(f,l,r,n);return w=function(e){for(var r=0;r5&&void 0!==arguments[5]?arguments[5]:fh,o=n,f=0;f=2?Xa(e,r,a,0,zs,hh):Xa(e,r,a,0,Gs)},squaredEuclidean:function(e,r,a){return Xa(e,r,a,0,zs)},manhattan:function(e,r,a){return Xa(e,r,a,0,Gs)},max:function(e,r,a){return Xa(e,r,a,-1/0,ch)}};function Dn(t,e,r,a,n,i){var s;return s=Y(t)?t:ca[t]||ca.euclidean,0===e&&Y(t)?s(n,i):s(e,r,a,n,i)}ca["squared-euclidean"]=ca.squaredEuclidean,ca.squaredeuclidean=ca.squaredEuclidean;var vh=Ot({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Ei=function(e){return vh(e)},Sn=function(e,r,a,n,i){var o="kMedoids"!==i?function(h){return a[h]}:function(h){return n[h](a)};return Dn(e,n.length,o,function(c){return n[c](r)},a,r)},wi=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1;return!0},ph=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h=i.threshold||"dendrogram"===i.mode&&1===e.length)return!1;var p,v=r[s],y=r[n[s]];p="dendrogram"===i.mode?{left:v,right:y,key:v.key}:{value:v.value.concat(y.value),key:v.key},e[v.index]=p,e.splice(y.index,1),r[v.key]=p;for(var g=0;ga[y.key][m.key]&&(l=a[y.key][m.key])):"max"===i.linkage?(l=a[v.key][m.key],a[v.key][m.key]o&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;f1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(a0&&e.splice(0,r)):e=e.slice(r,a);for(var o=0,l=e.length-1;l>=0;l--)s?isFinite(e[l])||(e[l]=-1/0,o++):e.splice(l,1);i&&e.sort(function(c,d){return c-d});var f=e.length,h=Math.floor(f/2);return f%2!=0?e[h+1+o]:(e[h-1+o]+e[h+o])/2}(e):"mean"===r?function(e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=0,i=0,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s2&&void 0!==arguments[2]?arguments[2]:e.length,n=1/0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i2&&void 0!==arguments[2]?arguments[2]:e.length,n=-1/0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i=B?(M=B,B=k,$=q):k>M&&(M=k);for(var H=0;H0?1:0;E[C%n.minIterations*o+te]=ge,ae+=ge}if(ae>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var pe=0,xe=0;xe0&&n.push(i);return n}(o,h,c),ve=function(e,r,a){for(var n=qs(e,r,a),i=0;iu&&(l=f,u=h)}a[i]=s[l]}return qs(e,r,a)}(o,u,De),j={},he=0;he1||x>1)&&(o=!0),h[b]=[],m.outgoers().forEach(function(D){D.isEdge()&&h[b].push(D.id())})}else c[b]=[void 0,m.target().id()]}:function(m){var b=m.id();m.isNode()?(m.degree(!0)%2&&(l?u?o=!0:u=b:l=b),h[b]=[],m.connectedEdges().forEach(function(T){return h[b].push(T.id())})):c[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(o)return d;if(u&&l)if(i){if(f&&u!=f)return d;f=u}else{if(f&&u!=f&&l!=f)return d;f||(f=u)}else f||(f=s[0].id());var v=function(b){for(var x,E,D,w=b,T=[b];h[w].length;)x=h[w].shift(),E=c[x][0],w!=(D=c[x][1])?(h[D]=h[D].filter(function(C){return C!=x}),w=D):!i&&w!=E&&(h[E]=h[E].filter(function(C){return C!=x}),w=E),T.unshift(x),T.unshift(w);return T},y=[],p=[];for(p=v(f);1!=p.length;)0==h[p[0]].length?(y.unshift(s.getElementById(p.shift())),y.unshift(s.getElementById(p.shift()))):p=v(p.shift()).concat(p);for(var g in y.unshift(s.getElementById(p.shift())),h)if(h[g].length)return d;return d.found=!0,d.trail=this.spawn(y,!0),d}},An=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},u=function h(c,d,v){c===v&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var p,g,m,b,y=e.getElementById(d).connectedEdges().intersection(e);0===y.size()?i.push(e.spawn(e.getElementById(d))):y.forEach(function(w){p=w.source().id(),g=w.target().id(),(m=p===d?g:p)!==v&&(b=w.id(),o[b]||(o[b]=!0,s.push({x:d,y:m,edge:w})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(h(c,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,function(c,d){for(var v=s.length-1,y=[],p=e.spawn();s[v].x!=c||s[v].y!=d;)y.push(s.pop().edge),v--;y.push(s.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var w=b.id(),T=b.connectedEdges().intersection(e);p.merge(b),p.merge(r[w].cutVertex?T.filter(function(x){return x.isLoop()}):T)})}),i.push(p)}(d,m))))})};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},On=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){if(i.push(u),r[u]={index:a,low:a++,explored:!1},e.getElementById(u).connectedEdges().intersection(e).forEach(function(y){var p=y.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var d=h.edgesWith(h),v=h.merge(d);n.push(v),s=s.difference(v)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},_s={};[Va,gf,pf,mf,Ef,xf,Df,Zf,fa,ha,bi,lh,xh,Ah,Ph,Fh,{hopcroftTarjanBiconnected:An,htbc:An,htb:An,hopcroftTarjanBiconnectedComponents:An},{tarjanStronglyConnected:On,tsc:On,tscc:On,tarjanStronglyConnectedComponents:On}].forEach(function(t){Ze(_s,t)});var Cr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Cr.prototype={fulfill:function(e){return js(this,1,"fulfillValue",e)},reject:function(e){return js(this,2,"rejectReason",e)},then:function(e,r){var a=this,n=new Cr;return a.onFulfilled.push(ro(e,n,"fulfill")),a.onRejected.push(ro(r,n,"reject")),eo(a),n.proxy}};var js=function(e,r,a,n){return 0===e.state&&(e.state=r,e[a]=n,eo(e)),e},eo=function(e){1===e.state?to(e,"onFulfilled",e.fulfillValue):2===e.state&&to(e,"onRejected",e.rejectReason)},to=function(e,r,a){if(0!==e[r].length){var n=e[r];e[r]=[];var i=function(){for(var o=0;o0:void 0}},clearQueue:function(){return function(){var r=this,n=void 0!==r.length?r:[r];if(!(this._private.cy||this).styleEnabled())return this;for(var s=0;s-1},ga.prototype.set=function qc(t,e){var r=this.__data__,a=In(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this};var _c=ga,Qc=Ci(cn,"Map"),Mn=function rv(t,e){var r=t.__data__;return function ev(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map};function pa(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return null!=r&&r._private.classes.has(e)},toggleClass:function(e,r){X(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=void 0===r,i=[],s=0,o=a.length;s0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(null==r)r=250;else if(0===r)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Rn.className=Rn.classNames=Rn.classes;var rt={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:xt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};rt.variable="(?:[\\w-.]|(?:\\\\"+rt.metaChar+"))+",rt.className="(?:[\\w-]|(?:\\\\"+rt.metaChar+"))+",rt.value=rt.string+"|"+rt.number,rt.id=rt.variable,function(){var t,e,r;for(t=rt.comparatorOp.split("|"),r=0;r=0)&&"="!==e&&(rt.comparatorOp+="|\\!"+e)}();var Li=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return function(e,r){return-1*ss(e,r)}(t.selector,e.selector)}),Jv=function(){for(var e,t={},r=0;r0&&f.edgeCount>0)return ot("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return ot("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===f.edgeCount&&ot("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(f){return f??""},r=function(f){return I(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},i=function(f,h){return f.checks.reduce(function(c,d,v){return c+(h===f&&0===v?"$":"")+function(f,h){var d=f.value;switch(f.type){case 0:var v=e(d);return v.substring(0,v.length-1);case 3:return"["+f.field+a(e(f.operator))+r(d)+"]";case 5:var m=f.field;return"["+e(f.operator)+m+"]";case 4:return"["+f.field+"]";case 6:return"[["+f.field+a(e(f.operator))+r(d)+"]]";case 7:return d;case 8:return"#"+d;case 9:return"."+d;case 17:case 15:return i(f.parent,h)+a(">")+i(f.child,h);case 18:case 16:return i(f.ancestor,h)+" "+i(f.descendant,h);case 19:var x=i(f.left,h),E=i(f.subject,h),D=i(f.right,h);return x+(x.length>0?" ":"")+E+D;case 20:return""}}(d,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(i||o||f)&&(l=i||s?""+e:"",u=""+a),f&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),r){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=0===l.indexOf(u);break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return t}function yo(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n1&&void 0!==arguments[1])||arguments[1],yo)},ma.forEachUp=function(t){return Ni(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],mo)},ma.forEachUpAndDown=function(t){return Ni(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],cd)},ma.ancestors=ma.parents,qa=bo={data:ut.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ut.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ut.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ut.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ut.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ut.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},qa.attr=qa.data,qa.removeAttr=qa.removeData;var vd=bo,kn={};function Ii(t){return function(e){var r=this;if(void 0===e&&(e=!0),0===r.length);else if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,s=0;se}),minIndegree:ba("indegree",function(t,e){return te}),minOutdegree:ba("outdegree",function(t,e){return te})}),Ze(kn,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n0;p&&(y=y[0]);var m=p?y.position():{x:0,y:0};return i={x:v.x-m.x,y:v.y-m.y},void 0===e?i:i[e]}for(var l=0;l0;h&&(f=f[0]);var d=h?f.position():{x:0,y:0};void 0!==r?u.position(e,r+d[e]):void 0!==i&&u.position({x:i.x+d.x,y:i.y+d.y})}}else if(!s)return;return this}},sr.modelPosition=sr.point=sr.position,sr.modelPositions=sr.points=sr.positions,sr.renderedPoint=sr.renderedPosition,sr.relativePoint=sr.relativePosition;var Ea,Fr,dd=Eo;Ea=Fr={},Fr.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}},Fr.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();return e.styleEnabled()&&e.hasCompoundNodes()?(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this):this},Fr.updateCompoundBounds=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(s.isParent()){var o=s._private,l=s.children(),u="include"===s.pstyle("compound-sizing-wrt-labels").value,f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=o.position;(0===h.w||0===h.h)&&((h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue}).x1=c.x-h.w/2,h.x2=c.x+h.w/2,h.y1=c.y-h.h/2,h.y2=c.y+h.h/2);var y=f.width.left.value;"px"===f.width.left.units&&f.width.val>0&&(y=100*y/f.width.val);var p=f.width.right.value;"px"===f.width.right.units&&f.width.val>0&&(p=100*p/f.width.val);var g=f.height.top.value;"px"===f.height.top.units&&f.height.val>0&&(g=100*g/f.height.val);var m=f.height.bottom.value;"px"===f.height.bottom.units&&f.height.val>0&&(m=100*m/f.height.val);var b=d(f.width.val-h.w,y,p),w=b.biasDiff,T=b.biasComplementDiff,x=d(f.height.val-h.h,g,m),E=x.biasDiff,D=x.biasComplementDiff;o.autoPadding=function v(C,A,B,M){if("%"!==B.units)return"px"===B.units?B.pfValue:0;switch(M){case"width":return C>0?B.pfValue*C:0;case"height":return A>0?B.pfValue*A:0;case"average":return C>0&&A>0?B.pfValue*(C+A)/2:0;case"min":return C>0&&A>0?C>A?B.pfValue*A:B.pfValue*C:0;case"max":return C>0&&A>0?C>A?B.pfValue*C:B.pfValue*A:0;default:return 0}}(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,f.width.val),c.x=(-w+h.x1+h.x2+T)/2,o.autoHeight=Math.max(h.h,f.height.val),c.y=(-E+h.y1+h.y2+D)/2}function d(C,A,B){var M=0,$=0,k=A+B;return C>0&&k>0&&(M=A/k*C,$=B/k*C),{biasDiff:M,biasComplementDiff:$}}}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},_r=function(e,r){return null==r?e:or(e,r.x1,r.y1,r.x2,r.y2)},Ka=function(e,r,a){return ir(e,r,a)},Pn=function(e,r,a){if(!r.cy().headless()){var l,u,n=r._private,i=n.rstyle,s=i.arrowWidth/2;if("none"!==r.pstyle(a+"-arrow-shape").value){"source"===a?(l=i.srcX,u=i.srcY):"target"===a?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var f=n.arrowBounds=n.arrowBounds||{},h=f[a]=f[a]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,En(h,1),or(e,h.x1,h.y1,h.x2,h.y2)}}},Mi=function(e,r,a){if(!r.cy().headless()){var n,i=r._private,s=i.rstyle;if(r.pstyle((n=a?a+"-":"")+"label").strValue){var B,M,$,k,l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),f=Ka(s,"labelWidth",a),h=Ka(s,"labelHeight",a),c=Ka(s,"labelX",a),d=Ka(s,"labelY",a),v=r.pstyle(n+"text-margin-x").pfValue,y=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),g=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,w=r.pstyle("text-border-width").pfValue/2,T=r.pstyle("text-background-padding").pfValue,E=h,D=f,C=D/2,A=E/2;if(p)B=c-C,M=c+C,$=d-A,k=d+A;else{switch(l.value){case"left":B=c-D,M=c;break;case"center":B=c-C,M=c+C;break;case"right":B=c,M=c+D}switch(u.value){case"top":$=d-E,k=d;break;case"center":$=d-A,k=d+A;break;case"bottom":$=d,k=d+E}}B+=v-Math.max(m,w)-T-2,M+=v+Math.max(m,w)+T+2,$+=y-Math.max(m,w)-T-2,k+=y+Math.max(m,w)+T+2;var q=a||"main",H=i.labelBounds,W=H[q]=H[q]||{};W.x1=B,W.y1=$,W.x2=M,W.y2=k,W.w=M-B,W.h=k-$;var Z=p&&"autorotate"===g.strValue;if(Z||null!=g.pfValue&&0!==g.pfValue){var oe=Z?Ka(i.rstyle,"labelAngle",a):g.pfValue,ae=Math.cos(oe),te=Math.sin(oe),ge=(B+M)/2,pe=($+k)/2;if(!p){switch(l.value){case"left":ge=M;break;case"right":ge=B}switch(u.value){case"top":pe=k;break;case"bottom":pe=$}}var xe=function(Ye,Se){return{x:(Ye-=ge)*ae-(Se-=pe)*te+ge,y:Ye*te+Se*ae+pe}},me=xe(B,$),De=xe(B,k),ve=xe(M,$),j=xe(M,k);B=Math.min(me.x,De.x,ve.x,j.x),M=Math.max(me.x,De.x,ve.x,j.x),$=Math.min(me.y,De.y,ve.y,j.y),k=Math.max(me.y,De.y,ve.y,j.y)}var he=q+"Rot",ye=H[he]=H[he]||{};ye.x1=B,ye.y1=$,ye.x2=M,ye.y2=k,ye.w=M-B,ye.h=k-$,or(e,B,$,M,k),or(i.labelBounds.all,B,$,M,k)}return e}},To=function(e){var r=0,a=function(s){return(s?1:0)<0&&n>0){var i=r.pstyle("outline-offset").value,s=r.pstyle("shape").value,o=n+i,l=(e.w+2*o)/e.w,u=(e.h+2*o)/e.h,h=0;["diamond","pentagon","round-triangle"].includes(s)?(l=(e.w+2.4*o)/e.w,h=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?l=(e.w+2.4*o)/e.w:"star"===s?(l=(e.w+2.8*o)/e.w,u=(e.h+2.6*o)/e.h,h=-o/3.8):"triangle"===s?(l=(e.w+2.8*o)/e.w,u=(e.h+2.4*o)/e.h,h=-o/1.4):"vee"===s&&(l=(e.w+4.4*o)/e.w,u=(e.h+3.8*o)/e.h,h=.5*-o);var d=e.w*l-e.w;if(wn(e,[Math.ceil((e.h*u-e.h)/2),Math.ceil(d/2)]),0!==h){var v=function(e,r,a){return{x1:e.x1+0,x2:e.x2+0,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}}(e,0,h);Ls(e,v)}}}}(s,e)}else if(u&&r.includeEdges)if(n&&!i){var H=e.pstyle("curve-style").strValue;if(f=Math.min(p.srcX,p.midX,p.tgtX),h=Math.max(p.srcX,p.midX,p.tgtX),c=Math.min(p.srcY,p.midY,p.tgtY),d=Math.max(p.srcY,p.midY,p.tgtY),or(s,f-=A,c-=A,h+=A,d+=A),"haystack"===H){var W=p.haystackPts;if(W&&2===W.length){if((f=W[0].x)>(h=W[1].x)){var Z=f;f=h,h=Z}if((c=W[0].y)>(d=W[1].y)){var re=c;c=d,d=re}or(s,f-A,c-A,h+A,d+A)}}else if("bezier"===H||"unbundled-bezier"===H||H.endsWith("segments")||H.endsWith("taxi")){var oe;switch(H){case"bezier":case"unbundled-bezier":oe=p.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":oe=p.linePts}if(null!=oe)for(var ae=0;ae(h=me.x)){var De=f;f=h,h=De}if((c=pe.y)>(d=me.y)){var ve=c;c=d,d=ve}or(s,f-=A,c-=A,h+=A,d+=A)}if(n&&r.includeEdges&&u&&(Pn(s,e,"mid-source"),Pn(s,e,"mid-target"),Pn(s,e,"source"),Pn(s,e,"target")),n&&"yes"===e.pstyle("ghost").value){var he=e.pstyle("ghost-offset-x").pfValue,ye=e.pstyle("ghost-offset-y").pfValue;or(s,s.x1+he,s.y1+ye,s.x2+he,s.y2+ye)}var Oe=o.bodyBounds=o.bodyBounds||{};As(Oe,s),wn(Oe,g),En(Oe,1),n&&or(s,(f=s.x1)-D,(c=s.y1)-D,(h=s.x2)+D,(d=s.y2)+D);var Ye=o.overlayBounds=o.overlayBounds||{};As(Ye,s),wn(Ye,g),En(Ye,1);var Se=o.labelBounds=o.labelBounds||{};null!=Se.all?function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0}(Se.all):Se.all=qt(),n&&r.includeLabels&&(r.includeMainLabels&&Mi(s,e,null),u&&(r.includeSourceLabels&&Mi(s,e,"source"),r.includeTargetLabels&&Mi(s,e,"target")))}return s.x1=tr(s.x1),s.y1=tr(s.y1),s.x2=tr(s.x2),s.y2=tr(s.y2),s.w=tr(s.x2-s.x1),s.h=tr(s.y2-s.y1),s.w>0&&s.h>0&&b&&(wn(s,g),En(s,1)),s}(e,_a),a.bbCache=n,a.bbCachePosKey=l):n=a.bbCache,!o){var d=e.isNode();n=qt(),(r.includeNodes&&d||r.includeEdges&&!d)&&_r(n,r.includeOverlays?a.overlayBounds:a.bodyBounds),r.includeLabels&&(r.includeMainLabels&&(!i||r.includeSourceLabels&&r.includeTargetLabels)?_r(n,a.labelBounds.all):(r.includeMainLabels&&_r(n,a.labelBounds.mainRot),r.includeSourceLabels&&_r(n,a.labelBounds.sourceRot),r.includeTargetLabels&&_r(n,a.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},_a={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},So=To(_a),Lo=Ot(_a);Fr.boundingBox=function(t){var e;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==t&&void 0!==t.useCache&&!0!==t.useCache){e=qt();var r=Lo(t=t||_a),a=this;if(a.cy().styleEnabled())for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:Id,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this},Gr.removeAllListeners=function(){return this.removeListener("*")},Gr.emit=Gr.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,X(e)||(e=[e]),function(e,r,a){if(function(e){return"event"===ke(e)}(a))r(e,a);else if(J(a))r(e,Po(e,a));else for(var n=X(a)?a:a.split(/\s+/),i=0;i1&&e!==this.length-1){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,i.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){var i=this._private.map.get((e=e[0])._private.data.id);return i?(this.unmergeAt(i.index),this):this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&I(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n=0;r--)e(this[r])&&this.unmergeAt(r);return this},map:function(e,r){for(var a=[],n=this,i=0;ia&&(a=l,n=o)}return{value:a,ele:n}},min:function(e,r){for(var n,a=1/0,i=this,s=0;s=0&&i"u"?"undefined":P(Symbol))!=e&&P(Symbol.iterator)!=e&&(zn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return V({next:function(){return i1&&void 0!==arguments[1])||arguments[1],a=this[0],n=a.cy();if(n.styleEnabled()&&a)return this.cleanStyle(),a._private.style[e]??(r?n.style().getDefaultProperty(e):null)},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return void 0!==a.pfValue?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];return a?r.style().getRenderedStyle(a,e):void 0},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var i=a.style();if(J(e))i.applyBypass(this,e,!1),this.emitAndNotify("style");else if(I(e)){if(void 0===r){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}i.applyBypass(this,e,r,!1),this.emitAndNotify("style")}else if(void 0===e){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=r.style(),i=this;if(void 0===e)for(var s=0;s0&&e.push(f[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),Bt.neighbourhood=Bt.neighborhood,Bt.closedNeighbourhood=Bt.closedNeighborhood,Bt.openNeighbourhood=Bt.openNeighborhood,Ze(Bt,{source:er(function(e){var a,r=this[0];return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:er(function(e){var a,r=this[0];return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:Ho({attr:"source"}),targets:Ho({attr:"target"})}),Ze(Bt,{edgesWith:er(Xo(),"edgesWith"),edgesTo:er(Xo({thisIsSrc:!0}),"edgesTo")}),Ze(Bt,{connectedEdges:er(function(t){for(var e=[],a=0;a0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),Bt.componentsOf=Bt.components;var It=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e){var i=new dr,s=!1;if(r){if(r.length>0&&J(r[0])&&!Qe(r[0])){s=!0;for(var o=[],l=new sa,u=0,f=r.length;u0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,a=r.cy(),n=a._private,i=[],s=[],l=0,u=r.length;l0){for(var re=o.length===r.length?r:new It(a,o),oe=0;oe0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,a=[],n={},i=r._private.cy;function l(k){var q=n[k.id()];e&&k.removed()||q||(n[k.id()]=!0,k.isNode()?(a.push(k),function s(k){for(var q=k._private.edges,H=0;H0&&(t?B.emitAndNotify("remove"):e&&B.emit("remove"));for(var M=0;M=i?function m(A,B){for(var M=0;M0?M=k:B=k}while(Math.abs($)>s&&++qf&&Math.abs(v.v)>f;);return c?function(y){return l[y*(l.length-1)|0]}:u}}(),gt=function(e,r,a,n){var i=$d(e,r,a,n);return function(s,o,l){return s+(o-s)*i(l)}},Yn={linear:function(e,r,a){return e+(r-e)*a},ease:gt(.25,.1,.25,1),"ease-in":gt(.42,0,1,1),"ease-out":gt(0,0,.58,1),"ease-in-out":gt(.42,0,.58,1),"ease-in-sine":gt(.47,0,.745,.715),"ease-out-sine":gt(.39,.575,.565,1),"ease-in-out-sine":gt(.445,.05,.55,.95),"ease-in-quad":gt(.55,.085,.68,.53),"ease-out-quad":gt(.25,.46,.45,.94),"ease-in-out-quad":gt(.455,.03,.515,.955),"ease-in-cubic":gt(.55,.055,.675,.19),"ease-out-cubic":gt(.215,.61,.355,1),"ease-in-out-cubic":gt(.645,.045,.355,1),"ease-in-quart":gt(.895,.03,.685,.22),"ease-out-quart":gt(.165,.84,.44,1),"ease-in-out-quart":gt(.77,0,.175,1),"ease-in-quint":gt(.755,.05,.855,.06),"ease-out-quint":gt(.23,1,.32,1),"ease-in-out-quint":gt(.86,0,.07,1),"ease-in-expo":gt(.95,.05,.795,.035),"ease-out-expo":gt(.19,1,.22,1),"ease-in-out-expo":gt(1,0,0,1),"ease-in-circ":gt(.6,.04,.98,.335),"ease-out-circ":gt(.075,.82,.165,1),"ease-in-out-circ":gt(.785,.135,.15,.86),spring:function(e,r,a){if(0===a)return Yn.linear;var n=Yd(e,r,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":gt};function qo(t,e,r,a,n){if(1===a||e===r)return r;var i=n(e,r,a);return null==t||((t.roundValue||t.color)&&(i=Math.round(i)),void 0!==t.min&&(i=Math.max(i,t.min)),void 0!==t.max&&(i=Math.min(i,t.max))),i}function Ko(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function Ta(t,e,r,a,n){var i=null!=n?n.type:null;r<0?r=0:r>1&&(r=1);var s=Ko(t,n),o=Ko(e,n);if(ee(s)&&ee(o))return qo(i,s,o,r,a);if(X(s)&&X(o)){for(var l=[],u=0;u0?("spring"===d&&v.push(s.duration),s.easingImpl=Yn[d].apply(null,v)):s.easingImpl=Yn[d]}var p,y=s.easingImpl;if(p=0===s.duration?1:(r-l)/s.duration,s.applying&&(p=s.progress),p<0?p=0:p>1&&(p=1),null==s.delay){var g=s.startPosition,m=s.position;if(m&&n&&!t.locked()){var b={};ja(g.x,m.x)&&(b.x=Ta(g.x,m.x,p,y)),ja(g.y,m.y)&&(b.y=Ta(g.y,m.y,p,y)),t.position(b)}var w=s.startPan,T=s.pan,x=i.pan,E=null!=T&&a;E&&(ja(w.x,T.x)&&(x.x=Ta(w.x,T.x,p,y)),ja(w.y,T.y)&&(x.y=Ta(w.y,T.y,p,y)),t.emit("pan"));var D=s.startZoom,C=s.zoom,A=null!=C&&a;A&&(ja(D,C)&&(i.zoom=$a(i.minZoom,Ta(D,C,p,y),i.maxZoom)),t.emit("zoom")),(E||A)&&t.emit("viewport");var B=s.style;if(B&&B.length>0&&n){for(var M=0;M=0;E--)(0,x[E])();x.splice(0,x.length)},m=d.length-1;m>=0;m--){var b=d[m],w=b._private;w.stopped?(d.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,g(w.frames)):!w.playing&&!w.applying||(w.playing&&w.applying&&(w.applying=!1),w.started||Xd(0,b,t),Hd(f,b,t,h),w.applying&&(w.applying=!1),g(w.frames),null!=w.step&&w.step(t),b.completed()&&(d.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,g(w.completes)),y=!0)}return!h&&0===d.length&&0===v.length&&a.push(f),y}for(var i=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Wd={animate:ut.animate(),animation:ut.animation(),animated:ut.animated(),clearQueue:ut.clearQueue(),delay:ut.delay(),delayAnimation:ut.delayAnimation(),stop:ut.stop(),addToAnimationPool:function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){_o(s,e)},a.beforeRenderPriorities.animations):function r(){e._private.animationsRunning&&dn(function(i){_o(i,e),r()})}()}}},qd={qualifierCompare:function(e,r){return null==e||null==r?null==e&&null==r:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return null==n||e!==a.target&&Qe(a.target)&&n.matches(a.target)},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return null!=r.qualifier?a.target:e}},Hn=function(e){return I(e)?new kr(e):e},Zo={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Fn(qd,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Hn(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Hn(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Hn(r),a),this},once:function(e,r,a){return this.emitter().one(e,Hn(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};ut.eventAliasesOn(Zo);var Pi={png:function(e){return this._private.renderer.png(e=e||{})},jpg:function(e){var r=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",r.jpg(e)}};Pi.jpeg=Pi.jpg;var Xn={layout:function(e){var r=this;if(null!=e)if(null!=e.name){var i,a=e.name,n=r.extension("layout",a);if(null!=n)return i=I(e.eles)?r.$(e.eles):null!=e.eles?e.eles:r.$(),new n(Ze({},e,{cy:r,eles:i}));Et("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?")}else Et("A `name` must be specified to make a layout");else Et("Layout options must be specified to make a layout")}};Xn.createLayout=Xn.makeLayout=Xn.layout;var Kd={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();null!=r&&n.merge(r)}else if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return void 0===e?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Bi.invalidateDimensions=Bi.resize;var Wn={collection:function(e,r){return I(e)?this.$(e):$e(e)?e.collection():X(e)?(r||(r={}),new It(this,e,r.unique,r.removed)):new It(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Wn.elements=Wn.filter=Wn.$;var Ft={apply:function(t){for(var e=this,n=e._private.cy.collection(),i=0;i0;if(c||h&&d){var v=void 0;c&&d||c?v=u.properties:d&&(v=u.mappedProperties);for(var y=0;y1&&(w=1),o.color){var x=a.valueMin[0],D=a.valueMin[1],C=a.valueMax[1],A=a.valueMin[2],B=a.valueMax[2],M=null==a.valueMin[3]?1:a.valueMin[3],$=null==a.valueMax[3]?1:a.valueMax[3],k=[Math.round(x+(a.valueMax[0]-x)*w),Math.round(D+(C-D)*w),Math.round(A+(B-A)*w),Math.round(M+($-M)*w)];i={bypass:a.bypass,name:a.name,value:k,strValue:"rgb("+k[0]+", "+k[1]+", "+k[2]+")"}}else{if(!o.number)return!1;i=this.parse(a.name,a.valueMin+(a.valueMax-a.valueMin)*w,a.bypass,c)}if(!i)return y(),!1;i.mapping=a,a=i;break;case s.data:for(var H=a.field.split("."),W=h.data,Z=0;Z0&&i>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(b):b()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)},checkTrigger:function(t,e,r,a,n,i){var s=this.properties[e],o=n(s);null!=o&&o(r,a)&&i(s)},checkZOrderTrigger:function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})},checkBoundsTrigger:function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&"curve-style"===e&&("bezier"===r||"bezier"===a)&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&"display"===e&&("none"===r||"none"===a)&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},checkTriggers:function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)}},tn={applyBypass:function(t,e,r,a){var i=[];if("*"===e||"**"===e){if(void 0!==r)for(var o=0;on.length?a.substr(n.length):""}function l(){i=i.length>s.length?i.substr(s.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");!a.match(/^\s*$/);){var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){ot("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var h=f[1];if("core"!==h&&new kr(h).invalid)ot("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();else{var d=f[2],v=!1;i=d;for(var y=[];!i.match(/^\s*$/);){var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){ot("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),v=!0;break}s=g[0];var m=g[1],b=g[2];this.properties[m]?r.parse(m,b)?(y.push({name:m,val:b}),l()):(ot("Skipping property: Invalid property definition in: "+s),l()):(ot("Skipping property: Invalid property name in: "+s),l())}if(v){o();break}r.selector(h);for(var x=0;x=7&&"d"===e[0]&&(f=new RegExp(o.data.regex).exec(e)))return!r&&{name:t,value:f,strValue:""+e,mapped:o.data,field:f[1],bypass:r};if(e.length>=10&&"m"===e[0]&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var d=o.mapData;if(!u.color&&!u.number)return!1;var v=this.parse(t,h[4]);if(!v||v.mapped)return!1;var y=this.parse(t,h[5]);if(!y||y.mapped)return!1;if(v.pfValue===y.pfValue||v.strValue===y.strValue)return ot("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+v.strValue+"`"),this.parse(t,v.strValue);if(u.color){var p=v.value,g=y.value;if(!(p[0]!==g[0]||p[1]!==g[1]||p[2]!==g[2]||p[3]!==g[3]&&(null!=p[3]&&1!==p[3]||null!=g[3]&&1!==g[3])))return!1}return{name:t,value:h,strValue:""+e,mapped:d,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:v.value,valueMax:y.value,bypass:r}}}if(u.multiple&&"multiple"!==a){var b;if(b=l?e.split(/\s+/):X(e)?e:[e],u.evenMultiple&&b.length%2!=0)return null;for(var w=[],T=[],x=[],E="",D=!1,C=0;C0?" ":"")+A.strValue}return u.validate&&!u.validate(w,T)?null:u.singleEnum&&D?1===w.length&&I(w[0])?{name:t,value:w[0],strValue:w[0],bypass:r}:null:{name:t,value:w,pfValue:x,strValue:E,bypass:r,units:T}}var B=function(){for(var j=0;ju.max||u.strictMax&&e===u.max))return null;var H={name:t,value:e,strValue:""+e+(M||""),units:M,bypass:r};return H.pfValue=u.unitless||"px"!==M&&"em"!==M?e:"px"!==M&&M?this.getEmSizeInPixels()*e:e,("ms"===M||"s"===M)&&(H.pfValue="ms"===M?e:1e3*e),("deg"===M||"rad"===M)&&(H.pfValue="rad"===M?e:function(e){return Math.PI*e/180}(e)),"%"===M&&(H.pfValue=e/100),H}if(u.propList){var W=[],Z=""+e;if("none"!==Z){for(var re=Z.split(/\s*,\s*|\s+/),oe=0;oe255)return;r.push(Math.floor(s))}if((n[1]||n[2]||n[3])&&!(n[1]&&n[2]&&n[3]))return;var u=a[4];if(void 0!==u){if((u=parseFloat(u))<0||u>1)return;r.push(u)}}return r}(e)||function(e){var r,a,n,i,s,o,l,u;function f(v,y,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?v+6*(y-v)*p:p<.5?y:p<2/3?v+(y-v)*(2/3-p)*6:v}var h=new RegExp("^"+nl+"$").exec(e);if(h){if((a=parseInt(h[1]))<0?a=(360- -1*a%360)%360:a>360&&(a%=360),a/=360,(n=parseFloat(h[2]))<0||n>100||(n/=100,(i=parseFloat(h[3]))<0||i>100)||(i/=100,void 0!==(s=h[4])&&((s=parseFloat(s))<0||s>1)))return;if(0===n)o=l=u=Math.round(255*i);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;o=Math.round(255*f(d,c,a+1/3)),l=Math.round(255*f(d,c,a)),u=Math.round(255*f(d,c,a-1/3))}r=[o,l,u,s]}return r}(e)}(e);return te?{name:t,value:te,pfValue:te,strValue:"rgb("+te[0]+","+te[1]+","+te[2]+")",bypass:r}:null}if(u.regex||u.regexes){if(u.enums){var ge=B();if(ge)return ge}for(var pe=u.regexes?u.regexes:[u.regex],xe=0;xe0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0)return{zoom:l=(l=(l=Math.min((s-2*r)/a.w,(o-2*r)/a.h))>this._private.maxZoom?this._private.maxZoom:l)=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var i,s,r=this._private,a=r.pan,n=r.zoom,o=!1;return r.zoomingEnabled||(o=!0),ee(e)?s=e:J(e)&&(s=e.level,null!=e.position?i=mn(e.position,n,a):null!=e.renderedPosition&&(i=e.renderedPosition),null!=i&&!r.panningEnabled&&(o=!0)),s=(s=s>r.maxZoom?r.maxZoom:s)r.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;ee(u.x)&&(r.pan.x=u.x,o=!1),ee(u.y)&&(r.pan.y=u.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(I(e)){var a=e;e=this.mutableElements().filter(a)}else $e(e)||(e=this.mutableElements());if(0!==e.length){var n=e.boundingBox(),i=this.width(),s=this.height();return{x:(i-(r=void 0===r?this._private.zoom:r)*(n.x1+n.x2))/2,y:(s-r*(n.y1+n.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var n,i,e=this._private,r=e.container;return e.sizeCache=e.sizeCache||(r?(n=this.window().getComputedStyle(r),{width:r.clientWidth-(i=function(o){return parseFloat(n.getPropertyValue(o))})("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};Zr.centre=Zr.center,Zr.autolockNodes=Zr.autolock,Zr.autoungrabifyNodes=Zr.autoungrabify;var rn={data:ut.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ut.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ut.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ut.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};rn.attr=rn.data,rn.removeAttr=rn.removeData;var an=function(e){var r=this,a=(e=Ze({},e)).container;a&&!Me(a)&&Me(a[0])&&(a=a[0]);var n=a?a._cyreg:null;(n=n||{})&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var s=void 0!==ie&&void 0!==a&&!e.headless,o=e;o.layout=Ze({name:s?"grid":"null"},o.layout),o.renderer=Ze({name:s?"canvas":"null"},o.renderer);var l=function(v,y,p){return void 0!==y?y:void 0!==p?p:v},u=this._private={container:a,ready:!1,options:o,elements:new It(this),listeners:[],aniEles:new It(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?s:o.styleEnabled,zoom:ee(o.zoom)?o.zoom:1,pan:{x:J(o.pan)&&ee(o.pan.x)?o.pan.x:0,y:J(o.pan)&&ee(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom}),u.styleEnabled&&r.setStyle([]);var h=Ze({},o,o.renderer);r.initRenderer(h),function(v,y){if(v.some(bt))return va.all(v).then(y);y(v)}([o.style,o.elements],function(d){var v=d[0],y=d[1];u.styleEnabled&&r.style().append(v),function(v,y,p){r.notifications(!1);var g=r.mutableElements();g.length>0&&g.remove(),null!=v&&(J(v)||X(v))&&r.add(v),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var m=Ze({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()}(y,function(){r.startAnimationLoop(),u.ready=!0,Y(o.ready)&&r.on("ready",o.ready);for(var p=0;p0,l=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if($e(e.roots))u=e.roots;else if(X(e.roots)){for(var f=[],h=0;h0;){var q=B.shift(),H=A(q,M);if(H)q.outgoers().filter(function(Se){return Se.isNode()&&a.has(Se)}).forEach($);else if(null===H){ot("Detected double maximal shift for node `"+q.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}C();var W=0;if(e.avoidOverlap)for(var Z=0;Z0&&g[0].length<=3?et/2:0),N=2*Math.PI/g[He].length*ze;return 0===He&&1===g[0].length&&(Te=1),{x:ye_x+Te*Math.cos(N),y:ye_y+Te*Math.sin(N)}}return{x:ye_x+(ze+1-(We+1)/2)*lt,y:(He+1)*at}}),this};var tg={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function jo(t){this.options=Ze({},tg,t)}jo.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var f,s=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},u=(void 0===e.sweep?2*Math.PI-2*Math.PI/i.length:e.sweep)/Math.max(1,i.length-1),h=0,c=0;c1&&e.avoidOverlap){h*=1.75;var g=Math.cos(u)-Math.cos(0),m=Math.sin(u)-Math.sin(0),b=Math.sqrt(h*h/(g*g+m*m));f=Math.max(b,f)}return a.nodes().layoutPositions(this,e,function(x,E){var D=e.startAngle+E*u*(n?1:-1),C=f*Math.cos(D),A=f*Math.sin(D);return{x:o.x+C,y:o.y+A}}),this};var rg={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function eu(t){this.options=Ze({},rg,t)}eu.prototype.run=function(){for(var t=this.options,e=t,r=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),s=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,f=0;f0&&Math.abs(m[0].value-w.value)>=p&&g.push(m=[]),m.push(w)}var x=u+e.minNodeSpacing;if(!e.avoidOverlap){var E=g.length>0&&g[0].length>1,D=Math.min(s.w,s.h)/2-x;x=Math.min(x,D/(g.length+E?1:0))}for(var A=0,B=0;B1&&e.avoidOverlap){var q=Math.cos(k)-Math.cos(0),H=Math.sin(k)-Math.sin(0),W=Math.sqrt(x*x/(q*q+H*H));A=Math.max(W,A)}M.r=A,A+=x}if(e.equidistant){for(var Z=0,re=0,oe=0;oe=t.numIter||(fg(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature=t.animationThreshold&&i(),dn(h)):(au(a,t),o())}();else{for(;u;)u=s(l),l++;au(a,t),o()}return this},Zn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Zn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var ng=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=qt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=a.eles.components(),u={},f=0;f0)for(o.graphSet.push(D),f=0;fn.count?0:n.graph},sg=function t(e,r,a,n){var i=n.graphSet[a];if(-10)var d=(h=n.nodeOverlap*f)*o/(c=Math.sqrt(o*o+l*l)),v=h*l/c;else{var h,y=Qn(e,o,l),p=Qn(r,-1*o,-1*l),g=p.x-y.x,m=p.y-y.y,b=g*g+m*m,c=Math.sqrt(b);d=(h=(e.nodeRepulsion+r.nodeRepulsion)/b)*g/c,v=h*m/c}e.isLocked||(e.offsetX-=d,e.offsetY-=v),r.isLocked||(r.offsetX+=d,r.offsetY+=v)}},vg=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else i=r.maxX-e.minX;if(n>0)var s=e.maxY-r.minY;else s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},Qn=function(e,r,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=a/r,u=s/o,f={};return 0===r&&0a?(f.x=n,f.y=i+s/2,f):0r&&-1*u<=l&&l<=u?(f.x=n-o/2,f.y=i-o*a/2/r,f):0=u)?(f.x=n+s*r/2/a,f.y=i+s/2,f):(0>a&&(l<=-1*u||l>=u)&&(f.x=n-s*r/2/a,f.y=i-s/2),f)},dg=function(e,r){for(var a=0;a1){var g=r.gravity*v/y;c.offsetX+=r.gravity*d/y,c.offsetY+=g}}}}},pg=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],l=e.layoutNodes[e.idToIndex[s]],u=l.children;if(0a)var i={x:a*e/n,y:a*r/n};else i={x:e,y:r};return i},bg=function t(e,r){var a=e.parentId;if(null!=a){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((null==n.maxX||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(null==n.minX||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(null==n.minY||e.minY-n.padTopg&&(v+=p+r.componentSpacing,d=0,y=0,p=0)}}},Eg={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function nu(t){this.options=Ze({},Eg,t)}nu.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=qt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(0===i.h||0===i.w)a.nodes().layoutPositions(this,e,function(ge){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),f=function(pe){if(null==pe)return Math.min(l,u);Math.min(l,u)==l?l=pe:u=pe},h=function(pe){if(null==pe)return Math.max(l,u);Math.max(l,u)==l?l=pe:u=pe},c=e.rows,d=null!=e.cols?e.cols:e.columns;if(null!=c&&null!=d)l=c,u=d;else if(null!=c&&null==d)l=c,u=Math.ceil(s/l);else if(null==c&&null!=d)u=d,l=Math.ceil(s/u);else if(u*l>s){var v=f(),y=h();(v-1)*y>=s?f(v-1):(y-1)*v>=s&&h(y-1)}else for(;u*l=s?h(g+1):f(p+1)}var m=i.w/u,b=i.h/l;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var w=0;w=u&&(q=0,k++)},W={},Z=0;Z(q=Hf(t,e,H[W],H[W+1],H[W+2],H[W+3])))return p(E,q),!0}else if("bezier"===C.edgeType||"multibezier"===C.edgeType||"self"===C.edgeType||"compound"===C.edgeType)for(H=C.allpts,W=0;W+5(q=Yf(t,e,H[W],H[W+1],H[W+2],H[W+3],H[W+4],H[W+5])))return p(E,q),!0;Z=Z||D.source,re=re||D.target;var oe=n.getArrowWidth(A,B),ae=[{name:"source",x:C.arrowStartX,y:C.arrowStartY,angle:C.srcArrowAngle},{name:"target",x:C.arrowEndX,y:C.arrowEndY,angle:C.tgtArrowAngle},{name:"mid-source",x:C.midX,y:C.midY,angle:C.midsrcArrowAngle},{name:"mid-target",x:C.midX,y:C.midY,angle:C.midtgtArrowAngle}];for(W=0;W0&&(g(Z),g(re))}function b(E,D,C){return ir(E,D,C)}function w(E,D){var B,C=E._private,A=c;B=D?D+"-":"",E.boundingBox();var M=C.labelBounds[D||"main"],$=E.pstyle(B+"label").value;if("yes"===E.pstyle("text-events").strValue&&$){var q=b(C.rscratch,"labelX",D),H=b(C.rscratch,"labelY",D),W=b(C.rscratch,"labelAngle",D),Z=E.pstyle(B+"text-margin-x").pfValue,re=E.pstyle(B+"text-margin-y").pfValue,oe=M.x1-A-Z,ae=M.x2+A-Z,te=M.y1-A-re,ge=M.y2+A-re;if(W){var pe=Math.cos(W),xe=Math.sin(W),me=function(Ye,Se){return{x:(Ye-=q)*pe-(Se-=H)*xe+q,y:Ye*xe+Se*pe+H}},De=me(oe,te),ve=me(oe,ge),j=me(ae,te),he=me(ae,ge);if(Kt(t,e,[De.x+Z,De.y+re,j.x+Z,j.y+re,he.x+Z,he.y+re,ve.x+Z,ve.y+re]))return p(E),!0}else if(la(M,t,e))return p(E),!0}}r&&(s=s.interactive);for(var T=s.length-1;T>=0;T--){var x=s[T];x.isNode()?g(x)||w(x):m(x)||w(x)||w(x,"source")||w(x,"target")}return o},getAllInBox:function(t,e,r,a){for(var n=this.getCachedZSortedEles().interactive,i=[],s=Math.min(t,r),o=Math.max(t,r),l=Math.min(e,a),u=Math.max(e,a),f=qt({x1:t=s,y1:e=l,x2:r=o,y2:a=u}),h=0;h0?-(Math.PI-e.ang):Math.PI+e.ang}(rr,pr),gu(r,a,rr),hu=pr.nx*rr.nx-pr.ny*-rr.ny,Dr=Math.asin(Math.max(-1,Math.min(1,pr.nx*rr.ny-pr.ny*rr.nx))),Math.abs(Dr)<1e-6)return $i=r.x,Yi=r.y,void(ea=Da=0);Jr=1,jn=!1,hu<0?Dr<0?Dr=Math.PI+Dr:(Dr=Math.PI-Dr,Jr=-1,jn=!0):Dr>0&&(Jr=-1,jn=!0),Da=void 0!==r.radius?r.radius:n,jr=Dr/2,ei=Math.min(pr.len/2,rr.len/2),i?(yr=Math.abs(Math.cos(jr)*Da/Math.sin(jr)))>ei?(yr=ei,ea=Math.abs(yr*Math.sin(jr)/Math.cos(jr))):ea=Da:(yr=Math.min(ei,Da),ea=Math.abs(yr*Math.sin(jr)/Math.cos(jr))),$i=(Hi=r.x+rr.nx*yr)-rr.ny*ea*Jr,Yi=(Xi=r.y+rr.ny*yr)+rr.nx*ea*Jr,cu=r.x+pr.nx*yr,vu=r.y+pr.ny*yr,du=r};function pu(t,e){0===e.radius?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Wi(t,e,r,a){return 0===a||0===e.radius?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Sg(t,e,r,a,!(arguments.length>4&&void 0!==arguments[4])||arguments[4]),{cx:$i,cy:Yi,radius:ea,startX:cu,startY:vu,stopX:Hi,stopY:Xi,startAngle:pr.ang+Math.PI/2*Jr,endAngle:rr.ang-Math.PI/2*Jr,counterClockwise:jn})}var Vt={};function yu(t){var e=[];if(null!=t){for(var r=0;r0?Math.max(qe-Ke,0):Math.min(qe+Ke,0)},$=M(A,p?(h+d)/2:0),k=M(B,C),q=!1;"auto"===m?g=Math.abs($)>Math.abs(k)?n:a:m===l||m===o?(g=a,q=!0):(m===i||m===s)&&(g=n,q=!0);var ae,H=g===a,W=H?k:$,Z=H?B:A,re=Ss(Z),oe=!1;(!q||!w&&!x)&&(m===o&&Z<0||m===l&&Z>0||m===i&&Z>0||m===s&&Z<0)&&(W=(re*=-1)*Math.abs(W),oe=!0);var pe=function(qe){return Math.abs(qe)=Math.abs(W)},xe=pe(ae=w?(T<0?1+T:T)*W:(T<0?W:0)+T*re),me=pe(Math.abs(W)-Math.abs(ae));if(!xe&&!me||oe)if(H){var Te=f.y1+ae+(p?c/2*re:0);r.segpts=[f.x1,Te,f.x2,Te]}else{var we=f.x1+ae+(p?h/2*re:0);r.segpts=[we,f.y1,we,f.y2]}else if(H){var ve=Math.abs(Z)<=c/2,j=Math.abs(A)<=d/2;if(ve){var he=(f.x1+f.x2)/2;r.segpts=[he,f.y1,he,f.y2]}else if(j){var Ye=(f.y1+f.y2)/2;r.segpts=[f.x1,Ye,f.x2,Ye]}else r.segpts=[f.x1,f.y2]}else{var Fe=Math.abs(Z)<=h/2,He=Math.abs(B)<=v/2;if(Fe){var ze=(f.y1+f.y2)/2;r.segpts=[f.x1,ze,f.x2,ze]}else if(He){var at=(f.x1+f.x2)/2;r.segpts=[at,f.y1,at,f.y2]}else r.segpts=[f.x2,f.y1]}if(r.isRound){var Ae=t.pstyle("taxi-radius").value,de="arc-radius"===t.pstyle("radius-type").value[0];r.radii=new Array(r.segpts.length/2).fill(Ae),r.isArcRadius=new Array(r.segpts.length/2).fill(de)}},Vt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if("bezier"===r.edgeType){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,f=e.tgtShape,h=e.srcCornerRadius,c=e.tgtCornerRadius,d=e.srcRs,v=e.tgtRs,y=!ee(r.startX)||!ee(r.startY),p=!ee(r.arrowStartX)||!ee(r.arrowStartY),g=!ee(r.endX)||!ee(r.endY),m=!ee(r.arrowEndX)||!ee(r.arrowEndY),T=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,x=Hr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),E=xk.poolIndex()){var q=$;$=k,k=q}var H=C.srcPos=$.position(),W=C.tgtPos=k.position(),Z=C.srcW=$.outerWidth(),re=C.srcH=$.outerHeight(),oe=C.tgtW=k.outerWidth(),ae=C.tgtH=k.outerHeight(),te=C.srcShape=r.nodeShapes[e.getNodeShape($)],ge=C.tgtShape=r.nodeShapes[e.getNodeShape(k)],pe=C.srcCornerRadius="auto"===$.pstyle("corner-radius").value?"auto":$.pstyle("corner-radius").pfValue,xe=C.tgtCornerRadius="auto"===k.pstyle("corner-radius").value?"auto":k.pstyle("corner-radius").pfValue,me=C.tgtRs=k._private.rscratch,De=C.srcRs=$._private.rscratch;C.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ve=0;ve0){var Oe=i,Ye=Xr(Oe,oa(r)),Se=Xr(Oe,oa(ye)),Re=Ye;Se2&&Xr(Oe,{x:ye[2],y:ye[3]})0){var fe=s,Ae=Xr(fe,oa(r)),de=Xr(fe,oa(ce)),Le=Ae;de2&&Xr(fe,{x:ce[2],y:ce[3]})=v||b===y.length-1&&T===w.segments.length-1){p={cp:w,segment:x};break}}if(p)break}var D=p.cp,C=p.segment,A=(v-g)/C.length,B=C.t1-C.t0,M=d?C.t0+B*A:C.t1-B*A;M=$a(0,M,1),e=ua(D.p0,D.p1,D.p2,M),c=function(e,r,a,n){var i=$a(0,n-.001,1),s=$a(0,n+.001,1),o=ua(e,r,a,i),l=ua(e,r,a,s);return bu(o,l)}(D.p0,D.p1,D.p2,M);break;case"straight":case"segments":case"haystack":for(var k,q,H,W,$=0,Z=a.allpts.length,re=0;re+3=v));re+=2);var ae=(v-q)/k;ae=$a(0,ae,1),e=function(e,r,a,n){var i_x=r.x-e.x,i_y=r.y-e.y,s=Hr(e,r);return a=a??0,{x:e.x+i_x/s*(n=n??a*s),y:e.y+i_y/s*n}}(H,W,ae),c=bu(H,W)}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,c)}};u("source"),u("target"),this.applyLabelDimensions(t)}},mr.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},mr.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,s=t.pstyle("text-wrap").strValue,o=ir(r.rscratch,"labelWrapCachedLines",e)||[],l="wrap"!==s?1:Math.max(o.length,1),u=n.height/l,f=u*i,h=n.width,c=n.height+(l-1)*(i-1)*u;Ir(r.rstyle,"labelWidth",e,h),Ir(r.rscratch,"labelWidth",e,h),Ir(r.rstyle,"labelHeight",e,c),Ir(r.rscratch,"labelHeight",e,c),Ir(r.rscratch,"labelLineHeight",e,f)},mr.getLabelText=function(t,e){var r=t._private,n=t.pstyle((e?e+"-":"")+"label").strValue,i=t.pstyle("text-transform").value,s=function(ge,pe){return pe?(Ir(r.rscratch,ge,e,pe),pe):ir(r.rscratch,ge,e)};if(!n)return"";"none"==i||("uppercase"==i?n=n.toUpperCase():"lowercase"==i&&(n=n.toLowerCase()));var o=t.pstyle("text-wrap").value;if("wrap"===o){var l=s("labelKey");if(null!=l&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var f=n.split("\n"),h=t.pstyle("text-max-width").pfValue,d="anywhere"===t.pstyle("text-overflow-wrap").value,v=[],y=/[\s\u200b]+|$/g,p=0;ph){var C,x="",E=0,D=Q(g.matchAll(y));try{for(D.s();!(C=D.n()).done;){var A=C.value,B=A[0],M=g.substring(E,A.index);E=A.index+B.length,this.calculateLabelDimensions(t,0===x.length?M:x+M+B).width<=h?x+=M+B:(x&&v.push(x),x=M+B)}}catch(te){D.e(te)}finally{D.f()}x.match(/^[\s\u200b]+$/)||v.push(x)}else v.push(g)}s("labelWrapCachedLines",v),n=s("labelWrapCachedText",v.join("\n")),s("labelWrapKey",l)}else if("ellipsis"===o){var H=t.pstyle("text-max-width").pfValue,W="",re=!1;if(this.calculateLabelDimensions(t,n).widthH);oe++)W+=n[oe],oe===n.length-1&&(re=!0);return re||(W+="\u2026"),W}return n},mr.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(r){case"left":return"right";case"right":return"left";default:return"center"}},mr.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window().document,i=Yr(e,t._private.labelDimsKey),s=r.labelDimCache||(r.labelDimCache=[]),o=s[i];if(null!=o)return o;var u=t.pstyle("font-style").strValue,f=t.pstyle("font-size").pfValue,h=t.pstyle("font-family").strValue,c=t.pstyle("font-weight").strValue,d=this.labelCalcCanvas,v=this.labelCalcCanvasContext;if(!d){d=this.labelCalcCanvas=n.createElement("canvas"),v=this.labelCalcCanvasContext=d.getContext("2d");var y=d.style;y.position="absolute",y.left="-9999px",y.top="-9999px",y.zIndex="-1",y.visibility="hidden",y.pointerEvents="none"}v.font="".concat(u," ").concat(c," ").concat(f,"px ").concat(h);for(var p=0,g=0,m=e.split("\n"),b=0;b1&&void 0!==arguments[1])||arguments[1];if(e.merge(s),o)for(var l=0;l"u")&&e instanceof HTMLElement}(t);if(null==e.supportsPassiveEvents){var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});r.addEventListener("test",null,i)}catch{}e.supportsPassiveEvents=n}var s=function(l,u,f){var h=Array.prototype.slice.call(arguments);return a&&e.supportsPassiveEvents&&(h[2]={capture:f??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:h}),(t.addEventListener||t.on).apply(t,h),this};return{on:s,addEventListener:s,addListener:s,bind:s}},nodeIsDraggable:function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},nodeIsGrabbable:function(t){return this.nodeIsDraggable(t)&&t.interactive()}};Sa.load=function(){var t=this,e=t.cy.window(),r=function(N){return N.selected()},a=function(N,ne,we,ce){null==N&&(N=t.cy);for(var fe=0;fe=t.desktopTapThreshold2}var Ht=n(N);ct&&(t.hoverData.tapholdCancelled=!0),we=!0,a(Ve,["mousemove","vmousemove","tapdrag"],N,{x:de[0],y:de[1]});var ar=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||ce.emit({originalEvent:N,type:"boxstart",position:{x:de[0],y:de[1]}}),Ke[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(ct){var Zt={originalEvent:N,type:"cxtdrag",position:{x:de[0],y:de[1]}};Ge?Ge.emit(Zt):ce.emit(Zt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Ve!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:de[0],y:de[1]}}),t.hoverData.cxtOver=Ve,Ve&&Ve.emit({originalEvent:N,type:"cxtdragover",position:{x:de[0],y:de[1]}}))}}else if(t.hoverData.dragging){if(we=!0,ce.panningEnabled()&&ce.userPanningEnabled()){var Er;if(t.hoverData.justStartedPan){var Ar=t.hoverData.mdownPos;Er={x:(de[0]-Ar[0])*fe,y:(de[1]-Ar[1])*fe},t.hoverData.justStartedPan=!1}else Er={x:Xe[0]*fe,y:Xe[1]*fe};ce.panBy(Er),ce.emit("dragpan"),t.hoverData.dragged=!0}de=t.projectIntoViewport(N.clientX,N.clientY)}else if(1!=Ke[4]||null!=Ge&&!Ge.pannable()){if(Ge&&Ge.pannable()&&Ge.active()&&Ge.unactivate(),(!Ge||!Ge.grabbed())&&Ve!=Je&&(Je&&a(Je,["mouseout","tapdragout"],N,{x:de[0],y:de[1]}),Ve&&a(Ve,["mouseover","tapdragover"],N,{x:de[0],y:de[1]}),t.hoverData.last=Ve),Ge)if(ct){if(ce.boxSelectionEnabled()&&Ht)Ge&&Ge.grabbed()&&(p(mt),Ge.emit("freeon"),mt.emit("free"),t.dragData.didDrag&&(Ge.emit("dragfreeon"),mt.emit("dragfree"))),ar();else if(Ge&&Ge.grabbed()&&t.nodeIsDraggable(Ge)){var St=!t.dragData.didDrag;St&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||v(mt,{inDragLayer:!0});var At={x:0,y:0};if(ee(Xe[0])&&ee(Xe[1])&&(At.x+=Xe[0],At.y+=Xe[1],St)){var Ut=t.hoverData.dragDelta;Ut&&ee(Ut[0])&&ee(Ut[1])&&(At.x+=Ut[0],At.y+=Ut[1])}t.hoverData.draggingEles=!0,mt.silentShift(At).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else 0===(wr=t.hoverData.dragDelta=t.hoverData.dragDelta||[]).length?(wr.push(Xe[0]),wr.push(Xe[1])):(wr[0]+=Xe[0],wr[1]+=Xe[1]);we=!0}else ct&&(t.hoverData.dragging||!ce.boxSelectionEnabled()||!Ht&&ce.panningEnabled()&&ce.userPanningEnabled()?!t.hoverData.selecting&&ce.panningEnabled()&&ce.userPanningEnabled()&&i(Ge,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Ke[4]=0,t.data.bgActivePosistion=oa(Le),t.redrawHint("select",!0),t.redraw()):ar(),Ge&&Ge.pannable()&&Ge.active()&&Ge.unactivate());if(Ke[2]=de[0],Ke[3]=de[1],we)return N.stopPropagation&&N.stopPropagation(),N.preventDefault&&N.preventDefault(),!1}},!1),t.registerBinding(e,"mouseup",function(N){if((1!==t.hoverData.which||1===N.which||!t.hoverData.capture)&&t.hoverData.capture){t.hoverData.capture=!1;var we=t.cy,ce=t.projectIntoViewport(N.clientX,N.clientY),fe=t.selection,Ae=t.findNearestElement(ce[0],ce[1],!0,!1),de=t.dragData.possibleDragElements,Le=t.hoverData.down,qe=n(N);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Le&&Le.unactivate(),3===t.hoverData.which){var Ke={originalEvent:N,type:"cxttapend",position:{x:ce[0],y:ce[1]}};if(Le?Le.emit(Ke):we.emit(Ke),!t.hoverData.cxtDragged){var Ve={originalEvent:N,type:"cxttap",position:{x:ce[0],y:ce[1]}};Le?Le.emit(Ve):we.emit(Ve)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(a(Ae,["mouseup","tapend","vmouseup"],N,{x:ce[0],y:ce[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(Le,["click","tap","vclick"],N,{x:ce[0],y:ce[1]}),B=!1,N.timeStamp-M<=we.multiClickDebounceTime()?(A&&clearTimeout(A),B=!0,M=null,a(Le,["dblclick","dbltap","vdblclick"],N,{x:ce[0],y:ce[1]})):(A=setTimeout(function(){B||a(Le,["oneclick","onetap","voneclick"],N,{x:ce[0],y:ce[1]})},we.multiClickDebounceTime()),M=N.timeStamp)),null==Le&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(N)&&(we.$(r).unselect(["tapunselect"]),de.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=de=we.collection()),Ae==Le&&!t.dragData.didDrag&&!t.hoverData.selecting&&null!=Ae&&Ae._private.selectable&&(t.hoverData.dragging||("additive"===we.selectionType()||qe?Ae.selected()?Ae.unselect(["tapunselect"]):Ae.select(["tapselect"]):qe||(we.$(r).unmerge(Ae).unselect(["tapunselect"]),Ae.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var Je=we.collection(t.getAllInBox(fe[0],fe[1],fe[2],fe[3]));t.redrawHint("select",!0),Je.length>0&&t.redrawHint("eles",!0),we.emit({type:"boxend",originalEvent:N,position:{x:ce[0],y:ce[1]}}),"additive"===we.selectionType()||qe||we.$(r).unmerge(Je).unselect(),Je.emit("box").stdFilter(function(ct){return ct.selectable()&&!ct.selected()}).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!fe[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Xe=Le&&Le.grabbed();p(de),Xe&&(Le.emit("freeon"),de.emit("free"),t.dragData.didDrag&&(Le.emit("dragfreeon"),de.emit("dragfree")))}}fe[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}},!1);var $=function(N){if(!t.scrollingPage){var ne=t.cy,we=ne.zoom(),ce=ne.pan(),fe=t.projectIntoViewport(N.clientX,N.clientY),Ae=[fe[0]*we+ce.x,fe[1]*we+ce.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||0!==t.selection[4])return void N.preventDefault();if(ne.panningEnabled()&&ne.userPanningEnabled()&&ne.zoomingEnabled()&&ne.userZoomingEnabled()){var de;N.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150),de=null!=N.deltaY?N.deltaY/-250:null!=N.wheelDeltaY?N.wheelDeltaY/1e3:N.wheelDelta/1e3,de*=t.wheelSensitivity,1===N.deltaMode&&(de*=33);var qe=ne.zoom()*Math.pow(10,de);"gesturechange"===N.type&&(qe=t.gestureStartZoom*N.scale),ne.zoom({level:qe,renderedPosition:{x:Ae[0],y:Ae[1]}}),ne.emit("gesturechange"===N.type?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",$,!0),t.registerBinding(e,"scroll",function(N){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(N){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||N.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(Te){t.hasTouchStarted||$(Te)},!0),t.registerBinding(t.container,"mouseout",function(N){var ne=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseout",position:{x:ne[0],y:ne[1]}})},!1),t.registerBinding(t.container,"mouseover",function(N){var ne=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseover",position:{x:ne[0],y:ne[1]}})},!1);var k,q,H,W,Z,re,oe,ae,te,ge,pe,xe,me,j,he,ye,Oe,Ye,Se,Re,De=function(N,ne,we,ce){return Math.sqrt((we-N)*(we-N)+(ce-ne)*(ce-ne))},ve=function(N,ne,we,ce){return(we-N)*(we-N)+(ce-ne)*(ce-ne)};if(t.registerBinding(t.container,"touchstart",j=function(N){if(t.hasTouchStarted=!0,C(N)){m(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var ne=t.cy,we=t.touchData.now,ce=t.touchData.earlier;if(N.touches[0]){var fe=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);we[0]=fe[0],we[1]=fe[1]}if(N.touches[1]&&(fe=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY),we[2]=fe[0],we[3]=fe[1]),N.touches[2]&&(fe=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY),we[4]=fe[0],we[5]=fe[1]),N.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var Ae=t.findContainerClientCoords();pe=Ae[2],xe=Ae[3],q=N.touches[0].clientY-(ge=Ae[1]),H=N.touches[1].clientX-(te=Ae[0]),W=N.touches[1].clientY-ge,me=0<=(k=N.touches[0].clientX-te)&&k<=pe&&0<=H&&H<=pe&&0<=q&&q<=xe&&0<=W&&W<=xe;var de=ne.pan(),Le=ne.zoom();if(Z=De(k,q,H,W),re=ve(k,q,H,W),ae=[((oe=[(k+H)/2,(q+W)/2])[0]-de.x)/Le,(oe[1]-de.y)/Le],re<4e4&&!N.touches[2]){var Ve=t.findNearestElement(we[0],we[1],!0,!0),Je=t.findNearestElement(we[2],we[3],!0,!0);return Ve&&Ve.isNode()?(Ve.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:we[0],y:we[1]}}),t.touchData.start=Ve):Je&&Je.isNode()?(Je.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:we[0],y:we[1]}}),t.touchData.start=Je):ne.emit({originalEvent:N,type:"cxttapstart",position:{x:we[0],y:we[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,void t.redraw()}}if(N.touches[2])ne.boxSelectionEnabled()&&N.preventDefault();else if(!N.touches[1]&&N.touches[0]){var Ge=t.findNearestElements(we[0],we[1],!0,!0),Xe=Ge[0];if(null!=Xe&&(Xe.activate(),t.touchData.start=Xe,t.touchData.starts=Ge,t.nodeIsGrabbable(Xe))){var mt=t.dragData.touchDragEles=ne.collection(),ct=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),Xe.selected()?(ct=ne.$(function(Pt){return Pt.selected()&&t.nodeIsGrabbable(Pt)}),v(ct,{addToList:mt})):y(Xe,{addToList:mt}),f(Xe);var Yt=function(Ht){return{originalEvent:N,type:Ht,position:{x:we[0],y:we[1]}}};Xe.emit(Yt("grabon")),ct?ct.forEach(function(Pt){Pt.emit(Yt("grab"))}):Xe.emit(Yt("grab"))}a(Xe,["touchstart","tapstart","vmousedown"],N,{x:we[0],y:we[1]}),null==Xe&&(t.data.bgActivePosistion={x:fe[0],y:fe[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){!1===t.touchData.singleTouchMoved&&!t.pinching&&!t.touchData.selecting&&a(t.touchData.start,["taphold"],N,{x:we[0],y:we[1]})},t.tapholdDuration)}if(N.touches.length>=1){for(var kt=t.touchData.startPosition=[null,null,null,null,null,null],Dt=0;Dt=t.touchTapThreshold2}if(ne&&t.touchData.cxt){N.preventDefault();var Ht=ve(kt=N.touches[0].clientX-te,Dt=N.touches[0].clientY-ge,_t=N.touches[1].clientX-te,Pt=N.touches[1].clientY-ge);if(Ht/re>=2.25||Ht>=22500){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var fr={originalEvent:N,type:"cxttapend",position:{x:fe[0],y:fe[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(fr),t.touchData.start=null):ce.emit(fr)}}if(ne&&t.touchData.cxt){fr={originalEvent:N,type:"cxtdrag",position:{x:fe[0],y:fe[1]}},t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(fr):ce.emit(fr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var St=t.findNearestElement(fe[0],fe[1],!0,!0);(!t.touchData.cxtOver||St!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:fe[0],y:fe[1]}}),t.touchData.cxtOver=St,St&&St.emit({originalEvent:N,type:"cxtdragover",position:{x:fe[0],y:fe[1]}}))}else if(ne&&N.touches[2]&&ce.boxSelectionEnabled())N.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||ce.emit({originalEvent:N,type:"boxstart",position:{x:fe[0],y:fe[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,we[4]=1,we&&0!==we.length&&void 0!==we[0]?(we[2]=(fe[0]+fe[2]+fe[4])/3,we[3]=(fe[1]+fe[3]+fe[5])/3):(we[0]=(fe[0]+fe[2]+fe[4])/3,we[1]=(fe[1]+fe[3]+fe[5])/3,we[2]=(fe[0]+fe[2]+fe[4])/3+1,we[3]=(fe[1]+fe[3]+fe[5])/3+1),t.redrawHint("select",!0),t.redraw();else if(ne&&N.touches[1]&&!t.touchData.didSelect&&ce.zoomingEnabled()&&ce.panningEnabled()&&ce.userZoomingEnabled()&&ce.userPanningEnabled()){if(N.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),At=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var Ut=0;Ut0&&!t.hoverData.draggingEles&&!t.swipePanning&&null!=t.data.bgActivePosistion&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1),t.registerBinding(e,"touchcancel",ye=function(N){var ne=t.touchData.start;t.touchData.capture=!1,ne&&ne.unactivate()}),t.registerBinding(e,"touchend",Oe=function(N){var ne=t.touchData.start;if(t.touchData.capture){0===N.touches.length&&(t.touchData.capture=!1),N.preventDefault();var ce=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var Ke,fe=t.cy,Ae=fe.zoom(),de=t.touchData.now,Le=t.touchData.earlier;if(N.touches[0]){var qe=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);de[0]=qe[0],de[1]=qe[1]}if(N.touches[1]&&(qe=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY),de[2]=qe[0],de[3]=qe[1]),N.touches[2]&&(qe=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY),de[4]=qe[0],de[5]=qe[1]),ne&&ne.unactivate(),t.touchData.cxt){if(Ke={originalEvent:N,type:"cxttapend",position:{x:de[0],y:de[1]}},ne?ne.emit(Ke):fe.emit(Ke),!t.touchData.cxtDragged){var Ve={originalEvent:N,type:"cxttap",position:{x:de[0],y:de[1]}};ne?ne.emit(Ve):fe.emit(Ve)}return t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,void t.redraw()}if(!N.touches[2]&&fe.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var Je=fe.collection(t.getAllInBox(ce[0],ce[1],ce[2],ce[3]));ce[0]=void 0,ce[1]=void 0,ce[2]=void 0,ce[3]=void 0,ce[4]=0,t.redrawHint("select",!0),fe.emit({type:"boxend",originalEvent:N,position:{x:de[0],y:de[1]}}),Je.emit("box").stdFilter(function(Zt){return Zt.selectable()&&!Zt.selected()}).select().emit("boxselect"),Je.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(ne?.unactivate(),N.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!N.touches[1]&&!N.touches[0]&&!N.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Xe=t.dragData.touchDragEles;if(null!=ne){var mt=ne._private.grabbed;p(Xe),t.redrawHint("drag",!0),t.redrawHint("eles",!0),mt&&(ne.emit("freeon"),Xe.emit("free"),t.dragData.didDrag&&(ne.emit("dragfreeon"),Xe.emit("dragfree"))),a(ne,["touchend","tapend","vmouseup","tapdragout"],N,{x:de[0],y:de[1]}),ne.unactivate(),t.touchData.start=null}else{var ct=t.findNearestElement(de[0],de[1],!0,!0);a(ct,["touchend","tapend","vmouseup","tapdragout"],N,{x:de[0],y:de[1]})}var Yt=t.touchData.startPosition[0]-de[0],Dt=t.touchData.startPosition[1]-de[1],Ht=(Yt*Yt+Dt*Dt)*Ae*Ae;t.touchData.singleTouchMoved||(ne||fe.$(":selected").unselect(["tapunselect"]),a(ne,["tap","vclick"],N,{x:de[0],y:de[1]}),Ye=!1,N.timeStamp-Re<=fe.multiClickDebounceTime()?(Se&&clearTimeout(Se),Ye=!0,Re=null,a(ne,["dbltap","vdblclick"],N,{x:de[0],y:de[1]})):(Se=setTimeout(function(){Ye||a(ne,["onetap","voneclick"],N,{x:de[0],y:de[1]})},fe.multiClickDebounceTime()),Re=N.timeStamp)),null!=ne&&!t.dragData.didDrag&&ne._private.selectable&&Ht"u"){var Fe=[],He=function(N){return{clientX:N.clientX,clientY:N.clientY,force:1,identifier:N.pointerId,pageX:N.pageX,pageY:N.pageY,radiusX:N.width/2,radiusY:N.height/2,screenX:N.screenX,screenY:N.screenY,target:N.target}},lt=function(N){for(var ne=0;ne2){for(var v=[f[0],f[1]],y=Math.pow(v[0]-e,2)+Math.pow(v[1]-r,2),p=1;p0)return te[0]}return null},v=Object.keys(c),y=0;y0?d:Ns(i,s,e,r,a,n,o,l)},checkPoint:function(e,r,a,n,i,s,o,l){var u=2*(l="auto"===l?qr(n,i):l);if(Tr(e,r,this.points,s,o,n,i-u,[0,-1],a)||Tr(e,r,this.points,s,o,n-u,i,[0,-1],a))return!0;var f=n/2+2*a,h=i/2+2*a;return!!(Kt(e,r,[s-f,o-h,s-f,o,s+f,o,s+f,o-h])||Wr(e,r,u,u,s+n/2-l,o+i/2-l,a)||Wr(e,r,u,u,s-n/2+l,o+i/2-l,a))}}},registerNodeShapes:function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",$t(3,0)),this.generateRoundPolygon("round-triangle",$t(3,0)),this.generatePolygon("rectangle",$t(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r),this.generatePolygon("pentagon",$t(5,0)),this.generateRoundPolygon("round-pentagon",$t(5,0)),this.generatePolygon("hexagon",$t(6,0)),this.generateRoundPolygon("round-hexagon",$t(6,0)),this.generatePolygon("heptagon",$t(7,0)),this.generateRoundPolygon("round-heptagon",$t(7,0)),this.generatePolygon("octagon",$t(8,0)),this.generateRoundPolygon("round-octagon",$t(8,0));var a=new Array(20),n=pi(5,0),i=pi(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*(Ki-(u?c:0)))break}else if(u){if(m>=e.deqCost*d||m>=e.deqAvgCost*c)break}else if(b>=e.deqNoDrawCost*Ki)break;var T=e.deq(a,p,y);if(!(T.length>0))break;for(var x=0;x0&&(e.onDeqd(a,v),!u&&e.shouldRedraw(a,v,p,y)&&i())},(e.priority||fi)(a))}}},Ng=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn;S(this,t),this.idsByKey=new dr,this.keyForId=new dr,this.cachesByLvl=new dr,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return R(t,[{key:"getIdsFor",value:function(r){null==r&&Et("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new sa,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){null!=r&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){null!=r&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return null==r?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id();return this.keyForId.get(a)!==this.getKey(r)}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new dr,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return null!=i&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id());return this.getCache(n,a)}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||0===this.getNumberOfIdsForKey(n)}}]),t}(),Aa={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Xg=Ot({getKey:null,doesEleInvalidateKey:pn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:bs,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),on=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Xg(r);Ze(a,n),a.lookup=new Ng(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Tt=on.prototype;Tt.reasons=Aa,Tt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Tt.getRetiredTextureQueue=function(t){var r=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return r[t]=r[t]||[]},Tt.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new Ua(function(r,a){return a.reqs-r.reqs})},Tt.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},Tt.getElement=function(t,e,r,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||0===e.w||0===e.h||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(null==a&&(a=Math.ceil(vi(o*r))),a<-4)a=-4;else if(o>=7.99||a>3)return null;var u=Math.pow(2,a),f=e.h*u,h=e.w*u,c=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,c))return null;var v,d=l.get(t,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;if(v=f<=25?25:f<=50?50:50*Math.ceil(f/50),f>1024||h>1024)return null;var y=i.getTextureQueue(v),p=y[y.length-2],g=function(){return i.recycleTexture(v,h)||i.addTexture(v,h)};p||(p=y[y.length-1]),p||(p=g()),p.width-p.usedWidtha;B--)C=i.getElement(t,e,r,B,Aa.downscale);A()}else{var M;if(!b&&!w&&!T)for(var $=a-1;$>=-4;$--){var k=l.get(t,$);if(k){M=k;break}}if(m(M))return i.queueElement(t,a),M;p.context.translate(p.usedWidth,0),p.context.scale(u,u),this.drawElement(p.context,t,e,c,!1),p.context.scale(1/u,1/u),p.context.translate(-p.usedWidth,0)}return d={x:p.usedWidth,texture:p,level:a,scale:u,width:h,height:f,scaledLabelShown:c},p.usedWidth+=Math.ceil(h+8),p.eleCaches.push(d),l.set(t,a,d),i.checkTextureFullness(p),d},Tt.invalidateElements=function(t){for(var e=0;e=.2*t.width&&this.retireTexture(t)},Tt.checkTextureFullness=function(t){var r=this.getTextureQueue(t.height);t.usedWidth/t.width>.8&&t.fullnessChecks>=10?Nr(r,t):t.fullnessChecks++},Tt.retireTexture=function(t){var r=t.height,a=this.getTextureQueue(r),n=this.lookup;Nr(a,t),t.retired=!0;for(var i=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,hi(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Nr(n,s),a.push(s),s}},Tt.queueElement=function(t,e){var a=this.getElementQueue(),n=this.getElementKeyToQueue(),i=this.getKey(t),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,a.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(o),n[i]=o}},Tt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s<1&&r.size()>0;s++){var o=r.pop(),l=o.key,u=o.eles[0],f=i.hasCache(u,o.level);if(a[l]=null,!f){n.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,Aa.dequeue)}}return n},Tt.removeFromQueue=function(t){var r=this.getElementQueue(),a=this.getElementKeyToQueue(),n=this.getKey(t),i=a[n];null!=i&&(1===i.eles.length?(i.reqs=li,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))},Tt.onDequeue=function(t){this.onDequeues.push(t)},Tt.offDequeue=function(t){Nr(this.onDequeues,t)},Tt.setupDequeueing=Lu_setupDequeueing({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a=3.99||r>2)return null;a.validateLayersElesOrdering(r,t);var h,d,l=a.layersByLevel,u=Math.pow(2,r),f=l[r]=l[r]||[];if(a.levelIsComplete(r,t))return f;!function(){var A=function(q){if(a.validateLayersElesOrdering(q,t),a.levelIsComplete(q,t))return d=l[q],!0},B=function(q){if(!d)for(var H=r+q;-4<=H&&H<=2&&!A(H);H+=q);};B(1),B(-1);for(var M=f.length-1;M>=0;M--){var $=f[M];$.invalid&&Nr(f,$)}}();var p=function(A){var B=(A=A||{}).after;if(function(){if(!h){h=qt();for(var A=0;A16e6)return null;var $=a.makeLayer(h,r);if(null!=B){var k=f.indexOf(B)+1;f.splice(k,0,$)}else(void 0===A.insert||A.insert)&&f.unshift($);return $};if(a.skipping&&!o)return null;for(var g=null,m=t.length/1,b=!o,w=0;w=m||!Os(g.bb,T.boundingBox()))&&!(g=p({insert:!0,after:g})))return null;d||b?a.queueLayer(g,T):a.drawEleInLayer(g,T,r,e),g.eles.push(T),E[r]=g}}return d||(b?null:f)},Rt.getEleLevelForLayerLevel=function(t,e){return t},Rt.drawEleInLayer=function(t,e,r,a){var i=this.renderer,s=t.context,o=e.boundingBox();0===o.w||0===o.h||!e.visible()||(r=this.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,!0),i.setImgSmoothing(s,!0))},Rt.levelIsComplete=function(t,e){var a=this.layersByLevel[t];if(!a||0===a.length)return!1;for(var n=0,i=0;i0||s.invalid)return!1;n+=s.eles.length}return n===e.length},Rt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a0){e=!0;break}}return e},Rt.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=xr(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))},Rt.invalidateLayer=function(t){if(this.lastInvalidationTime=xr(),!t.invalid){var e=t.level,r=t.eles;Nr(this.layersByLevel[e],t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=this,o=e._private.rscratch;if((!i||e.visible())&&!o.badLine&&null!=o.allpts&&!isNaN(o.allpts[0])){var l;r&&t.translate(-(l=r).x1,-l.y1);var u=i?e.pstyle("opacity").value:1,f=i?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,v=e.pstyle("line-cap").value,y=e.pstyle("line-outline-width").value,p=e.pstyle("line-outline-color").value,g=u*f,m=u*f,b=function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;"straight-triangle"===h?(s.eleStrokeStyle(t,e,q),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=d,t.lineCap=v,s.eleStrokeStyle(t,e,q),s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")},E=function(){s.drawArrowheads(t,e,arguments.length>0&&void 0!==arguments[0]?arguments[0]:m)};if(t.lineJoin="round","yes"===e.pstyle("ghost").value){var A=e.pstyle("ghost-offset-x").pfValue,B=e.pstyle("ghost-offset-y").pfValue,M=e.pstyle("ghost-opacity").value,$=g*M;t.translate(A,B),b($),E($),t.translate(-A,-B)}else!function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;t.lineWidth=d+y,t.lineCap=v,y>0?(s.colorStrokeStyle(t,p[0],p[1],p[2],q),"straight-triangle"===h?s.drawEdgeTrianglePath(e,t,o.allpts):(s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")):t.lineCap="butt"}();n&&s.drawEdgeUnderlay(t,e),b(),E(),n&&s.drawEdgeOverlay(t,e),s.drawElementText(t,e,null,a),r&&t.translate(l.x1,l.y1)}}},Pu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(0!==n){var i=this,s=i.usePaths(),o=a._private.rscratch,u=2*a.pstyle("".concat(e,"-padding")).pfValue,f=a.pstyle("".concat(e,"-color")).value;r.lineWidth=u,r.lineCap="self"!==o.edgeType||s?"round":"butt",i.colorStrokeStyle(r,f[0],f[1],f[2],n),i.drawEdgePath(a,r,o.allpts,"solid")}}}};Lr.drawEdgeOverlay=Pu("overlay"),Lr.drawEdgeUnderlay=Pu("underlay"),Lr.drawEdgePath=function(t,e,r,a){var s,n=t._private.rscratch,i=e,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,f=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$");n.pathCacheKey&&n.pathCacheKey===h?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=h,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=f;break;case"solid":i.setLineDash([])}if(!o&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+35&&void 0!==arguments[5]?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),s?t.stroke():t.fill()}ta.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),a=this.getPixelRatio(),n=Math.ceil(vi(r*a));e=Math.pow(2,n)}return!(t.pstyle("font-size").pfValue*e5&&void 0!==arguments[5])||arguments[5],s=this;if(null==a){if(i&&!s.eleTextBiggerThanMin(e))return}else if(!1===a)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,f=e.pstyle("label"),h=e.pstyle("source-label"),c=e.pstyle("target-label");if(u||(!f||!f.value)&&(!h||!h.value)&&(!c||!c.value))return;t.textAlign="center",t.textBaseline="bottom"}var v,d=!r;r&&t.translate(-(v=r).x1,-v.y1),null==n?(s.drawText(t,e,null,d,i),e.isEdge()&&(s.drawText(t,e,"source",d,i),s.drawText(t,e,"target",d,i))):s.drawText(t,e,n,d,i),r&&t.translate(v.x1,v.y1)},ta.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&void 0!==arguments[2])||arguments[2],a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;t.font=a+" "+s+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,f[0],f[1],f[2],l)},ta.getTextAngle=function(t,e){var n=t._private.rscratch,s=t.pstyle((e?e+"-":"")+"text-rotation"),o=ir(n,"labelAngle",e);return"autorotate"===s.strValue?t.isEdge()?o:0:"none"===s.strValue?0:s.pfValue},ta.drawText=function(t,e,r){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=e._private.rscratch,o=n?e.effectiveOpacity():1;if(!n||0!==o&&0!==e.pstyle("text-opacity").value){"main"===r&&(r=null);var f,h,l=ir(s,"labelX",r),u=ir(s,"labelY",r),c=this.getLabelText(e,r);if(null!=c&&""!==c&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,n);var T,d=r?r+"-":"",v=ir(s,"labelWidth",r),y=ir(s,"labelHeight",r),p=e.pstyle(d+"text-margin-x").pfValue,g=e.pstyle(d+"text-margin-y").pfValue,m=e.isEdge(),b=e.pstyle("text-halign").value,w=e.pstyle("text-valign").value;switch(m&&(b="center",w="center"),l+=p,u+=g,0!==(T=a?this.getTextAngle(e,r):0)&&(t.translate(f=l,h=u),t.rotate(T),l=0,u=0),w){case"top":break;case"center":u+=y/2;break;case"bottom":u+=y}var x=e.pstyle("text-background-opacity").value,E=e.pstyle("text-border-opacity").value,D=e.pstyle("text-border-width").pfValue,C=e.pstyle("text-background-padding").pfValue,B=0===e.pstyle("text-background-shape").strValue.indexOf("round");if(x>0||D>0&&E>0){var $=l-C;switch(b){case"left":$-=v;break;case"center":$-=v/2}var k=u-y-C,q=v+2*C,H=y+2*C;if(x>0){var W=t.fillStyle,Z=e.pstyle("text-background-color").value;t.fillStyle="rgba("+Z[0]+","+Z[1]+","+Z[2]+","+x*o+")",B?Ji(t,$,k,q,H,2):t.fillRect($,k,q,H),t.fillStyle=W}if(D>0&&E>0){var re=t.strokeStyle,oe=t.lineWidth,ae=e.pstyle("text-border-color").value,te=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+ae[0]+","+ae[1]+","+ae[2]+","+E*o+")",t.lineWidth=D,t.setLineDash)switch(te){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=D/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(B?Ji(t,$,k,q,H,2,"stroke"):t.strokeRect($,k,q,H),"double"===te){var ge=D/2;B?Ji(t,$+ge,k+ge,q-2*ge,H-2*ge,2,"stroke"):t.strokeRect($+ge,k+ge,q-2*ge,H-2*ge)}t.setLineDash&&t.setLineDash([]),t.lineWidth=oe,t.strokeStyle=re}}var pe=2*e.pstyle("text-outline-width").pfValue;if(pe>0&&(t.lineWidth=pe),"wrap"===e.pstyle("text-wrap").value){var xe=ir(s,"labelWrapCachedLines",r),me=ir(s,"labelLineHeight",r),De=v/2,ve=this.getLabelJustification(e);switch("auto"===ve||("left"===b?"left"===ve?l+=-v:"center"===ve&&(l+=-De):"center"===b?"left"===ve?l+=-De:"right"===ve&&(l+=De):"right"===b&&("center"===ve?l+=De:"right"===ve&&(l+=v))),w){case"top":case"center":case"bottom":u-=(xe.length-1)*me}for(var j=0;j0&&t.strokeText(xe[j],l,u),t.fillText(xe[j],l,u),u+=me}else pe>0&&t.strokeText(c,l,u),t.fillText(c,l,u);0!==T&&(t.rotate(-T),t.translate(-f,-h))}}};var Oa={drawNode:function(t,e,r){var o,l,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=this,u=e._private,f=u.rscratch,h=e.position();if(ee(h.x)&&ee(h.y)&&(!i||e.visible())){var v,g,c=i?e.effectiveOpacity():1,d=s.usePaths(),y=!1,p=e.padding();o=e.width()+2*p,l=e.height()+2*p,r&&t.translate(-(g=r).x1,-g.y1);for(var b=e.pstyle("background-image").value,w=new Array(b.length),T=new Array(b.length),x=0,E=0;E0&&void 0!==arguments[0]?arguments[0]:$)},j=function(){s.colorStrokeStyle(t,k[0],k[1],k[2],arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae)},he=function(){s.colorStrokeStyle(t,ge[0],ge[1],ge[2],arguments.length>0&&void 0!==arguments[0]?arguments[0]:xe)},ye=function(Ae,de,Le,qe){var Ge,Ke=s.nodePathCache=s.nodePathCache||[],Ve=ys("polygon"===Le?Le+","+qe.join(","):Le,""+de,""+Ae,""+De),Je=Ke[Ve],Xe=!1;return null!=Je?(Xe=!0,f.pathCache=Ge=Je):(Ge=new Path2D,Ke[Ve]=f.pathCache=Ge),{path:Ge,cacheHit:Xe}},Oe=e.pstyle("shape").strValue,Ye=e.pstyle("shape-polygon-points").pfValue;if(d){t.translate(h.x,h.y);var Se=ye(o,l,Oe,Ye);v=Se.path,y=Se.cacheHit}var Re=function(){if(!y){var Ae=h;d&&(Ae={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(v||t,Ae.x,Ae.y,o,l,De,f)}d?t.fill(v):t.fill()},Fe=function(){for(var Ae=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,de=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Le=u.backgrounding,qe=0,Ke=0;Ke0&&void 0!==arguments[0]&&arguments[0],de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;s.hasPie(e)&&(s.drawPie(t,e,de),Ae&&(d||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,De,f)))},ze=function(){var Le=B>0?0:255;0!==B&&(s.colorFillStyle(t,Le,Le,Le,(B>0?B:-B)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:c)),d?t.fill(v):t.fill())},We=function(){if(M>0){if(t.lineWidth=M,t.lineCap=W,t.lineJoin=H,t.setLineDash)switch(q){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(re),t.lineDashOffset=oe;break;case"solid":case"double":t.setLineDash([])}if("center"!==Z){if(t.save(),t.lineWidth*=2,"inside"===Z)d?t.clip(v):t.clip();else{var Ae=new Path2D;Ae.rect(-o/2-M,-l/2-M,o+2*M,l+2*M),Ae.addPath(v),t.clip(Ae,"evenodd")}d?t.stroke(v):t.stroke(),t.restore()}else d?t.stroke(v):t.stroke();if("double"===q){t.lineWidth=M/3;var de=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(v):t.stroke(),t.globalCompositeOperation=de}t.setLineDash&&t.setLineDash([])}},lt=function(){if(te>0){if(t.lineWidth=te,t.lineCap="butt",t.setLineDash)switch(pe){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}var Ae=h;d&&(Ae={x:0,y:0});var de=s.getNodeShape(e),Le=M;"inside"===Z&&(Le=0),"outside"===Z&&(Le*=2);var Xe,qe=(o+Le+(te+me))/o,Ke=(l+Le+(te+me))/l,Ve=o*qe,Je=l*Ke,Ge=s.nodeShapes[de].points;if(d&&(Xe=ye(Ve,Je,de,Ge).path),"ellipse"===de)s.drawEllipsePath(Xe||t,Ae.x,Ae.y,Ve,Je);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(de)){var ct=0,Yt=0,kt=0;"round-diamond"===de?ct=1.4*(Le+me+te):"round-heptagon"===de?(ct=1.075*(Le+me+te),kt=-(Le/2+me+te)/35):"round-hexagon"===de?ct=1.12*(Le+me+te):"round-pentagon"===de?(ct=1.13*(Le+me+te),kt=-(Le/2+me+te)/15):"round-tag"===de?(ct=1.12*(Le+me+te),Yt=.07*(Le/2+te+me)):"round-triangle"===de&&(ct=(Le+me+te)*(Math.PI/2),kt=-(Le+me/2+te)/Math.PI),0!==ct&&(Ve=o*(qe=(o+ct)/o),["round-hexagon","round-tag"].includes(de)||(Je=l*(Ke=(l+ct)/l)));for(var Dt=Ve/2,_t=Je/2,Pt=(De="auto"===De?Ms(Ve,Je):De)+(Le+te+me)/2,Ht=new Array(Ge.length/2),lr=new Array(Ge.length/2),ar=0;ar0){if(n=n||a.position(),null==i||null==s){var d=a.padding();i=a.width()+2*d,s=a.height()+2*d}this.colorFillStyle(r,f[0],f[1],f[2],u),this.nodeShapes[h].draw(r,n.x,n.y,i+2*l,s+2*l,c),r.fill()}}}};Oa.drawNodeOverlay=Bu("overlay"),Oa.drawNodeUnderlay=Bu("underlay"),Oa.hasPie=function(t){return(t=t[0])._private.hasPie},Oa.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=a.x,o=a.y,l=e.width(),u=e.height(),f=Math.min(l,u)/2,h=0;this.usePaths()&&(s=0,o=0),"%"===i.units?f*=i.pfValue:void 0!==i.pfValue&&(f=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var v=e.pstyle("pie-"+d+"-background-size").value,y=e.pstyle("pie-"+d+"-background-color").value,p=e.pstyle("pie-"+d+"-background-opacity").value*r,g=v/100;g+h>1&&(g=1-h);var m=1.5*Math.PI+2*Math.PI*h,w=m+2*Math.PI*g;0===v||h>=1||h+g>1||(t.beginPath(),t.moveTo(s,o),t.arc(s,o,f,m,w),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],p),t.fill(),h+=g)}};for(var jt={getPixelRatio:function(){var t=this.data.contexts[0];return null!=this.forcedPixelRatio?this.forcedPixelRatio:(this.cy.window().devicePixelRatio||1)/(t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)},paintCache:function(t){for(var a,e=this.paintCaches=this.paintCaches||[],r=!0,n=0;ns.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!h&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var m=l.style(),b=l.zoom(),w=void 0!==n?n:b,T=l.pan(),x={x:T.x,y:T.y},E={zoom:b,pan:{x:T.x,y:T.y}},D=s.prevViewport;!(void 0===D||E.zoom!==D.zoom||E.pan.x!==D.pan.x||E.pan.y!==D.pan.y)&&!(y&&!v)&&(s.motionBlurPxRatio=1),i&&(x=i),w*=o,x.x*=o,x.y*=o;var A=s.getCachedZSortedEles();function B(Se,Re,Fe,He,ze){var We=Se.globalCompositeOperation;Se.globalCompositeOperation="destination-out",s.colorFillStyle(Se,255,255,255,s.motionBlurTransparency),Se.fillRect(Re,Fe,He,ze),Se.globalCompositeOperation=We}function M(Se,Re){var Fe,He,ze,We;s.clearingMotionBlur||Se!==u.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]&&Se!==u.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]?(Fe=x,He=w,ze=s.canvasWidth,We=s.canvasHeight):(Fe={x:T.x*d,y:T.y*d},He=b*d,ze=s.canvasWidth*d,We=s.canvasHeight*d),Se.setTransform(1,0,0,1,0,0),"motionBlur"===Re?B(Se,0,0,ze,We):!e&&(void 0===Re||Re)&&Se.clearRect(0,0,ze,We),r||(Se.translate(Fe.x,Fe.y),Se.scale(He,He)),i&&Se.translate(i.x,i.y),n&&Se.scale(n,n)}if(h||(s.textureDrawLastFrame=!1),h){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=l.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var $=s.data.bufferContexts[s.TEXTURE_BUFFER];$.setTransform(1,0,0,1,0,0),$.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:$,drawOnlyNodeLayer:!0,forcedPxRatio:o*s.textureMult}),(E=s.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:s.canvasWidth,height:s.canvasHeight}).mpan={x:(0-E.pan.x)/E.zoom,y:(0-E.pan.y)/E.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var q=s.textureCache.texture;E=s.textureCache.viewport,(k=u.contexts[s.NODE]).setTransform(1,0,0,1,0,0),c?B(k,0,0,E.width,E.height):k.clearRect(0,0,E.width,E.height);var H=m.core("outside-texture-bg-color").value,W=m.core("outside-texture-bg-opacity").value;s.colorFillStyle(k,H[0],H[1],H[2],W),k.fillRect(0,0,E.width,E.height),b=l.zoom(),M(k,!1),k.clearRect(E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o),k.drawImage(q,E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o)}else s.textureOnViewport&&!e&&(s.textureCache=null);var Z=l.extent(),re=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),oe=s.hideEdgesOnViewport&&re,ae=[];if(ae[s.NODE]=!f[s.NODE]&&c&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,ae[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),ae[s.DRAG]=!f[s.DRAG]&&c&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,ae[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||a||ae[s.NODE]){var te=c&&!ae[s.NODE]&&1!==d;M(k=e||(te?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:u.contexts[s.NODE]),c&&!te?"motionBlur":void 0),oe?s.drawCachedNodes(k,A.nondrag,o,Z):s.drawLayeredElements(k,A.nondrag,o,Z),s.debug&&s.drawDebugPoints(k,A.nondrag),!r&&!c&&(f[s.NODE]=!1)}if(!a&&(f[s.DRAG]||r||ae[s.DRAG])&&(te=c&&!ae[s.DRAG]&&1!==d,M(k=e||(te?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:u.contexts[s.DRAG]),c&&!te?"motionBlur":void 0),oe?s.drawCachedNodes(k,A.drag,o,Z):s.drawCachedElements(k,A.drag,o,Z),s.debug&&s.drawDebugPoints(k,A.drag),!r&&!c&&(f[s.DRAG]=!1)),s.showFps||!a&&f[s.SELECT_BOX]&&!r){var k;if(M(k=e||u.contexts[s.SELECT_BOX]),1==s.selection[4]&&(s.hoverData.selecting||s.touchData.selecting)){b=s.cy.zoom();var pe=m.core("selection-box-border-width").value/b;k.lineWidth=pe,k.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",k.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),pe>0&&(k.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",k.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(u.bgActivePosistion&&!s.hoverData.selecting){b=s.cy.zoom();var xe=u.bgActivePosistion;k.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",k.beginPath(),k.arc(xe.x,xe.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),k.fill()}var me=s.lastRedrawTime;if(s.showFps&&me){me=Math.round(me);var De=Math.round(1e3/me);k.setTransform(1,0,0,1,0,0),k.fillStyle="rgba(255, 0, 0, 0.75)",k.strokeStyle="rgba(255, 0, 0, 0.75)",k.lineWidth=1,k.fillText("1 frame = "+me+" ms = "+De+" fps",0,20),k.strokeRect(0,30,250,20),k.fillRect(0,30,250*Math.min(De/60,1),20)}r||(f[s.SELECT_BOX]=!1)}if(c&&1!==d){var ye=u.contexts[s.DRAG],Oe=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],Ye=function(Re,Fe,He){Re.setTransform(1,0,0,1,0,0),He||!g?Re.clearRect(0,0,s.canvasWidth,s.canvasHeight):B(Re,0,0,s.canvasWidth,s.canvasHeight),Re.drawImage(Fe,0,0,s.canvasWidth*d,s.canvasHeight*d,0,0,s.canvasWidth,s.canvasHeight)};(f[s.NODE]||ae[s.NODE])&&(Ye(u.contexts[s.NODE],s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],ae[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||ae[s.DRAG])&&(Ye(ye,Oe,ae[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=E,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),c&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!h,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},100)),e||l.emit("render")}},Vr={drawPolygonPath:function(t,e,r,a,n,i){var s=a/2,o=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*i[0],r+o*i[1]);for(var l=1;l0&&s>0){d.clearRect(0,0,i,s),d.globalCompositeOperation="source-over";var v=this.getCachedZSortedEles();if(t.full)d.translate(-a.x1*u,-a.y1*u),d.scale(u,u),this.drawElements(d,v),d.scale(1/u,1/u),d.translate(a.x1*u,a.y1*u);else{var y=e.pan(),p={x:y.x*u,y:y.y*u};u*=e.zoom(),d.translate(p.x,p.y),d.scale(u,u),this.drawElements(d,v),d.scale(1/u,1/u),d.translate(-p.x,-p.y)}t.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=t.bg,d.rect(0,0,i,s),d.fill())}return c},ln.png=function(t){return Uu(t,this.bufferCanvasImage(t),"image/png")},ln.jpg=function(t){return Uu(t,this.bufferCanvasImage(t),"image/jpeg")};var gp=Yu,it=Yu.prototype;function Yu(t){var e=this,a=e.cy.window().document;e.data={canvases:new Array(it.CANVAS_LAYERS),contexts:new Array(it.CANVAS_LAYERS),canvasNeedsRedraw:new Array(it.CANVAS_LAYERS),bufferCanvases:new Array(it.BUFFER_COUNT),bufferContexts:new Array(it.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";e.data.canvasContainer=a.createElement("div");var s=e.data.canvasContainer.style;e.data.canvasContainer.style[n]=i,s.position="relative",s.zIndex="0",s.overflow="hidden";var o=t.cy.container();o.appendChild(e.data.canvasContainer),o.style[n]=i;var l={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};Xt()&&(l["-ms-touch-action"]="none",l["touch-action"]="none");for(var u=0;u"u"?"undefined":P(OffscreenCanvas))?r=new OffscreenCanvas(t,e):((r=this.cy.window().document.createElement("canvas")).width=t,r.height=e),r},[Mu,br,Lr,Qi,ta,Oa,jt,Vr,ln,{nodeShapeImpl:function(t,e,r,a,n,i,s,o){switch(t){case"ellipse":return this.drawEllipsePath(e,r,a,n,i);case"polygon":return this.drawPolygonPath(e,r,a,n,i,s);case"round-polygon":return this.drawRoundPolygonPath(e,r,a,n,i,s,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,a,n,i,o);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,a,n,i,s,o);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,a,n,i,o);case"barrel":return this.drawBarrelPath(e,r,a,n,i)}}}].forEach(function(t){Ze(it,t)});var mp=[{type:"layout",extensions:Cg},{type:"renderer",extensions:[{name:"null",impl:ou},{name:"base",impl:Su},{name:"canvas",impl:gp}]}],Hu={},Xu={};function Wu(t,e,r){var a=r,n=function(D){ot("Can not register `"+e+"` for `"+t+"` since `"+D+"` already exists in the prototype and can not be overridden")};if("core"===t){if(an.prototype[e])return n(e);an.prototype[e]=r}else if("collection"===t){if(It.prototype[e])return n(e);It.prototype[e]=r}else if("layout"===t){for(var i=function(D){this.options=D,r.call(this,D),J(this._private)||(this._private={}),this._private.cy=D.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(r.prototype),o=[],l=0;l"u"&&(Z.yylloc={});var ae=Z.yylloc;A.push(ae);var Se,te=Z.options&&Z.options.ranges;this.parseError="function"==typeof re.yy.parseError?re.yy.parseError:Object.getPrototypeOf(this).parseError;for(var pe,xe,me,De,j,he,Oe,ve={};;){if(this.defaultActions[xe=E[E.length-1]]?me=this.defaultActions[xe]:((null===pe||typeof pe>"u")&&(Se=void 0,"number"!=typeof(Se=D.pop()||Z.lex()||1)&&(Se instanceof Array&&(Se=(D=Se).pop()),Se=this.symbols_[Se]||Se),pe=Se),me=B[xe]&&B[xe][pe]),typeof me>"u"||!me.length||!me[0]){var Ye;for(j in Oe=[],B[xe])this.terminals_[j]&&j>2&&Oe.push("'"+this.terminals_[j]+"'");Ye=Z.showPosition?"Parse error on line "+($+1)+":\n"+Z.showPosition()+"\nExpecting "+Oe.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":"Parse error on line "+($+1)+": Unexpected "+(1==pe?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(Ye,{text:Z.match,token:this.terminals_[pe]||pe,line:Z.yylineno,loc:ae,expected:Oe})}if(me[0]instanceof Array&&me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xe+", token: "+pe);switch(me[0]){case 1:E.push(pe),C.push(Z.yytext),A.push(Z.yylloc),E.push(me[1]),pe=null,k=Z.yyleng,M=Z.yytext,$=Z.yylineno,ae=Z.yylloc;break;case 2:if(ve.$=C[C.length-(he=this.productions_[me[1]][1])],ve._$={first_line:A[A.length-(he||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(he||1)].first_column,last_column:A[A.length-1].last_column},te&&(ve._$.range=[A[A.length-(he||1)].range[0],A[A.length-1].range[1]]),typeof(De=this.performAction.apply(ve,[M,k,$,re.yy,me[1],C,A].concat(W)))<"u")return De;he&&(E=E.slice(0,-1*he*2),C=C.slice(0,-1*he),A=A.slice(0,-1*he)),E.push(this.productions_[me[1]][0]),C.push(ve.$),A.push(ve._$),E.push(B[E[E.length-2]][E[E.length-1]]);break;case 3:return!0}}return!0}};function b(){this.yy={}}return g.lexer={EOF:1,parseError:function(x,E){if(!this.yy.parser)throw new Error(x);this.yy.parser.parseError(x,E)},setInput:function(T,x){return this.yy=x||this.yy||{},this._input=T,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},input:function(){var T=this._input[0];return this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T,T.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),T},unput:function(T){var x=T.length,E=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var D=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),E.length-1&&(this.yylineno-=E.length-1);var C=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:E?(E.length===D.length?this.yylloc.first_column:0)+D[D.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(T){this.unput(this.match.slice(T))},pastInput:function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var T=this.pastInput(),x=new Array(T.length+1).join("-");return T+this.upcomingInput()+"\n"+x+"^"},test_match:function(T,x){var E,D,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),(D=T[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=D.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:D?D[D.length-1].length-D[D.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,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(T[0].length),this.matched+=T[0],E=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var A in C)this[A]=C[A];return!1}return!1},next:function(){if(this.done)return this.EOF;var T,x,E,D;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),A=0;Ax[0].length)){if(x=E,D=A,this.options.backtrack_lexer){if(!1!==(T=this.test_match(E,C[A])))return T;if(this._backtrack){x=!1;continue}return!1}if(!this.options.flex)break}return x?!1!==(T=this.test_match(x,C[D]))&&T:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return(x=this.conditionStack.length-1-Math.abs(x||0))>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(x,E,D,C){switch(D){case 0:return x.getLogger().trace("Found comment",E.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:x.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return x.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:x.getLogger().trace("end icon"),this.popState();break;case 10:return x.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return x.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return x.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return x.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:x.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return x.getLogger().trace("description:",E.yytext),"NODE_DESCR";case 27:return this.popState(),x.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),x.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),x.getLogger().trace("node end ...",E.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),x.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),x.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return x.getLogger().trace("Long description:",E.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},b.prototype=g,g.Parser=b,new b}());rs.parser=rs;const Ap=rs;let ur=[],_u=0,as={};const Ct={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Rp={clear:()=>{ur=[],_u=0,as={}},addNode:(t,e,r,a)=>{var n,i;z.l.info("addNode",t,e,r,a);const s=(0,z.c)();let o=(null==(n=s.mindmap)?void 0:n.padding)??z.B.mindmap.padding;switch(a){case Ct.ROUNDED_RECT:case Ct.RECT:case Ct.HEXAGON:o*=2}const l={id:_u++,nodeId:(0,z.d)(e,s),level:t,descr:(0,z.d)(r,s),type:a,children:[],width:(null==(i=s.mindmap)?void 0:i.maxNodeWidth)??z.B.mindmap.maxNodeWidth,padding:o},u=function(t){for(let e=ur.length-1;e>=0;e--)if(ur[e].levelur.length>0?ur[0]:null,nodeType:Ct,getType:(t,e)=>{switch(z.l.debug("In get type",t,e),t){case"[":return Ct.RECT;case"(":return")"===e?Ct.ROUNDED_RECT:Ct.CLOUD;case"((":return Ct.CIRCLE;case")":return Ct.CLOUD;case"))":return Ct.BANG;case"{{":return Ct.HEXAGON;default:return Ct.DEFAULT}},setElementForId:(t,e)=>{as[t]=e},decorateNode:t=>{if(!t)return;const e=(0,z.c)(),r=ur[ur.length-1];t.icon&&(r.icon=(0,z.d)(t.icon,e)),t.class&&(r.class=(0,z.d)(t.class,e))},type2Str:t=>{switch(t){case Ct.DEFAULT:return"no-border";case Ct.RECT:return"rect";case Ct.ROUNDED_RECT:return"rounded-rect";case Ct.CIRCLE:return"circle";case Ct.CLOUD:return"cloud";case Ct.BANG:return"bang";case Ct.HEXAGON:return"hexgon";default:return"no-border"}},getLogger:()=>z.l,getElementById:t=>as[t]},Yp=function(t,e,r,a,n){const i=n.htmlLabels,s=a%11,o=e.append("g");r.section=s;let l="section-"+s;s<0&&(l+=" section-root"),o.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+l);const u=o.append("g"),f=o.append("g"),h=r.descr.replace(/()/g,"\n");(0,Cp.a)(f,h,{useHtmlLabels:i,width:r.width,classes:"mindmap-node-label"}),i||f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const c=f.node().getBBox(),[d]=(0,z.D)(n.fontSize);if(r.height=c.height+1.1*d*.5+r.padding,r.width=c.width+2*r.padding,r.icon)if(r.type===t.nodeType.CIRCLE)r.height+=50,r.width+=50,o.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;const v=r.height;r.height=Math.max(v,60);const y=Math.abs(r.height-v);o.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+y/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+(25+r.width/2)+", "+(y/2+r.padding/2)+")")}else f.attr("transform",i?"translate("+(r.width-c.width)/2+", "+(r.height-c.height)/2+")":"translate("+r.width/2+", "+r.padding/2+")");switch(r.type){case t.nodeType.DEFAULT:!function(t,e,r,a){e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 ${r.height-5} v${10-r.height} q0,-5 5,-5 h${r.width-10} q5,0 5,5 v${r.height-5} H0 Z`),e.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)}(t,u,r,s);break;case t.nodeType.ROUNDED_RECT:!function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)}(t,u,r);break;case t.nodeType.RECT:!function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("width",r.width)}(t,u,r);break;case t.nodeType.CIRCLE:u.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)}(t,u,r);break;case t.nodeType.CLOUD:!function(t,e,r){const a=r.width,n=r.height,i=.15*a,s=.25*a,o=.35*a,l=.2*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 0 0,1 ${.25*a},${-1*a*.1}\n a${o},${o} 1 0,1 ${.4*a},${-1*a*.1}\n a${s},${s} 1 0,1 ${.35*a},${1*a*.2}\n\n a${i},${i} 1 0,1 ${.15*a},${1*n*.35}\n a${l},${l} 1 0,1 ${-1*a*.15},${1*n*.65}\n\n a${s},${i} 1 0,1 ${-1*a*.25},${.15*a}\n a${o},${o} 1 0,1 ${-1*a*.5},0\n a${i},${i} 1 0,1 ${-1*a*.25},${-1*a*.15}\n\n a${i},${i} 1 0,1 ${-1*a*.1},${-1*n*.35}\n a${l},${l} 1 0,1 ${.1*a},${-1*n*.65}\n\n H0 V0 Z`)}(t,u,r);break;case t.nodeType.BANG:!function(t,e,r){const a=r.width,n=r.height,i=.15*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${.25*a},${-1*n*.1}\n a${i},${i} 1 0,0 ${.25*a},0\n a${i},${i} 1 0,0 ${.25*a},0\n a${i},${i} 1 0,0 ${.25*a},${1*n*.1}\n\n a${i},${i} 1 0,0 ${.15*a},${1*n*.33}\n a${.8*i},${.8*i} 1 0,0 0,${1*n*.34}\n a${i},${i} 1 0,0 ${-1*a*.15},${1*n*.33}\n\n a${i},${i} 1 0,0 ${-1*a*.25},${.15*n}\n a${i},${i} 1 0,0 ${-1*a*.25},0\n a${i},${i} 1 0,0 ${-1*a*.25},0\n a${i},${i} 1 0,0 ${-1*a*.25},${-1*n*.15}\n\n a${i},${i} 1 0,0 ${-1*a*.1},${-1*n*.33}\n a${.8*i},${.8*i} 1 0,0 0,${-1*n*.34}\n a${i},${i} 1 0,0 ${.1*a},${-1*n*.33}\n\n H0 V0 Z`)}(t,u,r);break;case t.nodeType.HEXAGON:!function(t,e,r){const a=r.height,i=a/4,s=r.width-r.padding+2*i;!function Vp(t,e,r,a,n){t.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("transform","translate("+(n.width-e)/2+", "+r+")")}(e,s,a,[{x:i,y:0},{x:s-i,y:0},{x:s,y:-a/2},{x:s-i,y:-a},{x:i,y:-a},{x:0,y:-a/2}],r)}(0,u,r)}return t.setElementForId(r.id,o),r.height};function Zu(t,e,r,a,n){Yp(t,e,r,a,n),r.children&&r.children.forEach((i,s)=>{Zu(t,e,i,a<0?s:a,n)})}function Qu(t,e,r,a){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:a,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(n=>{Qu(n,e,r,a+1),e.add({group:"edges",data:{id:`${t.id}_${n.id}`,source:t.id,target:n.id,depth:a,section:n.section}})})}function Wp(t,e){return new Promise(r=>{const a=(0,Tp.Ys)("body").append("div").attr("id","cy").attr("style","display:none"),n=Ur({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),Qu(t,n,e,0),n.nodes().forEach(function(i){i.layoutDimensions=()=>{const s=i.data();return{w:s.width,h:s.height}}}),n.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),n.ready(i=>{z.l.info("Ready",i),r(n)})})}Ur.use(xp);const Kp={draw:function(){var t=(0,be.Z)(function*(e,r,a,n){var i,s;z.l.debug("Rendering mindmap diagram\n"+e);const o=n.db,l=o.getMindmap();if(!l)return;const u=(0,z.c)();u.htmlLabels=!1;const f=(0,z.A)(r),h=f.append("g");h.attr("class","mindmap-edges");const c=f.append("g");c.attr("class","mindmap-nodes"),Zu(o,c,l,-1,u);const d=yield Wp(l,u);(function Xp(t,e){e.edges().map((r,a)=>{const n=r.data();if(r[0]._private.bodyBounds){const i=r[0]._private.rscratch;z.l.trace("Edge: ",a,n),t.insert("path").attr("d",`M ${i.startX},${i.startY} L ${i.midX},${i.midY} L${i.endX},${i.endY} `).attr("class","edge section-edge-"+n.section+" edge-depth-"+n.depth)}})})(h,d),function qp(t,e){e.nodes().map((r,a)=>{const n=r.data();n.x=r.position().x,n.y=r.position().y,function(t,e){t.getElementById(e.id).attr("transform","translate("+(e.x||0)+","+(e.y||0)+")")}(t,n);const i=t.getElementById(n.nodeId);z.l.info("Id:",a,"Position: (",r.position().x,", ",r.position().y,")",n),i.attr("transform",`translate(${r.position().x-n.width/2}, ${r.position().y-n.height/2})`),i.attr("attr",`apa-${a})`)})}(o,d),(0,z.o)(void 0,f,(null==(i=u.mindmap)?void 0:i.padding)??z.B.mindmap.padding,(null==(s=u.mindmap)?void 0:s.useMaxWidth)??z.B.mindmap.useMaxWidth)});return function(r,a,n,i){return t.apply(this,arguments)}}()},Zp={db:Rp,renderer:Kp,parser:Ap,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let r=0;r{_.r(E),_.d(E,{diagram:()=>M});var a=_(5609),s=_(4455),d=_(9037);_(8586),_(8814),_(1065),_(317),_(1764),_(6780),_(2735);const M={parser:a.p,db:a.f,renderer:s.f,styles:s.a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,(0,d.p)({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),s.f.setConf(r.flowchart),a.f.clear(),a.f.setGen("gen-2")}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/270.3930e48419f47a91.js b/pkg/apiserver-impl/ui/769.a10b1572fd4b8711.js similarity index 66% rename from pkg/apiserver-impl/ui/270.3930e48419f47a91.js rename to pkg/apiserver-impl/ui/769.a10b1572fd4b8711.js index 2550714fc8..62a042dbb7 100644 --- a/pkg/apiserver-impl/ui/270.3930e48419f47a91.js +++ b/pkg/apiserver-impl/ui/769.a10b1572fd4b8711.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[270],{1270:(se,J,w)=>{w.r(J),w.d(J,{diagram:()=>ne}),w(5861);var W=w(5609);w(8814),w(8586),w(9037),w(6947),w(3233),w(6391),w(1065),w(6257),w(3057),w(8917),w(1256),w(6264);var rt=w(4455);w(1764),w(6780),w(2735),w(317);const pt={},ne={parser:W.p,db:W.f,renderer:rt.f,styles:rt.a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,function(r){const e=Object.keys(r);for(const t of e)pt[t]=r[t]}(r.flowchart),W.f.clear(),W.f.setGen("gen-1")}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[769],{3769:(se,J,w)=>{w.r(J),w.d(J,{diagram:()=>ne}),w(5861);var W=w(3070);w(8814),w(8586),w(8080),w(6947),w(3233),w(6391),w(1065),w(6257),w(3057),w(8917),w(1256),w(6264);var rt=w(4805);w(1764),w(6780),w(2735),w(317);const pt={},ne={parser:W.p,db:W.f,renderer:rt.f,styles:rt.a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,function(r){const e=Object.keys(r);for(const t of e)pt[t]=r[t]}(r.flowchart),W.f.clear(),W.f.setGen("gen-1")}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/787.9039147efd6d6d26.js b/pkg/apiserver-impl/ui/787.9039147efd6d6d26.js new file mode 100644 index 0000000000..e3a0b32f35 --- /dev/null +++ b/pkg/apiserver-impl/ui/787.9039147efd6d6d26.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[787],{8787:(At,$,l)=>{l.r($),l.d($,{diagram:()=>Dt});var Z=l(5861),_=l(1106),J=l(8814),P=l(8586),i=l(8080),Q=l(8235);l(1764),l(6780),l(2735),l(1065),l(317);const y="rect",O="rectWithTitle",D="statediagram",st=`${D}-state`,v="transition",nt=`${v} note-edge`,ct=`${D}-note`,it=`${D}-cluster`,rt=`${D}-cluster-alt`,G="parent",B="note",lt="state",R="----",dt=`${R}${B}`,N=`${R}${G}`,U="fill:none",w="fill: #333",K="text",H="normal";let p={},E=0;function x(e="",c=0,t="",r=R){return`${lt}-${e}${null!==t&&t.length>0?`${r}${t}`:""}-${c}`}const f=(e,c,t,r,n,d)=>{const s=t.id,h=function Et(e){return null==e?"":e.classes?e.classes.join(" "):""}(r[s]);if("root"!==s){let u=y;!0===t.start&&(u="start"),!1===t.start&&(u="end"),t.type!==_.D&&(u=t.type),p[s]||(p[s]={id:s,shape:u,description:i.e.sanitizeText(s,(0,i.c)()),classes:`${h} ${st}`});const o=p[s];t.description&&(Array.isArray(o.description)?(o.shape=O,o.description.push(t.description)):o.description.length>0?(o.shape=O,o.description=o.description===s?[t.description]:[o.description,t.description]):(o.shape=y,o.description=t.description),o.description=i.e.sanitizeTextOrArray(o.description,(0,i.c)())),1===o.description.length&&o.shape===O&&(o.shape=y),!o.type&&t.doc&&(i.l.info("Setting cluster for ",s,M(t)),o.type="group",o.dir=M(t),o.shape=t.type===_.a?"divider":"roundedWithTitle",o.classes=o.classes+" "+it+" "+(d?rt:""));const A={labelStyle:"",shape:o.shape,labelText:o.description,classes:o.classes,style:"",id:s,dir:o.dir,domId:x(s,E),type:o.type,padding:15,centerLabel:!0};if(t.note){const S={labelStyle:"",shape:"note",labelText:t.note.text,classes:ct,style:"",id:s+dt+"-"+E,domId:x(s,E,B),type:o.type,padding:15},C={labelStyle:"",shape:"noteGroup",labelText:t.note.text,classes:o.classes,style:"",id:s+N,domId:x(s,E,G),type:"group",padding:0};E++;const a=s+N;e.setNode(a,C),e.setNode(S.id,S),e.setNode(s,A),e.setParent(s,a),e.setParent(S.id,a);let g=s,T=S.id;"left of"===t.note.position&&(g=S.id,T=s),e.setEdge(g,T,{arrowhead:"none",arrowType:"",style:U,labelStyle:"",classes:nt,arrowheadStyle:w,labelpos:"c",labelType:K,thickness:H})}else e.setNode(s,A)}c&&"root"!==c.id&&(i.l.trace("Setting node ",s," to be child of its parent ",c.id),e.setParent(s,c.id)),t.doc&&(i.l.trace("Adding nodes children "),St(e,t,t.doc,r,n,!d))},St=(e,c,t,r,n,d)=>{i.l.trace("items",t),t.forEach(s=>{switch(s.stmt){case _.b:case _.D:f(e,c,s,r,n,d);break;case _.S:{f(e,c,s.state1,r,n,d),f(e,c,s.state2,r,n,d);const h={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:U,labelStyle:"",label:i.e.sanitizeText(s.description,(0,i.c)()),arrowheadStyle:w,labelpos:"c",labelType:K,thickness:H,classes:v};e.setEdge(s.state1.id,s.state2.id,h,E),E++}}})},M=(e,c=_.c)=>{let t=c;if(e.doc)for(let r=0;r{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,_.d.clear()}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/839.51b43950610b1cc5.js b/pkg/apiserver-impl/ui/839.51b43950610b1cc5.js deleted file mode 100644 index 8b0051414d..0000000000 --- a/pkg/apiserver-impl/ui/839.51b43950610b1cc5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[839],{839:(Se,Yt,xt)=>{xt.d(Yt,{D:()=>G,S:()=>ut,a:()=>Dt,b:()=>Y,c:()=>Ut,d:()=>ue,p:()=>Gt,s:()=>fe});var u=xt(9037),ht=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],E=[1,15],f=[1,16],b=[1,17],k=[1,18],$=[1,30],H=[1,19],K=[1,20],W=[1,21],X=[1,22],J=[1,23],q=[1,25],Q=[1,26],Z=[1,27],tt=[1,28],et=[1,29],st=[1,32],it=[1,33],rt=[1,34],nt=[1,35],P=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],at=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Ft=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],gt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"--\x3e":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"--\x3e",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,F){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:"nl"!=e[l]&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:case 11:this.$=e[l];break;case 8:this.$="nl";break;case 12:const V=e[l-1];V.description=o.trimColon(e[l]),this.$=V;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const mt=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:mt};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var lt=e[l].split(":");A=lt[0],O=[O,lt[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""}}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:E,16:f,18:b,21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:E,16:f,18:b,21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(at,[2,40],{51:[1,51]}),t(at,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:$,50:P},t(c,[2,16]),t(Ft,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:E,16:f,18:b,20:[1,64],21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(at,[2,42]),t(at,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Ft,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:E,16:f,18:b,20:[1,69],21:k,23:$,24:H,25:K,26:W,27:X,28:J,31:24,32:q,34:Q,36:Z,37:tt,41:et,44:st,45:it,46:rt,47:nt,50:P},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(!n.recoverable){var i=new Error(r);throw i.hash=n,i}this.trace(r)},parse:function(r){var i=[0],o=[],S=[null],e=[],F=this.table,l="",A=0,O=0,mt=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(L.yy[Tt]=this.yy[Tt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var kt=g.yylloc;e.push(kt);var D,ye=g.options&&g.options.ranges;this.parseError="function"==typeof L.yy.parseError?L.yy.parseError:Object.getPrototypeOf(this).parseError;for(var m,I,T,Et,ct,x,ot,N={};;){if(this.defaultActions[I=i[i.length-1]]?T=this.defaultActions[I]:((null===m||typeof m>"u")&&(D=void 0,"number"!=typeof(D=o.pop()||g.lex()||1)&&(D instanceof Array&&(D=(o=D).pop()),D=this.symbols_[D]||D),m=D),T=F[I]&&F[I][m]),typeof T>"u"||!T.length||!T[0]){var bt;for(ct in ot=[],F[I])this.terminals_[ct]&&ct>2&&ot.push("'"+this.terminals_[ct]+"'");bt=g.showPosition?"Parse error on line "+(A+1)+":\n"+g.showPosition()+"\nExpecting "+ot.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(A+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(bt,{text:g.match,token:this.terminals_[m]||m,line:g.yylineno,loc:kt,expected:ot})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+m);switch(T[0]){case 1:i.push(m),S.push(g.yytext),e.push(g.yylloc),i.push(T[1]),m=null,O=g.yyleng,l=g.yytext,A=g.yylineno,kt=g.yylloc;break;case 2:if(N.$=S[S.length-(x=this.productions_[T[1]][1])],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},ye&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),typeof(Et=this.performAction.apply(N,[l,O,A,L.yy,T[1],S,e].concat(mt)))<"u")return Et;x&&(i=i.slice(0,-1*x*2),S=S.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[T[1]][0]),S.push(N.$),e.push(N._$),i.push(F[i[i.length-2]][i[i.length-1]]);break;case 3:return!0}}return!0}};function _t(){this.yy={}}return gt.lexer={EOF:1,parseError:function(n,i){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,i)},setInput:function(r,n){return this.yy=n||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},input: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},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),i.length-1&&(this.yylineno-=i.length-1);var S=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:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+"\n"+n+"^"},test_match:function(r,n){var i,o,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),(o=r[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.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],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},next:function(){if(this.done)return this.EOF;var r,n,i,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;en[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(!1!==(r=this.test_match(i,S[e])))return r;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?!1!==(r=this.test_match(n,S[o]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,S){switch(o){case 0:return 40;case 1:case 39:return 44;case 2:case 40:return 45;case 3:case 41:return 46;case 4:case 42:return 47;case 5:case 6:case 8:case 9:case 10:case 11:case 51:case 53:case 59:break;case 7:case 74:return 5;case 12:case 29:return this.pushState("SCALE"),16;case 13:case 30:return 17;case 14:case 20:case 31:case 46:case 49:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 32:this.pushState("STATE");break;case 33:case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:case 61:return this.popState(),"ID";case 47:return"STATE_DESCR";case 48:return 18;case 50:return this.popState(),this.pushState("struct"),19;case 52:return this.popState(),20;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 60:return"NOTE_TEXT";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}},_t.prototype=gt,gt.Parser=_t,new _t}();ht.parser=ht;const Gt=ht,Ut="TB",Y="state",ut="relation",G="default",Dt="divider",ft="[*]",Ct="start",vt=ft;let Nt="LR",j=[],R={},U={root:{relations:[],states:{},documents:{}}},_=U.root,w=0,wt=0;const M=t=>JSON.parse(JSON.stringify(t)),z=(t,s,a)=>{if(s.stmt===ut)z(t,s.state1,!0),z(t,s.state2,!1);else if(s.stmt===Y&&("[*]"===s.id?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let y,d=[];for(y=0;y0&&d.length>0){const p={stmt:Y,id:(0,u.I)(),type:"divider",doc:M(d)};h.push(M(p)),s.doc=h}s.doc.forEach(p=>z(s,p,!0))}},v=function(t,s=G,a=null,h=null,d=null,y=null,p=null,E=null){const f=t?.trim();void 0===_.states[f]?(u.l.info("Adding state ",f,h),_.states[f]={id:f,descriptions:[],type:s,doc:a,note:d,classes:[],styles:[],textStyles:[]}):(_.states[f].doc||(_.states[f].doc=a),_.states[f].type||(_.states[f].type=s)),h&&(u.l.info("Setting state description",f,h),"string"==typeof h&&pt(f,h.trim()),"object"==typeof h&&h.forEach(b=>pt(f,b.trim()))),d&&(_.states[f].note=d,_.states[f].note.text=u.e.sanitizeText(_.states[f].note.text,(0,u.c)())),y&&(u.l.info("Setting state classes",f,y),("string"==typeof y?[y]:y).forEach(k=>St(f,k.trim()))),p&&(u.l.info("Setting state styles",f,p),("string"==typeof p?[p]:p).forEach(k=>oe(f,k.trim()))),E&&(u.l.info("Setting state styles",f,p),("string"==typeof E?[E]:E).forEach(k=>he(f,k.trim())))},Bt=function(t){U={root:{relations:[],states:{},documents:{}}},_=U.root,w=0,R={},t||(0,u.v)()},B=function(t){return _.states[t]};function dt(t=""){let s=t;return t===ft&&(w++,s=`${Ct}${w}`),s}function yt(t="",s=G){return t===ft?Ct:s}const $t=function(t,s,a){if("object"==typeof t)!function ne(t,s,a){let h=dt(t.id.trim()),d=yt(t.id.trim(),t.type),y=dt(s.id.trim()),p=yt(s.id.trim(),s.type);v(h,d,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),v(y,p,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),_.relations.push({id1:h,id2:y,relationTitle:u.e.sanitizeText(a,(0,u.c)())})}(t,s,a);else{const h=dt(t.trim()),d=yt(t),y=function ie(t=""){let s=t;return t===vt&&(w++,s=`end${w}`),s}(s.trim()),p=function re(t="",s=G){return t===vt?"end":s}(s);v(h,d),v(y,p),_.relations.push({id1:h,id2:y,title:u.e.sanitizeText(a,(0,u.c)())})}},pt=function(t,s){const a=_.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(u.e.sanitizeText(h,(0,u.c)()))},Pt=function(t,s=""){void 0===R[t]&&(R[t]={id:t,styles:[],textStyles:[]});const a=R[t];s?.split(",").forEach(h=>{const d=h.replace(/([^;]*);/,"$1").trim();if(h.match("color")){const p=d.replace("fill","bgFill").replace("color","fill");a.textStyles.push(p)}a.styles.push(d)})},St=function(t,s){t.split(",").forEach(function(a){let h=B(a);if(void 0===h){const d=a.trim();v(d),h=B(d)}h.classes.push(s)})},oe=function(t,s){const a=B(t);void 0!==a&&a.textStyles.push(s)},he=function(t,s){const a=B(t);void 0!==a&&a.textStyles.push(s)},ue={getConfig:()=>(0,u.c)().state,addState:v,clear:Bt,getState:B,getStates:function(){return _.states},getRelations:function(){return _.relations},getClasses:function(){return R},getDirection:()=>Nt,addRelation:$t,getDividerId:()=>(wt++,"divider-id-"+wt),setDirection:t=>{Nt=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){u.l.info("Documents = ",U)},getRootDoc:()=>j,setRootDoc:t=>{u.l.info("Setting root doc",t),j=t},getRootDocV2:()=>(z({id:"root"},{id:"root",doc:j},!0),{id:"root",doc:j}),extract:t=>{let s;s=t.doc?t.doc:t,u.l.info(s),Bt(!0),u.l.info("Extract",s),s.forEach(a=>{switch(a.stmt){case Y:v(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case ut:$t(a.state1,a.state2,a.description);break;case"classDef":Pt(a.id.trim(),a.classes);break;case"applyClass":St(a.id.trim(),a.styleClass)}})},trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:u.g,setAccTitle:u.s,getAccDescription:u.a,setAccDescription:u.b,addStyleClass:Pt,setCssClass:St,addDescription:pt,setDiagramTitle:u.q,getDiagramTitle:u.t},fe=t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/770.b5355903ae187636.js b/pkg/apiserver-impl/ui/867.c8df2c2f5dc1b899.js similarity index 99% rename from pkg/apiserver-impl/ui/770.b5355903ae187636.js rename to pkg/apiserver-impl/ui/867.c8df2c2f5dc1b899.js index 050b7624bd..1fa844ef4a 100644 --- a/pkg/apiserver-impl/ui/770.b5355903ae187636.js +++ b/pkg/apiserver-impl/ui/867.c8df2c2f5dc1b899.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[770],{8770:(Xt,st,P)=>{P.r(st),P.d(st,{diagram:()=>Ht});var g=P(9037),pt=P(8814),G=P(8586),_t=P(1065);const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));const Et=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xt=function kt(t){if(!function mt(t){return"string"==typeof t&&Et.test(t)}(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function Tt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:case 3:return e^r^u;case 2:return e&r^e&u^r&u}}function $(t,e){return t<>>32-e}const Mt=function Nt(t,e,r){function u(l,p,f,o){var h;if("string"==typeof l&&(l=function Rt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>0;R=k,k=m,m=$(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+R>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});P(1764),P(6780),P(2735);var tt=function(){var t=function(w,a,n,c){for(n=n||{},c=w.length;c--;n[w[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],k=[1,24],R=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],A=[1,34],I=[27,28,46,47],U=[41,42,43,44,45],H=[17,34],Y=[1,54],M=[1,53],v=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,Q){var s=i.length-1;switch(E){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:case 19:case 43:case 27:case 28:case 31:this.$=i[s];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 20:case 41:case 42:case 32:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING}},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:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:k,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:A},{11:35,27:f,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:A},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:k,45:R},t(U,[2,39]),t(U,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(H,[2,23],{32:50,33:51,35:52,37:Y,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(H,[2,24],{33:56,36:[1,57],38:M}),t(H,[2,25]),t(v,[2,29]),t(H,[2,32]),t(v,[2,31]),{16:58,17:[1,59],29:32,30:33,34:A},t(H,[2,26]),{35:60,37:Y},{17:[1,61]},t(e,[2,13]),t(v,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(!n.recoverable){var c=new Error(a);throw c.hash=n,c}this.trace(a)},parse:function(a){var c=[0],d=[],E=[null],i=[],Q=this.table,s="",j=0,ut=0,Vt=i.slice.call(arguments,1),N=Object.create(this.lexer),K={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(K.yy[rt]=this.yy[rt]);N.setInput(a,K.yy),K.yy.lexer=N,K.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var it=N.yylloc;i.push(it);var F,zt=N.options&&N.options.ranges;this.parseError="function"==typeof K.yy.parseError?K.yy.parseError:Object.getPrototypeOf(this).parseError;for(var S,V,D,at,J,Z,q,z={};;){if(this.defaultActions[V=c[c.length-1]]?D=this.defaultActions[V]:((null===S||typeof S>"u")&&(F=void 0,"number"!=typeof(F=d.pop()||N.lex()||1)&&(F instanceof Array&&(F=(d=F).pop()),F=this.symbols_[F]||F),S=F),D=Q[V]&&Q[V][S]),typeof D>"u"||!D.length||!D[0]){var nt;for(J in q=[],Q[V])this.terminals_[J]&&J>2&&q.push("'"+this.terminals_[J]+"'");nt=N.showPosition?"Parse error on line "+(j+1)+":\n"+N.showPosition()+"\nExpecting "+q.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(nt,{text:N.match,token:this.terminals_[S]||S,line:N.yylineno,loc:it,expected:q})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+S);switch(D[0]){case 1:c.push(S),E.push(N.yytext),i.push(N.yylloc),c.push(D[1]),S=null,ut=N.yyleng,s=N.yytext,j=N.yylineno,it=N.yylloc;break;case 2:if(z.$=E[E.length-(Z=this.productions_[D[1]][1])],z._$={first_line:i[i.length-(Z||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Z||1)].first_column,last_column:i[i.length-1].last_column},zt&&(z._$.range=[i[i.length-(Z||1)].range[0],i[i.length-1].range[1]]),typeof(at=this.performAction.apply(z,[s,ut,j,K.yy,D[1],E,i].concat(Vt)))<"u")return at;Z&&(c=c.slice(0,-1*Z*2),E=E.slice(0,-1*Z),i=i.slice(0,-1*Z)),c.push(this.productions_[D[1]][0]),E.push(z.$),i.push(z._$),c.push(Q[c[c.length-2]][c[c.length-1]]);break;case 3:return!0}}return!0}};function C(){this.yy={}}return O.lexer={EOF:1,parseError:function(n,c){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,c)},setInput:function(a,n){return this.yy=n||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},unput:function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=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 E=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===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+n+"^"},test_match:function(a,n){var c,d,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var i in E)this[i]=E[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var a,n,c,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),i=0;in[0].length)){if(n=c,d=i,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,E[i])))return a;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?!1!==(a=this.test_match(n,E[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,c,d,E){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:case 15:case 20:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 16:return 37;case 17:case 18:return 34;case 19:return 38;case 21:return this.popState(),17;case 22:case 54:return c.yytext[0];case 23:return 18;case 24:return 19;case 25:case 29:case 30:case 43:return 41;case 26:case 27:case 28:case 36:case 38:case 45:return 43;case 31:case 32:case 33:case 34:case 35:case 37:case 44:return 42;case 39:case 40:case 41:case 42:return 44;case 46:return 45;case 47:case 50:case 51:case 52:return 46;case 48:case 49:return 47;case 53:return 27;case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}},C.prototype=O,O.Parser=C,new C}();tt.parser=tt;const vt=tt;let W={},et=[];const lt=function(t,e){return void 0===W[t]?(W[t]={attributes:[],alias:e},g.l.info("Added new entity :",t)):W[t]&&!W[t].alias&&e&&(W[t].alias=e,g.l.info(`Add alias '${e}' to entity '${t}'`)),W[t]},It={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},getConfig:()=>(0,g.c)().er,addEntity:lt,addAttributes:function(t,e){let u,r=lt(t);for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),g.l.debug("Added attribute ",e[u].attributeName)},getEntities:()=>W,addRelationship:function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};et.push(l),g.l.debug("Added new relationship :",l)},getRelationships:()=>et,clear:function(){W={},et=[],(0,g.v)()},setAccTitle:g.s,getAccTitle:g.g,setAccDescription:g.b,getAccDescription:g.a,setDiagramTitle:g.q,getDiagramTitle:g.t},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},B_ERMarkers=L,Dt=/[^\dA-Za-z](\W)*/g;let x={},X=new Map;const ct=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let ht=0;const Wt="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function dt(t=""){return t.length>0?`${t}-`:""}const Ht={parser:vt,db:It,renderer:{setConf:function(t){const e=Object.keys(t);for(const r of e)x[r]=t[r]},draw:function(t,e,r,u){x=(0,g.c)().er,g.l.info("Drawing ER diagram");const l=(0,g.c)().securityLevel;let p;"sandbox"===l&&(p=(0,G.Ys)("#i"+e));const o=(0,G.Ys)("sandbox"===l?p.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);let h;(function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(o,x),h=new pt.k({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:x.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=function(t,e,r){let l;return Object.keys(e).forEach(function(p){const f=function Ut(t="",e=""){const r=t.replace(Dt,"");return`${dt(e)}${dt(r)}${Mt(t,Wt)}`}(p,"entity");X.set(p,f);const o=t.append("g").attr("id",f);l=void 0===l?f:l;const h="text-"+f,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",(0,g.c)().fontFamily).style("font-size",x.fontSize+"px").text(e[p].alias??p),{width:m,height:k}=((t,e,r)=>{const u=x.entityPadding/3,l=x.entityPadding/3,p=.85*x.fontSize,f=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,k=0,R=0,y=0,A=f.height+2*u,I=1;r.forEach(M=>{void 0!==M.attributeKeyTypeList&&M.attributeKeyTypeList.length>0&&(h=!0),void 0!==M.attributeComment&&(_=!0)}),r.forEach(M=>{const v=`${e.node().id}-attr-${I}`;let O=0;const b=(0,g.x)(M.attributeType),C=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(b),w=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(M.attributeName),a={};a.tn=C,a.nn=w;const n=C.node().getBBox(),c=w.node().getBBox();if(m=Math.max(m,n.width),k=Math.max(k,c.width),O=Math.max(n.height,c.height),h){const d=void 0!==M.attributeKeyTypeList?M.attributeKeyTypeList.join(","):"",E=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(d);a.kn=E;const i=E.node().getBBox();R=Math.max(R,i.width),O=Math.max(O,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(M.attributeComment||"");a.cn=d;const E=d.node().getBBox();y=Math.max(y,E.width),O=Math.max(O,E.height)}a.height=O,o.push(a),A+=O+2*u,I+=1});let U=4;h&&(U+=2),_&&(U+=2);const H=m+k+R+y,Y={width:Math.max(x.minEntityWidth,Math.max(f.width+2*x.entityPadding,H+l*U)),height:r.length>0?A:Math.max(x.minEntityHeight,f.height+2*x.entityPadding)};if(r.length>0){const M=Math.max(0,(Y.width-H-l*U)/(U/2));e.attr("transform","translate("+Y.width/2+","+(u+f.height/2)+")");let v=f.height+2*u,O="attributeBoxOdd";o.forEach(b=>{const C=v+u+b.height/2;b.tn.attr("transform","translate("+l+","+C+")");const w=t.insert("rect","#"+b.tn.node().id).classed(`er ${O}`,!0).attr("x",0).attr("y",v).attr("width",m+2*l+M).attr("height",b.height+2*u),a=parseFloat(w.attr("x"))+parseFloat(w.attr("width"));b.nn.attr("transform","translate("+(a+l)+","+C+")");const n=t.insert("rect","#"+b.nn.node().id).classed(`er ${O}`,!0).attr("x",a).attr("y",v).attr("width",k+2*l+M).attr("height",b.height+2*u);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){b.kn.attr("transform","translate("+(c+l)+","+C+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${O}`,!0).attr("x",c).attr("y",v).attr("width",R+2*l+M).attr("height",b.height+2*u);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(c+l)+","+C+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${O}`,"true").attr("x",c).attr("y",v).attr("width",y+2*l+M).attr("height",b.height+2*u)),v+=b.height+2*u,O="attributeBoxOdd"===O?"attributeBoxEven":"attributeBoxOdd"})}else Y.height=Math.max(x.minEntityHeight,A),e.attr("transform","translate("+Y.width/2+","+Y.height/2+")");return Y})(o,_,e[p].attributes),y=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",k).node().getBBox();r.setNode(f,{width:y.width,height:y.height,shape:"rect",id:f})}),l}(o,u.db.getEntities(),h),m=function(t,e){return t.forEach(function(r){e.setEdge(X.get(r.entityA),X.get(r.entityB),{relationship:r},ct(r))}),t}(u.db.getRelationships(),h);(0,_t.bK)(h),function(t,e){e.nodes().forEach(function(r){void 0!==r&&void 0!==e.node(r)&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})}(o,h),m.forEach(function(I){!function(t,e,r,u,l){ht++;const p=r.edge(X.get(e.entityA),X.get(e.entityB),ct(e)),f=(0,G.jvg)().x(function(A){return A.x}).y(function(A){return A.y}).curve(G.$0Z),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",f(p.points)).style("stroke",x.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(x.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+B_ERMarkers.MD_PARENT_END+")")}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+B_ERMarkers.MD_PARENT_START+")")}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(.5*_),k="rel"+ht,y=t.append("text").classed("er relationshipLabel",!0).attr("id",k).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",(0,g.c)().fontFamily).style("font-size",x.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+k).classed("er relationshipLabelBox",!0).attr("x",m.x-y.width/2).attr("y",m.y-y.height/2).attr("width",y.width).attr("height",y.height)}(o,I,h,_,u)});const k=x.diagramPadding;g.u.insertTitle(o,"entityTitleText",x.titleTopMargin,u.db.getDiagramTitle());const R=o.node().getBBox(),y=R.width+2*k,A=R.height+2*k;(0,g.i)(o,A,y,x.useMaxWidth),o.attr("viewBox",`${R.x-k} ${R.y-k} ${y} ${A}`)}},styles:t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n \n`}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[867],{1867:(Xt,st,P)=>{P.r(st),P.d(st,{diagram:()=>Ht});var g=P(8080),pt=P(8814),G=P(8586),_t=P(1065);const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));const Et=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xt=function kt(t){if(!function mt(t){return"string"==typeof t&&Et.test(t)}(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function Tt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:case 3:return e^r^u;case 2:return e&r^e&u^r&u}}function $(t,e){return t<>>32-e}const Mt=function Nt(t,e,r){function u(l,p,f,o){var h;if("string"==typeof l&&(l=function Rt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>0;R=k,k=m,m=$(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+R>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});P(1764),P(6780),P(2735);var tt=function(){var t=function(w,a,n,c){for(n=n||{},c=w.length;c--;n[w[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],k=[1,24],R=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],A=[1,34],I=[27,28,46,47],U=[41,42,43,44,45],H=[17,34],Y=[1,54],M=[1,53],v=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,Q){var s=i.length-1;switch(E){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:case 19:case 43:case 27:case 28:case 31:this.$=i[s];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 20:case 41:case 42:case 32:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING}},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:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:k,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:A},{11:35,27:f,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:A},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:k,45:R},t(U,[2,39]),t(U,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(H,[2,23],{32:50,33:51,35:52,37:Y,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(H,[2,24],{33:56,36:[1,57],38:M}),t(H,[2,25]),t(v,[2,29]),t(H,[2,32]),t(v,[2,31]),{16:58,17:[1,59],29:32,30:33,34:A},t(H,[2,26]),{35:60,37:Y},{17:[1,61]},t(e,[2,13]),t(v,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(!n.recoverable){var c=new Error(a);throw c.hash=n,c}this.trace(a)},parse:function(a){var c=[0],d=[],E=[null],i=[],Q=this.table,s="",j=0,ut=0,Vt=i.slice.call(arguments,1),N=Object.create(this.lexer),K={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(K.yy[rt]=this.yy[rt]);N.setInput(a,K.yy),K.yy.lexer=N,K.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var it=N.yylloc;i.push(it);var F,zt=N.options&&N.options.ranges;this.parseError="function"==typeof K.yy.parseError?K.yy.parseError:Object.getPrototypeOf(this).parseError;for(var S,V,D,at,J,Z,q,z={};;){if(this.defaultActions[V=c[c.length-1]]?D=this.defaultActions[V]:((null===S||typeof S>"u")&&(F=void 0,"number"!=typeof(F=d.pop()||N.lex()||1)&&(F instanceof Array&&(F=(d=F).pop()),F=this.symbols_[F]||F),S=F),D=Q[V]&&Q[V][S]),typeof D>"u"||!D.length||!D[0]){var nt;for(J in q=[],Q[V])this.terminals_[J]&&J>2&&q.push("'"+this.terminals_[J]+"'");nt=N.showPosition?"Parse error on line "+(j+1)+":\n"+N.showPosition()+"\nExpecting "+q.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(nt,{text:N.match,token:this.terminals_[S]||S,line:N.yylineno,loc:it,expected:q})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+S);switch(D[0]){case 1:c.push(S),E.push(N.yytext),i.push(N.yylloc),c.push(D[1]),S=null,ut=N.yyleng,s=N.yytext,j=N.yylineno,it=N.yylloc;break;case 2:if(z.$=E[E.length-(Z=this.productions_[D[1]][1])],z._$={first_line:i[i.length-(Z||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Z||1)].first_column,last_column:i[i.length-1].last_column},zt&&(z._$.range=[i[i.length-(Z||1)].range[0],i[i.length-1].range[1]]),typeof(at=this.performAction.apply(z,[s,ut,j,K.yy,D[1],E,i].concat(Vt)))<"u")return at;Z&&(c=c.slice(0,-1*Z*2),E=E.slice(0,-1*Z),i=i.slice(0,-1*Z)),c.push(this.productions_[D[1]][0]),E.push(z.$),i.push(z._$),c.push(Q[c[c.length-2]][c[c.length-1]]);break;case 3:return!0}}return!0}};function C(){this.yy={}}return O.lexer={EOF:1,parseError:function(n,c){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,c)},setInput:function(a,n){return this.yy=n||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},unput:function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=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 E=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===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+n+"^"},test_match:function(a,n){var c,d,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var i in E)this[i]=E[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var a,n,c,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),i=0;in[0].length)){if(n=c,d=i,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,E[i])))return a;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?!1!==(a=this.test_match(n,E[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,c,d,E){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:case 15:case 20:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 16:return 37;case 17:case 18:return 34;case 19:return 38;case 21:return this.popState(),17;case 22:case 54:return c.yytext[0];case 23:return 18;case 24:return 19;case 25:case 29:case 30:case 43:return 41;case 26:case 27:case 28:case 36:case 38:case 45:return 43;case 31:case 32:case 33:case 34:case 35:case 37:case 44:return 42;case 39:case 40:case 41:case 42:return 44;case 46:return 45;case 47:case 50:case 51:case 52:return 46;case 48:case 49:return 47;case 53:return 27;case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}},C.prototype=O,O.Parser=C,new C}();tt.parser=tt;const vt=tt;let W={},et=[];const lt=function(t,e){return void 0===W[t]?(W[t]={attributes:[],alias:e},g.l.info("Added new entity :",t)):W[t]&&!W[t].alias&&e&&(W[t].alias=e,g.l.info(`Add alias '${e}' to entity '${t}'`)),W[t]},It={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},getConfig:()=>(0,g.c)().er,addEntity:lt,addAttributes:function(t,e){let u,r=lt(t);for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),g.l.debug("Added attribute ",e[u].attributeName)},getEntities:()=>W,addRelationship:function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};et.push(l),g.l.debug("Added new relationship :",l)},getRelationships:()=>et,clear:function(){W={},et=[],(0,g.v)()},setAccTitle:g.s,getAccTitle:g.g,setAccDescription:g.b,getAccDescription:g.a,setDiagramTitle:g.q,getDiagramTitle:g.t},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},B_ERMarkers=L,Dt=/[^\dA-Za-z](\W)*/g;let x={},X=new Map;const ct=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let ht=0;const Wt="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function dt(t=""){return t.length>0?`${t}-`:""}const Ht={parser:vt,db:It,renderer:{setConf:function(t){const e=Object.keys(t);for(const r of e)x[r]=t[r]},draw:function(t,e,r,u){x=(0,g.c)().er,g.l.info("Drawing ER diagram");const l=(0,g.c)().securityLevel;let p;"sandbox"===l&&(p=(0,G.Ys)("#i"+e));const o=(0,G.Ys)("sandbox"===l?p.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);let h;(function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(o,x),h=new pt.k({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:x.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=function(t,e,r){let l;return Object.keys(e).forEach(function(p){const f=function Ut(t="",e=""){const r=t.replace(Dt,"");return`${dt(e)}${dt(r)}${Mt(t,Wt)}`}(p,"entity");X.set(p,f);const o=t.append("g").attr("id",f);l=void 0===l?f:l;const h="text-"+f,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",(0,g.c)().fontFamily).style("font-size",x.fontSize+"px").text(e[p].alias??p),{width:m,height:k}=((t,e,r)=>{const u=x.entityPadding/3,l=x.entityPadding/3,p=.85*x.fontSize,f=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,k=0,R=0,y=0,A=f.height+2*u,I=1;r.forEach(M=>{void 0!==M.attributeKeyTypeList&&M.attributeKeyTypeList.length>0&&(h=!0),void 0!==M.attributeComment&&(_=!0)}),r.forEach(M=>{const v=`${e.node().id}-attr-${I}`;let O=0;const b=(0,g.x)(M.attributeType),C=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(b),w=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(M.attributeName),a={};a.tn=C,a.nn=w;const n=C.node().getBBox(),c=w.node().getBBox();if(m=Math.max(m,n.width),k=Math.max(k,c.width),O=Math.max(n.height,c.height),h){const d=void 0!==M.attributeKeyTypeList?M.attributeKeyTypeList.join(","):"",E=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(d);a.kn=E;const i=E.node().getBBox();R=Math.max(R,i.width),O=Math.max(O,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${v}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,g.c)().fontFamily).style("font-size",p+"px").text(M.attributeComment||"");a.cn=d;const E=d.node().getBBox();y=Math.max(y,E.width),O=Math.max(O,E.height)}a.height=O,o.push(a),A+=O+2*u,I+=1});let U=4;h&&(U+=2),_&&(U+=2);const H=m+k+R+y,Y={width:Math.max(x.minEntityWidth,Math.max(f.width+2*x.entityPadding,H+l*U)),height:r.length>0?A:Math.max(x.minEntityHeight,f.height+2*x.entityPadding)};if(r.length>0){const M=Math.max(0,(Y.width-H-l*U)/(U/2));e.attr("transform","translate("+Y.width/2+","+(u+f.height/2)+")");let v=f.height+2*u,O="attributeBoxOdd";o.forEach(b=>{const C=v+u+b.height/2;b.tn.attr("transform","translate("+l+","+C+")");const w=t.insert("rect","#"+b.tn.node().id).classed(`er ${O}`,!0).attr("x",0).attr("y",v).attr("width",m+2*l+M).attr("height",b.height+2*u),a=parseFloat(w.attr("x"))+parseFloat(w.attr("width"));b.nn.attr("transform","translate("+(a+l)+","+C+")");const n=t.insert("rect","#"+b.nn.node().id).classed(`er ${O}`,!0).attr("x",a).attr("y",v).attr("width",k+2*l+M).attr("height",b.height+2*u);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){b.kn.attr("transform","translate("+(c+l)+","+C+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${O}`,!0).attr("x",c).attr("y",v).attr("width",R+2*l+M).attr("height",b.height+2*u);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(c+l)+","+C+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${O}`,"true").attr("x",c).attr("y",v).attr("width",y+2*l+M).attr("height",b.height+2*u)),v+=b.height+2*u,O="attributeBoxOdd"===O?"attributeBoxEven":"attributeBoxOdd"})}else Y.height=Math.max(x.minEntityHeight,A),e.attr("transform","translate("+Y.width/2+","+Y.height/2+")");return Y})(o,_,e[p].attributes),y=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",k).node().getBBox();r.setNode(f,{width:y.width,height:y.height,shape:"rect",id:f})}),l}(o,u.db.getEntities(),h),m=function(t,e){return t.forEach(function(r){e.setEdge(X.get(r.entityA),X.get(r.entityB),{relationship:r},ct(r))}),t}(u.db.getRelationships(),h);(0,_t.bK)(h),function(t,e){e.nodes().forEach(function(r){void 0!==r&&void 0!==e.node(r)&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})}(o,h),m.forEach(function(I){!function(t,e,r,u,l){ht++;const p=r.edge(X.get(e.entityA),X.get(e.entityB),ct(e)),f=(0,G.jvg)().x(function(A){return A.x}).y(function(A){return A.y}).curve(G.$0Z),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",f(p.points)).style("stroke",x.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(x.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+B_ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+B_ERMarkers.MD_PARENT_END+")")}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+B_ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+B_ERMarkers.MD_PARENT_START+")")}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(.5*_),k="rel"+ht,y=t.append("text").classed("er relationshipLabel",!0).attr("id",k).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",(0,g.c)().fontFamily).style("font-size",x.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+k).classed("er relationshipLabelBox",!0).attr("x",m.x-y.width/2).attr("y",m.y-y.height/2).attr("width",y.width).attr("height",y.height)}(o,I,h,_,u)});const k=x.diagramPadding;g.u.insertTitle(o,"entityTitleText",x.titleTopMargin,u.db.getDiagramTitle());const R=o.node().getBBox(),y=R.width+2*k,A=R.height+2*k;(0,g.i)(o,A,y,x.useMaxWidth),o.attr("viewBox",`${R.x-k} ${R.y-k} ${y} ${A}`)}},styles:t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n \n`}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/880.7a4356d9d7293fda.js b/pkg/apiserver-impl/ui/880.7a4356d9d7293fda.js deleted file mode 100644 index c79c33ad04..0000000000 --- a/pkg/apiserver-impl/ui/880.7a4356d9d7293fda.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[880],{880:(xt,Ze,fe)=>{fe.d(Ze,{d:()=>Dt,p:()=>$e,s:()=>Bt});var w=fe(8586),A=fe(9037),pe=function(){var e=function(O,u,a,h){for(a=a||{},h=O.length;h--;a[O[h]]=u);return a},i=[1,17],r=[1,18],c=[1,19],o=[1,39],p=[1,40],g=[1,25],_=[1,23],D=[1,24],B=[1,31],me=[1,32],be=[1,33],ke=[1,34],ge=[1,35],Te=[1,36],Fe=[1,26],ye=[1,27],_e=[1,28],De=[1,29],E=[1,43],Be=[1,30],C=[1,42],m=[1,44],b=[1,41],T=[1,45],Se=[1,9],l=[1,8,9],Q=[1,56],X=[1,57],W=[1,58],H=[1,59],q=[1,60],Ne=[1,61],Le=[1,62],J=[1,8,9,39],Qe=[1,74],G=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],Z=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],$=[13,74,80,95,97,98],U=[13,64,65,74,80,95,97,98],Xe=[13,59,60,61,62,63,74,80,95,97,98],ve=[1,93],ee=[1,110],te=[1,108],se=[1,102],ie=[1,103],ne=[1,104],ue=[1,105],re=[1,106],ae=[1,107],ce=[1,109],Oe=[1,8,9,37,39,42],le=[1,8,9,21],We=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],xe={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,d,t,Y){var s=t.length-1;switch(d){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:case 89:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:case 43:case 86:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:case 47:case 48:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 87:t[s-2].push(t[s]),this.$=t[s-2]}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:c,36:21,40:o,41:22,44:p,45:g,47:_,48:D,50:B,52:me,53:be,54:ke,55:ge,56:Te,66:Fe,67:ye,69:_e,73:De,74:E,76:Be,80:C,95:m,97:b,98:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Se,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Q,60:X,61:W,62:H,63:q,64:Ne,65:Le}),{37:[1,63]},e(J,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:E,80:C,95:m,97:b},{16:37,17:67,18:38,74:E,80:C,95:m,97:b,98:T},{16:37,17:68,18:38,74:E,80:C,95:m,97:b,98:T},{16:37,17:69,18:38,74:E,80:C,95:m,97:b,98:T},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:E,80:C,95:m,97:b,98:T},{13:Qe,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(G,[2,11],{16:37,18:38,17:75,19:[1,76],74:E,80:C,95:m,97:b,98:T}),e(G,[2,12],{19:[1,77]}),{15:78,16:79,74:E,80:C,95:m,97:b},{16:37,17:80,18:38,74:E,80:C,95:m,97:b,98:T},e(Z,[2,112]),e(Z,[2,113]),e(Z,[2,114]),e(Z,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(Se,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:c,40:o,44:p,45:g,47:_,48:D,50:B,52:me,53:be,54:ke,55:ge,56:Te,66:Fe,67:ye,69:_e,73:De,74:E,76:Be,80:C,95:m,97:b,98:T}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:c,36:21,40:o,41:22,44:p,45:g,47:_,48:D,50:B,52:me,53:be,54:ke,55:ge,56:Te,66:Fe,67:ye,69:_e,73:De,74:E,76:Be,80:C,95:m,97:b,98:T},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:E,80:C,95:m,97:b,98:T},{49:85,57:54,58:55,59:Q,60:X,61:W,62:H,63:q,64:Ne,65:Le},e(l,[2,46]),{58:86,64:Ne,65:Le},e($,[2,62],{57:87,59:Q,60:X,61:W,62:H,63:q}),e(U,[2,63]),e(U,[2,64]),e(U,[2,65]),e(U,[2,66]),e(U,[2,67]),e(Xe,[2,68]),e(Xe,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:E,80:C,95:m,97:b},{43:92,47:ve},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:ee,73:te,74:se,75:99,77:100,79:101,80:ie,81:ne,82:ue,83:re,84:ae,85:ce},{74:[1,111]},{13:Qe,51:112},e(l,[2,54]),e(l,[2,117]),e(G,[2,13]),e(G,[2,14]),e(G,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:E,80:C,95:m,97:b},e(Oe,[2,40],{11:114,12:[1,115]}),e(Se,[2,7]),{9:[1,116]},e(le,[2,49]),{16:37,17:117,18:38,74:E,80:C,95:m,97:b,98:T},{13:[1,119],16:37,17:118,18:38,74:E,80:C,95:m,97:b,98:T},e($,[2,61],{57:120,59:Q,60:X,61:W,62:H,63:q}),e($,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(J,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:ve},{16:37,17:127,18:38,74:E,80:C,95:m,97:b,98:T},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(We,[2,86],{79:135,21:ee,73:te,74:se,80:ie,81:ne,82:ue,83:re,84:ae,85:ce}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(Oe,[2,41]),{13:[1,136]},{1:[2,4]},e(le,[2,51]),e(le,[2,50]),{16:37,17:137,18:38,74:E,80:C,95:m,97:b,98:T},e($,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:ve},e(J,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:ee,73:te,74:se,77:145,79:101,80:ie,81:ne,82:ue,83:re,84:ae,85:ce},e(S,[2,89]),{14:[1,146]},e(le,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(We,[2,87],{79:135,21:ee,73:te,74:se,80:ie,81:ne,82:ue,83:re,84:ae,85:ce}),e(Oe,[2,8]),e(J,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(!a.recoverable){var h=new Error(u);throw h.hash=a,h}this.trace(u)},parse:function(u){var h=[0],n=[],d=[null],t=[],Y=this.table,s="",oe=0,He=0,Lt=t.slice.call(arguments,1),k=Object.create(this.lexer),R={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(R.yy[Re]=this.yy[Re]);k.setInput(u,R.yy),R.yy.lexer=k,R.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Ve=k.yylloc;t.push(Ve);var L,vt=k.options&&k.options.ranges;this.parseError="function"==typeof R.yy.parseError?R.yy.parseError:Object.getPrototypeOf(this).parseError;for(var F,V,y,Pe,he,N,Ae,P={};;){if(this.defaultActions[V=h[h.length-1]]?y=this.defaultActions[V]:((null===F||typeof F>"u")&&(L=void 0,"number"!=typeof(L=n.pop()||k.lex()||1)&&(L instanceof Array&&(L=(n=L).pop()),L=this.symbols_[L]||L),F=L),y=Y[V]&&Y[V][F]),typeof y>"u"||!y.length||!y[0]){var we;for(he in Ae=[],Y[V])this.terminals_[he]&&he>2&&Ae.push("'"+this.terminals_[he]+"'");we=k.showPosition?"Parse error on line "+(oe+1)+":\n"+k.showPosition()+"\nExpecting "+Ae.join(", ")+", got '"+(this.terminals_[F]||F)+"'":"Parse error on line "+(oe+1)+": Unexpected "+(1==F?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(we,{text:k.match,token:this.terminals_[F]||F,line:k.yylineno,loc:Ve,expected:Ae})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+F);switch(y[0]){case 1:h.push(F),d.push(k.yytext),t.push(k.yylloc),h.push(y[1]),F=null,He=k.yyleng,s=k.yytext,oe=k.yylineno,Ve=k.yylloc;break;case 2:if(P.$=d[d.length-(N=this.productions_[y[1]][1])],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},vt&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),typeof(Pe=this.performAction.apply(P,[s,He,oe,R.yy,y[1],d,t].concat(Lt)))<"u")return Pe;N&&(h=h.slice(0,-1*N*2),d=d.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),d.push(P.$),t.push(P._$),h.push(Y[h[h.length-2]][h[h.length-1]]);break;case 3:return!0}}return!0}};function Ie(){this.yy={}}return xe.lexer={EOF:1,parseError:function(a,h){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,h)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,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},input:function(){var u=this._input[0];return this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u,u.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),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=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),h.length-1&&(this.yylineno-=h.length-1);var d=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:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+"\n"+a+"^"},test_match:function(u,a){var h,n,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),(n=u[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var t in d)this[t]=d[t];return!1}return!1},next:function(){if(this.done)return this.EOF;var u,a,h,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),t=0;ta[0].length)){if(a=h,n=t,this.options.backtrack_lexer){if(!1!==(u=this.test_match(h,d[t])))return u;if(this._backtrack){a=!1;continue}return!1}if(!this.options.flex)break}return a?!1!==(u=this.test_match(a,d[n]))&&u:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,h,n,d){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:case 5:case 14:case 30:case 35:case 39:case 46:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 57:case 60:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 34:return 8;case 15:case 16:return 7;case 17:case 36:case 44:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 23:return 71;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:case 38:return this.popState(),8;case 31:return this.begin("namespace-body"),37;case 32:case 42:return this.popState(),39;case 33:case 43:return"EOF_IN_STRUCT";case 37:return this.begin("class"),44;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 45:return"OPEN_IN_STRUCT";case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:case 64:case 65:case 66:return 68;case 67:case 68:return 60;case 69:case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:case 84:return 84;case 85:return 85;case 86:case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}},Ie.prototype=xe,xe.Parser=Ie,new Ie}();pe.parser=pe;const $e=pe,Me=["#","+","~","-",""];class Ge{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const c=(0,A.d)(i,(0,A.c)());this.parseMember(c)}getDisplayDetails(){let i=this.visibility+(0,A.x)(this.id);return"method"===this.memberType&&(i+=`(${(0,A.x)(this.parameters.trim())})`,this.returnType&&(i+=" : "+(0,A.x)(this.returnType))),i=i.trim(),{displayText:i,cssStyle:this.parseClassifier()}}parseMember(i){let r="";if("method"===this.memberType){const o=i.match(/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/);if(o){const p=o[1]?o[1].trim():"";if(Me.includes(p)&&(this.visibility=p),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",""===r){const g=this.returnType.substring(this.returnType.length-1);g.match(/[$*]/)&&(r=g,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const c=i.length,o=i.substring(0,1),p=i.substring(c-1);Me.includes(o)&&(this.visibility=o),p.match(/[$*]/)&&(r=p),this.id=i.substring(""===this.visibility?0:1,""===r?c:c-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const z="classId-";let de=[],f={},K=[],Ue=0,v={},Ee=0,M=[];const x=e=>A.e.sanitizeText(e,(0,A.c)()),I=function(e){const i=A.e.sanitizeText(e,(0,A.c)());let r="",c=i;if(i.indexOf("~")>0){const o=i.split("~");c=x(o[0]),r=x(o[1])}return{className:c,type:r}},j=function(e){const i=A.e.sanitizeText(e,(0,A.c)()),{className:r,type:c}=I(i);if(Object.hasOwn(f,r))return;const o=A.e.sanitizeText(r,(0,A.c)());f[o]={id:o,type:c,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:z+o+"-"+Ue},Ue++},Ye=function(e){const i=A.e.sanitizeText(e,(0,A.c)());if(i in f)return f[i].domId;throw new Error("Class not found: "+i)},ze=function(e,i){j(e);const r=I(e).className,c=f[r];if("string"==typeof i){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?c.annotations.push(x(o.substring(2,o.length-2))):o.indexOf(")")>0?c.methods.push(new Ge(o,"method")):o&&c.members.push(new Ge(o,"attribute"))}},Ce=function(e,i){e.split(",").forEach(function(r){let c=r;r[0].match(/\d/)&&(c=z+c),void 0!==f[c]&&f[c].cssClasses.push(i)})},Ke=function(e){let i=(0,w.Ys)(".mermaidTooltip");null===(i._groups||i)[0][0]&&(i=(0,w.Ys)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,w.Ys)(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=(0,w.Ys)(this);if(null===o.attr("title"))return;const g=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"
")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),(0,w.Ys)(this).classed("hover",!1)})};M.push(Ke);let je="TB";const Dt={setAccTitle:A.s,getAccTitle:A.g,getAccDescription:A.a,setAccDescription:A.b,getConfig:()=>(0,A.c)().class,addClass:j,bindFunctions:function(e){M.forEach(function(i){i(e)})},clear:function(){de=[],f={},K=[],M=[],M.push(Ke),v={},Ee=0,(0,A.v)()},getClass:function(e){return f[e]},getClasses:function(){return f},getNotes:function(){return K},addAnnotation:function(e,i){const r=I(e).className;f[r].annotations.push(i)},addNote:function(e,i){K.push({id:`note${K.length}`,class:i,text:e})},getRelations:function(){return de},addRelation:function(e){A.l.debug("Adding relation: "+JSON.stringify(e)),j(e.id1),j(e.id2),e.id1=I(e.id1).className,e.id2=I(e.id2).className,e.relationTitle1=A.e.sanitizeText(e.relationTitle1.trim(),(0,A.c)()),e.relationTitle2=A.e.sanitizeText(e.relationTitle2.trim(),(0,A.c)()),de.push(e)},getDirection:()=>je,setDirection:e=>{je=e},addMember:ze,addMembers:function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>ze(e,r)))},cleanupLabel:function(e){return e.startsWith(":")&&(e=e.substring(1)),x(e.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(e,i,r){e.split(",").forEach(function(c){(function(e,i,r){const c=A.e.sanitizeText(e,(0,A.c)());if("loose"===(0,A.c)().securityLevel&&void 0!==i&&void 0!==f[c]){const g=Ye(c);let _=[];if("string"==typeof r){_=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<_.length;D++){let B=_[D].trim();'"'===B.charAt(0)&&'"'===B.charAt(B.length-1)&&(B=B.substr(1,B.length-2)),_[D]=B}}0===_.length&&_.push(g),M.push(function(){const D=document.querySelector(`[id="${g}"]`);null!==D&&D.addEventListener("click",function(){A.u.runFunc(i,..._)},!1)})}})(c,i,r),f[c].haveCallback=!0}),Ce(e,"clickable")},setCssClass:Ce,setLink:function(e,i,r){const c=(0,A.c)();e.split(",").forEach(function(o){let p=o;o[0].match(/\d/)&&(p=z+p),void 0!==f[p]&&(f[p].link=A.u.formatUrl(i,c),f[p].linkTarget="sandbox"===c.securityLevel?"_top":"string"==typeof r?x(r):"_blank")}),Ce(e,"clickable")},getTooltip:function(e,i){return i?v[i].classes[e].tooltip:f[e].tooltip},setTooltip:function(e,i){e.split(",").forEach(function(r){void 0!==i&&(f[r].tooltip=x(i))})},lookUpDomId:Ye,setDiagramTitle:A.q,getDiagramTitle:A.t,setClassLabel:function(e,i){const r=A.e.sanitizeText(e,(0,A.c)());i&&(i=x(i));const{className:c}=I(r);f[c].label=i},addNamespace:function(e){void 0===v[e]&&(v[e]={id:e,classes:{},children:{},domId:z+e+"-"+Ee},Ee++)},addClassesToNamespace:function(e,i){if(void 0!==v[e])for(const r of i){const{className:c}=I(r);f[c].parent=e,v[e].classes[c]=f[c]}},getNamespace:function(e){return v[e]},getNamespaces:function(){return v},setCssStyle:function(e,i){const r=f[e];if(i&&r)for(const c of i)c.includes(",")?r.styles.push(...c.split(",")):r.styles.push(c)}},Bt=e=>`g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n`}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/903.c29428aa95c26108.js b/pkg/apiserver-impl/ui/903.c29428aa95c26108.js deleted file mode 100644 index 8b3ab98397..0000000000 --- a/pkg/apiserver-impl/ui/903.c29428aa95c26108.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[903],{5609:(Pe,_e,nt)=>{nt.d(_e,{d:()=>Le,f:()=>Xt,p:()=>Ce});var R1=nt(8586),C=nt(9037),rt=function(){var e=function(p1,a,o,f){for(o=o||{},f=p1.length;f--;o[p1[f]]=a);return o},u=[1,4],i=[1,3],r=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],M=[1,14],F=[1,15],w=[1,16],H=[1,23],l1=[1,25],A1=[1,26],d1=[1,27],S=[1,49],k=[1,48],h1=[1,29],W1=[1,30],H1=[1,31],Q1=[1,32],q1=[1,33],x=[1,44],m=[1,46],y=[1,42],v=[1,47],V=[1,43],L=[1,50],I=[1,45],R=[1,51],N=[1,52],Z1=[1,34],J1=[1,35],$1=[1,36],tt=[1,37],w1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Z=[1,61],J=[1,60],$=[1,62],et=[8,9,11,73,75],D1=[1,88],F1=[1,93],T1=[1,92],_1=[1,89],C1=[1,85],S1=[1,91],B1=[1,87],x1=[1,94],m1=[1,90],y1=[1,95],v1=[1,86],st=[8,9,10,11,73,75],O=[8,9,10,11,44,73,75],K=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Wt=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],P1=[42,58,86,99,102,103,106,108,111,112,113],Ht=[1,121],Qt=[1,120],qt=[1,128],Zt=[1,142],Jt=[1,143],$t=[1,144],te=[1,145],ee=[1,130],se=[1,132],ue=[1,136],ie=[1,137],ne=[1,138],re=[1,139],ae=[1,140],ce=[1,141],oe=[1,146],le=[1,147],he=[1,126],fe=[1,127],pe=[1,134],Ae=[1,129],de=[1,133],Ee=[1,131],ct=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ke=[1,149],T=[8,9,11],Y=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],P=[1,165],U=[1,166],A=[1,170],d=[1,167],E=[1,168],V1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],be=[10,103],f1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],t1=[1,235],e1=[1,233],s1=[1,237],u1=[1,231],i1=[1,232],n1=[1,234],r1=[1,236],a1=[1,238],L1=[1,255],ge=[8,9,11,103],Q=[8,9,10,11,58,81,102,103,106,107,108,109],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,n,_,t,U1){var s=t.length-1;switch(_){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:case 49:case 71:case 174:this.$=t[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 33:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:case 121:case 123:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 50:this.$=t[s-2],n.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],n.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 72:var z=n.destructLink(t[s],t[s-2]);this.$={type:z.type,stroke:z.stroke,length:z.length,text:t[s-1]};break;case 73:case 79:case 94:case 96:this.$={text:t[s],type:"text"};break;case 74:case 80:case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:case 81:this.$={text:t[s],type:"string"};break;case 76:case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 77:z=n.destructLink(t[s]),this.$={type:z.type,stroke:z.stroke,length:z.length};break;case 78:this.$=t[s-1];break;case 98:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],n.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],n.setLink(t[s-4],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],n.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],n.setLink(t[s-6],t[s-4],t[s]),n.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 175:case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,9:u,10:i,12:r},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:r},{4:8,9:u,10:i,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:w1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:Z,9:J,11:$,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Z,9:J,11:$,21:66},{8:Z,9:J,11:$,21:67},{8:Z,9:J,11:$,21:68},{8:Z,9:J,11:$,21:69},{8:Z,9:J,11:$,21:70},{8:Z,9:J,10:[1,71],11:$,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(et,[2,46],{18:75,10:w1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:D1,42:F1,58:T1,77:[1,83],86:_1,92:[1,80],94:[1,81],98:82,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(st,[2,47]),e(st,[2,49],{44:[1,96]}),e(O,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:m,102:y,103:v,106:V,108:L,111:I,112:R,113:N}),e(K,[2,174]),e(K,[2,135]),e(K,[2,136]),e(K,[2,137]),e(K,[2,138]),e(K,[2,139]),e(K,[2,140]),e(K,[2,141]),e(K,[2,142]),e(K,[2,143]),e(K,[2,144]),e(K,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Wt,[2,26],{18:111,10:w1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(P1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:Ht,116:Qt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:qt,12:Zt,14:Jt,27:$t,28:122,32:te,42:ee,58:se,73:ue,77:[1,124],78:[1,125],80:135,81:ie,82:ne,83:re,84:ae,85:ce,86:oe,87:le,88:123,102:he,106:fe,108:pe,111:Ae,112:de,113:Ee},e(ct,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(et,[2,45],{42:ke}),{42:S,45:150,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{42:S,45:155,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:D1,42:F1,58:T1,86:_1,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1}),e(T,[2,110],{10:[1,161]}),e(Y,[2,176]),e(Y,[2,163]),e(Y,[2,164]),e(Y,[2,165]),e(Y,[2,166]),e(Y,[2,167]),e(Y,[2,168]),e(Y,[2,169]),e(Y,[2,170]),e(Y,[2,171]),e(Y,[2,172]),e(Y,[2,173]),{42:S,45:162,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{30:163,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:171,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:174,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:175,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:176,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:181,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:182,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{30:183,65:p,77:P,78:U,79:164,113:A,114:d,115:E},e(K,[2,175]),e(c,[2,20]),e(Wt,[2,25]),e(et,[2,43],{18:184,10:w1}),e(P1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:Ht,116:Qt},e(V1,[2,73]),e(V1,[2,75]),e(V1,[2,76]),e(V1,[2,161]),e(V1,[2,162]),{8:Z,9:J,10:qt,11:$,12:Zt,14:Jt,21:191,27:$t,29:[1,190],32:te,42:ee,58:se,73:ue,80:135,81:ie,82:ne,83:re,84:ae,85:ce,86:oe,87:le,88:192,102:he,106:fe,108:pe,111:Ae,112:de,113:Ee},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},{10:w1,18:194},{10:[1,195],42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:109,111:I,112:R,113:N},{10:[1,196]},{10:[1,197],103:[1,198]},e(be,[2,121]),{10:[1,199],42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:109,111:I,112:R,113:N},{10:[1,200],42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:109,111:I,112:R,113:N},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(Y,[2,177]),{77:[1,205],95:[1,206]},e(st,[2,50],{110:109,42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,111:I,112:R,113:N}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(f1,[2,79]),e(f1,[2,81]),e(f1,[2,82]),e(f1,[2,146]),e(f1,[2,147]),e(f1,[2,148]),e(f1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:P,78:U,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(et,[2,44],{42:ke}),e(P1,[2,70]),e(P1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(P1,[2,72]),e(V1,[2,74]),{30:225,65:p,77:P,78:U,79:164,113:A,114:d,115:E},e(ct,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},{10:t1,58:e1,81:s1,89:228,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{10:t1,58:e1,81:s1,89:239,101:[1,240],102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{10:t1,58:e1,81:s1,89:241,101:[1,242],102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{102:[1,243]},{10:t1,58:e1,81:s1,89:244,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{42:S,45:245,58:k,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(O,[2,51]),e(f1,[2,80]),e(O,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(O,[2,59]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),{106:[1,251]},e(O,[2,58]),e(O,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(O,[2,62]),e(O,[2,63]),e(O,[2,65]),e(O,[2,64]),e(O,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},e(st,[2,48]),e(T,[2,114],{103:L1}),e(ge,[2,123],{105:256,10:t1,58:e1,81:s1,102:u1,106:i1,107:n1,108:r1,109:a1}),e(Q,[2,125]),e(Q,[2,127]),e(Q,[2,128]),e(Q,[2,129]),e(Q,[2,130]),e(Q,[2,131]),e(Q,[2,132]),e(Q,[2,133]),e(Q,[2,134]),e(T,[2,115],{103:L1}),{10:[1,257]},e(T,[2,116],{103:L1}),{10:[1,258]},e(be,[2,122]),e(T,[2,98],{103:L1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:m,102:y,103:v,106:V,108:L,111:I,112:R,113:N}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Z,9:J,11:$,21:264},e(b,[2,34]),{10:t1,58:e1,81:s1,102:u1,104:265,105:230,106:i1,107:n1,108:r1,109:a1},e(Q,[2,126]),{14:D1,42:F1,58:T1,86:_1,98:266,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1,117:84},{14:D1,42:F1,58:T1,86:_1,98:267,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1,117:84},{95:[1,268]},e(T,[2,113]),e(O,[2,53]),{30:269,65:p,77:P,78:U,79:164,113:A,114:d,115:E},e(O,[2,61]),e(ct,l,{5:270}),e(ge,[2,124],{105:256,10:t1,58:e1,81:s1,102:u1,106:i1,107:n1,108:r1,109:a1}),e(T,[2,119],{117:160,10:[1,271],14:D1,42:F1,58:T1,86:_1,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1}),e(T,[2,120],{117:160,10:[1,272],14:D1,42:F1,58:T1,86:_1,102:C1,103:S1,106:B1,108:x1,111:m1,112:y1,113:v1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:M,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:l1,36:A1,38:d1,40:28,41:38,42:S,43:39,45:40,58:k,81:h1,82:W1,83:H1,84:Q1,85:q1,86:x,99:m,102:y,103:v,106:V,108:L,110:41,111:I,112:R,113:N,118:Z1,119:J1,120:$1,121:tt},{10:t1,58:e1,81:s1,89:275,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},{10:t1,58:e1,81:s1,89:276,102:u1,104:229,105:230,106:i1,107:n1,108:r1,109:a1},e(O,[2,57]),e(b,[2,33]),e(T,[2,117],{103:L1}),e(T,[2,118],{103:L1})],defaultActions:{},parseError:function(a,o){if(!o.recoverable){var f=new Error(a);throw f.hash=o,f}this.trace(a)},parse:function(a){var f=[0],n=[],_=[null],t=[],U1=this.table,s="",z=0,De=0,Ne=t.slice.call(arguments,1),B=Object.create(this.lexer),E1={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(E1.yy[ht]=this.yy[ht]);B.setInput(a,E1.yy),E1.yy.lexer=B,E1.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var ft=B.yylloc;t.push(ft);var o1,Oe=B.options&&B.options.ranges;this.parseError="function"==typeof E1.yy.parseError?E1.yy.parseError:Object.getPrototypeOf(this).parseError;for(var G,k1,X,pt,ut,c1,it,I1={};;){if(this.defaultActions[k1=f[f.length-1]]?X=this.defaultActions[k1]:((null===G||typeof G>"u")&&(o1=void 0,"number"!=typeof(o1=n.pop()||B.lex()||1)&&(o1 instanceof Array&&(o1=(n=o1).pop()),o1=this.symbols_[o1]||o1),G=o1),X=U1[k1]&&U1[k1][G]),typeof X>"u"||!X.length||!X[0]){var At;for(ut in it=[],U1[k1])this.terminals_[ut]&&ut>2&&it.push("'"+this.terminals_[ut]+"'");At=B.showPosition?"Parse error on line "+(z+1)+":\n"+B.showPosition()+"\nExpecting "+it.join(", ")+", got '"+(this.terminals_[G]||G)+"'":"Parse error on line "+(z+1)+": Unexpected "+(1==G?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(At,{text:B.match,token:this.terminals_[G]||G,line:B.yylineno,loc:ft,expected:it})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k1+", token: "+G);switch(X[0]){case 1:f.push(G),_.push(B.yytext),t.push(B.yylloc),f.push(X[1]),G=null,De=B.yyleng,s=B.yytext,z=B.yylineno,ft=B.yylloc;break;case 2:if(I1.$=_[_.length-(c1=this.productions_[X[1]][1])],I1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Oe&&(I1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),typeof(pt=this.performAction.apply(I1,[s,De,z,E1.yy,X[1],_,t].concat(Ne)))<"u")return pt;c1&&(f=f.slice(0,-1*c1*2),_=_.slice(0,-1*c1),t=t.slice(0,-1*c1)),f.push(this.productions_[X[1]][0]),_.push(I1.$),t.push(I1._$),f.push(U1[f[f.length-2]][f[f.length-1]]);break;case 3:return!0}}return!0}};function lt(){this.yy={}}return ot.lexer={EOF:1,parseError:function(o,f){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,f)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var n=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),f.length-1&&(this.yylineno-=f.length-1);var _=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:f?(f.length===n.length?this.yylloc.first_column:0)+n[n.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+o+"^"},test_match:function(a,o){var f,n,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),(n=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var t in _)this[t]=_[t];return!1}return!1},next:function(){if(this.done)return this.EOF;var a,o,f,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),t=0;t<_.length;t++)if((f=this._input.match(this.rules[_[t]]))&&(!o||f[0].length>o[0].length)){if(o=f,n=t,this.options.backtrack_lexer){if(!1!==(a=this.test_match(f,_[t])))return a;if(this._backtrack){o=!1;continue}return!1}if(!this.options.flex)break}return o?!1!==(a=this.test_match(o,_[n]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return(o=this.conditionStack.length-1-Math.abs(o||0))>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,f,n,_){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 8:case 11:case 14:case 17:case 27:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 12:return 93;case 13:return"MD_STR";case 15:this.begin("md_string");break;case 16:return"STR";case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 28:return 85;case 29:case 30:case 31:return o.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:case 35:case 36:case 37:return 95;case 38:return this.popState(),13;case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:case 95:return 108;case 55:return 44;case 56:return 58;case 57:case 96:return 42;case 58:return 8;case 59:return 103;case 60:case 94:return 112;case 61:case 64:case 67:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:case 66:case 69:return 116;case 65:return this.pushState("thickEdgeText"),73;case 68:return this.pushState("dottedEdgeText"),73;case 70:return 75;case 71:return this.popState(),51;case 72:case 108:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}},lt.prototype=ot,ot.Parser=lt,new lt}();rt.parser=rt;const Ce=rt;let j,Y1,dt=0,b1=(0,C.c)(),D={},W=[],g1={},q=[],M1={},G1={},K1=0,at=!0,j1=[];const z1=e=>C.e.sanitizeText(e,b1),N1=function(e){const u=Object.keys(D);for(const i of u)if(D[i].id===e)return D[i].domId;return e},Et=function(e,u,i,r,c,l,h={}){let M,F=e;void 0!==F&&0!==F.trim().length&&(void 0===D[F]&&(D[F]={id:F,labelType:"text",domId:"flowchart-"+F+"-"+dt,styles:[],classes:[]}),dt++,void 0!==u?(b1=(0,C.c)(),M=z1(u.text.trim()),D[F].labelType=u.type,'"'===M[0]&&'"'===M[M.length-1]&&(M=M.substring(1,M.length-1)),D[F].text=M):void 0===D[F].text&&(D[F].text=e),void 0!==i&&(D[F].type=i),r?.forEach(function(w){D[F].styles.push(w)}),c?.forEach(function(w){D[F].classes.push(w)}),void 0!==l&&(D[F].dir=l),void 0===D[F].props?D[F].props=h:void 0!==h&&Object.assign(D[F].props,h))},kt=function(e,u,i){const l={start:e,end:u,type:void 0,text:"",labelType:"text"};C.l.info("abc78 Got edge...",l);const h=i.text;if(void 0!==h&&(l.text=z1(h.text.trim()),'"'===l.text[0]&&'"'===l.text[l.text.length-1]&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=h.type),void 0!==i&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length),l?.length>10&&(l.length=10),!(W.length<(b1.maxEdges??500)))throw new Error(`Edge limit exceeded. ${W.length} edges found, but the limit is ${b1.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);C.l.info("abc78 pushing edge..."),W.push(l)},bt=function(e,u,i){let r,c;for(C.l.info("addLink (abc78)",e,u,i),r=0;r=W.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${W.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===i?W.defaultStyle=u:(-1===C.u.isSubstringInArray("fill",u)&&u.push("fill:none"),W[i].style=u)})},Ft=function(e,u){e.split(",").forEach(function(i){void 0===g1[i]&&(g1[i]={id:i,styles:[],textStyles:[]}),u?.forEach(function(r){if(r.match("color")){const c=r.replace("fill","bgFill").replace("color","fill");g1[i].textStyles.push(c)}g1[i].styles.push(r)})})},Tt=function(e){j=e,j.match(/.*/)&&(j="LR"),j.match(/.*v/)&&(j="TB"),"TD"===j&&(j="TB")},X1=function(e,u){e.split(",").forEach(function(i){let r=i;void 0!==D[r]&&D[r].classes.push(u),void 0!==M1[r]&&M1[r].classes.push(u)})},_t=function(e,u,i){e.split(",").forEach(function(r){void 0!==D[r]&&(D[r].link=C.u.formatUrl(u,b1),D[r].linkTarget=i)}),X1(e,"clickable")},Ct=function(e){if(G1.hasOwnProperty(e))return G1[e]},St=function(e,u,i){e.split(",").forEach(function(r){!function(e,u,i){let r=N1(e);if("loose"!==(0,C.c)().securityLevel||void 0===u)return;let c=[];if("string"==typeof i){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),(0,R1.Ys)(this).classed("hover",!1)})};j1.push(Vt);const Lt=function(e="gen-1"){D={},g1={},W=[],j1=[Vt],q=[],M1={},K1=0,G1={},at=!0,Y1=e,b1=(0,C.c)(),(0,C.v)()},It=e=>{Y1=e||"gen-2"},Rt=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},Nt=function(e,u,i){let r=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(r=void 0);let h=[];const{nodeList:M,dir:F}=function l(H){const l1={boolean:{},number:{},string:{}},A1=[];let d1;return{nodeList:H.filter(function(k){const h1=typeof k;return k.stmt&&"dir"===k.stmt?(d1=k.value,!1):""!==k.trim()&&(h1 in l1?!l1[h1].hasOwnProperty(k)&&(l1[h1][k]=!0):!A1.includes(k)&&A1.push(k))}),dir:d1}}(h.concat.apply(h,u));if(h=M,"gen-1"===Y1)for(let H=0;H2e3)return;if(Ot[O1]=u,q[u].id===e)return{result:!0,count:0};let r=0,c=1;for(;r=0){const h=wt(e,l);if(h.result)return{result:!0,count:c+h.count};c+=h.count}r+=1}return{result:!1,count:c}},Pt=function(e){return Ot[e]},Ut=function(){O1=-1,q.length>0&&wt("none",q.length-1)},Mt=function(){return q},Gt=()=>!!at&&(at=!1,!0),Kt=(e,u)=>{const i=(e=>{const u=e.trim();let i=u.slice(0,-1),r="arrow_open";switch(u.slice(-1)){case"x":r="arrow_cross","x"===u[0]&&(r="double_"+r,i=i.slice(1));break;case">":r="arrow_point","<"===u[0]&&(r="double_"+r,i=i.slice(1));break;case"o":r="arrow_circle","o"===u[0]&&(r="double_"+r,i=i.slice(1))}let c="normal",l=i.length-1;"="===i[0]&&(c="thick"),"~"===i[0]&&(c="invisible");let h=((e,u)=>{const i=u.length;let r=0;for(let c=0;c{let u=e.trim(),i="arrow_open";switch(u[0]){case"<":i="arrow_point",u=u.slice(1);break;case"x":i="arrow_cross",u=u.slice(1);break;case"o":i="arrow_circle",u=u.slice(1)}let r="normal";return u.includes("=")&&(r="thick"),u.includes(".")&&(r="dotted"),{type:i,stroke:r}})(u),r.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=i.type;else{if(r.type!==i.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=i.length,r}return i},Yt=(e,u)=>{let i=!1;return e.forEach(r=>{r.nodes.indexOf(u)>=0&&(i=!0)}),i},jt=(e,u)=>{const i=[];return e.nodes.forEach((r,c)=>{Yt(u,r)||i.push(e.nodes[c])}),{nodes:i}},zt={firstGraph:Gt},Xt={defaultConfig:()=>C.K.flowchart,setAccTitle:C.s,getAccTitle:C.g,getAccDescription:C.a,setAccDescription:C.b,addVertex:Et,lookUpDomId:N1,addLink:bt,updateLinkInterpolate:gt,updateLink:Dt,addClass:Ft,setDirection:Tt,setClass:X1,setTooltip:function(e,u){e.split(",").forEach(function(i){void 0!==u&&(G1["gen-1"===Y1?N1(i):i]=z1(u))})},getTooltip:Ct,setClickEvent:St,setLink:_t,bindFunctions:Bt,getDirection:xt,getVertices:mt,getEdges:yt,getClasses:vt,clear:Lt,setGen:It,defaultStyle:Rt,addSubGraph:Nt,getDepthFirstPos:Pt,indexNodes:Ut,getSubGraphs:Mt,destructLink:Kt,lex:zt,exists:Yt,makeUniq:jt,setDiagramTitle:C.q,getDiagramTitle:C.t},Le=Object.freeze(Object.defineProperty({__proto__:null,addClass:Ft,addLink:bt,addSingleLink:kt,addSubGraph:Nt,addVertex:Et,bindFunctions:Bt,clear:Lt,default:Xt,defaultStyle:Rt,destructLink:Kt,firstGraph:Gt,getClasses:vt,getDepthFirstPos:Pt,getDirection:xt,getEdges:yt,getSubGraphs:Mt,getTooltip:Ct,getVertices:mt,indexNodes:Ut,lex:zt,lookUpDomId:N1,setClass:X1,setClickEvent:St,setDirection:Tt,setGen:It,setLink:_t,updateLink:Dt,updateLinkInterpolate:gt},Symbol.toStringTag,{value:"Module"}))}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/907.21a1588e78495f0d.js b/pkg/apiserver-impl/ui/907.21a1588e78495f0d.js new file mode 100644 index 0000000000..a584937cc8 --- /dev/null +++ b/pkg/apiserver-impl/ui/907.21a1588e78495f0d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[907],{907:(b0,Kt,at)=>{at.r(Kt),at.d(Kt,{diagram:()=>f0});var W=at(5861),p=at(8080),wt=at(8586),st=at(6938),Ut=at(6780),At=(at(1764),at(2735),function(){var t=function(dt,w,L,I){for(L=L||{},I=dt.length;I--;L[dt[I]]=w);return L},e=[1,2],s=[1,3],a=[1,4],r=[2,4],i=[1,9],c=[1,11],o=[1,13],f=[1,14],h=[1,16],l=[1,17],T=[1,18],E=[1,24],y=[1,25],x=[1,26],v=[1,27],P=[1,28],M=[1,29],D=[1,30],C=[1,31],Y=[1,32],O=[1,33],z=[1,34],H=[1,35],Q=[1,36],K=[1,37],U=[1,38],G=[1,39],Z=[1,41],q=[1,42],j=[1,43],X=[1,44],$=[1,45],N=[1,46],A=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],_=[4,5,16,50,52,53],k=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Yt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,L,I,b,R,d,_t){var u=d.length-1;switch(R){case 3:return b.apply(d[u]),d[u];case 4:case 9:case 8:case 13:this.$=[];break;case 5:case 10:d[u-1].push(d[u]),this.$=d[u-1];break;case 6:case 7:case 11:case 12:case 62:this.$=d[u];break;case 15:d[u].type="createParticipant",this.$=d[u];break;case 16:d[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(d[u-2])}),d[u-1].push({type:"boxEnd",boxText:d[u-2]}),this.$=d[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-2]),sequenceIndexStep:Number(d[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-1]};break;case 29:b.setDiagramTitle(d[u].substring(6)),this.$=d[u].substring(6);break;case 30:b.setDiagramTitle(d[u].substring(7)),this.$=d[u].substring(7);break;case 31:this.$=d[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=d[u].trim(),b.setAccDescription(this.$);break;case 34:d[u-1].unshift({type:"loopStart",loopText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.LOOP_START}),d[u-1].push({type:"loopEnd",loopText:d[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=d[u-1];break;case 35:d[u-1].unshift({type:"rectStart",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_START}),d[u-1].push({type:"rectEnd",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=d[u-1];break;case 36:d[u-1].unshift({type:"optStart",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_START}),d[u-1].push({type:"optEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=d[u-1];break;case 37:d[u-1].unshift({type:"altStart",altText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.ALT_START}),d[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=d[u-1];break;case 38:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 39:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 40:d[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.CRITICAL_START}),d[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=d[u-1];break;case 41:d[u-1].unshift({type:"breakStart",breakText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_START}),d[u-1].push({type:"breakEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=d[u-1];break;case 43:this.$=d[u-3].concat([{type:"option",optionText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},d[u]]);break;case 45:this.$=d[u-3].concat([{type:"and",parText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.PAR_AND},d[u]]);break;case 47:this.$=d[u-3].concat([{type:"else",altText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.ALT_ELSE},d[u]]);break;case 48:d[u-3].draw="participant",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 49:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 50:d[u-3].draw="actor",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 51:d[u-1].draw="actor",d[u-1].type="addParticipant",this.$=d[u-1];break;case 52:d[u-1].type="destroyParticipant",this.$=d[u-1];break;case 53:this.$=[d[u-1],{type:"addNote",placement:d[u-2],actor:d[u-1].actor,text:d[u]}];break;case 54:d[u-2]=[].concat(d[u-1],d[u-1]).slice(0,2),d[u-2][0]=d[u-2][0].actor,d[u-2][1]=d[u-2][1].actor,this.$=[d[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:d[u-2].slice(0,2),text:d[u]}];break;case 55:this.$=[d[u-1],{type:"addLinks",actor:d[u-1].actor,text:d[u]}];break;case 56:this.$=[d[u-1],{type:"addALink",actor:d[u-1].actor,text:d[u]}];break;case 57:this.$=[d[u-1],{type:"addProperties",actor:d[u-1].actor,text:d[u]}];break;case 58:this.$=[d[u-1],{type:"addDetails",actor:d[u-1].actor,text:d[u]}];break;case 61:this.$=[d[u-2],d[u]];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1]}];break;case 66:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-4]}];break;case 67:this.$=[d[u-3],d[u-1],{type:"addMessage",from:d[u-3].actor,to:d[u-1].actor,signalType:d[u-2],msg:d[u]}];break;case 68:this.$={type:"addParticipant",actor:d[u]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(d[u].trim().substring(1))}},table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:o,14:f,17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},t(A,[2,5]),{9:47,12:12,13:o,14:f,17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},t(A,[2,7]),t(A,[2,8]),t(A,[2,14]),{12:48,50:K,52:U,53:G},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(A,[2,29]),t(A,[2,30]),{32:[1,61]},{34:[1,62]},t(A,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(A,[2,6]),t(A,[2,15]),t(_,[2,9],{10:91}),t(A,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(A,[2,21]),{5:[1,95]},{5:[1,96]},t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,31]),t(A,[2,32]),t(k,r,{7:97}),t(k,r,{7:98}),t(k,r,{7:99}),t(rt,r,{40:100,7:101}),t(tt,r,{42:102,7:103}),t(tt,r,{7:103,42:104}),t(S,r,{45:105,7:106}),t(k,r,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:K,52:U,53:G},{5:[1,129]},t(A,[2,19]),t(A,[2,20]),t(A,[2,22]),t(A,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,130],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,131],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,132],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{16:[1,133]},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[2,46],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,49:[1,134],50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[2,44],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,48:[1,136],50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{16:[1,137]},{16:[1,138]},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[2,42],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,47:[1,139],50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{4:i,5:c,8:8,9:10,12:12,13:o,14:f,16:[1,140],17:15,18:h,21:l,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:E,30:y,31:x,33:v,35:P,36:M,37:D,38:C,39:Y,41:O,43:z,44:H,46:Q,50:K,52:U,53:G,54:Z,59:q,60:j,61:X,62:$,70:N},{15:[1,141]},t(A,[2,49]),{15:[1,142]},t(A,[2,51]),t(A,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(A,[2,16]),t(_,[2,10]),{12:149,50:K,52:U,53:G},t(_,[2,12]),t(_,[2,13]),t(A,[2,18]),t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),{15:[1,150]},t(A,[2,38]),{15:[1,151]},t(A,[2,39]),t(A,[2,40]),{15:[1,152]},t(A,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(_,[2,11]),t(rt,r,{7:101,40:158}),t(tt,r,{7:103,42:159}),t(S,r,{7:106,45:160}),t(A,[2,48]),t(A,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,L){if(!L.recoverable){var I=new Error(w);throw I.hash=L,I}this.trace(w)},parse:function(w){var I=[0],b=[],R=[null],d=[],_t=this.table,u="",Lt=0,le=0,y0=d.slice.call(arguments,1),F=Object.create(this.lexer),gt={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(gt.yy[Wt]=this.yy[Wt]);F.setInput(w,gt.yy),gt.yy.lexer=F,gt.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var qt=F.yylloc;d.push(qt);var lt,T0=F.options&&F.options.ranges;this.parseError="function"==typeof gt.yy.parseError?gt.yy.parseError:Object.getPrototypeOf(this).parseError;for(var J,xt,et,zt,kt,ct,It,Et={};;){if(this.defaultActions[xt=I[I.length-1]]?et=this.defaultActions[xt]:((null===J||typeof J>"u")&&(lt=void 0,"number"!=typeof(lt=b.pop()||F.lex()||1)&&(lt instanceof Array&&(lt=(b=lt).pop()),lt=this.symbols_[lt]||lt),J=lt),et=_t[xt]&&_t[xt][J]),typeof et>"u"||!et.length||!et[0]){var Ht;for(kt in It=[],_t[xt])this.terminals_[kt]&&kt>2&&It.push("'"+this.terminals_[kt]+"'");Ht=F.showPosition?"Parse error on line "+(Lt+1)+":\n"+F.showPosition()+"\nExpecting "+It.join(", ")+", got '"+(this.terminals_[J]||J)+"'":"Parse error on line "+(Lt+1)+": Unexpected "+(1==J?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError(Ht,{text:F.match,token:this.terminals_[J]||J,line:F.yylineno,loc:qt,expected:It})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+J);switch(et[0]){case 1:I.push(J),R.push(F.yytext),d.push(F.yylloc),I.push(et[1]),J=null,le=F.yyleng,u=F.yytext,Lt=F.yylineno,qt=F.yylloc;break;case 2:if(Et.$=R[R.length-(ct=this.productions_[et[1]][1])],Et._$={first_line:d[d.length-(ct||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(ct||1)].first_column,last_column:d[d.length-1].last_column},T0&&(Et._$.range=[d[d.length-(ct||1)].range[0],d[d.length-1].range[1]]),typeof(zt=this.performAction.apply(Et,[u,le,Lt,gt.yy,et[1],R,d].concat(y0)))<"u")return zt;ct&&(I=I.slice(0,-1*ct*2),R=R.slice(0,-1*ct),d=d.slice(0,-1*ct)),I.push(this.productions_[et[1]][0]),R.push(Et.$),d.push(Et._$),I.push(_t[I[I.length-2]][I[I.length-1]]);break;case 3:return!0}}return!0}};function Ft(){this.yy={}}return Yt.lexer={EOF:1,parseError:function(L,I){if(!this.yy.parser)throw new Error(L);this.yy.parser.parseError(L,I)},setInput:function(w,L){return this.yy=L||this.yy||{},this._input=w,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},input:function(){var w=this._input[0];return this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w,w.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),w},unput:function(w){var L=w.length,I=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var b=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),I.length-1&&(this.yylineno-=I.length-1);var R=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:I?(I.length===b.length?this.yylloc.first_column:0)+b[b.length-I.length].length-I[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),L=new Array(w.length+1).join("-");return w+this.upcomingInput()+"\n"+L+"^"},test_match:function(w,L){var I,b,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),(b=w[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],I=this.performAction.call(this,this.yy,this,L,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var d in R)this[d]=R[d];return!1}return!1},next:function(){if(this.done)return this.EOF;var w,L,I,b;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),d=0;dL[0].length)){if(L=I,b=d,this.options.backtrack_lexer){if(!1!==(w=this.test_match(I,R[d])))return w;if(this._backtrack){L=!1;continue}return!1}if(!this.options.flex)break}return L?!1!==(w=this.test_match(L,R[b]))&&w:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(L){this.conditionStack.push(L)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(L){return(L=this.conditionStack.length-1-Math.abs(L||0))>=0?this.conditionStack[L]:"INITIAL"},pushState:function(L){this.begin(L)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(L,I,b,R){switch(b){case 0:case 51:case 64:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return I.yytext=I.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 52:return I.yytext=I.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/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,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}},Ft.prototype=Yt,Yt.Parser=Ft,new Ft}());At.parser=At;const ue=At,m=new class pe{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}}(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Nt=function(t,e,s,a){let r=m.records.currentBox;const i=m.records.actors[t];if(i){if(m.records.currentBox&&i.box&&m.records.currentBox!==i.box)throw new Error("A same participant should only be defined in one Box: "+i.name+" can't be in '"+i.box.name+"' and in '"+m.records.currentBox.name+"' at the same time.");if(r=i.box?i.box:m.records.currentBox,i.box=r,i&&e===i.name&&null==s)return}(null==s||null==s.text)&&(s={text:e,wrap:null,type:a}),(null==a||null==s.text)&&(s={text:e,wrap:null,type:a}),m.records.actors[t]={box:r,name:e,description:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,prevActor:m.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},m.records.prevActor&&m.records.actors[m.records.prevActor]&&(m.records.actors[m.records.prevActor].nextActor=t),m.records.currentBox&&m.records.currentBox.actorKeys.push(t),m.records.prevActor=t},V=function(t,e,s={text:void 0,wrap:void 0},a,r=!1){if(a===mt.ACTIVE_END&&(t=>{let e,s=0;for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}return m.records.messages.push({from:t,to:e,message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,type:a,activate:r}),!0},bt=function(t){return m.records.actors[t]},ut=()=>void 0!==m.records.wrapEnabled?m.records.wrapEnabled:(0,p.c)().sequence.wrap,mt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},Gt=function(t,e,s){const a={actor:t,placement:e,message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap},r=[].concat(t,t);m.records.notes.push(a),m.records.messages.push({from:r[0],to:r[1],message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,type:mt.NOTE,placement:e})},Zt=function(t,e){const s=bt(t);try{let a=(0,p.d)(e.text,(0,p.c)());a=a.replace(/&/g,"&"),a=a.replace(/=/g,"="),St(s,JSON.parse(a))}catch(a){p.l.error("error while parsing actor link text",a)}};function St(t,e){if(null==t.links)t.links=e;else for(let s in e)t.links[s]=e[s]}const Xt=function(t,e){const s=bt(t);try{let a=(0,p.d)(e.text,(0,p.c)());Jt(s,JSON.parse(a))}catch(a){p.l.error("error while parsing actor properties text",a)}};function Jt(t,e){if(null==t.properties)t.properties=e;else for(let s in e)t.properties[s]=e[s]}const Qt=function(t,e){const s=bt(t),a=document.getElementById(e.text);try{const i=JSON.parse(a.innerHTML);i.properties&&Jt(s,i.properties),i.links&&St(s,i.links)}catch(r){p.l.error("error while parsing actor details text",r)}},jt=function(t){if(Array.isArray(t))t.forEach(function(e){jt(e)});else switch(t.type){case"sequenceIndex":m.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Nt(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(m.records.actors[t.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");m.records.lastCreated=t.actor,Nt(t.actor,t.actor,t.description,t.draw),m.records.createdActors[t.actor]=m.records.messages.length;break;case"destroyParticipant":m.records.lastDestroyed=t.actor,m.records.destroyedActors[t.actor]=m.records.messages.length;break;case"activeStart":case"activeEnd":V(t.actor,void 0,void 0,t.signalType);break;case"addNote":Gt(t.actor,t.placement,t.text);break;case"addLinks":Zt(t.actor,t.text);break;case"addALink":!function(t,e){const s=bt(t);try{const c={};let o=(0,p.d)(e.text,(0,p.c)());var a=o.indexOf("@");o=o.replace(/&/g,"&"),o=o.replace(/=/g,"=");var r=o.slice(0,a-1).trim(),i=o.slice(a+1).trim();c[r]=i,St(s,c)}catch(c){p.l.error("error while parsing actor link text",c)}}(t.actor,t.text);break;case"addProperties":Xt(t.actor,t.text);break;case"addDetails":Qt(t.actor,t.text);break;case"addMessage":if(m.records.lastCreated){if(t.to!==m.records.lastCreated)throw new Error("The created participant "+m.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");m.records.lastCreated=void 0}else if(m.records.lastDestroyed){if(t.to!==m.records.lastDestroyed&&t.from!==m.records.lastDestroyed)throw new Error("The destroyed participant "+m.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");m.records.lastDestroyed=void 0}V(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":!function(t){m.records.boxes.push({name:t.text,wrap:void 0===t.wrap&&ut()||!!t.wrap,fill:t.color,actorKeys:[]}),m.records.currentBox=m.records.boxes.slice(-1)[0]}(t.boxData);break;case"boxEnd":!function Ce(){m.records.currentBox=void 0}();break;case"loopStart":V(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":V(void 0,void 0,void 0,t.signalType);break;case"rectStart":V(void 0,void 0,t.color,t.signalType);break;case"optStart":V(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":V(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,p.s)(t.text);break;case"parStart":case"and":V(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":V(void 0,void 0,t.criticalText,t.signalType);break;case"option":V(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":V(void 0,void 0,t.breakText,t.signalType)}},$t={addActor:Nt,addMessage:function(t,e,s,a){m.records.messages.push({from:t,to:e,message:s.text,wrap:void 0===s.wrap&&ut()||!!s.wrap,answer:a})},addSignal:V,addLinks:Zt,addDetails:Qt,addProperties:Xt,autoWrap:ut,setWrap:function(t){m.records.wrapEnabled=t},enableSequenceNumbers:function(){m.records.sequenceNumbersEnabled=!0},disableSequenceNumbers:function(){m.records.sequenceNumbersEnabled=!1},showSequenceNumbers:()=>m.records.sequenceNumbersEnabled,getMessages:function(){return m.records.messages},getActors:function(){return m.records.actors},getCreatedActors:function(){return m.records.createdActors},getDestroyedActors:function(){return m.records.destroyedActors},getActor:bt,getActorKeys:function(){return Object.keys(m.records.actors)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:p.g,getBoxes:function(){return m.records.boxes},getDiagramTitle:p.t,setDiagramTitle:p.q,getConfig:()=>(0,p.c)().sequence,clear:function(){m.reset(),(0,p.v)()},parseMessage:function(t){const e=t.trim(),s={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return p.l.debug("parseMessage:",s),s},parseBoxData:function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let s=null!=e&&e[1]?e[1].trim():"transparent",a=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",s)||(s="transparent",a=t.trim());else{const r=(new Option).style;r.color=s,r.color!==s&&(s="transparent",a=t.trim())}return{color:s,text:void 0!==a?(0,p.d)(a.replace(/^:?(?:no)?wrap:/,""),(0,p.c)()):void 0,wrap:void 0!==a?null!==a.match(/^:?wrap:/)||null===a.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:mt,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Gt,setAccTitle:p.s,apply:jt,setAccDescription:p.b,getAccDescription:p.a,hasAtLeastOneBox:function(){return m.records.boxes.length>0},hasAtLeastOneBoxWithTitle:function(){return m.records.boxes.some(t=>t.name)}},pt=36,te="actor-top",ee="actor-bottom",Mt=function(t,e){return(0,st.d)(t,e)},vt=function(){var t=(0,W.Z)(function*(e,s,a=null){let r=e.append("foreignObject");const i=yield(0,p.r)(s.text,(0,p.F)()),o=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(r.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===s.class){const f=e.node().firstChild;f.setAttribute("height",o.height+2*s.textMargin);const h=f.getBBox();r.attr("x",Math.round(h.x+h.width/2-o.width/2)).attr("y",Math.round(h.y+h.height/2-o.height/2))}else if(a){let{startx:f,stopx:h,starty:l}=a;if(f>h){const T=f;f=h,h=T}r.attr("x",Math.round(f+Math.abs(f-h)/2-o.width/2)),r.attr("y","loopText"===s.class?Math.round(l):Math.round(l-o.height))}return[r]});return function(s,a){return t.apply(this,arguments)}}(),yt=function(t,e){let s=0,a=0;const r=e.text.split(p.e.lineBreakRegex),[i,c]=(0,p.D)(e.fontSize);let o=[],f=0,h=()=>e.y;if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":h=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":h=()=>Math.round(e.y+(s+a+e.textMargin)/2);break;case"bottom":case"end":h=()=>Math.round(e.y+(s+a+2*e.textMargin)-e.textMargin)}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[l,T]of r.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==i&&(f=l*i);const E=t.append("text");E.attr("x",e.x),E.attr("y",h()),void 0!==e.anchor&&E.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&E.style("font-family",e.fontFamily),void 0!==c&&E.style("font-size",c),void 0!==e.fontWeight&&E.style("font-weight",e.fontWeight),void 0!==e.fill&&E.attr("fill",e.fill),void 0!==e.class&&E.attr("class",e.class),void 0!==e.dy?E.attr("dy",e.dy):0!==f&&E.attr("dy",f);const y=T||p.Z;if(e.tspan){const x=E.append("tspan");x.attr("x",e.x),void 0!==e.fill&&x.attr("fill",e.fill),x.text(y)}else E.text(y);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(a+=(E._groups||E)[0][0].getBBox().height,s=a),o.push(E)}return o},se=function(t,e){const a=t.append("polygon");return a.attr("points",function s(r,i,c,o,f){return r+","+i+" "+(r+c)+","+i+" "+(r+c)+","+(i+o-f)+" "+(r+c-1.2*f)+","+(i+o)+" "+r+","+(i+o)}(e.x,e.y,e.width,e.height,7)),a.attr("class","labelBox"),e.y=e.y+e.height/2,yt(t,e),a};let it=-1;const re=(t,e,s,a)=>{t.select&&s.forEach(r=>{const i=e[r],c=t.select("#actor"+i.actorCnt);!a.mirrorActors&&i.stopy?c.attr("y2",i.stopy+i.height/2):a.mirrorActors&&c.attr("y2",i.stopy)})},Fe=function(){var t=(0,W.Z)(function*(e,s,a,r){const i=r?s.stopy:s.starty,c=s.x+s.width/2,o=i+5,f=e.append("g").lower();var h=f;r||(it++,Object.keys(s.links||{}).length&&!a.forceMenus&&h.attr("onclick",function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"}(`actor${it}_popup`)).attr("cursor","pointer"),h.append("line").attr("id","actor"+it).attr("x1",c).attr("y1",o).attr("x2",c).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),h=f.append("g"),s.actorCnt=it,null!=s.links&&h.attr("id","root-"+it));const l=(0,st.g)();var T="actor";null!=s.properties&&s.properties.class?T=s.properties.class:l.fill="#eaeaea",T+=r?` ${ee}`:` ${te}`,l.x=s.x,l.y=i,l.width=s.width,l.height=s.height,l.class=T,l.rx=3,l.ry=3,l.name=s.name;const E=Mt(h,l);if(s.rectData=l,null!=s.properties&&s.properties.icon){const x=s.properties.icon.trim();"@"===x.charAt(0)?(0,st.b)(h,l.x+l.width-20,l.y+10,x.substr(1)):(0,st.c)(h,l.x+l.width-20,l.y+10,x)}yield Rt(a,(0,p.G)(s.description))(s.description,h,l.x,l.y,l.width,l.height,{class:"actor"},a);let y=s.height;if(E.node){const x=E.node().getBBox();s.height=x.height,y=x.height}return y});return function(s,a,r,i){return t.apply(this,arguments)}}(),We=function(){var t=(0,W.Z)(function*(e,s,a,r){const i=r?s.stopy:s.starty,c=s.x+s.width/2,o=i+80;e.lower(),r||(it++,e.append("line").attr("id","actor"+it).attr("x1",c).attr("y1",o).attr("x2",c).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),s.actorCnt=it);const f=e.append("g");let h="actor-man";h+=r?` ${ee}`:` ${te}`,f.attr("class",h),f.attr("name",s.name);const l=(0,st.g)();l.x=s.x,l.y=i,l.fill="#eaeaea",l.width=s.width,l.height=s.height,l.class="actor",l.rx=3,l.ry=3,f.append("line").attr("id","actor-man-torso"+it).attr("x1",c).attr("y1",i+25).attr("x2",c).attr("y2",i+45),f.append("line").attr("id","actor-man-arms"+it).attr("x1",c-pt/2).attr("y1",i+33).attr("x2",c+pt/2).attr("y2",i+33),f.append("line").attr("x1",c-pt/2).attr("y1",i+60).attr("x2",c).attr("y2",i+45),f.append("line").attr("x1",c).attr("y1",i+45).attr("x2",c+pt/2-2).attr("y2",i+60);const T=f.append("circle");T.attr("cx",s.x+s.width/2),T.attr("cy",i+10),T.attr("r",15),T.attr("width",s.width),T.attr("height",s.height);const E=f.node().getBBox();return s.height=E.height,yield Rt(a,(0,p.G)(s.description))(s.description,f,l.x,l.y+35,l.width,l.height,{class:"actor"},a),s.height});return function(s,a,r,i){return t.apply(this,arguments)}}(),qe=function(){var t=(0,W.Z)(function*(e,s,a,r){switch(s.type){case"actor":return yield We(e,s,a,r);case"participant":return yield Fe(e,s,a,r)}});return function(s,a,r,i){return t.apply(this,arguments)}}(),ze=function(){var t=(0,W.Z)(function*(e,s,a){const i=e.append("g");ie(i,s),s.name&&(yield Rt(a)(s.name,i,s.x,s.y+(s.textMaxHeight||0)/2,s.width,0,{class:"text"},a)),i.lower()});return function(s,a,r){return t.apply(this,arguments)}}(),Ue=function(){var t=(0,W.Z)(function*(e,s,a,r){const{boxMargin:i,boxTextMargin:c,labelBoxHeight:o,labelBoxWidth:f,messageFontFamily:h,messageFontSize:l,messageFontWeight:T}=r,E=e.append("g"),y=function(P,M,D,C){return E.append("line").attr("x1",P).attr("y1",M).attr("x2",D).attr("y2",C).attr("class","loopLine")};y(s.startx,s.starty,s.stopx,s.starty),y(s.stopx,s.starty,s.stopx,s.stopy),y(s.startx,s.stopy,s.stopx,s.stopy),y(s.startx,s.starty,s.startx,s.stopy),void 0!==s.sections&&s.sections.forEach(function(P){y(s.startx,P.y,s.stopx,P.y).style("stroke-dasharray","3, 3")});let x=(0,st.e)();x.text=a,x.x=s.startx,x.y=s.starty,x.fontFamily=h,x.fontSize=l,x.fontWeight=T,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=f||50,x.height=o||20,x.textMargin=c,x.class="labelText",se(E,x),x=ne(),x.text=s.title,x.x=s.startx+f/2+(s.stopx-s.startx)/2,x.y=s.starty+i+c,x.anchor="middle",x.valign="middle",x.textMargin=c,x.class="loopText",x.fontFamily=h,x.fontSize=l,x.fontWeight=T,x.wrap=!0;let v=(0,p.G)(x.text)?yield vt(E,x,s):yt(E,x);if(void 0!==s.sectionTitles)for(const[P,M]of Object.entries(s.sectionTitles))if(M.message){x.text=M.message,x.x=s.startx+(s.stopx-s.startx)/2,x.y=s.sections[P].y+i+c,x.class="loopText",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=h,x.fontSize=l,x.fontWeight=T,x.wrap=s.wrap,(0,p.G)(x.text)?(s.starty=s.sections[P].y,yield vt(E,x,s)):yt(E,x);let D=Math.round(v.map(C=>(C._groups||C)[0][0].getBBox().height).reduce((C,Y)=>C+Y));s.sections[P].height+=D-(i+c)}return s.height=Math.round(s.stopy-s.starty),E});return function(s,a,r,i){return t.apply(this,arguments)}}(),ie=function(t,e){(0,st.a)(t,e)},ne=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Rt=function(){function t(c,o,f,h,l,T,E){i(o.append("text").attr("x",f+l/2).attr("y",h+T/2+5).style("text-anchor","middle").text(c),E)}function e(c,o,f,h,l,T,E,y){const{actorFontSize:x,actorFontFamily:v,actorFontWeight:P}=y,[M,D]=(0,p.D)(x),C=c.split(p.e.lineBreakRegex);for(let Y=0;Ys?o.width:s;const E=h.append("rect");if(E.attr("class","actorPopupMenuPanel"+l),E.attr("x",o.x),E.attr("y",o.height),E.attr("fill",o.fill),E.attr("stroke",o.stroke),E.attr("width",T),E.attr("height",o.height),E.attr("rx",o.rx),E.attr("ry",o.ry),null!=i){var y=20;for(let P in i){var x=h.append("a"),v=(0,Ut.N)(i[P]);x.attr("xlink:href",v),x.attr("target","_blank"),e0(a)(P,x,o.x+10,o.height+y,T,20,{class:"actor"},a),y+=30}}return E.attr("height",y),{height:o.height+y,width:T}},anchorElement:function(t){return t.append("g")},drawActivation:function(t,e,s,a,r){const i=(0,st.g)(),c=e.anchored;i.x=e.startx,i.y=e.starty,i.class="activation"+r%3,i.width=e.stopx-e.startx,i.height=s-e.starty,Mt(c,i)},drawLoop:Ue,drawBackgroundRect:ie,insertArrowHead:function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowFilledHead:function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertSequenceNumber:function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead:function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},insertDatabaseIcon:function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon:function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon:function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},getTextObj:ne,getNoteRect:function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},fixLifeLineHeights:re,sanitizeUrl:Ut.N};let n={};const g={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(t=>t.height||0))+(0===this.loops.length?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.messages.length?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.notes.length?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,oe((0,p.c)())},updateVal:function(t,e,s,a){t[e]=void 0===t[e]?s:a(s,t[e])},updateBounds:function(t,e,s,a){const r=this;let i=0;function c(o){return function(h){i++;const l=r.sequenceItems.length-i+1;r.updateVal(h,"starty",e-l*n.boxMargin,Math.min),r.updateVal(h,"stopy",a+l*n.boxMargin,Math.max),r.updateVal(g.data,"startx",t-l*n.boxMargin,Math.min),r.updateVal(g.data,"stopx",s+l*n.boxMargin,Math.max),"activation"!==o&&(r.updateVal(h,"startx",t-l*n.boxMargin,Math.min),r.updateVal(h,"stopx",s+l*n.boxMargin,Math.max),r.updateVal(g.data,"starty",e-l*n.boxMargin,Math.min),r.updateVal(g.data,"stopy",a+l*n.boxMargin,Math.max))}}this.sequenceItems.forEach(c()),this.activations.forEach(c("activation"))},insert:function(t,e,s,a){const r=p.e.getMin(t,s),i=p.e.getMax(t,s),c=p.e.getMin(e,a),o=p.e.getMax(e,a);this.updateVal(g.data,"startx",r,Math.min),this.updateVal(g.data,"starty",c,Math.min),this.updateVal(g.data,"stopx",i,Math.max),this.updateVal(g.data,"stopy",o,Math.max),this.updateBounds(r,c,i,o)},newActivation:function(t,e,s){const a=s[t.from.actor],r=Pt(t.from.actor).length||0,i=a.x+a.width/2+(r-1)*n.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+n.activationWidth,stopy:void 0,actor:t.from.actor,anchored:B.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(s){return s.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:g.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=p.e.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},s0=function(){var t=(0,W.Z)(function*(e,s){g.bumpVerticalPos(n.boxMargin),s.height=n.boxMargin,s.starty=g.getVerticalPos();const a=(0,st.g)();a.x=s.startx,a.y=s.starty,a.width=s.width||n.width,a.class="note";const r=e.append("g"),i=B.drawRect(r,a),c=(0,st.e)();c.x=s.startx,c.y=s.starty,c.width=a.width,c.dy="1em",c.text=s.message,c.class="noteText",c.fontFamily=n.noteFontFamily,c.fontSize=n.noteFontSize,c.fontWeight=n.noteFontWeight,c.anchor=n.noteAlign,c.textMargin=n.noteMargin,c.valign="center";const o=(0,p.G)(c.text)?yield vt(r,c):yt(r,c),f=Math.round(o.map(h=>(h._groups||h)[0][0].getBBox().height).reduce((h,l)=>h+l));i.attr("height",f+2*n.noteMargin),s.height+=f+2*n.noteMargin,g.bumpVerticalPos(f+2*n.noteMargin),s.stopy=s.starty+f+2*n.noteMargin,s.stopx=s.startx+a.width,g.insert(s.startx,s.starty,s.stopx,s.stopy),g.models.addNote(s)});return function(s,a){return t.apply(this,arguments)}}(),ft=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Tt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Dt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});function r0(t,e){return Ct.apply(this,arguments)}function Ct(){return(Ct=(0,W.Z)(function*(t,e){g.bumpVerticalPos(10);const{startx:s,stopx:a,message:r}=e,i=p.e.splitBreaks(r).length,c=(0,p.G)(r),o=c?yield(0,p.H)(r,(0,p.c)()):p.u.calculateTextDimensions(r,ft(n));if(!c){const T=o.height/i;e.height+=T,g.bumpVerticalPos(T)}let f,h=o.height-10;const l=o.width;if(s===a){f=g.getVerticalPos()+h,n.rightAngles||(h+=n.boxMargin,f=g.getVerticalPos()+h),h+=30;const T=p.e.getMax(l/2,n.width/2);g.insert(s-T,g.getVerticalPos()-10+h,a+T,g.getVerticalPos()+30+h)}else h+=n.boxMargin,f=g.getVerticalPos()+h,g.insert(s,f-10,a,f);return g.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,g.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),f})).apply(this,arguments)}const i0=function(){var t=(0,W.Z)(function*(e,s,a,r){const{startx:i,stopx:c,starty:o,message:f,type:h,sequenceIndex:l,sequenceVisible:T}=s,E=p.u.calculateTextDimensions(f,ft(n)),y=(0,st.e)();y.x=i,y.y=o+10,y.width=c-i,y.class="messageText",y.dy="1em",y.text=f,y.fontFamily=n.messageFontFamily,y.fontSize=n.messageFontSize,y.fontWeight=n.messageFontWeight,y.anchor=n.messageAlign,y.valign="center",y.textMargin=n.wrapPadding,y.tspan=!1,(0,p.G)(y.text)?yield vt(e,y,{startx:i,stopx:c,starty:a}):yt(e,y);const x=E.width;let v;i===c?v=n.rightAngles?e.append("path").attr("d",`M ${i},${a} H ${i+p.e.getMax(n.width/2,x/2)} V ${a+25} H ${i}`):e.append("path").attr("d","M "+i+","+a+" C "+(i+60)+","+(a-10)+" "+(i+60)+","+(a+30)+" "+i+","+(a+20)):(v=e.append("line"),v.attr("x1",i),v.attr("y1",a),v.attr("x2",c),v.attr("y2",a)),h===r.db.LINETYPE.DOTTED||h===r.db.LINETYPE.DOTTED_CROSS||h===r.db.LINETYPE.DOTTED_POINT||h===r.db.LINETYPE.DOTTED_OPEN?(v.style("stroke-dasharray","3, 3"),v.attr("class","messageLine1")):v.attr("class","messageLine0");let P="";n.arrowMarkerAbsolute&&(P=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,P=P.replace(/\(/g,"\\("),P=P.replace(/\)/g,"\\)")),v.attr("stroke-width",2),v.attr("stroke","none"),v.style("fill","none"),(h===r.db.LINETYPE.SOLID||h===r.db.LINETYPE.DOTTED)&&v.attr("marker-end","url("+P+"#arrowhead)"),(h===r.db.LINETYPE.SOLID_POINT||h===r.db.LINETYPE.DOTTED_POINT)&&v.attr("marker-end","url("+P+"#filled-head)"),(h===r.db.LINETYPE.SOLID_CROSS||h===r.db.LINETYPE.DOTTED_CROSS)&&v.attr("marker-end","url("+P+"#crosshead)"),(T||n.showSequenceNumbers)&&(v.attr("marker-start","url("+P+"#sequencenumber)"),e.append("text").attr("x",i).attr("y",a+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))});return function(s,a,r,i){return t.apply(this,arguments)}}(),n0=function(){var t=(0,W.Z)(function*(e,s,a,r,i,c,o){let l,f=0,h=0,T=0;for(const E of r){const y=s[E],x=y.box;l&&l!=x&&(o||g.models.addBox(l),h+=n.boxMargin+l.margin),x&&x!=l&&(o||(x.x=f+h,x.y=i),h+=x.margin),y.width=y.width||n.width,y.height=p.e.getMax(y.height||n.height,n.height),y.margin=y.margin||n.actorMargin,T=p.e.getMax(T,y.height),a[y.name]&&(h+=y.width/2),y.x=f+h,y.starty=g.getVerticalPos(),g.insert(y.x,i,y.x+y.width,y.height),f+=y.width+h,y.box&&(y.box.width=f+x.margin-y.box.x),h=y.margin,l=y.box,g.models.addActor(y)}l&&!o&&g.models.addBox(l),g.bumpVerticalPos(T)});return function(s,a,r,i,c,o,f){return t.apply(this,arguments)}}(),Ot=function(){var t=(0,W.Z)(function*(e,s,a,r){if(r){let i=0;g.bumpVerticalPos(2*n.boxMargin);for(const c of a){const o=s[c];o.stopy||(o.stopy=g.getVerticalPos());const f=yield B.drawActor(e,o,n,!0);i=p.e.getMax(i,f)}g.bumpVerticalPos(i+n.boxMargin)}else for(const i of a){const c=s[i];yield B.drawActor(e,c,n,!1)}});return function(s,a,r,i){return t.apply(this,arguments)}}(),ae=function(t,e,s,a){let r=0,i=0;for(const c of s){const o=e[c],f=l0(o),h=B.drawPopup(t,o,f,n,n.forceMenus,a);h.height>r&&(r=h.height),h.width+o.x>i&&(i=h.width+o.x)}return{maxHeight:r,maxWidth:i}},oe=function(t){(0,p.f)(n,t),t.fontFamily&&(n.actorFontFamily=n.noteFontFamily=n.messageFontFamily=t.fontFamily),t.fontSize&&(n.actorFontSize=n.noteFontSize=n.messageFontSize=t.fontSize),t.fontWeight&&(n.actorFontWeight=n.noteFontWeight=n.messageFontWeight=t.fontWeight)},Pt=function(t){return g.activations.filter(function(e){return e.actor===t})},ce=function(t,e){const s=e[t],a=Pt(t);return[a.reduce(function(c,o){return p.e.getMin(c,o.startx)},s.x+s.width/2-1),a.reduce(function(c,o){return p.e.getMax(c,o.stopx)},s.x+s.width/2+1)]};function nt(t,e,s,a,r){g.bumpVerticalPos(s);let i=a;if(e.id&&e.message&&t[e.id]){const c=t[e.id].width,o=ft(n);e.message=p.u.wrapLabel(`[${e.message}]`,c-2*n.wrapPadding,o),e.width=c,e.wrap=!0;const f=p.u.calculateTextDimensions(e.message,o),h=p.e.getMax(f.height,n.labelBoxHeight);i=a+h,p.l.debug(`${h} - ${e.message}`)}r(e),g.bumpVerticalPos(i)}function a0(t,e,s,a,r,i,c){function o(h,l){h.x{_.add(k.from),_.add(k.to)}),v=v.filter(k=>_.has(k))}yield n0(l,T,E,v,0,P,!1);const O=yield p0(P,T,Y,r);function z(_,k){const rt=g.endActivation(_);rt.starty+18>k&&(rt.starty=k-6,k+=12),B.drawActivation(l,rt,k,n,Pt(_.from.actor).length),g.insert(rt.startx,k-10,rt.stopx,k)}B.insertArrowHead(l),B.insertArrowCrossHead(l),B.insertArrowFilledHead(l),B.insertSequenceNumber(l);let H=1,Q=1;const K=[],U=[];let G=0;for(const _ of P){let k,rt,tt;switch(_.type){case r.db.LINETYPE.NOTE:g.resetVerticalPos(),rt=_.noteModel,yield s0(l,rt);break;case r.db.LINETYPE.ACTIVE_START:g.newActivation(_,l,T);break;case r.db.LINETYPE.ACTIVE_END:z(_,g.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.LOOP_END:k=g.endLoop(),yield B.drawLoop(l,k,"loop",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.RECT_START:nt(O,_,n.boxMargin,n.boxMargin,S=>g.newLoop(void 0,S.message));break;case r.db.LINETYPE.RECT_END:k=g.endLoop(),U.push(k),g.models.addLoop(k),g.bumpVerticalPos(k.stopy-g.getVerticalPos());break;case r.db.LINETYPE.OPT_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.OPT_END:k=g.endLoop(),yield B.drawLoop(l,k,"opt",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.ALT_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.ALT_ELSE:nt(O,_,n.boxMargin+n.boxTextMargin,n.boxMargin,S=>g.addSectionToLoop(S));break;case r.db.LINETYPE.ALT_END:k=g.endLoop(),yield B.drawLoop(l,k,"alt",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S)),g.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:nt(O,_,n.boxMargin+n.boxTextMargin,n.boxMargin,S=>g.addSectionToLoop(S));break;case r.db.LINETYPE.PAR_END:k=g.endLoop(),yield B.drawLoop(l,k,"par",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.AUTONUMBER:H=_.message.start||H,Q=_.message.step||Q,_.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.CRITICAL_OPTION:nt(O,_,n.boxMargin+n.boxTextMargin,n.boxMargin,S=>g.addSectionToLoop(S));break;case r.db.LINETYPE.CRITICAL_END:k=g.endLoop(),yield B.drawLoop(l,k,"critical",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;case r.db.LINETYPE.BREAK_START:nt(O,_,n.boxMargin,n.boxMargin+n.boxTextMargin,S=>g.newLoop(S));break;case r.db.LINETYPE.BREAK_END:k=g.endLoop(),yield B.drawLoop(l,k,"break",n),g.bumpVerticalPos(k.stopy-g.getVerticalPos()),g.models.addLoop(k);break;default:try{tt=_.msgModel,tt.starty=g.getVerticalPos(),tt.sequenceIndex=H,tt.sequenceVisible=r.db.showSequenceNumbers();const S=yield r0(l,tt);a0(_,tt,S,G,T,E,y),K.push({messageModel:tt,lineStartY:S}),g.models.addMessage(tt)}catch(S){p.l.error("error while drawing message",S)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(_.type)&&(H+=Q),G++}p.l.debug("createdActors",E),p.l.debug("destroyedActors",y),yield Ot(l,T,v,!1);for(const _ of K)yield i0(l,_.messageModel,_.lineStartY,r);n.mirrorActors&&(yield Ot(l,T,v,!0)),U.forEach(_=>B.drawBackgroundRect(l,_)),re(l,T,v,n);for(const _ of g.models.boxes)_.height=g.getVerticalPos()-_.y,g.insert(_.x,_.y,_.x+_.width,_.height),_.startx=_.x,_.starty=_.y,_.stopx=_.startx+_.width,_.stopy=_.starty+_.height,_.stroke="rgb(0,0,0, 0.5)",yield B.drawBox(l,_,n);D&&g.bumpVerticalPos(n.boxMargin);const Z=ae(l,T,v,h),{bounds:q}=g.getBounds();let j=q.stopy-q.starty;j{const c=ft(n);let o=i.actorKeys.reduce((l,T)=>l+(t[T].width+(t[T].margin||0)),0);o-=2*n.boxTextMargin,i.wrap&&(i.name=p.u.wrapLabel(i.name,o-2*n.wrapPadding,c));const f=p.u.calculateTextDimensions(i.name,c);r=p.e.getMax(f.height,r);const h=p.e.getMax(o,f.width+2*n.wrapPadding);i.margin=n.boxTextMargin,oi.textMaxHeight=r),p.e.getMax(a,n.height)})).apply(this,arguments)}const d0=function(){var t=(0,W.Z)(function*(e,s,a){const r=s[e.from].x,i=s[e.to].x,c=e.wrap&&e.message;let o=(0,p.G)(e.message)?yield(0,p.H)(e.message,(0,p.c)()):p.u.calculateTextDimensions(c?p.u.wrapLabel(e.message,n.width,Tt(n)):e.message,Tt(n));const f={width:c?n.width:p.e.getMax(n.width,o.width+2*n.noteMargin),height:0,startx:s[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===a.db.PLACEMENT.RIGHTOF?(f.width=c?p.e.getMax(n.width,o.width):p.e.getMax(s[e.from].width/2+s[e.to].width/2,o.width+2*n.noteMargin),f.startx=r+(s[e.from].width+n.actorMargin)/2):e.placement===a.db.PLACEMENT.LEFTOF?(f.width=p.e.getMax(c?n.width:s[e.from].width/2+s[e.to].width/2,o.width+2*n.noteMargin),f.startx=r-f.width+(s[e.from].width-n.actorMargin)/2):e.to===e.from?(o=p.u.calculateTextDimensions(c?p.u.wrapLabel(e.message,p.e.getMax(n.width,s[e.from].width),Tt(n)):e.message,Tt(n)),f.width=c?p.e.getMax(n.width,s[e.from].width):p.e.getMax(s[e.from].width,n.width,o.width+2*n.noteMargin),f.startx=r+(s[e.from].width-f.width)/2):(f.width=Math.abs(r+s[e.from].width/2-(i+s[e.to].width/2))+n.actorMargin,f.startx=r2,T=v=>o?-v:v;t.from===t.to?h=f:(t.activate&&!l&&(h+=T(n.activationWidth/2-1)),[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(h+=T(3)));const E=[a,r,i,c],y=Math.abs(f-h);t.wrap&&t.message&&(t.message=p.u.wrapLabel(t.message,p.e.getMax(y+2*n.wrapPadding,n.width),ft(n)));const x=p.u.calculateTextDimensions(t.message,ft(n));return{width:p.e.getMax(t.wrap?0:x.width+2*n.wrapPadding,y+2*n.wrapPadding,n.width),height:0,startx:f,stopx:h,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,E),toBounds:Math.max.apply(null,E)}},p0=function(){var t=(0,W.Z)(function*(e,s,a,r){const i={},c=[];let o,f,h;for(const l of e){switch(l.id=p.u.random({length:10}),l.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:c.push({id:l.id,msg:l.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:l.message&&(o=c.pop(),i[o.id]=o,i[l.id]=o,c.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=c.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{const E=s[l.from?l.from.actor:l.to.actor],y=Pt(l.from?l.from.actor:l.to.actor).length,x=E.x+E.width/2+(y-1)*n.activationWidth/2;g.activations.push({startx:x,stopx:x+n.activationWidth,actor:l.from.actor,enabled:!0})}break;case r.db.LINETYPE.ACTIVE_END:{const E=g.activations.map(y=>y.actor).lastIndexOf(l.from.actor);delete g.activations.splice(E,1)[0]}}void 0!==l.placement?(f=yield d0(l,s,r),l.noteModel=f,c.forEach(E=>{o=E,o.from=p.e.getMin(o.from,f.startx),o.to=p.e.getMax(o.to,f.startx+f.width),o.width=p.e.getMax(o.width,Math.abs(o.from-o.to))-n.labelBoxWidth})):(h=u0(l,s,r),l.msgModel=h,h.startx&&h.stopx&&c.length>0&&c.forEach(E=>{if(o=E,h.startx===h.stopx){const y=s[l.from],x=s[l.to];o.from=p.e.getMin(y.x-h.width/2,y.x-y.width/2,o.from),o.to=p.e.getMax(x.x+h.width/2,x.x+y.width/2,o.to),o.width=p.e.getMax(o.width,Math.abs(o.to-o.from))-n.labelBoxWidth}else o.from=p.e.getMin(h.startx,o.from),o.to=p.e.getMax(h.stopx,o.to),o.width=p.e.getMax(o.width,h.width)-n.labelBoxWidth}))}return g.activations=[],p.l.debug("Loop type widths:",i),i});return function(s,a,r,i){return t.apply(this,arguments)}}(),f0={parser:ue,db:$t,renderer:{bounds:g,drawActors:Ot,drawActorsPopup:ae,setConf:oe,draw:o0},styles:t=>`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`,init:({wrap:t})=>{$t.setWrap(t)}}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/917.1b3eb8f93ae99c79.js b/pkg/apiserver-impl/ui/952.5a44fde7550d4404.js similarity index 99% rename from pkg/apiserver-impl/ui/917.1b3eb8f93ae99c79.js rename to pkg/apiserver-impl/ui/952.5a44fde7550d4404.js index 5a782f3f47..d4dad180b6 100644 --- a/pkg/apiserver-impl/ui/917.1b3eb8f93ae99c79.js +++ b/pkg/apiserver-impl/ui/952.5a44fde7550d4404.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[917],{7917:(Jt,at,j)=>{j.r(at),j.d(at,{diagram:()=>Zt});var M=j(9037),V=j(8586);function ct(t,n){let i;if(void 0===n)for(const l of t)null!=l&&(i>l||void 0===i&&l>=l)&&(i=l);else{let l=-1;for(let a of t)null!=(a=n(a,++l,t))&&(i>a||void 0===i&&a>=a)&&(i=a)}return i}function _t(t){return t.target.depth}function ut(t,n){return t.sourceLinks.length?t.depth:n-1}function q(t,n){let i=0;if(void 0===n)for(let l of t)(l=+l)&&(i+=l);else{let l=-1;for(let a of t)(a=+n(a,++l,t))&&(i+=a)}return i}function ht(t,n){let i;if(void 0===n)for(const l of t)null!=l&&(i=l)&&(i=l);else{let l=-1;for(let a of t)null!=(a=n(a,++l,t))&&(i=a)&&(i=a)}return i}function H(t){return function(){return t}}function ft(t,n){return X(t.source,n.source)||t.index-n.index}function yt(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function tt(t){return t.value}function St(t){return t.index}function Lt(t){return t.nodes}function Et(t){return t.links}function dt(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function gt({nodes:t}){for(const n of t){let i=n.y0,l=i;for(const a of n.sourceLinks)a.y0=i+a.width/2,i+=a.width;for(const a of n.targetLinks)a.y1=l+a.width/2,l+=a.width}}var et=Math.PI,nt=2*et,D=1e-6,Tt=nt-D;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new it}it.prototype=pt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,i,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,n,i,l,a,m){this._+="C"+ +t+","+ +n+","+ +i+","+ +l+","+(this._x1=+a)+","+(this._y1=+m)},arcTo:function(t,n,i,l,a){var m=this._x1,y=this._y1,p=(i=+i)-(t=+t),s=(l=+l)-(n=+n),o=m-t,u=y-n,k=o*o+u*u;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(k>D)if(Math.abs(u*p-s*o)>D&&a){var b=i-m,d=l-y,_=p*p+s*s,E=b*b+d*d,L=Math.sqrt(_),A=Math.sqrt(k),C=a*Math.tan((et-Math.acos((_+k-E)/(2*L*A)))/2),P=C/A,R=C/L;Math.abs(P-1)>D&&(this._+="L"+(t+P*o)+","+(n+P*u)),this._+="A"+a+","+a+",0,0,"+ +(u*b>o*d)+","+(this._x1=t+R*p)+","+(this._y1=n+R*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,i,l,a,m){t=+t,n=+n,m=!!m;var y=(i=+i)*Math.cos(l),p=i*Math.sin(l),s=t+y,o=n+p,u=1^m,k=m?l-a:a-l;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+s+","+o:(Math.abs(this._x1-s)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+s+","+o),i&&(k<0&&(k=k%nt+nt),k>Tt?this._+="A"+i+","+i+",0,1,"+u+","+(t-y)+","+(n-p)+"A"+i+","+i+",0,1,"+u+","+(this._x1=s)+","+(this._y1=o):k>D&&(this._+="A"+i+","+i+",0,"+ +(k>=et)+","+u+","+(this._x1=t+i*Math.cos(a))+","+(this._y1=n+i*Math.sin(a))))},rect:function(t,n,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};const Mt=pt;var Nt=Array.prototype.slice;function mt(t){return function(){return t}}function Ct(t){return t[0]}function Pt(t){return t[1]}function It(t){return t.source}function Ot(t){return t.target}function zt(t,n,i,l,a){t.moveTo(n,i),t.bezierCurveTo(n=(n+l)/2,i,n,a,l,a)}function Rt(t){return[t.source.x1,t.y0]}function Bt(t){return[t.target.x0,t.y1]}function Vt(){return function Dt(){return function st(t){var n=It,i=Ot,l=Ct,a=Pt,m=null;function y(){var p,s=Nt.call(arguments),o=n.apply(this,s),u=i.apply(this,s);if(m||(m=p=Mt()),t(m,+l.apply(this,(s[0]=o,s)),+a.apply(this,s),+l.apply(this,(s[0]=u,s)),+a.apply(this,s)),p)return m=null,p+""||null}return y.source=function(p){return arguments.length?(n=p,y):n},y.target=function(p){return arguments.length?(i=p,y):i},y.x=function(p){return arguments.length?(l="function"==typeof p?p:mt(+p),y):l},y.y=function(p){return arguments.length?(a="function"==typeof p?p:mt(+p),y):a},y.context=function(p){return arguments.length?(m=p??null,y):m},y}(zt)}().source(Rt).target(Bt)}j(1764),j(6780),j(2735);var rt=function(){var t=function(p,s,o,u){for(o=o||{},u=p.length;u--;o[p[u]]=s);return o},n=[1,9],i=[1,10],l=[1,5,10,12],a={trace:function(){},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:function(s,o,u,k,b,d,_){var E=d.length-1;switch(b){case 7:const L=k.findOrCreateNode(d[E-4].trim().replaceAll('""','"')),A=k.findOrCreateNode(d[E-2].trim().replaceAll('""','"')),C=parseFloat(d[E].trim());k.addLink(L,A,C);break;case 8:case 9:case 11:this.$=d[E];break;case 10:this.$=d[E-1]}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:i},{15:18,16:7,17:8,18:n,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(s,o){if(!o.recoverable){var u=new Error(s);throw u.hash=o,u}this.trace(s)},parse:function(s){var u=[0],k=[],b=[null],d=[],_=this.table,E="",L=0,A=0,R=d.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(N.yy[$]=this.yy[$]);S.setInput(s,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var I=S.yylloc;d.push(I);var v,O=S.options&&S.options.ranges;this.parseError="function"==typeof N.yy.parseError?N.yy.parseError:Object.getPrototypeOf(this).parseError;for(var w,z,T,Y,f,c,r,e={};;){if(this.defaultActions[z=u[u.length-1]]?T=this.defaultActions[z]:((null===w||typeof w>"u")&&(v=void 0,"number"!=typeof(v=k.pop()||S.lex()||1)&&(v instanceof Array&&(v=(k=v).pop()),v=this.symbols_[v]||v),w=v),T=_[z]&&_[z][w]),typeof T>"u"||!T.length||!T[0]){var x;for(f in r=[],_[z])this.terminals_[f]&&f>2&&r.push("'"+this.terminals_[f]+"'");x=S.showPosition?"Parse error on line "+(L+1)+":\n"+S.showPosition()+"\nExpecting "+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(L+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(x,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:I,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(T[0]){case 1:u.push(w),b.push(S.yytext),d.push(S.yylloc),u.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,I=S.yylloc;break;case 2:if(e.$=b[b.length-(c=this.productions_[T[1]][1])],e._$={first_line:d[d.length-(c||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(c||1)].first_column,last_column:d[d.length-1].last_column},O&&(e._$.range=[d[d.length-(c||1)].range[0],d[d.length-1].range[1]]),typeof(Y=this.performAction.apply(e,[E,A,L,N.yy,T[1],b,d].concat(R)))<"u")return Y;c&&(u=u.slice(0,-1*c*2),b=b.slice(0,-1*c),d=d.slice(0,-1*c)),u.push(this.productions_[T[1]][0]),b.push(e.$),d.push(e._$),u.push(_[u[u.length-2]][u[u.length-1]]);break;case 3:return!0}}return!0}};function y(){this.yy={}}return a.lexer={EOF:1,parseError:function(o,u){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,u)},setInput:function(s,o){return this.yy=o||this.yy||{},this._input=s,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},input:function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.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),s},unput:function(s){var o=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var k=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),u.length-1&&(this.yylineno-=u.length-1);var b=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:u?(u.length===k.length?this.yylloc.first_column:0)+k[k.length-u.length].length-u[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+"\n"+o+"^"},test_match:function(s,o){var u,k,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),(k=s[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],u=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var d in b)this[d]=b[d];return!1}return!1},next:function(){if(this.done)return this.EOF;var s,o,u,k;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),d=0;do[0].length)){if(o=u,k=d,this.options.backtrack_lexer){if(!1!==(s=this.test_match(u,b[d])))return s;if(this._backtrack){o=!1;continue}return!1}if(!this.options.flex)break}return o?!1!==(s=this.test_match(o,b[k]))&&s:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return(o=this.conditionStack.length-1-Math.abs(o||0))>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,u,k,b){switch(k){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}},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}}},y.prototype=a,a.Parser=y,new y}();rt.parser=rt;const Q=rt;let Z=[],J=[],U={};class Yt{constructor(n,i,l=0){this.source=n,this.target=i,this.value=l}}class Wt{constructor(n){this.ID=n}}const Gt={nodesMap:U,getConfig:()=>(0,M.c)().sankey,getNodes:()=>J,getLinks:()=>Z,getGraph:()=>({nodes:J.map(t=>({id:t.ID})),links:Z.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),addLink:(t,n,i)=>{Z.push(new Yt(t,n,i))},findOrCreateNode:t=>(t=M.e.sanitizeText(t,(0,M.c)()),U[t]||(U[t]=new Wt(t),J.push(U[t])),U[t]),getAccTitle:M.g,setAccTitle:M.s,getAccDescription:M.a,setAccDescription:M.b,getDiagramTitle:M.t,setDiagramTitle:M.q,clear:()=>{Z=[],J=[],U={},(0,M.v)()}},kt=class lt{static next(n){return new lt(n+ ++lt.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};kt.count=0;let xt=kt;const Kt={left:function vt(t){return t.depth},right:function bt(t,n){return n-1-t.height},center:function wt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ct(t.sourceLinks,_t)-1:0},justify:ut},Ht={draw:function(t,n,i,l){const{securityLevel:a,sankey:m}=(0,M.c)(),y=M.K.sankey;let p;"sandbox"===a&&(p=(0,V.Ys)("#i"+n));const s=(0,V.Ys)("sandbox"===a?p.nodes()[0].contentDocument.body:"body"),o="sandbox"===a?s.select(`[id="${n}"]`):(0,V.Ys)(`[id="${n}"]`),u=m?.width??y.width,k=m?.height??y.width,b=m?.useMaxWidth??y.useMaxWidth,d=m?.nodeAlignment??y.nodeAlignment,_=m?.prefix??y.prefix,E=m?.suffix??y.suffix,L=m?.showValues??y.showValues,A=l.db.getGraph(),C=Kt[d];(function At(){let y,o,u,t=0,n=0,i=1,l=1,a=24,m=8,p=St,s=ut,k=Lt,b=Et,d=6;function _(){const e={nodes:k.apply(null,arguments),links:b.apply(null,arguments)};return function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const c=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:x,target:v}=r;"object"!=typeof x&&(x=r.source=dt(c,x)),"object"!=typeof v&&(v=r.target=dt(c,v)),x.sourceLinks.push(r),v.targetLinks.push(r)}if(null!=u)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(u),r.sort(u)}(e),function L({nodes:e}){for(const f of e)f.value=void 0===f.fixedValue?Math.max(q(f.sourceLinks,tt),q(f.targetLinks,tt)):f.fixedValue}(e),function A({nodes:e}){const f=e.length;let c=new Set(e),h=new Set,r=0;for(;c.size;){for(const x of c){x.depth=r;for(const{target:v}of x.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");c=h,h=new Set}}(e),function C({nodes:e}){const f=e.length;let c=new Set(e),h=new Set,r=0;for(;c.size;){for(const x of c){x.height=r;for(const{source:v}of x.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");c=h,h=new Set}}(e),function S(e){const f=function P({nodes:e}){const f=ht(e,r=>r.depth)+1,c=(i-t-a)/(f-1),h=new Array(f);for(const r of e){const x=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=x,r.x0=t+x*c,r.x1=r.x0+a,h[x]?h[x].push(r):h[x]=[r]}if(o)for(const r of h)r.sort(o);return h}(e);y=Math.min(m,(l-n)/(ht(f,c=>c.length)-1)),function R(e){const f=ct(e,c=>(l-n-(c.length-1)*y)/q(c,tt));for(const c of e){let h=n;for(const r of c){r.y0=h,r.y1=h+r.value*f,h=r.y1+y;for(const x of r.sourceLinks)x.width=x.value*f}h=(l-h+y)/(c.length+1);for(let r=0;r0))continue;let W=(F/B-v.y0)*f;v.y0+=W,v.y1+=W,w(v)}void 0===o&&x.sort(X),I(x,c)}}function $(e,f,c){for(let r=e.length-2;r>=0;--r){const x=e[r];for(const v of x){let F=0,B=0;for(const{target:G,value:ot}of v.sourceLinks){let K=ot*(G.layer-v.layer);F+=Y(v,G)*K,B+=K}if(!(B>0))continue;let W=(F/B-v.y0)*f;v.y0+=W,v.y1+=W,w(v)}void 0===o&&x.sort(X),I(x,c)}}function I(e,f){const c=e.length>>1,h=e[c];g(e,h.y0-y,c-1,f),O(e,h.y1+y,c+1,f),g(e,l,e.length-1,f),O(e,n,0,f)}function O(e,f,c,h){for(;c1e-6&&(r.y0+=x,r.y1+=x),f=r.y1+y}}function g(e,f,c,h){for(;c>=0;--c){const r=e[c],x=(r.y1-f)*h;x>1e-6&&(r.y0-=x,r.y1-=x),f=r.y0-y}}function w({sourceLinks:e,targetLinks:f}){if(void 0===u){for(const{source:{sourceLinks:c}}of f)c.sort(yt);for(const{target:{targetLinks:c}}of e)c.sort(ft)}}function z(e){if(void 0===u)for(const{sourceLinks:f,targetLinks:c}of e)f.sort(yt),c.sort(ft)}function T(e,f){let c=e.y0-(e.sourceLinks.length-1)*y/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;c+=r+y}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;c-=r}return c}function Y(e,f){let c=f.y0-(f.targetLinks.length-1)*y/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;c+=r+y}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;c-=r}return c}return _.update=function(e){return gt(e),e},_.nodeId=function(e){return arguments.length?(p="function"==typeof e?e:H(e),_):p},_.nodeAlign=function(e){return arguments.length?(s="function"==typeof e?e:H(e),_):s},_.nodeSort=function(e){return arguments.length?(o=e,_):o},_.nodeWidth=function(e){return arguments.length?(a=+e,_):a},_.nodePadding=function(e){return arguments.length?(m=y=+e,_):m},_.nodes=function(e){return arguments.length?(k="function"==typeof e?e:H(e),_):k},_.links=function(e){return arguments.length?(b="function"==typeof e?e:H(e),_):b},_.linkSort=function(e){return arguments.length?(u=e,_):u},_.size=function(e){return arguments.length?(t=n=0,i=+e[0],l=+e[1],_):[i-t,l-n]},_.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],l=+e[1][1],_):[[t,n],[i,l]]},_.iterations=function(e){return arguments.length?(d=+e,_):d},_})().nodeId(g=>g.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(C).extent([[0,0],[u,k]])(A);const S=(0,V.PKp)(V.K2I);o.append("g").attr("class","nodes").selectAll(".node").data(A.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=>S(g.id)),o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",g=>g.x0(g.y1+g.y0)/2).attr("dy",(L?"0":"0.35")+"em").attr("text-anchor",g=>g.x0L?`${g}\n${_}${Math.round(100*w)/100}${E}`:g);const $=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),I=m?.linkColor||"gradient";if("gradient"===I){const g=$.append("linearGradient").attr("id",w=>(w.uid=xt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);g.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),g.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let O;switch(I){case"gradient":O=g=>g.uid;break;case"source":O=g=>S(g.source.id);break;case"target":O=g=>S(g.target.id);break;default:O=I}$.append("path").attr("d",Vt()).attr("stroke",O).attr("stroke-width",g=>Math.max(1,g.width)),(0,M.o)(void 0,o,0,b)}},Qt=Q.parse.bind(Q);Q.parse=t=>Qt((t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim())(t));const Zt={parser:Q,db:Gt,renderer:Ht}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[952],{2952:(Jt,at,j)=>{j.r(at),j.d(at,{diagram:()=>Zt});var M=j(8080),V=j(8586);function ct(t,n){let i;if(void 0===n)for(const l of t)null!=l&&(i>l||void 0===i&&l>=l)&&(i=l);else{let l=-1;for(let a of t)null!=(a=n(a,++l,t))&&(i>a||void 0===i&&a>=a)&&(i=a)}return i}function _t(t){return t.target.depth}function ut(t,n){return t.sourceLinks.length?t.depth:n-1}function q(t,n){let i=0;if(void 0===n)for(let l of t)(l=+l)&&(i+=l);else{let l=-1;for(let a of t)(a=+n(a,++l,t))&&(i+=a)}return i}function ht(t,n){let i;if(void 0===n)for(const l of t)null!=l&&(i=l)&&(i=l);else{let l=-1;for(let a of t)null!=(a=n(a,++l,t))&&(i=a)&&(i=a)}return i}function H(t){return function(){return t}}function ft(t,n){return X(t.source,n.source)||t.index-n.index}function yt(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function tt(t){return t.value}function St(t){return t.index}function Lt(t){return t.nodes}function Et(t){return t.links}function dt(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function gt({nodes:t}){for(const n of t){let i=n.y0,l=i;for(const a of n.sourceLinks)a.y0=i+a.width/2,i+=a.width;for(const a of n.targetLinks)a.y1=l+a.width/2,l+=a.width}}var et=Math.PI,nt=2*et,D=1e-6,Tt=nt-D;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new it}it.prototype=pt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,i,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,n,i,l,a,m){this._+="C"+ +t+","+ +n+","+ +i+","+ +l+","+(this._x1=+a)+","+(this._y1=+m)},arcTo:function(t,n,i,l,a){var m=this._x1,y=this._y1,p=(i=+i)-(t=+t),s=(l=+l)-(n=+n),o=m-t,u=y-n,k=o*o+u*u;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(k>D)if(Math.abs(u*p-s*o)>D&&a){var b=i-m,d=l-y,_=p*p+s*s,E=b*b+d*d,L=Math.sqrt(_),A=Math.sqrt(k),C=a*Math.tan((et-Math.acos((_+k-E)/(2*L*A)))/2),P=C/A,R=C/L;Math.abs(P-1)>D&&(this._+="L"+(t+P*o)+","+(n+P*u)),this._+="A"+a+","+a+",0,0,"+ +(u*b>o*d)+","+(this._x1=t+R*p)+","+(this._y1=n+R*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,i,l,a,m){t=+t,n=+n,m=!!m;var y=(i=+i)*Math.cos(l),p=i*Math.sin(l),s=t+y,o=n+p,u=1^m,k=m?l-a:a-l;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+s+","+o:(Math.abs(this._x1-s)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+s+","+o),i&&(k<0&&(k=k%nt+nt),k>Tt?this._+="A"+i+","+i+",0,1,"+u+","+(t-y)+","+(n-p)+"A"+i+","+i+",0,1,"+u+","+(this._x1=s)+","+(this._y1=o):k>D&&(this._+="A"+i+","+i+",0,"+ +(k>=et)+","+u+","+(this._x1=t+i*Math.cos(a))+","+(this._y1=n+i*Math.sin(a))))},rect:function(t,n,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};const Mt=pt;var Nt=Array.prototype.slice;function mt(t){return function(){return t}}function Ct(t){return t[0]}function Pt(t){return t[1]}function It(t){return t.source}function Ot(t){return t.target}function zt(t,n,i,l,a){t.moveTo(n,i),t.bezierCurveTo(n=(n+l)/2,i,n,a,l,a)}function Rt(t){return[t.source.x1,t.y0]}function Bt(t){return[t.target.x0,t.y1]}function Vt(){return function Dt(){return function st(t){var n=It,i=Ot,l=Ct,a=Pt,m=null;function y(){var p,s=Nt.call(arguments),o=n.apply(this,s),u=i.apply(this,s);if(m||(m=p=Mt()),t(m,+l.apply(this,(s[0]=o,s)),+a.apply(this,s),+l.apply(this,(s[0]=u,s)),+a.apply(this,s)),p)return m=null,p+""||null}return y.source=function(p){return arguments.length?(n=p,y):n},y.target=function(p){return arguments.length?(i=p,y):i},y.x=function(p){return arguments.length?(l="function"==typeof p?p:mt(+p),y):l},y.y=function(p){return arguments.length?(a="function"==typeof p?p:mt(+p),y):a},y.context=function(p){return arguments.length?(m=p??null,y):m},y}(zt)}().source(Rt).target(Bt)}j(1764),j(6780),j(2735);var rt=function(){var t=function(p,s,o,u){for(o=o||{},u=p.length;u--;o[p[u]]=s);return o},n=[1,9],i=[1,10],l=[1,5,10,12],a={trace:function(){},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:function(s,o,u,k,b,d,_){var E=d.length-1;switch(b){case 7:const L=k.findOrCreateNode(d[E-4].trim().replaceAll('""','"')),A=k.findOrCreateNode(d[E-2].trim().replaceAll('""','"')),C=parseFloat(d[E].trim());k.addLink(L,A,C);break;case 8:case 9:case 11:this.$=d[E];break;case 10:this.$=d[E-1]}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:i},{15:18,16:7,17:8,18:n,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(s,o){if(!o.recoverable){var u=new Error(s);throw u.hash=o,u}this.trace(s)},parse:function(s){var u=[0],k=[],b=[null],d=[],_=this.table,E="",L=0,A=0,R=d.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(N.yy[$]=this.yy[$]);S.setInput(s,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var I=S.yylloc;d.push(I);var v,O=S.options&&S.options.ranges;this.parseError="function"==typeof N.yy.parseError?N.yy.parseError:Object.getPrototypeOf(this).parseError;for(var w,z,T,Y,f,c,r,e={};;){if(this.defaultActions[z=u[u.length-1]]?T=this.defaultActions[z]:((null===w||typeof w>"u")&&(v=void 0,"number"!=typeof(v=k.pop()||S.lex()||1)&&(v instanceof Array&&(v=(k=v).pop()),v=this.symbols_[v]||v),w=v),T=_[z]&&_[z][w]),typeof T>"u"||!T.length||!T[0]){var x;for(f in r=[],_[z])this.terminals_[f]&&f>2&&r.push("'"+this.terminals_[f]+"'");x=S.showPosition?"Parse error on line "+(L+1)+":\n"+S.showPosition()+"\nExpecting "+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(L+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(x,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:I,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(T[0]){case 1:u.push(w),b.push(S.yytext),d.push(S.yylloc),u.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,I=S.yylloc;break;case 2:if(e.$=b[b.length-(c=this.productions_[T[1]][1])],e._$={first_line:d[d.length-(c||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(c||1)].first_column,last_column:d[d.length-1].last_column},O&&(e._$.range=[d[d.length-(c||1)].range[0],d[d.length-1].range[1]]),typeof(Y=this.performAction.apply(e,[E,A,L,N.yy,T[1],b,d].concat(R)))<"u")return Y;c&&(u=u.slice(0,-1*c*2),b=b.slice(0,-1*c),d=d.slice(0,-1*c)),u.push(this.productions_[T[1]][0]),b.push(e.$),d.push(e._$),u.push(_[u[u.length-2]][u[u.length-1]]);break;case 3:return!0}}return!0}};function y(){this.yy={}}return a.lexer={EOF:1,parseError:function(o,u){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,u)},setInput:function(s,o){return this.yy=o||this.yy||{},this._input=s,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},input:function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.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),s},unput:function(s){var o=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var k=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),u.length-1&&(this.yylineno-=u.length-1);var b=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:u?(u.length===k.length?this.yylloc.first_column:0)+k[k.length-u.length].length-u[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+"\n"+o+"^"},test_match:function(s,o){var u,k,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),(k=s[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],u=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var d in b)this[d]=b[d];return!1}return!1},next:function(){if(this.done)return this.EOF;var s,o,u,k;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),d=0;do[0].length)){if(o=u,k=d,this.options.backtrack_lexer){if(!1!==(s=this.test_match(u,b[d])))return s;if(this._backtrack){o=!1;continue}return!1}if(!this.options.flex)break}return o?!1!==(s=this.test_match(o,b[k]))&&s:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return(o=this.conditionStack.length-1-Math.abs(o||0))>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,u,k,b){switch(k){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}},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}}},y.prototype=a,a.Parser=y,new y}();rt.parser=rt;const Q=rt;let Z=[],J=[],U={};class Yt{constructor(n,i,l=0){this.source=n,this.target=i,this.value=l}}class Wt{constructor(n){this.ID=n}}const Gt={nodesMap:U,getConfig:()=>(0,M.c)().sankey,getNodes:()=>J,getLinks:()=>Z,getGraph:()=>({nodes:J.map(t=>({id:t.ID})),links:Z.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),addLink:(t,n,i)=>{Z.push(new Yt(t,n,i))},findOrCreateNode:t=>(t=M.e.sanitizeText(t,(0,M.c)()),U[t]||(U[t]=new Wt(t),J.push(U[t])),U[t]),getAccTitle:M.g,setAccTitle:M.s,getAccDescription:M.a,setAccDescription:M.b,getDiagramTitle:M.t,setDiagramTitle:M.q,clear:()=>{Z=[],J=[],U={},(0,M.v)()}},kt=class lt{static next(n){return new lt(n+ ++lt.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};kt.count=0;let xt=kt;const Kt={left:function vt(t){return t.depth},right:function bt(t,n){return n-1-t.height},center:function wt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ct(t.sourceLinks,_t)-1:0},justify:ut},Ht={draw:function(t,n,i,l){const{securityLevel:a,sankey:m}=(0,M.c)(),y=M.K.sankey;let p;"sandbox"===a&&(p=(0,V.Ys)("#i"+n));const s=(0,V.Ys)("sandbox"===a?p.nodes()[0].contentDocument.body:"body"),o="sandbox"===a?s.select(`[id="${n}"]`):(0,V.Ys)(`[id="${n}"]`),u=m?.width??y.width,k=m?.height??y.width,b=m?.useMaxWidth??y.useMaxWidth,d=m?.nodeAlignment??y.nodeAlignment,_=m?.prefix??y.prefix,E=m?.suffix??y.suffix,L=m?.showValues??y.showValues,A=l.db.getGraph(),C=Kt[d];(function At(){let y,o,u,t=0,n=0,i=1,l=1,a=24,m=8,p=St,s=ut,k=Lt,b=Et,d=6;function _(){const e={nodes:k.apply(null,arguments),links:b.apply(null,arguments)};return function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const c=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:x,target:v}=r;"object"!=typeof x&&(x=r.source=dt(c,x)),"object"!=typeof v&&(v=r.target=dt(c,v)),x.sourceLinks.push(r),v.targetLinks.push(r)}if(null!=u)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(u),r.sort(u)}(e),function L({nodes:e}){for(const f of e)f.value=void 0===f.fixedValue?Math.max(q(f.sourceLinks,tt),q(f.targetLinks,tt)):f.fixedValue}(e),function A({nodes:e}){const f=e.length;let c=new Set(e),h=new Set,r=0;for(;c.size;){for(const x of c){x.depth=r;for(const{target:v}of x.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");c=h,h=new Set}}(e),function C({nodes:e}){const f=e.length;let c=new Set(e),h=new Set,r=0;for(;c.size;){for(const x of c){x.height=r;for(const{source:v}of x.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");c=h,h=new Set}}(e),function S(e){const f=function P({nodes:e}){const f=ht(e,r=>r.depth)+1,c=(i-t-a)/(f-1),h=new Array(f);for(const r of e){const x=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=x,r.x0=t+x*c,r.x1=r.x0+a,h[x]?h[x].push(r):h[x]=[r]}if(o)for(const r of h)r.sort(o);return h}(e);y=Math.min(m,(l-n)/(ht(f,c=>c.length)-1)),function R(e){const f=ct(e,c=>(l-n-(c.length-1)*y)/q(c,tt));for(const c of e){let h=n;for(const r of c){r.y0=h,r.y1=h+r.value*f,h=r.y1+y;for(const x of r.sourceLinks)x.width=x.value*f}h=(l-h+y)/(c.length+1);for(let r=0;r0))continue;let W=(F/B-v.y0)*f;v.y0+=W,v.y1+=W,w(v)}void 0===o&&x.sort(X),I(x,c)}}function $(e,f,c){for(let r=e.length-2;r>=0;--r){const x=e[r];for(const v of x){let F=0,B=0;for(const{target:G,value:ot}of v.sourceLinks){let K=ot*(G.layer-v.layer);F+=Y(v,G)*K,B+=K}if(!(B>0))continue;let W=(F/B-v.y0)*f;v.y0+=W,v.y1+=W,w(v)}void 0===o&&x.sort(X),I(x,c)}}function I(e,f){const c=e.length>>1,h=e[c];g(e,h.y0-y,c-1,f),O(e,h.y1+y,c+1,f),g(e,l,e.length-1,f),O(e,n,0,f)}function O(e,f,c,h){for(;c1e-6&&(r.y0+=x,r.y1+=x),f=r.y1+y}}function g(e,f,c,h){for(;c>=0;--c){const r=e[c],x=(r.y1-f)*h;x>1e-6&&(r.y0-=x,r.y1-=x),f=r.y0-y}}function w({sourceLinks:e,targetLinks:f}){if(void 0===u){for(const{source:{sourceLinks:c}}of f)c.sort(yt);for(const{target:{targetLinks:c}}of e)c.sort(ft)}}function z(e){if(void 0===u)for(const{sourceLinks:f,targetLinks:c}of e)f.sort(yt),c.sort(ft)}function T(e,f){let c=e.y0-(e.sourceLinks.length-1)*y/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;c+=r+y}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;c-=r}return c}function Y(e,f){let c=f.y0-(f.targetLinks.length-1)*y/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;c+=r+y}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;c-=r}return c}return _.update=function(e){return gt(e),e},_.nodeId=function(e){return arguments.length?(p="function"==typeof e?e:H(e),_):p},_.nodeAlign=function(e){return arguments.length?(s="function"==typeof e?e:H(e),_):s},_.nodeSort=function(e){return arguments.length?(o=e,_):o},_.nodeWidth=function(e){return arguments.length?(a=+e,_):a},_.nodePadding=function(e){return arguments.length?(m=y=+e,_):m},_.nodes=function(e){return arguments.length?(k="function"==typeof e?e:H(e),_):k},_.links=function(e){return arguments.length?(b="function"==typeof e?e:H(e),_):b},_.linkSort=function(e){return arguments.length?(u=e,_):u},_.size=function(e){return arguments.length?(t=n=0,i=+e[0],l=+e[1],_):[i-t,l-n]},_.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],l=+e[1][1],_):[[t,n],[i,l]]},_.iterations=function(e){return arguments.length?(d=+e,_):d},_})().nodeId(g=>g.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(C).extent([[0,0],[u,k]])(A);const S=(0,V.PKp)(V.K2I);o.append("g").attr("class","nodes").selectAll(".node").data(A.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=>S(g.id)),o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",g=>g.x0(g.y1+g.y0)/2).attr("dy",(L?"0":"0.35")+"em").attr("text-anchor",g=>g.x0L?`${g}\n${_}${Math.round(100*w)/100}${E}`:g);const $=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),I=m?.linkColor||"gradient";if("gradient"===I){const g=$.append("linearGradient").attr("id",w=>(w.uid=xt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);g.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),g.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let O;switch(I){case"gradient":O=g=>g.uid;break;case"source":O=g=>S(g.source.id);break;case"target":O=g=>S(g.target.id);break;default:O=I}$.append("path").attr("d",Vt()).attr("stroke",O).attr("stroke-width",g=>Math.max(1,g.width)),(0,M.o)(void 0,o,0,b)}},Qt=Q.parse.bind(Q);Q.parse=t=>Qt((t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim())(t));const Zt={parser:Q,db:Gt,renderer:Ht}}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/993.68a03a82a6830294.js b/pkg/apiserver-impl/ui/993.68a03a82a6830294.js new file mode 100644 index 0000000000..79a3e4c067 --- /dev/null +++ b/pkg/apiserver-impl/ui/993.68a03a82a6830294.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[993],{2993:(xt,Ze,fe)=>{fe.d(Ze,{d:()=>Dt,p:()=>$e,s:()=>Bt});var w=fe(8586),A=fe(8080),pe=function(){var e=function(O,u,a,h){for(a=a||{},h=O.length;h--;a[O[h]]=u);return a},i=[1,17],r=[1,18],c=[1,19],o=[1,39],p=[1,40],g=[1,25],_=[1,23],D=[1,24],B=[1,31],me=[1,32],be=[1,33],ke=[1,34],ge=[1,35],Te=[1,36],Fe=[1,26],ye=[1,27],_e=[1,28],De=[1,29],E=[1,43],Be=[1,30],C=[1,42],m=[1,44],b=[1,41],T=[1,45],Se=[1,9],l=[1,8,9],Q=[1,56],X=[1,57],W=[1,58],H=[1,59],q=[1,60],Ne=[1,61],Le=[1,62],J=[1,8,9,39],Qe=[1,74],G=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],Z=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],$=[13,74,80,95,97,98],U=[13,64,65,74,80,95,97,98],Xe=[13,59,60,61,62,63,74,80,95,97,98],ve=[1,93],ee=[1,110],te=[1,108],se=[1,102],ie=[1,103],ne=[1,104],ue=[1,105],re=[1,106],ae=[1,107],ce=[1,109],Oe=[1,8,9,37,39,42],le=[1,8,9,21],We=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],xe={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,d,t,Y){var s=t.length-1;switch(d){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:case 89:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:case 43:case 86:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:case 47:case 48:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 87:t[s-2].push(t[s]),this.$=t[s-2]}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:c,36:21,40:o,41:22,44:p,45:g,47:_,48:D,50:B,52:me,53:be,54:ke,55:ge,56:Te,66:Fe,67:ye,69:_e,73:De,74:E,76:Be,80:C,95:m,97:b,98:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Se,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Q,60:X,61:W,62:H,63:q,64:Ne,65:Le}),{37:[1,63]},e(J,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:E,80:C,95:m,97:b},{16:37,17:67,18:38,74:E,80:C,95:m,97:b,98:T},{16:37,17:68,18:38,74:E,80:C,95:m,97:b,98:T},{16:37,17:69,18:38,74:E,80:C,95:m,97:b,98:T},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:E,80:C,95:m,97:b,98:T},{13:Qe,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(G,[2,11],{16:37,18:38,17:75,19:[1,76],74:E,80:C,95:m,97:b,98:T}),e(G,[2,12],{19:[1,77]}),{15:78,16:79,74:E,80:C,95:m,97:b},{16:37,17:80,18:38,74:E,80:C,95:m,97:b,98:T},e(Z,[2,112]),e(Z,[2,113]),e(Z,[2,114]),e(Z,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(Se,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:c,40:o,44:p,45:g,47:_,48:D,50:B,52:me,53:be,54:ke,55:ge,56:Te,66:Fe,67:ye,69:_e,73:De,74:E,76:Be,80:C,95:m,97:b,98:T}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:c,36:21,40:o,41:22,44:p,45:g,47:_,48:D,50:B,52:me,53:be,54:ke,55:ge,56:Te,66:Fe,67:ye,69:_e,73:De,74:E,76:Be,80:C,95:m,97:b,98:T},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:E,80:C,95:m,97:b,98:T},{49:85,57:54,58:55,59:Q,60:X,61:W,62:H,63:q,64:Ne,65:Le},e(l,[2,46]),{58:86,64:Ne,65:Le},e($,[2,62],{57:87,59:Q,60:X,61:W,62:H,63:q}),e(U,[2,63]),e(U,[2,64]),e(U,[2,65]),e(U,[2,66]),e(U,[2,67]),e(Xe,[2,68]),e(Xe,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:E,80:C,95:m,97:b},{43:92,47:ve},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:ee,73:te,74:se,75:99,77:100,79:101,80:ie,81:ne,82:ue,83:re,84:ae,85:ce},{74:[1,111]},{13:Qe,51:112},e(l,[2,54]),e(l,[2,117]),e(G,[2,13]),e(G,[2,14]),e(G,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:E,80:C,95:m,97:b},e(Oe,[2,40],{11:114,12:[1,115]}),e(Se,[2,7]),{9:[1,116]},e(le,[2,49]),{16:37,17:117,18:38,74:E,80:C,95:m,97:b,98:T},{13:[1,119],16:37,17:118,18:38,74:E,80:C,95:m,97:b,98:T},e($,[2,61],{57:120,59:Q,60:X,61:W,62:H,63:q}),e($,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(J,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:ve},{16:37,17:127,18:38,74:E,80:C,95:m,97:b,98:T},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(We,[2,86],{79:135,21:ee,73:te,74:se,80:ie,81:ne,82:ue,83:re,84:ae,85:ce}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(Oe,[2,41]),{13:[1,136]},{1:[2,4]},e(le,[2,51]),e(le,[2,50]),{16:37,17:137,18:38,74:E,80:C,95:m,97:b,98:T},e($,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:ve},e(J,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:ee,73:te,74:se,77:145,79:101,80:ie,81:ne,82:ue,83:re,84:ae,85:ce},e(S,[2,89]),{14:[1,146]},e(le,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(We,[2,87],{79:135,21:ee,73:te,74:se,80:ie,81:ne,82:ue,83:re,84:ae,85:ce}),e(Oe,[2,8]),e(J,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(!a.recoverable){var h=new Error(u);throw h.hash=a,h}this.trace(u)},parse:function(u){var h=[0],n=[],d=[null],t=[],Y=this.table,s="",oe=0,He=0,Lt=t.slice.call(arguments,1),k=Object.create(this.lexer),R={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(R.yy[Re]=this.yy[Re]);k.setInput(u,R.yy),R.yy.lexer=k,R.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Ve=k.yylloc;t.push(Ve);var L,vt=k.options&&k.options.ranges;this.parseError="function"==typeof R.yy.parseError?R.yy.parseError:Object.getPrototypeOf(this).parseError;for(var F,V,y,Pe,he,N,Ae,P={};;){if(this.defaultActions[V=h[h.length-1]]?y=this.defaultActions[V]:((null===F||typeof F>"u")&&(L=void 0,"number"!=typeof(L=n.pop()||k.lex()||1)&&(L instanceof Array&&(L=(n=L).pop()),L=this.symbols_[L]||L),F=L),y=Y[V]&&Y[V][F]),typeof y>"u"||!y.length||!y[0]){var we;for(he in Ae=[],Y[V])this.terminals_[he]&&he>2&&Ae.push("'"+this.terminals_[he]+"'");we=k.showPosition?"Parse error on line "+(oe+1)+":\n"+k.showPosition()+"\nExpecting "+Ae.join(", ")+", got '"+(this.terminals_[F]||F)+"'":"Parse error on line "+(oe+1)+": Unexpected "+(1==F?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(we,{text:k.match,token:this.terminals_[F]||F,line:k.yylineno,loc:Ve,expected:Ae})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+F);switch(y[0]){case 1:h.push(F),d.push(k.yytext),t.push(k.yylloc),h.push(y[1]),F=null,He=k.yyleng,s=k.yytext,oe=k.yylineno,Ve=k.yylloc;break;case 2:if(P.$=d[d.length-(N=this.productions_[y[1]][1])],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},vt&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),typeof(Pe=this.performAction.apply(P,[s,He,oe,R.yy,y[1],d,t].concat(Lt)))<"u")return Pe;N&&(h=h.slice(0,-1*N*2),d=d.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),d.push(P.$),t.push(P._$),h.push(Y[h[h.length-2]][h[h.length-1]]);break;case 3:return!0}}return!0}};function Ie(){this.yy={}}return xe.lexer={EOF:1,parseError:function(a,h){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,h)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,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},input:function(){var u=this._input[0];return this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u,u.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),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=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),h.length-1&&(this.yylineno-=h.length-1);var d=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:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+"\n"+a+"^"},test_match:function(u,a){var h,n,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),(n=u[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var t in d)this[t]=d[t];return!1}return!1},next:function(){if(this.done)return this.EOF;var u,a,h,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),t=0;ta[0].length)){if(a=h,n=t,this.options.backtrack_lexer){if(!1!==(u=this.test_match(h,d[t])))return u;if(this._backtrack){a=!1;continue}return!1}if(!this.options.flex)break}return a?!1!==(u=this.test_match(a,d[n]))&&u:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,h,n,d){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:case 5:case 14:case 30:case 35:case 39:case 46:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 57:case 60:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 34:return 8;case 15:case 16:return 7;case 17:case 36:case 44:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 23:return 71;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:case 38:return this.popState(),8;case 31:return this.begin("namespace-body"),37;case 32:case 42:return this.popState(),39;case 33:case 43:return"EOF_IN_STRUCT";case 37:return this.begin("class"),44;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 45:return"OPEN_IN_STRUCT";case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:case 64:case 65:case 66:return 68;case 67:case 68:return 60;case 69:case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:case 84:return 84;case 85:return 85;case 86:case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}},Ie.prototype=xe,xe.Parser=Ie,new Ie}();pe.parser=pe;const $e=pe,Me=["#","+","~","-",""];class Ge{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const c=(0,A.d)(i,(0,A.c)());this.parseMember(c)}getDisplayDetails(){let i=this.visibility+(0,A.x)(this.id);return"method"===this.memberType&&(i+=`(${(0,A.x)(this.parameters.trim())})`,this.returnType&&(i+=" : "+(0,A.x)(this.returnType))),i=i.trim(),{displayText:i,cssStyle:this.parseClassifier()}}parseMember(i){let r="";if("method"===this.memberType){const o=i.match(/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/);if(o){const p=o[1]?o[1].trim():"";if(Me.includes(p)&&(this.visibility=p),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",""===r){const g=this.returnType.substring(this.returnType.length-1);g.match(/[$*]/)&&(r=g,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const c=i.length,o=i.substring(0,1),p=i.substring(c-1);Me.includes(o)&&(this.visibility=o),p.match(/[$*]/)&&(r=p),this.id=i.substring(""===this.visibility?0:1,""===r?c:c-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const z="classId-";let de=[],f={},K=[],Ue=0,v={},Ee=0,M=[];const x=e=>A.e.sanitizeText(e,(0,A.c)()),I=function(e){const i=A.e.sanitizeText(e,(0,A.c)());let r="",c=i;if(i.indexOf("~")>0){const o=i.split("~");c=x(o[0]),r=x(o[1])}return{className:c,type:r}},j=function(e){const i=A.e.sanitizeText(e,(0,A.c)()),{className:r,type:c}=I(i);if(Object.hasOwn(f,r))return;const o=A.e.sanitizeText(r,(0,A.c)());f[o]={id:o,type:c,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:z+o+"-"+Ue},Ue++},Ye=function(e){const i=A.e.sanitizeText(e,(0,A.c)());if(i in f)return f[i].domId;throw new Error("Class not found: "+i)},ze=function(e,i){j(e);const r=I(e).className,c=f[r];if("string"==typeof i){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?c.annotations.push(x(o.substring(2,o.length-2))):o.indexOf(")")>0?c.methods.push(new Ge(o,"method")):o&&c.members.push(new Ge(o,"attribute"))}},Ce=function(e,i){e.split(",").forEach(function(r){let c=r;r[0].match(/\d/)&&(c=z+c),void 0!==f[c]&&f[c].cssClasses.push(i)})},Ke=function(e){let i=(0,w.Ys)(".mermaidTooltip");null===(i._groups||i)[0][0]&&(i=(0,w.Ys)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,w.Ys)(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=(0,w.Ys)(this);if(null===o.attr("title"))return;const g=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"
")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),(0,w.Ys)(this).classed("hover",!1)})};M.push(Ke);let je="TB";const Dt={setAccTitle:A.s,getAccTitle:A.g,getAccDescription:A.a,setAccDescription:A.b,getConfig:()=>(0,A.c)().class,addClass:j,bindFunctions:function(e){M.forEach(function(i){i(e)})},clear:function(){de=[],f={},K=[],M=[],M.push(Ke),v={},Ee=0,(0,A.v)()},getClass:function(e){return f[e]},getClasses:function(){return f},getNotes:function(){return K},addAnnotation:function(e,i){const r=I(e).className;f[r].annotations.push(i)},addNote:function(e,i){K.push({id:`note${K.length}`,class:i,text:e})},getRelations:function(){return de},addRelation:function(e){A.l.debug("Adding relation: "+JSON.stringify(e)),j(e.id1),j(e.id2),e.id1=I(e.id1).className,e.id2=I(e.id2).className,e.relationTitle1=A.e.sanitizeText(e.relationTitle1.trim(),(0,A.c)()),e.relationTitle2=A.e.sanitizeText(e.relationTitle2.trim(),(0,A.c)()),de.push(e)},getDirection:()=>je,setDirection:e=>{je=e},addMember:ze,addMembers:function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>ze(e,r)))},cleanupLabel:function(e){return e.startsWith(":")&&(e=e.substring(1)),x(e.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(e,i,r){e.split(",").forEach(function(c){(function(e,i,r){const c=A.e.sanitizeText(e,(0,A.c)());if("loose"===(0,A.c)().securityLevel&&void 0!==i&&void 0!==f[c]){const g=Ye(c);let _=[];if("string"==typeof r){_=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<_.length;D++){let B=_[D].trim();'"'===B.charAt(0)&&'"'===B.charAt(B.length-1)&&(B=B.substr(1,B.length-2)),_[D]=B}}0===_.length&&_.push(g),M.push(function(){const D=document.querySelector(`[id="${g}"]`);null!==D&&D.addEventListener("click",function(){A.u.runFunc(i,..._)},!1)})}})(c,i,r),f[c].haveCallback=!0}),Ce(e,"clickable")},setCssClass:Ce,setLink:function(e,i,r){const c=(0,A.c)();e.split(",").forEach(function(o){let p=o;o[0].match(/\d/)&&(p=z+p),void 0!==f[p]&&(f[p].link=A.u.formatUrl(i,c),f[p].linkTarget="sandbox"===c.securityLevel?"_top":"string"==typeof r?x(r):"_blank")}),Ce(e,"clickable")},getTooltip:function(e,i){return i?v[i].classes[e].tooltip:f[e].tooltip},setTooltip:function(e,i){e.split(",").forEach(function(r){void 0!==i&&(f[r].tooltip=x(i))})},lookUpDomId:Ye,setDiagramTitle:A.q,getDiagramTitle:A.t,setClassLabel:function(e,i){const r=A.e.sanitizeText(e,(0,A.c)());i&&(i=x(i));const{className:c}=I(r);f[c].label=i},addNamespace:function(e){void 0===v[e]&&(v[e]={id:e,classes:{},children:{},domId:z+e+"-"+Ee},Ee++)},addClassesToNamespace:function(e,i){if(void 0!==v[e])for(const r of i){const{className:c}=I(r);f[c].parent=e,v[e].classes[c]=f[c]}},getNamespace:function(e){return v[e]},getNamespaces:function(){return v},setCssStyle:function(e,i){const r=f[e];if(i&&r)for(const c of i)c.includes(",")?r.styles.push(...c.split(",")):r.styles.push(c)}},Bt=e=>`g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n`}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/common.5c8a2e23d554c074.js b/pkg/apiserver-impl/ui/common.a460f048f6dafca5.js similarity index 97% rename from pkg/apiserver-impl/ui/common.5c8a2e23d554c074.js rename to pkg/apiserver-impl/ui/common.a460f048f6dafca5.js index 68c0794663..86b843dcd4 100644 --- a/pkg/apiserver-impl/ui/common.5c8a2e23d554c074.js +++ b/pkg/apiserver-impl/ui/common.a460f048f6dafca5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[592],{3057:(K,B,c)=>{c.d(B,{a:()=>A});var v=c(6257);function A(g,l){var S=g.append("foreignObject").attr("width","100000"),b=S.append("xhtml:div");b.attr("xmlns","http://www.w3.org/1999/xhtml");var P=l.label;switch(typeof P){case"function":b.insert(P);break;case"object":b.insert(function(){return P});break;default:b.html(P)}v.bg(b,l.labelStyle),b.style("display","inline-block"),b.style("white-space","nowrap");var I=b.node().getBoundingClientRect();return S.attr("width",I.width).attr("height",I.height),S}},6257:(K,B,c)=>{c.d(B,{$p:()=>I,O1:()=>l,WR:()=>D,bF:()=>g,bg:()=>P});var v=c(2031),A=c(2089);function g(n,e){return!!n.children(e).length}function l(n){return b(n.v)+":"+b(n.w)+":"+b(n.name)}var S=/:/g;function b(n){return n?String(n).replace(S,"\\:"):""}function P(n,e){e&&n.attr("style",e)}function I(n,e,o){e&&n.attr("class",e).attr("class",o+" "+n.attr("class"))}function D(n,e){var o=e.graph();if(v.Z(o)){var p=o.transition;if(A.Z(p))return p(n)}return n}},3987:(K,B,c)=>{c.d(B,{Z:()=>l});var v=c(8267),A=c(486);const l=(S,b)=>v.Z.lang.round(A.Z.parse(S)[b])},4455:(K,B,c)=>{c.d(B,{a:()=>Y,f:()=>U});var v=c(5861),A=c(8814),g=c(8586),l=c(9037),S=c(9547),b=c(3057),P=c(3987),I=c(3396);const D={},e=function(){var r=(0,v.Z)(function*(f,_,$,h,u,x){const k=h.select(`[id="${$}"]`),i=Object.keys(f);for(const y of i){const a=f[y];let L="default";a.classes.length>0&&(L=a.classes.join(" ")),L+=" flowchart-label";const E=(0,l.k)(a.styles);let d,t=void 0!==a.text?a.text:a.id;if(l.l.info("vertex",a,a.labelType),"markdown"===a.labelType)l.l.info("vertex",a,a.labelType);else if((0,l.m)((0,l.c)().flowchart.htmlLabels))d=(0,b.a)(k,{label:t}).node(),d.parentNode.removeChild(d);else{const M=u.createElementNS("http://www.w3.org/2000/svg","text");M.setAttribute("style",E.labelStyle.replace("color:","fill:"));const j=t.split(l.e.lineBreakRegex);for(const z of j){const N=u.createElementNS("http://www.w3.org/2000/svg","tspan");N.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),N.setAttribute("dy","1em"),N.setAttribute("x","1"),N.textContent=z,M.appendChild(N)}d=M}let w=0,s="";switch(a.type){case"round":w=5,s="rect";break;case"square":case"group":default:s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"odd":case"odd_right":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"doublecircle":s="doublecircle"}const W=yield(0,l.r)(t,(0,l.c)());_.setNode(a.id,{labelStyle:E.labelStyle,shape:s,labelText:W,labelType:a.labelType,rx:w,ry:w,class:L,style:E.style,id:a.id,link:a.link,linkTarget:a.linkTarget,tooltip:x.db.getTooltip(a.id)||"",domId:x.db.lookUpDomId(a.id),haveCallback:a.haveCallback,width:"group"===a.type?500:void 0,dir:a.dir,type:a.type,props:a.props,padding:(0,l.c)().flowchart.padding}),l.l.info("setNode",{labelStyle:E.labelStyle,labelType:a.labelType,shape:s,labelText:W,rx:w,ry:w,class:L,style:E.style,id:a.id,domId:x.db.lookUpDomId(a.id),width:"group"===a.type?500:void 0,type:a.type,dir:a.dir,props:a.props,padding:(0,l.c)().flowchart.padding})}});return function(_,$,h,u,x,k){return r.apply(this,arguments)}}(),o=function(){var r=(0,v.Z)(function*(f,_,$){l.l.info("abc78 edges = ",f);let x,k,h=0,u={};if(void 0!==f.defaultStyle){const i=(0,l.k)(f.defaultStyle);x=i.style,k=i.labelStyle}for(const i of f){h++;const y="L-"+i.start+"-"+i.end;void 0===u[y]?(u[y]=0,l.l.info("abc78 new entry",y,u[y])):(u[y]++,l.l.info("abc78 new entry",y,u[y]));let a=y+"-"+u[y];l.l.info("abc78 new link id to be used is",y,a,u[y]);const L="LS-"+i.start,E="LE-"+i.end,t={style:"",labelStyle:""};switch(t.minlen=i.length||1,t.arrowhead="arrow_open"===i.type?"none":"normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",i.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle"}let d="",w="";switch(i.stroke){case"normal":d="fill:none;",void 0!==x&&(d=x),void 0!==k&&(w=k),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;"}if(void 0!==i.style){const s=(0,l.k)(i.style);d=s.style,w=s.labelStyle}t.style=t.style+=d,t.labelStyle=t.labelStyle+=w,t.curve=(0,l.n)(void 0!==i.interpolate?i.interpolate:void 0!==f.defaultInterpolate?f.defaultInterpolate:D.curve,g.c_6),void 0===i.text?void 0!==i.style&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=i.labelType,t.label=yield(0,l.r)(i.text.replace(l.e.lineBreakRegex,"\n"),(0,l.c)()),void 0===i.style&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=a,t.classes="flowchart-link "+L+" "+E,_.setEdge(i.start,i.end,t,h)}});return function(_,$,h){return r.apply(this,arguments)}}(),U={setConf:function(r){const f=Object.keys(r);for(const _ of f)D[_]=r[_]},addVertices:e,addEdges:o,getClasses:function(r,f){return f.db.getClasses()},draw:function(){var r=(0,v.Z)(function*(f,_,$,h){l.l.info("Drawing flowchart");let u=h.db.getDirection();void 0===u&&(u="TD");const{securityLevel:x,flowchart:k}=(0,l.c)(),i=k.nodeSpacing||50,y=k.rankSpacing||50;let a;"sandbox"===x&&(a=(0,g.Ys)("#i"+_));const L=(0,g.Ys)("sandbox"===x?a.nodes()[0].contentDocument.body:"body"),E="sandbox"===x?a.nodes()[0].contentDocument:document,t=new A.k({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:i,ranksep:y,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let d;const w=h.db.getSubGraphs();l.l.info("Subgraphs - ",w);for(let m=w.length-1;m>=0;m--)d=w[m],l.l.info("Subgraph - ",d),h.db.addVertex(d.id,{text:d.title,type:d.labelType},"group",void 0,d.classes,d.dir);const s=h.db.getVertices(),W=h.db.getEdges();l.l.info("Edges",W);let M=0;for(M=w.length-1;M>=0;M--){d=w[M],(0,g.td_)("cluster").append("text");for(let m=0;m`.label {\n font-family: ${r.fontFamily};\n color: ${r.nodeTextColor||r.textColor};\n }\n .cluster-label text {\n fill: ${r.titleColor};\n }\n .cluster-label span,p {\n color: ${r.titleColor};\n }\n\n .label text,span,p {\n fill: ${r.nodeTextColor||r.textColor};\n color: ${r.nodeTextColor||r.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${r.mainBkg};\n stroke: ${r.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${r.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${r.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${r.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${r.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${r.edgeLabelBackground};\n fill: ${r.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${((r,f)=>{const _=P.Z,$=_(r,"r"),h=_(r,"g"),u=_(r,"b");return I.Z($,h,u,.5)})(r.edgeLabelBackground)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${r.clusterBkg};\n stroke: ${r.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${r.titleColor};\n }\n\n .cluster span,p {\n color: ${r.titleColor};\n }\n /* .cluster div {\n color: ${r.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${r.fontFamily};\n font-size: 12px;\n background: ${r.tertiaryColor};\n border: 1px solid ${r.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${r.textColor};\n }\n`},3118:(K,B,c)=>{c.d(B,{a:()=>l,b:()=>P,c:()=>b,d:()=>g,e:()=>D,f:()=>S,g:()=>I});var v=c(6780),A=c(9037);const g=(n,e)=>{const o=n.append("rect");if(o.attr("x",e.x),o.attr("y",e.y),o.attr("fill",e.fill),o.attr("stroke",e.stroke),o.attr("width",e.width),o.attr("height",e.height),e.name&&o.attr("name",e.name),void 0!==e.rx&&o.attr("rx",e.rx),void 0!==e.ry&&o.attr("ry",e.ry),void 0!==e.attrs)for(const p in e.attrs)o.attr(p,e.attrs[p]);return void 0!==e.class&&o.attr("class",e.class),o},l=(n,e)=>{g(n,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},S=(n,e)=>{const o=e.text.replace(A.J," "),p=n.append("text");p.attr("x",e.x),p.attr("y",e.y),p.attr("class","legend"),p.style("text-anchor",e.anchor),void 0!==e.class&&p.attr("class",e.class);const C=p.append("tspan");return C.attr("x",e.x+2*e.textMargin),C.text(o),p},b=(n,e,o,p)=>{const C=n.append("image");C.attr("x",e),C.attr("y",o);const U=(0,v.N)(p);C.attr("xlink:href",U)},P=(n,e,o,p)=>{const C=n.append("use");C.attr("x",e),C.attr("y",o);const U=(0,v.N)(p);C.attr("xlink:href",`#${U}`)},I=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),D=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0})}}]); \ No newline at end of file +"use strict";(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[592],{3057:(K,B,c)=>{c.d(B,{a:()=>A});var v=c(6257);function A(g,l){var S=g.append("foreignObject").attr("width","100000"),b=S.append("xhtml:div");b.attr("xmlns","http://www.w3.org/1999/xhtml");var P=l.label;switch(typeof P){case"function":b.insert(P);break;case"object":b.insert(function(){return P});break;default:b.html(P)}v.bg(b,l.labelStyle),b.style("display","inline-block"),b.style("white-space","nowrap");var I=b.node().getBoundingClientRect();return S.attr("width",I.width).attr("height",I.height),S}},6257:(K,B,c)=>{c.d(B,{$p:()=>I,O1:()=>l,WR:()=>D,bF:()=>g,bg:()=>P});var v=c(2031),A=c(2089);function g(n,e){return!!n.children(e).length}function l(n){return b(n.v)+":"+b(n.w)+":"+b(n.name)}var S=/:/g;function b(n){return n?String(n).replace(S,"\\:"):""}function P(n,e){e&&n.attr("style",e)}function I(n,e,o){e&&n.attr("class",e).attr("class",o+" "+n.attr("class"))}function D(n,e){var o=e.graph();if(v.Z(o)){var p=o.transition;if(A.Z(p))return p(n)}return n}},3987:(K,B,c)=>{c.d(B,{Z:()=>l});var v=c(8267),A=c(486);const l=(S,b)=>v.Z.lang.round(A.Z.parse(S)[b])},4805:(K,B,c)=>{c.d(B,{a:()=>Y,f:()=>U});var v=c(5861),A=c(8814),g=c(8586),l=c(8080),S=c(8235),b=c(3057),P=c(3987),I=c(3396);const D={},e=function(){var r=(0,v.Z)(function*(f,_,$,h,u,x){const k=h.select(`[id="${$}"]`),i=Object.keys(f);for(const y of i){const a=f[y];let L="default";a.classes.length>0&&(L=a.classes.join(" ")),L+=" flowchart-label";const E=(0,l.k)(a.styles);let d,t=void 0!==a.text?a.text:a.id;if(l.l.info("vertex",a,a.labelType),"markdown"===a.labelType)l.l.info("vertex",a,a.labelType);else if((0,l.m)((0,l.c)().flowchart.htmlLabels))d=(0,b.a)(k,{label:t}).node(),d.parentNode.removeChild(d);else{const M=u.createElementNS("http://www.w3.org/2000/svg","text");M.setAttribute("style",E.labelStyle.replace("color:","fill:"));const j=t.split(l.e.lineBreakRegex);for(const z of j){const N=u.createElementNS("http://www.w3.org/2000/svg","tspan");N.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),N.setAttribute("dy","1em"),N.setAttribute("x","1"),N.textContent=z,M.appendChild(N)}d=M}let w=0,s="";switch(a.type){case"round":w=5,s="rect";break;case"square":case"group":default:s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"odd":case"odd_right":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"doublecircle":s="doublecircle"}const W=yield(0,l.r)(t,(0,l.c)());_.setNode(a.id,{labelStyle:E.labelStyle,shape:s,labelText:W,labelType:a.labelType,rx:w,ry:w,class:L,style:E.style,id:a.id,link:a.link,linkTarget:a.linkTarget,tooltip:x.db.getTooltip(a.id)||"",domId:x.db.lookUpDomId(a.id),haveCallback:a.haveCallback,width:"group"===a.type?500:void 0,dir:a.dir,type:a.type,props:a.props,padding:(0,l.c)().flowchart.padding}),l.l.info("setNode",{labelStyle:E.labelStyle,labelType:a.labelType,shape:s,labelText:W,rx:w,ry:w,class:L,style:E.style,id:a.id,domId:x.db.lookUpDomId(a.id),width:"group"===a.type?500:void 0,type:a.type,dir:a.dir,props:a.props,padding:(0,l.c)().flowchart.padding})}});return function(_,$,h,u,x,k){return r.apply(this,arguments)}}(),o=function(){var r=(0,v.Z)(function*(f,_,$){l.l.info("abc78 edges = ",f);let x,k,h=0,u={};if(void 0!==f.defaultStyle){const i=(0,l.k)(f.defaultStyle);x=i.style,k=i.labelStyle}for(const i of f){h++;const y="L-"+i.start+"-"+i.end;void 0===u[y]?(u[y]=0,l.l.info("abc78 new entry",y,u[y])):(u[y]++,l.l.info("abc78 new entry",y,u[y]));let a=y+"-"+u[y];l.l.info("abc78 new link id to be used is",y,a,u[y]);const L="LS-"+i.start,E="LE-"+i.end,t={style:"",labelStyle:""};switch(t.minlen=i.length||1,t.arrowhead="arrow_open"===i.type?"none":"normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",i.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle"}let d="",w="";switch(i.stroke){case"normal":d="fill:none;",void 0!==x&&(d=x),void 0!==k&&(w=k),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;"}if(void 0!==i.style){const s=(0,l.k)(i.style);d=s.style,w=s.labelStyle}t.style=t.style+=d,t.labelStyle=t.labelStyle+=w,t.curve=(0,l.n)(void 0!==i.interpolate?i.interpolate:void 0!==f.defaultInterpolate?f.defaultInterpolate:D.curve,g.c_6),void 0===i.text?void 0!==i.style&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=i.labelType,t.label=yield(0,l.r)(i.text.replace(l.e.lineBreakRegex,"\n"),(0,l.c)()),void 0===i.style&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=a,t.classes="flowchart-link "+L+" "+E,_.setEdge(i.start,i.end,t,h)}});return function(_,$,h){return r.apply(this,arguments)}}(),U={setConf:function(r){const f=Object.keys(r);for(const _ of f)D[_]=r[_]},addVertices:e,addEdges:o,getClasses:function(r,f){return f.db.getClasses()},draw:function(){var r=(0,v.Z)(function*(f,_,$,h){l.l.info("Drawing flowchart");let u=h.db.getDirection();void 0===u&&(u="TD");const{securityLevel:x,flowchart:k}=(0,l.c)(),i=k.nodeSpacing||50,y=k.rankSpacing||50;let a;"sandbox"===x&&(a=(0,g.Ys)("#i"+_));const L=(0,g.Ys)("sandbox"===x?a.nodes()[0].contentDocument.body:"body"),E="sandbox"===x?a.nodes()[0].contentDocument:document,t=new A.k({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:i,ranksep:y,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let d;const w=h.db.getSubGraphs();l.l.info("Subgraphs - ",w);for(let m=w.length-1;m>=0;m--)d=w[m],l.l.info("Subgraph - ",d),h.db.addVertex(d.id,{text:d.title,type:d.labelType},"group",void 0,d.classes,d.dir);const s=h.db.getVertices(),W=h.db.getEdges();l.l.info("Edges",W);let M=0;for(M=w.length-1;M>=0;M--){d=w[M],(0,g.td_)("cluster").append("text");for(let m=0;m`.label {\n font-family: ${r.fontFamily};\n color: ${r.nodeTextColor||r.textColor};\n }\n .cluster-label text {\n fill: ${r.titleColor};\n }\n .cluster-label span,p {\n color: ${r.titleColor};\n }\n\n .label text,span,p {\n fill: ${r.nodeTextColor||r.textColor};\n color: ${r.nodeTextColor||r.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${r.mainBkg};\n stroke: ${r.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${r.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${r.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${r.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${r.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${r.edgeLabelBackground};\n fill: ${r.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${((r,f)=>{const _=P.Z,$=_(r,"r"),h=_(r,"g"),u=_(r,"b");return I.Z($,h,u,.5)})(r.edgeLabelBackground)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${r.clusterBkg};\n stroke: ${r.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${r.titleColor};\n }\n\n .cluster span,p {\n color: ${r.titleColor};\n }\n /* .cluster div {\n color: ${r.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${r.fontFamily};\n font-size: 12px;\n background: ${r.tertiaryColor};\n border: 1px solid ${r.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${r.textColor};\n }\n`},6938:(K,B,c)=>{c.d(B,{a:()=>l,b:()=>P,c:()=>b,d:()=>g,e:()=>D,f:()=>S,g:()=>I});var v=c(6780),A=c(8080);const g=(n,e)=>{const o=n.append("rect");if(o.attr("x",e.x),o.attr("y",e.y),o.attr("fill",e.fill),o.attr("stroke",e.stroke),o.attr("width",e.width),o.attr("height",e.height),e.name&&o.attr("name",e.name),void 0!==e.rx&&o.attr("rx",e.rx),void 0!==e.ry&&o.attr("ry",e.ry),void 0!==e.attrs)for(const p in e.attrs)o.attr(p,e.attrs[p]);return void 0!==e.class&&o.attr("class",e.class),o},l=(n,e)=>{g(n,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},S=(n,e)=>{const o=e.text.replace(A.J," "),p=n.append("text");p.attr("x",e.x),p.attr("y",e.y),p.attr("class","legend"),p.style("text-anchor",e.anchor),void 0!==e.class&&p.attr("class",e.class);const C=p.append("tspan");return C.attr("x",e.x+2*e.textMargin),C.text(o),p},b=(n,e,o,p)=>{const C=n.append("image");C.attr("x",e),C.attr("y",o);const U=(0,v.N)(p);C.attr("xlink:href",U)},P=(n,e,o,p)=>{const C=n.append("use");C.attr("x",e),C.attr("y",o);const U=(0,v.N)(p);C.attr("xlink:href",`#${U}`)},I=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),D=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0})}}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/index.html b/pkg/apiserver-impl/ui/index.html index c63d4d2284..63ea5a7d7e 100644 --- a/pkg/apiserver-impl/ui/index.html +++ b/pkg/apiserver-impl/ui/index.html @@ -11,6 +11,6 @@
Loading, please wait...
- + \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/main.98d110f57059b473.js b/pkg/apiserver-impl/ui/main.81350eee110c4ffc.js similarity index 99% rename from pkg/apiserver-impl/ui/main.98d110f57059b473.js rename to pkg/apiserver-impl/ui/main.81350eee110c4ffc.js index dd32c08ce4..5ad89a75b4 100644 --- a/pkg/apiserver-impl/ui/main.98d110f57059b473.js +++ b/pkg/apiserver-impl/ui/main.81350eee110c4ffc.js @@ -1 +1 @@ -(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[179],{6780:(rt,de)=>{"use strict";de.N=void 0;var j=/^([^\w]*)(javascript|data|vbscript)/im,J=/&#(\w+)(^\w|;)?/g,re=/&(newline|tab);/gi,q=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,z=/^.+(:|:)/gim,ae=[".","/"];de.N=function X(S){var oe=function _e(S){return S.replace(J,function(oe,Oe){return String.fromCharCode(Oe)})}(S||"").replace(re,"").replace(q,"").trim();if(!oe)return"about:blank";if(function me(S){return ae.indexOf(S[0])>-1}(oe))return oe;var Oe=oe.match(z);return Oe&&j.test(Oe[0])?"about:blank":oe}},300:(rt,de,M)=>{"use strict";function j(n){return"function"==typeof n}function J(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const re=J(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function q(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class z{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(j(i))try{i()}catch(o){t=o instanceof re?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{_e(o)}catch(a){t=t??[],a instanceof re?t=[...t,...a.errors]:t.push(a)}}if(t)throw new re(t)}}add(t){var e;if(t&&t!==this)if(this.closed)_e(t);else{if(t instanceof z){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&q(e,t)}remove(t){const{_finalizers:e}=this;e&&q(e,t),t instanceof z&&t._removeParent(this)}}z.EMPTY=(()=>{const n=new z;return n.closed=!0,n})();const ae=z.EMPTY;function me(n){return n instanceof z||n&&"closed"in n&&j(n.remove)&&j(n.add)&&j(n.unsubscribe)}function _e(n){j(n)?n():n.unsubscribe()}const X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},S={setTimeout(n,t,...e){const{delegate:i}=S;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=S;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function oe(n){S.setTimeout(()=>{const{onUnhandledError:t}=X;if(!t)throw n;t(n)})}function Oe(){}const Ne=pe("C",void 0,void 0);function pe(n,t,e){return{kind:n,value:t,error:e}}let he=null;function Ue(n){if(X.useDeprecatedSynchronousErrorHandling){const t=!he;if(t&&(he={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=he;if(he=null,e)throw i}}else n()}class pt extends z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,me(t)&&t.add(this)):this.destination=De}static create(t,e,i){return new dn(t,e,i)}next(t){this.isStopped?We(function Y(n){return pe("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?We(function be(n){return pe("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?We(Ne,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Tt=Function.prototype.bind;function cn(n,t){return Tt.call(n,t)}class Fe{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Qn(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Qn(i)}else Qn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Qn(e)}}}class dn extends pt{constructor(t,e,i){let r;if(super(),j(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&X.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&cn(t.next,o),error:t.error&&cn(t.error,o),complete:t.complete&&cn(t.complete,o)}):r=t}this.destination=new Fe(r)}}function Qn(n){X.useDeprecatedSynchronousErrorHandling?function Xe(n){X.useDeprecatedSynchronousErrorHandling&&he&&(he.errorThrown=!0,he.error=n)}(n):oe(n)}function We(n,t){const{onStoppedNotification:e}=X;e&&S.setTimeout(()=>e(n,t))}const De={closed:!0,next:Oe,error:function Et(n){throw n},complete:Oe},xt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ge(n){return n}let at=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function Ut(n){return n&&n instanceof pt||function It(n){return n&&j(n.next)&&j(n.error)&&j(n.complete)}(n)&&me(n)}(e)?e:new dn(e,i,r);return Ue(()=>{const{operator:a,source:c}=this;o.add(a?a.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Pn(i))((r,o)=>{const a=new dn({next:c=>{try{e(c)}catch(u){o(u),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[xt](){return this}pipe(...e){return function zt(n){return 0===n.length?Ge:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Pn(e))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return n.create=t=>new n(t),n})();function Pn(n){var t;return null!==(t=n??X.Promise)&&void 0!==t?t:Promise}const yn=J(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ae=(()=>{class n extends at{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Jn(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new yn}next(e){Ue(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ue(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ue(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?ae:(this.currentObservers=null,o.push(e),new z(()=>{this.currentObservers=null,q(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new at;return e.source=this,e}}return n.create=(t,e)=>new Jn(t,e),n})();class Jn extends Ae{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:ae}}function it(n){return t=>{if(function ut(n){return j(n?.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function lt(n,t,e,i,r){return new Cn(n,t,e,i,r)}class Cn extends pt{constructor(t,e,i,r,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(c){try{e(c)}catch(u){t.error(u)}}:super._next,this._error=r?function(c){try{r(c)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Vn(n,t){return it((e,i)=>{let r=0;e.subscribe(lt(i,o=>{i.next(n.call(t,o,r++))}))})}function Ii(n){return this instanceof Ii?(this.v=n,this):new Ii(n)}function Jo(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function kr(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(a){return new Promise(function(c,u){!function r(o,a,c,u){Promise.resolve(u).then(function(m){o({value:m,done:c})},a)}(c,u,(a=n[o](a)).done,a.value)})}}}const Aa=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function ul(n){return j(n?.then)}function bd(n){return j(n[xt])}function hl(n){return Symbol.asyncIterator&&j(n?.[Symbol.asyncIterator])}function ml(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ta=function ur(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ia(n){return j(n?.[ta])}function Fa(n){return function xs(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(F){i[F]&&(r[F]=function(O){return new Promise(function(V,U){o.push([F,O,V,U])>1||c(F,O)})})}function c(F,O){try{!function u(F){F.value instanceof Ii?Promise.resolve(F.value.v).then(m,g):C(o[0][2],F)}(i[F](O))}catch(V){C(o[0][3],V)}}function m(F){c("next",F)}function g(F){c("throw",F)}function C(F,O){F(O),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield Ii(e.read());if(r)return yield Ii(void 0);yield yield Ii(i)}}finally{e.releaseLock()}})}function fl(n){return j(n?.getReader)}function ii(n){if(n instanceof at)return n;if(null!=n){if(bd(n))return function Lt(n){return new at(t=>{const e=n[xt]();if(j(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Aa(n))return function pl(n){return new at(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,oe)})}(n);if(hl(n))return Di(n);if(Ia(n))return function ws(n){return new at(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(fl(n))return function yd(n){return Di(Fa(n))}(n)}throw ml(n)}function Di(n){return new at(t=>{(function Fi(n,t){var e,i,r,o;return function _n(n,t,e,i){return new(e||(e=Promise))(function(o,a){function c(g){try{m(i.next(g))}catch(C){a(C)}}function u(g){try{m(i.throw(g))}catch(C){a(C)}}function m(g){g.done?o(g.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(g.value).then(c,u)}m((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Jo(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function lo(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function ir(n,t,e=1/0){return j(t)?ir((i,r)=>Vn((o,a)=>t(i,o,r,a))(ii(n(i,r))),e):("number"==typeof t&&(e=t),it((i,r)=>function di(n,t,e,i,r,o,a,c){const u=[];let m=0,g=0,C=!1;const F=()=>{C&&!u.length&&!m&&t.complete()},O=U=>m{o&&t.next(U),m++;let ie=!1;ii(e(U,g++)).subscribe(lt(t,ue=>{r?.(ue),o?O(ue):t.next(ue)},()=>{ie=!0},void 0,()=>{if(ie)try{for(m--;u.length&&mV(ue)):V(ue)}F()}catch(ue){t.error(ue)}}))};return n.subscribe(lt(t,O,()=>{C=!0,F()})),()=>{c?.()}}(i,r,n,e)))}function gl(n=1/0){return ir(Ge,n)}const na=new at(n=>n.complete());function _l(n){return n&&j(n.schedule)}function Fo(n){return n[n.length-1]}function ia(n){return j(Fo(n))?n.pop():void 0}function co(n){return _l(Fo(n))?n.pop():void 0}function bl(n,t=0){return it((e,i)=>{e.subscribe(lt(i,r=>lo(i,n,()=>i.next(r),t),()=>lo(i,n,()=>i.complete(),t),r=>lo(i,n,()=>i.error(r),t)))})}function Oo(n,t=0){return it((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function xl(n,t){if(!n)throw new Error("Iterable cannot be null");return new at(e=>{lo(e,t,()=>{const i=n[Symbol.asyncIterator]();lo(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function hr(n,t){return t?function ra(n,t){if(null!=n){if(bd(n))return function yl(n,t){return ii(n).pipe(Oo(t),bl(t))}(n,t);if(Aa(n))return function hc(n,t){return new at(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(ul(n))return function vl(n,t){return ii(n).pipe(Oo(t),bl(t))}(n,t);if(hl(n))return xl(n,t);if(Ia(n))return function Cl(n,t){return new at(e=>{let i;return lo(e,t,()=>{i=n[ta](),lo(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>j(i?.return)&&i.return()})}(n,t);if(fl(n))return function mc(n,t){return xl(Fa(n),t)}(n,t)}throw ml(n)}(n,t):ii(n)}function on(...n){const t=co(n),e=function uc(n,t){return"number"==typeof Fo(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?ii(i[0]):gl(e)(hr(i,t)):na}function Ds(n={}){const{connector:t=(()=>new Ae),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let a,c,u,m=0,g=!1,C=!1;const F=()=>{c?.unsubscribe(),c=void 0},O=()=>{F(),a=u=void 0,g=C=!1},V=()=>{const U=a;O(),U?.unsubscribe()};return it((U,ie)=>{m++,!C&&!g&&F();const ue=u=u??t();ie.add(()=>{m--,0===m&&!C&&!g&&(c=Ts(V,r))}),ue.subscribe(ie),!a&&m>0&&(a=new dn({next:Le=>ue.next(Le),error:Le=>{C=!0,F(),c=Ts(O,e,Le),ue.error(Le)},complete:()=>{g=!0,F(),c=Ts(O,i),ue.complete()}}),ii(U).subscribe(a))})(o)}}function Ts(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new dn({next:()=>{i.unsubscribe(),n()}});return ii(t(...e)).subscribe(i)}function Hn(n){for(let t in n)if(n[t]===Hn)return t;throw Error("Could not find renamed property on target object.")}function Oa(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Un(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Un).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function es(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Oi=Hn({__forward_ref__:Hn});function Wt(n){return n.__forward_ref__=Wt,n.toString=function(){return Un(this())},n}function Pt(n){return Po(n)?n():n}function Po(n){return"function"==typeof n&&n.hasOwnProperty(Oi)&&n.__forward_ref__===Wt}function Pa(n){return n&&!!n.\u0275providers}const Ti="https://g.co/ng/security#xss";class Ce extends Error{constructor(t,e){super(Ra(t,e)),this.code=t}}function Ra(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function _t(n){return"string"==typeof n?n:null==n?"":String(n)}function ks(n,t){throw new Ce(-201,!1)}function Sr(n,t){null==n&&function kn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function B(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Se(n){return{providers:n.providers||[],imports:n.imports||[]}}function An(n){return yi(n,pi)||yi(n,gr)}function yi(n,t){return n.hasOwnProperty(t)?n[t]:null}function Lo(n){return n&&(n.hasOwnProperty(pr)||n.hasOwnProperty(Qf))?n[pr]:null}const pi=Hn({\u0275prov:Hn}),pr=Hn({\u0275inj:Hn}),gr=Hn({ngInjectableDef:Hn}),Qf=Hn({ngInjectorDef:Hn});var Kt=(()=>((Kt=Kt||{})[Kt.Default=0]="Default",Kt[Kt.Host=1]="Host",Kt[Kt.Self=2]="Self",Kt[Kt.SkipSelf=4]="SkipSelf",Kt[Kt.Optional=8]="Optional",Kt))();let Ou;function Wr(n){const t=Ou;return Ou=n,t}function wd(n,t,e){const i=An(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Kt.Optional?null:void 0!==t?t:void ks(Un(n))}const Fn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),bc={},Td="__NG_DI_FLAG__",Ed="ngTempTokenPath",Md="ngTokenPath",Pu=/\n/gm,sa="\u0275",Dl="__source";let Ss;function uo(n){const t=Ss;return Ss=n,t}function ns(n,t=Kt.Default){if(void 0===Ss)throw new Ce(-203,!1);return null===Ss?wd(n,void 0,t):Ss.get(n,t&Kt.Optional?null:void 0,t)}function te(n,t=Kt.Default){return(function No(){return Ou}()||ns)(Pt(n),t)}function qn(n,t=Kt.Default){return te(n,rr(t))}function rr(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Tl(n){const t=[];for(let e=0;e((Li=Li||{})[Li.OnPush=0]="OnPush",Li[Li.Default=1]="Default",Li))(),ho=(()=>{return(n=ho||(ho={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",ho;var n})();const is={},Sn=[],kd=Hn({\u0275cmp:Hn}),vc=Hn({\u0275dir:Hn}),Is=Hn({\u0275pipe:Hn}),Sd=Hn({\u0275mod:Hn}),mo=Hn({\u0275fac:Hn}),Cc=Hn({__NG_ELEMENT_ID__:Hn});let Ru=0;function et(n){return As(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Li.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Sn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ho.Emulated,id:"c"+Ru++,styles:n.styles||Sn,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,a=n.features;return r.inputs=la(n.inputs,i),r.outputs=la(n.outputs),a&&a.forEach(c=>c(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Lu).filter(fm):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(_r).filter(fm):null,r})}function Lu(n){return Wn(n)||li(n)}function fm(n){return null!==n}function sn(n){return As(()=>({type:n.type,bootstrap:n.bootstrap||Sn,declarations:n.declarations||Sn,imports:n.imports||Sn,exports:n.exports||Sn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function la(n,t){if(null==n)return is;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const xe=et;function Gr(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Wn(n){return n[kd]||null}function li(n){return n[vc]||null}function _r(n){return n[Is]||null}const Os=0,gt=1,un=2,ri=3,Bo=4,Ml=5,Ir=6,kl=7,ei=8,Sl=9,Ad=10,vn=11,pm=12,ca=13,Nu=14,xc=15,br=16,Na=17,Al=18,Ps=19,wc=20,Bu=21,ui=22,gm=1,_m=2,Dc=7,Vu=8,Tc=9,qr=10;function Yr(n){return Array.isArray(n)&&"object"==typeof n[gm]}function rs(n){return Array.isArray(n)&&!0===n[gm]}function bm(n){return 0!=(4&n.flags)}function Id(n){return n.componentOffset>-1}function Fd(n){return 1==(1&n.flags)}function Co(n){return null!==n.template}function C_(n){return 0!=(256&n[un])}function Il(n,t){return n.hasOwnProperty(mo)?n[mo]:null}class E_{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ci(){return Hu}function Hu(n){return n.type.prototype.ngOnChanges&&(n.setInput=k_),M_}function M_(){const n=vm(this),t=n?.current;if(t){const e=n.previous;if(e===is)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function k_(n,t,e,i){const r=this.declaredInputs[e],o=vm(n)||function lp(n,t){return n[ap]=t}(n,{previous:is,current:null}),a=o.current||(o.current={}),c=o.previous,u=c[r];a[r]=new E_(u&&u.currentValue,t,c===is),n[i]=t}ci.ngInherit=!0;const ap="__ngSimpleChanges__";function vm(n){return n[ap]||null}const fo=function(n,t,e){},po="svg";function Zi(n){for(;Array.isArray(n);)n=n[Os];return n}function Ec(n,t){return Zi(t[n])}function Kr(n,t){return Zi(t[n.index])}function Od(n,t){return n.data[t]}function Ba(n,t){return n[t]}function Xr(n,t){const e=t[n];return Yr(e)?e:e[Os]}function Va(n){return 64==(64&n[un])}function Qr(n,t){return null==t?null:n[t]}function Pd(n){n[Al]=0}function Vi(n,t){n[Ml]+=t;let e=n,i=n[ri];for(;null!==i&&(1===t&&1===e[Ml]||-1===t&&0===e[Ml]);)i[Ml]+=t,e=i,i=i[ri]}const kt={lFrame:A_(null),bindingsEnabled:!0};function Vo(){return kt.bindingsEnabled}function Te(){return kt.lFrame.lView}function Tn(){return kt.lFrame.tView}function He(n){return kt.lFrame.contextLView=n,n[ei]}function je(n){return kt.lFrame.contextLView=null,n}function yr(){let n=Gu();for(;null!==n&&64===n.type;)n=n.parent;return n}function Gu(){return kt.lFrame.currentTNode}function Ls(n,t){const e=kt.lFrame;e.currentTNode=n,e.isParent=t}function wm(){return kt.lFrame.isParent}function Zu(){kt.lFrame.isParent=!1}function Fr(){const n=kt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Nd(){return kt.lFrame.bindingIndex++}function $a(n){const t=kt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function S_(n,t){const e=kt.lFrame;e.bindingIndex=e.bindingRootIndex=n,Qu(t)}function Qu(n){kt.lFrame.currentDirectiveIndex=n}function Bd(n){const t=kt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Vd(){return kt.lFrame.currentQueryIndex}function Ju(n){kt.lFrame.currentQueryIndex=n}function Sc(n){const t=n[gt];return 2===t.type?t.declTNode:1===t.type?n[Ir]:null}function Dm(n,t,e){if(e&Kt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&Kt.Host||(r=Sc(o),null===r||(o=o[xc],10&r.type))););if(null===r)return!1;t=r,n=o}const i=kt.lFrame=Hd();return i.currentTNode=t,i.lView=n,!0}function eh(n){const t=Hd(),e=n[gt];kt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Hd(){const n=kt.lFrame,t=null===n?null:n.child;return null===t?A_(n):t}function A_(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function up(){const n=kt.lFrame;return kt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Ho=up;function Ac(){const n=up();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function qi(){return kt.lFrame.selectedIndex}function da(n){kt.lFrame.selectedIndex=n}function gi(){const n=kt.lFrame;return Od(n.tView,n.selectedIndex)}function ua(){kt.lFrame.currentNamespace=po}function $d(){!function Tm(){kt.lFrame.currentNamespace=null}()}function jd(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[u]<0&&(n[Al]+=65536),(c>11>16&&(3&n[un])===t){n[un]+=2048,fo(4,c,o);try{o.call(c)}finally{fo(5,c,o)}}}else{fo(4,c,o);try{o.call(c)}finally{fo(5,c,o)}}}const Ua=-1;class Fl{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Oc(n,t,e){let i=0;for(;it){a=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[xc],e--;return i}let rh=!0;function Nc(n){const t=rh;return rh=n,t}const Sm=255,_p=5;let I_=0;const as={};function Bc(n,t){const e=Am(n,t);if(-1!==e)return e;const i=t[gt];i.firstCreatePass&&(n.injectorIndex=t.length,oh(i.data,n),oh(t,null),oh(i.blueprint,null));const r=sh(n,t),o=n.injectorIndex;if(Rc(r)){const a=Zd(r),c=Lc(r,t),u=c[gt].data;for(let m=0;m<8;m++)t[o+m]=c[a+m]|u[a+m]}return t[o+8]=r,o}function oh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Am(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function sh(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=hh(r),null===i)return Ua;if(e++,r=r[xc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Ua}function ah(n,t,e){!function F_(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Cc)&&(i=e[Cc]),null==i&&(i=e[Cc]=I_++);const r=i&Sm;t.data[n+(r>>_p)]|=1<=0?t&Sm:Rm:t}(e);if("function"==typeof o){if(!Dm(t,n,i))return i&Kt.Host?Im(r,0,i):Fm(t,e,i,r);try{const a=o(i);if(null!=a||i&Kt.Optional)return a;ks()}finally{Ho()}}else if("number"==typeof o){let a=null,c=Am(n,t),u=Ua,m=i&Kt.Host?t[br][Ir]:null;for((-1===c||i&Kt.SkipSelf)&&(u=-1===c?sh(n,t):t[c+8],u!==Ua&&dh(i,!1)?(a=t[gt],c=Zd(u),t=Lc(u,t)):c=-1);-1!==c;){const g=t[gt];if(Pm(o,c,g.data)){const C=Ol(c,t,e,a,i,m);if(C!==as)return C}u=t[c+8],u!==Ua&&dh(i,t[gt].data[c+8]===m)&&Pm(o,c,t)?(a=g,c=Zd(u),t=Lc(u,t)):c=-1}}return r}function Ol(n,t,e,i,r,o){const a=t[gt],c=a.data[n+8],g=Pl(c,a,e,null==i?Id(c)&&rh:i!=a&&0!=(3&c.type),r&Kt.Host&&o===c);return null!==g?Ga(t,a,g,c):as}function Pl(n,t,e,i,r){const o=n.providerIndexes,a=t.data,c=1048575&o,u=n.directiveStart,g=o>>20,F=r?c+g:n.directiveEnd;for(let O=i?c:c+g;O=u&&V.type===e)return O}if(r){const O=a[u];if(O&&Co(O)&&O.type===e)return u}return null}function Ga(n,t,e,i){let r=n[e];const o=t.data;if(function Em(n){return n instanceof Fl}(r)){const a=r;a.resolving&&function Es(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Ce(-200,`Circular dependency in DI detected for ${n}${e}`)}(function wn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():_t(n)}(o[e]));const c=Nc(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?Wr(a.injectImpl):null;Dm(n,i,Kt.Default);try{r=n[e]=a.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function mp(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const a=Hu(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==u&&Wr(u),Nc(c),a.resolving=!1,Ho()}}return r}function Pm(n,t,e){return!!(e[t+(n>>_p)]&1<{const t=n.prototype.constructor,e=t[mo]||Ll(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[mo]||Ll(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Ll(n){return Po(n)?()=>{const t=Ll(Pt(n));return t&&t()}:Il(n)}function hh(n){const t=n[gt],e=t.type;return 2===e?t.declTNode:1===e?n[Ir]:null}function go(n){return function lh(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function mh(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return c.annotation=a,c;function c(u,m,g){const C=u.hasOwnProperty(Za)?u[Za]:Object.defineProperty(u,Za,{value:[]})[Za];for(;C.length<=g;)C.push(null);return(C[g]=C[g]||[]).push(a),u}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ye{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=B({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Or(n,t){n.forEach(e=>Array.isArray(e)?Or(e,t):t(e))}function ls(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Vl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Hl(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function qd(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Yd(n,t){const e=wo(n,t);if(e>=0)return n[1|e]}function wo(n,t){return function zc(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),a=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),ds=yc(qa("Optional"),8),zl=yc(qa("SkipSelf"),4);var Jr=(()=>((Jr=Jr||{})[Jr.Important=1]="Important",Jr[Jr.DashCase=2]="DashCase",Jr))();const Ya=new Map;let Np=0;const xh="__ngContext__";function or(n,t){Yr(t)?(n[xh]=t[wc],function Ki(n){Ya.set(n[wc],n)}(t)):n[xh]=t}let Th;function Zc(n,t){return Th(n,t)}function $o(n){const t=n[ri];return rs(t)?t[ri]:t}function eu(n){return Eh(n[ca])}function tu(n){return Eh(n[Bo])}function Eh(n){for(;null!==n&&!rs(n);)n=n[Bo];return n}function Wl(n,t,e,i,r){if(null!=i){let o,a=!1;rs(i)?o=i:Yr(i)&&(a=!0,i=i[Os]);const c=Zi(i);0===n&&null!==e?null==r?Qe(t,e,c):Ee(t,e,c,r||null,!0):1===n&&null!==e?Ee(t,e,c,r||null,!0):2===n?function ru(n,t,e){const i=qt(n,t);i&&function Q(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,c,a):3===n&&t.destroyNode(c),null!=o&&function Qm(n,t,e,i,r){const o=e[Dc];o!==Zi(e)&&Wl(t,n,i,o,r);for(let c=qr;c0&&(n[e-1][Bo]=i[Bo]);const o=Vl(n,qr+t);!function kh(n,t){qc(n,t,t[vn],2,null,null),t[Os]=null,t[Ir]=null}(i[gt],i);const a=o[Ps];null!==a&&a.detachView(o[gt]),i[ri]=null,i[Bo]=null,i[un]&=-65}return i}function x(n,t){if(!(128&t[un])){const e=t[vn];e.destroyNode&&qc(n,t,e,3,null,null),function Km(n){let t=n[ca];if(!t)return k(n[gt],n);for(;t;){let e=null;if(Yr(t))e=t[ca];else{const i=t[qr];i&&(e=i)}if(!e){for(;t&&!t[Bo]&&t!==n;)Yr(t)&&k(t[gt],t),t=t[ri];null===t&&(t=n),Yr(t)&&k(t[gt],t),e=t&&t[Bo]}t=e}}(t)}}function k(n,t){if(!(128&t[un])){t[un]&=-65,t[un]|=128,function H(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=a]():i[r=-a].unsubscribe(),o+=2}else{const a=i[r=e[o+1]];e[o].call(a)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=n.data[i.directiveStart+r];if(o===ho.None||o===ho.Emulated)return null}return Kr(i,e)}}(n,t.parent,e)}function Ee(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Qe(n,t,e){n.appendChild(t,e)}function Me(n,t,e,i,r){null!==i?Ee(n,t,e,i,r):Qe(n,t,e)}function qt(n,t){return n.parentNode(t)}function pn(n,t,e){return St(n,t,e)}let Pr,ql,Gp,ef,St=function an(n,t,e){return 40&n.type?Kr(n,e):null};function Ei(n,t,e,i){const r=ne(n,i,t),o=t[vn],c=pn(i.parent||t[Ir],i,t);if(null!=r)if(Array.isArray(e))for(let u=0;un,createScript:n=>n,createScriptURL:n=>n})}catch{}return ql}()?.createHTML(n)||n}function Zp(n){return function Mi(){if(void 0===ef&&(ef=null,Fn.trustedTypes))try{ef=Fn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return ef}()?.createHTML(n)||n}class Yc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ti})`}}class qp extends Yc{getTypeName(){return"HTML"}}class ya extends Yc{getTypeName(){return"Style"}}class au extends Yc{getTypeName(){return"Script"}}class to extends Yc{getTypeName(){return"URL"}}class Ih extends Yc{getTypeName(){return"ResourceURL"}}function no(n){return n instanceof Yc?n.changingThisBreaksApplicationSecurity:n}function Uo(n,t){const e=function Av(n){return n instanceof Yc&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Ti})`)}return e===t}class Fv{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(su(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class tf{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=su(t),e}}const Iw=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Fh(n){return(n=String(n)).match(Iw)?n:"unsafe:"+n}function Xa(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Oh(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const U_=Xa("area,br,col,hr,img,wbr"),W_=Xa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),G_=Xa("rp,rt"),Z_=Oh(U_,Oh(W_,Xa("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Oh(G_,Xa("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Oh(G_,W_)),nf=Xa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),q_=Oh(nf,Xa("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xa("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Lv=Xa("script,style,template");class Nv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Z_.hasOwnProperty(e))return this.sanitizedSomething=!0,!Lv.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Z_.hasOwnProperty(e)&&!U_.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Y_(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Bv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vv=/([^\#-~ |!])/g;function Y_(n){return n.replace(/&/g,"&").replace(Bv,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let js;function Ph(n,t){let e=null;try{js=js||function Xp(n){const t=new tf(n);return function Ov(){try{return!!(new window.DOMParser).parseFromString(su(""),"text/html")}catch{return!1}}()?new Fv(t):t}(n);let i=t?String(t):"";e=js.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=js.getInertBodyElement(i)}while(i!==o);return su((new Nv).sanitizeChildren(lu(e)||e))}finally{if(e){const i=lu(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function lu(n){return"content"in n&&function Hv(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var zn=(()=>((zn=zn||{})[zn.NONE=0]="NONE",zn[zn.HTML=1]="HTML",zn[zn.STYLE=2]="STYLE",zn[zn.SCRIPT=3]="SCRIPT",zn[zn.URL=4]="URL",zn[zn.RESOURCE_URL=5]="RESOURCE_URL",zn))();function K_(n){const t=Xc();return t?Zp(t.sanitize(zn.HTML,n)||""):Uo(n,"HTML")?Zp(no(n)):Ph(function $_(){return void 0!==Gp?Gp:typeof document<"u"?document:void 0}(),_t(n))}function Jp(n){const t=Xc();return t?t.sanitize(zn.URL,n)||"":Uo(n,"URL")?no(n):Fh(_t(n))}function Xc(){const n=Te();return n&&n[pm]}const J_=new ye("ENVIRONMENT_INITIALIZER"),rf=new ye("INJECTOR",-1),eb=new ye("INJECTOR_DEF_TYPES");class sf{get(t,e=bc){if(e===bc){const i=new Error(`NullInjectorError: No provider for ${Un(t)}!`);throw i.name="NullInjectorError",i}return e}}function ng(...n){return{\u0275providers:ig(0,n),\u0275fromNgModule:!0}}function ig(n,...t){const e=[],i=new Set;let r;return Or(t,o=>{const a=o;af(a,e,[],i)&&(r||(r=[]),r.push(a))}),void 0!==r&&tb(r,e),e}function tb(n,t){for(let e=0;e{t.push(o)})}}function af(n,t,e,i){if(!(n=Pt(n)))return!1;let r=null,o=Lo(n);const a=!o&&Wn(n);if(o||a){if(a&&!a.standalone)return!1;r=n}else{const u=n.ngModule;if(o=Lo(u),!o)return!1;r=u}const c=i.has(r);if(a){if(c)return!1;if(i.add(r),a.dependencies){const u="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const m of u)af(m,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!c){let m;i.add(r);try{Or(o.imports,g=>{af(g,t,e,i)&&(m||(m=[]),m.push(g))})}finally{}void 0!==m&&tb(m,t)}if(!c){const m=Il(r)||(()=>new r);t.push({provide:r,useFactory:m,deps:Sn},{provide:eb,useValue:r,multi:!0},{provide:J_,useValue:()=>te(r),multi:!0})}const u=o.providers;null==u||c||lf(u,g=>{t.push(g)})}}return r!==n&&void 0!==n.providers}function lf(n,t){for(let e of n)Pa(e)&&(e=e.\u0275providers),Array.isArray(e)?lf(e,t):t(e)}const Wv=Hn({provide:String,useValue:Hn});function cf(n){return null!==n&&"object"==typeof n&&Wv in n}function Kl(n){return"function"==typeof n}const Rh=new ye("Set Injector scope."),Qc={},rb={};let df;function uf(){return void 0===df&&(df=new sf),df}class Jc{}class og extends Jc{get destroyed(){return this._destroyed}constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sg(t,a=>this.processProvider(a)),this.records.set(rf,cu(void 0,this)),r.has("environment")&&this.records.set(Jc,cu(void 0,this));const o=this.records.get(Rh);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(eb.multi,Sn,Kt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=uo(this),i=Wr(void 0);try{return t()}finally{uo(e),Wr(i)}}get(t,e=bc,i=Kt.Default){this.assertNotDestroyed(),i=rr(i);const r=uo(this),o=Wr(void 0);try{if(!(i&Kt.SkipSelf)){let c=this.records.get(t);if(void 0===c){const u=function qv(n){return"function"==typeof n||"object"==typeof n&&n instanceof ye}(t)&&An(t);c=u&&this.injectableDefInScope(u)?cu(hf(t),Qc):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(i&Kt.Self?uf():this.parent).get(t,e=i&Kt.Optional&&e===bc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Ed]=a[Ed]||[]).unshift(Un(t)),r)throw a;return function ep(n,t,e,i){const r=n[Ed];throw t[Dl]&&r.unshift(t[Dl]),n.message=function hm(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==sa?n.slice(2):n;let r=Un(t);if(Array.isArray(t))r=t.map(Un).join(" -> ");else if("object"==typeof t){let o=[];for(let a in t)if(t.hasOwnProperty(a)){let c=t[a];o.push(a+":"+("string"==typeof c?JSON.stringify(c):Un(c)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(Pu,"\n ")}`}("\n"+n.message,r,e,i),n[Md]=r,n[Ed]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{Wr(o),uo(r)}}resolveInjectorInitializers(){const t=uo(this),e=Wr(void 0);try{const i=this.get(J_.multi,Sn,Kt.Self);for(const r of i)r()}finally{uo(t),Wr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(Un(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ce(205,!1)}processProvider(t){let e=Kl(t=Pt(t))?t:Pt(t&&t.provide);const i=function mf(n){return cf(n)?cu(void 0,n.useValue):cu(ob(n),Qc)}(t);if(Kl(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=cu(void 0,Qc,!0),r.factory=()=>Tl(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Qc&&(e.value=rb,e.value=e.factory()),"object"==typeof e.value&&e.value&&function du(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Pt(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function hf(n){const t=An(n),e=null!==t?t.factory:Il(n);if(null!==e)return e;if(n instanceof ye)throw new Ce(204,!1);if(n instanceof Function)return function Gv(n){const t=n.length;if(t>0)throw Hl(t,"?"),new Ce(204,!1);const e=function Ri(n){const t=n&&(n[pi]||n[gr]);return t?(function Ar(n){if(n.hasOwnProperty("name"))return n.name;(""+n).match(/^function\s*([^\s(]+)/)}(n),t):null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Ce(204,!1)}function ob(n,t,e){let i;if(Kl(n)){const r=Pt(n);return Il(r)||hf(r)}if(cf(n))i=()=>Pt(n.useValue);else if(function rg(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Tl(n.deps||[]));else if(function nb(n){return!(!n||!n.useExisting)}(n))i=()=>te(Pt(n.useExisting));else{const r=Pt(n&&(n.useClass||n.provide));if(!function Zv(n){return!!n.deps}(n))return Il(r)||hf(r);i=()=>new r(...Tl(n.deps))}return i}function cu(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function sg(n,t){for(const e of n)Array.isArray(e)?sg(e,t):e&&Pa(e)?sg(e.\u0275providers,t):t(e)}class Yv{}class sb{}class Kv{resolveComponentFactory(t){throw function ab(n){const t=Error(`No component factory found for ${Un(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let uu=(()=>{class n{}return n.NULL=new Kv,n})();function s(){return d(yr(),Te())}function d(n,t){return new h(Kr(n,t))}let h=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=s,n})();function p(n){return n instanceof h?n.nativeElement:n}class b{}let w=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function D(){const n=Te(),e=Xr(yr().index,n);return(Yr(e)?e:n)[vn]}(),n})(),I=(()=>{class n{}return n.\u0275prov=B({token:n,providedIn:"root",factory:()=>null}),n})();class P{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const R=new P("15.2.2"),$={},ee="ngOriginalError";function le(n){return n[ee]}class ze{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&le(t);for(;e&&le(e);)e=le(e);return e||null}}function G(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const Ke="ng-template";function ve(n,t,e){let i=0;for(;io?"":r[C+1].toLowerCase();const O=8&i?F:null;if(O&&-1!==G(O,m,0)||2&i&&m!==F){if(ht(i))return!1;a=!0}}}}else{if(!a&&!ht(i)&&!ht(u))return!1;if(a&&ht(u))continue;a=!1,i=u|1&i}}return ht(i)||a}function ht(n){return 0==(1&n)}function $t(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+c+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!ht(a)&&(t+=Ln(o,r),r=""),i=a,o=o||!ht(i);e++}return""!==r&&(t+=Ln(o,r)),t}const qe={};function T(n){ki(Tn(),Te(),qi()+n,!1)}function ki(n,t,e,i){if(!i)if(3==(3&t[un])){const o=n.preOrderCheckHooks;null!==o&&ja(t,o,e)}else{const o=n.preOrderHooks;null!==o&&th(t,o,0,e)}da(e)}function Bw(n,t=null,e=null,i){const r=Vw(n,t,e,i);return r.resolveInjectorInitializers(),r}function Vw(n,t=null,e=null,i,r=new Set){const o=[e||Sn,ng(n)];return i=i||("object"==typeof n?void 0:Un(n)),new og(o,t||uf(),i||null,r)}let Wo=(()=>{class n{static create(e,i){if(Array.isArray(e))return Bw({name:""},i,e,"");{const r=e.name??"";return Bw({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=bc,n.NULL=new sf,n.\u0275prov=B({token:n,providedIn:"any",factory:()=>te(rf)}),n.__NG_ELEMENT_ID__=-1,n})();function E(n,t=Kt.Default){const e=Te();return null===e?te(n,t):Om(yr(),e,Pt(n),t)}function ag(){throw new Error("invalid")}function Gw(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;iui&&ki(n,t,ui,!1),fo(a?2:0,r),e(i,r)}finally{da(o),fo(a?3:1,r)}}function r0(n,t,e){if(bm(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=c&&a.push(c),a.push(e,i,o)}}(n,t,i,lg(n,e,r.hostVars,qe),r)}function Ql(n,t,e,i,r,o){const a=Kr(n,t);!function d0(n,t,e,i,r,o,a){if(null==o)n.removeAttribute(t,r,e);else{const c=null==a?_t(o):a(o,i||"",r);n.setAttribute(t,r,c,e)}}(t[vn],a,o,n.value,e,i,r)}function _F(n,t,e,i,r,o){const a=o[t];if(null!==a){const c=i.setInput;for(let u=0;u0&&u0(e)}}function u0(n){for(let i=eu(n);null!==i;i=tu(i))for(let r=qr;r0&&u0(o)}const e=n[gt].components;if(null!==e)for(let i=0;i0&&u0(r)}}function xF(n,t){const e=Xr(t,n),i=e[gt];(function wF(n,t){for(let e=t.length;e-1&&(_(t,i),Vl(e,i))}this._attachedToViewContainer=!1}x(this._lView[gt],this._lView)}onDestroy(t){Yw(this._lView[gt],this._lView,null,t)}markForCheck(){h0(this._cdRefInjectingView||this._lView)}detach(){this._lView[un]&=-65}reattach(){this._lView[un]|=64}detectChanges(){mb(this._lView[gt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Wp(n,t){qc(n,t,t[vn],2,null,null)}(this._lView[gt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ce(902,!1);this._appRef=t}}class DF extends cg{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;mb(t[gt],t,t[ei],!1)}checkNoChanges(){}get context(){return null}}class a1 extends uu{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Wn(t);return new dg(e,this.ngModule)}}function l1(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class EF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=rr(i);const r=this.injector.get(t,$,i);return r!==$||e===$?r:this.parentInjector.get(t,e,i)}}class dg extends sb{get inputs(){return l1(this.componentDef.inputs)}get outputs(){return l1(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function ot(n){return n.map(ji).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Jc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new EF(t,o):t,c=a.get(b,null);if(null===c)throw new Ce(407,!1);const u=a.get(I,null),m=c.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",C=i?function nF(n,t,e){return n.selectRootElement(t,e===ho.ShadowDom)}(m,i,this.componentDef.encapsulation):Gl(m,g,function TF(n){const t=n.toLowerCase();return"svg"===t?po:"math"===t?"math":null}(g)),F=this.componentDef.onPush?288:272,O=a0(0,null,null,1,0,null,null,null,null,null),V=db(null,O,null,F,null,null,c,m,u,a,null);let U,ie;eh(V);try{const ue=this.componentDef;let Le,ge=null;ue.findHostDirectiveDefs?(Le=[],ge=new Map,ue.findHostDirectiveDefs(ue,Le,ge),Le.push(ue)):Le=[ue];const ft=function kF(n,t){const e=n[gt],i=ui;return n[i]=t,pf(e,i,2,"#host",null)}(V,C),jn=function SF(n,t,e,i,r,o,a,c){const u=r[gt];!function AF(n,t,e,i){for(const r of n)t.mergedAttrs=Wa(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(fb(t,t.mergedAttrs,!0),null!==e&&Jm(i,e,t))}(i,n,t,a);const m=o.createRenderer(t,e),g=db(r,qw(e),null,e.onPush?32:16,r[n.index],n,o,m,c||null,null,null);return u.firstCreatePass&&c0(u,n,i.length-1),hb(r,g),r[n.index]=g}(ft,C,ue,Le,V,c,m);ie=Od(O,ui),C&&function FF(n,t,e,i){if(i)Oc(n,e,["ng-version",R.full]);else{const{attrs:r,classes:o}=function ln(n){const t=[],e=[];let i=1,r=2;for(;i0&&ba(n,e,o.join(" "))}}(m,ue,C,i),void 0!==e&&function OF(n,t,e){const i=n.projection=[];for(let r=0;r=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Wa(r.hostAttrs,e=Wa(e,r.hostAttrs))}}(i)}function p0(n){return n===is?{}:n===Sn?[]:n}function LF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function NF(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function BF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}function gb(n){return!!g0(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function g0(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Jl(n,t,e){return n[t]=e}function To(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function Lh(n,t,e,i){const r=To(n,t,e);return To(n,t+1,i)||r}function bt(n,t,e,i){const r=Te();return To(r,Nd(),t)&&(Tn(),Ql(gi(),r,n,t,e,i)),bt}function _f(n,t,e,i){return To(n,Nd(),e)?t+_t(e)+i:qe}function bf(n,t,e,i,r,o){const c=Lh(n,function os(){return kt.lFrame.bindingIndex}(),e,r);return $a(2),c?t+_t(e)+i+_t(r)+o:qe}function K(n,t,e,i,r,o,a,c){const u=Te(),m=Tn(),g=n+ui,C=m.firstCreatePass?function qF(n,t,e,i,r,o,a,c,u){const m=t.consts,g=pf(t,n,4,a||null,Qr(m,c));l0(t,e,g,Qr(m,u)),jd(t,g);const C=g.tView=a0(2,g,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,m);return null!==t.queries&&(t.queries.template(t,g),C.queries=t.queries.embeddedTView(g)),g}(g,m,u,t,e,i,r,o,a):m.data[g];Ls(C,!1);const F=u[vn].createComment("");Ei(m,u,F,C),or(F,u),hb(u,u[g]=t1(F,u,F,C)),Fd(C)&&o0(m,u,C),null!=a&&s0(u,C,c)}function Go(n){return Ba(function vv(){return kt.lFrame.contextLView}(),ui+n)}function N(n,t,e){const i=Te();return To(i,Nd(),t)&&Us(Tn(),gi(),i,n,t,i[vn],e,!1),N}function _0(n,t,e,i,r){const a=r?"class":"style";f0(n,e,t.inputs[a],a,i)}function y(n,t,e,i){const r=Te(),o=Tn(),a=ui+n,c=r[vn],u=o.firstCreatePass?function KF(n,t,e,i,r,o){const a=t.consts,u=pf(t,n,2,i,Qr(a,r));return l0(t,e,u,Qr(a,o)),null!==u.attrs&&fb(u,u.attrs,!1),null!==u.mergedAttrs&&fb(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,t,e,i):o.data[a],m=r[a]=Gl(c,t,function hp(){return kt.lFrame.currentNamespace}()),g=Fd(u);return Ls(u,!0),Jm(c,m,u),32!=(32&u.flags)&&Ei(o,r,m,u),0===function Rd(){return kt.lFrame.elementDepthCount}()&&or(m,r),function Ld(){kt.lFrame.elementDepthCount++}(),g&&(o0(o,r,u),r0(o,u,r)),null!==i&&s0(r,u),y}function v(){let n=yr();wm()?Zu():(n=n.parent,Ls(n,!1));const t=n;!function cp(){kt.lFrame.elementDepthCount--}();const e=Tn();return e.firstCreatePass&&(jd(e,n),bm(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function ih(n){return 0!=(8&n.flags)}(t)&&_0(e,t,Te(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Wd(n){return 0!=(16&n.flags)}(t)&&_0(e,t,Te(),t.stylesWithoutHost,!1),v}function Pe(n,t,e,i){return y(n,t,e,i),v(),Pe}function io(n,t,e){const i=Te(),r=Tn(),o=n+ui,a=r.firstCreatePass?function XF(n,t,e,i,r){const o=t.consts,a=Qr(o,i),c=pf(t,n,8,"ng-container",a);return null!==a&&fb(c,a,!0),l0(t,e,c,Qr(o,r)),null!==t.queries&&t.queries.elementStart(t,c),c}(o,r,i,t,e):r.data[o];Ls(a,!0);const c=i[o]=i[vn].createComment("");return Ei(r,i,c,a),or(c,i),Fd(a)&&(o0(r,i,a),r0(r,a,i)),null!=e&&s0(i,a),io}function ro(){let n=yr();const t=Tn();return wm()?Zu():(n=n.parent,Ls(n,!1)),t.firstCreatePass&&(jd(t,n),bm(n)&&t.queries.elementEnd(n)),ro}function Nt(){return Te()}function bb(n){return!!n&&"function"==typeof n.then}function w1(n){return!!n&&"function"==typeof n.subscribe}const D1=w1;function ce(n,t,e,i){const r=Te(),o=Tn(),a=yr();return T1(o,r,r[vn],a,n,t,i),ce}function b0(n,t){const e=yr(),i=Te(),r=Tn();return T1(r,i,o1(Bd(r.data),e,i),e,n,t),b0}function T1(n,t,e,i,r,o,a){const c=Fd(i),m=n.firstCreatePass&&r1(n),g=t[ei],C=n1(t);let F=!0;if(3&i.type||a){const U=Kr(i,t),ie=a?a(U):U,ue=C.length,Le=a?ft=>a(Zi(ft[i.index])):i.index;let ge=null;if(!a&&c&&(ge=function QF(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ou?c[u]:null}"string"==typeof a&&(o+=2)}return null}(n,t,r,i.index)),null!==ge)(ge.__ngLastListenerFn__||ge).__ngNextListenerFn__=o,ge.__ngLastListenerFn__=o,F=!1;else{o=M1(i,t,g,o,!1);const ft=e.listen(ie,r,o);C.push(o,ft),m&&m.push(r,Le,ue,ue+1)}}else o=M1(i,t,g,o,!1);const O=i.outputs;let V;if(F&&null!==O&&(V=O[r])){const U=V.length;if(U)for(let ie=0;ie-1?Xr(n.index,t):t);let u=E1(t,e,i,a),m=o.__ngNextListenerFn__;for(;m;)u=E1(t,e,m,a)&&u,m=m.__ngNextListenerFn__;return r&&!1===u&&(a.preventDefault(),a.returnValue=!1),u}}function Z(n=1){return function zd(n){return(kt.lFrame.contextLView=function Ic(n,t){for(;n>0;)t=t[xc],n--;return t}(n,kt.lFrame.contextLView))[ei]}(n)}function JF(n,t){let e=null;const i=function Xi(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function v0(n){return 2|n}function Nh(n){return(131068&n)>>2}function C0(n,t){return-131069&n|t<<2}function x0(n){return 1|n}function L1(n,t,e,i,r){const o=n[e+1],a=null===t;let c=i?mu(o):Nh(o),u=!1;for(;0!==c&&(!1===u||a);){const g=n[c+1];oO(n[c],t)&&(u=!0,n[c+1]=i?x0(g):v0(g)),c=i?mu(g):Nh(g)}u&&(n[e+1]=i?v0(o):x0(o))}function oO(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&wo(n,t)>=0}const Lr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function N1(n){return n.substring(Lr.key,Lr.keyEnd)}function B1(n,t){const e=Lr.textEnd;return e===t?-1:(t=Lr.keyEnd=function cO(n,t,e){for(;t32;)t++;return t}(n,Lr.key=t,e),Tf(n,t,e))}function Tf(n,t,e){for(;t=0;e=B1(t,e))Ni(n,N1(t),!0)}function Qa(n,t,e,i){const r=Te(),o=Tn(),a=$a(2);o.firstUpdatePass&&U1(o,n,a,i),t!==qe&&To(r,a,t)&&G1(o,o.data[qi()],r,r[vn],n,r[a+1]=function vO(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Un(no(n)))),n}(t,e),i,a)}function j1(n,t){return t>=n.expandoStartIndex}function U1(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[qi()],a=j1(n,e);q1(o,i)&&null===t&&!a&&(t=!1),t=function fO(n,t,e,i){const r=Bd(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=fg(e=w0(null,n,t,e,i),t.attrs,i),o=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==r)if(e=w0(r,n,t,e,i),null===o){let u=function pO(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Nh(i))return n[mu(i)]}(n,t,i);void 0!==u&&Array.isArray(u)&&(u=w0(null,n,t,u[1],i),u=fg(u,t.attrs,i),function gO(n,t,e,i){n[mu(e?t.classBindings:t.styleBindings)]=i}(n,t,i,u))}else o=function _O(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(m=!0)):g=e,r)if(0!==u){const F=mu(n[c+1]);n[i+1]=yb(F,c),0!==F&&(n[F+1]=C0(n[F+1],i)),n[c+1]=function tO(n,t){return 131071&n|t<<17}(n[c+1],i)}else n[i+1]=yb(c,0),0!==c&&(n[c+1]=C0(n[c+1],i)),c=i;else n[i+1]=yb(u,0),0===c?c=i:n[u+1]=C0(n[u+1],i),u=i;m&&(n[i+1]=v0(n[i+1])),L1(n,g,i,!0),L1(n,g,i,!1),function rO(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&wo(o,t)>=0&&(e[i+1]=x0(e[i+1]))}(t,g,n,i,o),a=yb(c,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,e,a,i)}}function w0(n,t,e,i,r){let o=null;const a=e.directiveEnd;let c=e.directiveStylingLast;for(-1===c?c=e.directiveStart:c++;c0;){const u=n[r],m=Array.isArray(u),g=m?u[1]:u,C=null===g;let F=e[r+1];F===qe&&(F=C?Sn:void 0);let O=C?Yd(F,i):g===i?F:void 0;if(m&&!vb(O)&&(O=Yd(u,i)),vb(O)&&(c=O,a))return c;const V=n[r+1];r=a?mu(V):Nh(V)}if(null!==t){let u=o?t.residualClasses:t.residualStyles;null!=u&&(c=Yd(u,i))}return c}function vb(n){return void 0!==n}function q1(n,t){return 0!=(n.flags&(t?8:16))}function A(n,t=""){const e=Te(),i=Tn(),r=n+ui,o=i.firstCreatePass?pf(i,r,1,t,null):i.data[r],a=e[r]=function Mh(n,t){return n.createText(t)}(e[vn],t);Ei(i,e,a,o),Ls(o,!1)}function Rt(n){return hi("",n,""),Rt}function hi(n,t,e){const i=Te(),r=_f(i,n,t,e);return r!==qe&&ed(i,qi(),r),hi}function pg(n,t,e,i,r){const o=Te(),a=bf(o,n,t,e,i,r);return a!==qe&&ed(o,qi(),a),pg}function nD(n,t,e){!function Ja(n,t,e,i){const r=Tn(),o=$a(2);r.firstUpdatePass&&U1(r,null,o,i);const a=Te();if(e!==qe&&To(a,o,e)){const c=r.data[qi()];if(q1(c,i)&&!j1(r,o)){let u=i?c.classesWithoutHost:c.stylesWithoutHost;null!==u&&(e=es(u,e||"")),_0(r,c,a,e,i)}else!function yO(n,t,e,i,r,o,a,c){r===qe&&(r=Sn);let u=0,m=0,g=0>20;if(Kl(n)||!n.multi){const O=new Fl(u,r,E),V=S0(c,t,r?g:g+F,C);-1===V?(ah(Bc(m,a),o,c),k0(o,n,t.length),t.push(c),m.directiveStart++,m.directiveEnd++,r&&(m.providerIndexes+=1048576),e.push(O),a.push(O)):(e[V]=O,a[V]=O)}else{const O=S0(c,t,g+F,C),V=S0(c,t,g,g+F),ie=V>=0&&e[V];if(r&&!ie||!r&&!(O>=0&&e[O])){ah(Bc(m,a),o,c);const ue=function NP(n,t,e,i,r){const o=new Fl(n,e,E);return o.multi=[],o.index=t,o.componentProviders=0,VD(o,r,i&&!e),o}(r?LP:RP,e.length,r,i,u);!r&&ie&&(e[V].providerFactory=ue),k0(o,n,t.length,0),t.push(c),m.directiveStart++,m.directiveEnd++,r&&(m.providerIndexes+=1048576),e.push(ue),a.push(ue)}else k0(o,n,O>-1?O:V,VD(e[r?V:O],u,!r&&i));!r&&i&&ie&&e[V].componentProviders++}}}function k0(n,t,e,i){const r=Kl(t),o=function ib(n){return!!n.useClass}(t);if(r||o){const u=(o?Pt(t.useClass):t).prototype.ngOnDestroy;if(u){const m=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const g=m.indexOf(e);-1===g?m.push(e,[i,u]):m[g+1].push(i,u)}else m.push(e,u)}}}function VD(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function S0(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function PP(n,t,e){const i=Tn();if(i.firstCreatePass){const r=Co(n);M0(e,i.data,i.blueprint,r,!0),M0(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class kf{}class BP{}class HD extends kf{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new a1(this);const i=function Zr(n,t){const e=n[Sd]||null;if(!e&&!0===t)throw new Error(`Type ${Un(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Bt(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=Vw(t,e,[{provide:kf,useValue:this},{provide:uu,useValue:this.componentFactoryResolver}],Un(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class I0 extends BP{constructor(t){super(),this.moduleType=t}create(t){return new HD(this.moduleType,t)}}class HP extends kf{constructor(t,e,i){super(),this.componentFactoryResolver=new a1(this),this.instance=null;const r=new og([...t,{provide:kf,useValue:this},{provide:uu,useValue:this.componentFactoryResolver}],e||uf(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let zP=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=ig(0,e.type),r=i.length>0?function zD(n,t,e=null){return new HP(n,t,e).injector}([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=B({token:n,providedIn:"environment",factory:()=>new n(te(Jc))}),n})();function $D(n){n.getStandaloneInjector=t=>t.get(zP).getOrCreateStandaloneInjector(n)}function el(n,t,e){const i=Fr()+n,r=Te();return r[i]===qe?Jl(r,i,e?t.call(e):t()):function ug(n,t){return n[t]}(r,i)}function KD(n,t,e,i,r){return function QD(n,t,e,i,r,o,a){const c=t+e;return Lh(n,c,r,o)?Jl(n,c+2,a?i.call(a,r,o):i(r,o)):Cg(n,c+2)}(Te(),Fr(),n,t,e,i,r)}function Cg(n,t){const e=n[t];return e===qe?void 0:e}function XD(n,t,e,i,r,o){const a=t+e;return To(n,a,r)?Jl(n,a+1,o?i.call(o,r):i(r)):Cg(n,a+1)}function xg(n,t){const e=Tn();let i;const r=n+ui;e.firstCreatePass?(i=function iR(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Il(i.type)),a=Wr(E);try{const c=Nc(!1),u=o();return Nc(c),function YF(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,Te(),r,u),u}finally{Wr(a)}}function wg(n,t,e){const i=n+ui,r=Te(),o=Ba(r,i);return function Dg(n,t){return n[gt].data[t].pure}(r,i)?XD(r,Fr(),t,o.transform,e,o):o.transform(e)}function O0(n){return t=>{setTimeout(n,void 0,t)}}const Ve=class lR extends Ae{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),a=i;if(t&&"object"==typeof t){const u=t;r=u.next?.bind(u),o=u.error?.bind(u),a=u.complete?.bind(u)}this.__isAsync&&(o=O0(o),r&&(r=O0(r)),a&&(a=O0(a)));const c=super.subscribe({next:r,error:o,complete:a});return t instanceof z&&t.add(c),c}};function cR(){return this._results[Symbol.iterator]()}class fu{get changes(){return this._changes||(this._changes=new Ve)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=fu.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=cR)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=function _i(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Ns(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=hR,n})();const dR=Cr,uR=class extends dR{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tView,r=db(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[Na]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Ps];return null!==a&&(r[Ps]=a.createEmbeddedView(i)),n0(i,r,t),new cg(r)}};function hR(){return Tb(yr(),Te())}function Tb(n,t){return 4&n.type?new uR(t,n,d(n,t)):null}let xr=(()=>{class n{}return n.__NG_ELEMENT_ID__=mR,n})();function mR(){return rT(yr(),Te())}const fR=xr,nT=class extends fR{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return d(this._hostTNode,this._hostLView)}get injector(){return new Rl(this._hostTNode,this._hostLView)}get parentInjector(){const t=sh(this._hostTNode,this._hostLView);if(Rc(t)){const e=Lc(t,this._hostLView),i=Zd(t);return new Rl(e[gt].data[i+8],e)}return new Rl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=iT(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-qr}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=t.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(t,e,i,r,o){const a=t&&!function Bl(n){return"function"==typeof n}(t);let c;if(a)c=e;else{const C=e||{};c=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}const u=a?t:new dg(Wn(t)),m=i||this.parentInjector;if(!o&&null==u.ngModule){const F=(a?m:this.parentInjector).get(Jc,null);F&&(o=F)}const g=u.create(m,r,void 0,o);return this.insert(g.hostView,c),g}insert(t,e){const i=t._lView,r=i[gt];if(function Ha(n){return rs(n[ri])}(i)){const g=this.indexOf(t);if(-1!==g)this.detach(g);else{const C=i[ri],F=new nT(C,C[Ir],C[ri]);F.detach(F.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;!function Do(n,t,e,i){const r=qr+i,o=e.length;i>0&&(e[r-1][Bo]=t),i0)i.push(a[c/2]);else{const m=o[c+1],g=t[-u];for(let C=qr;C{class n{constructor(e){this.appInits=e,this.resolve=kb,this.reject=kb,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:c,error:u})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(te(kT,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const If=new ye("AppId",{providedIn:"root",factory:function ST(){return`${U0()}${U0()}${U0()}`}});function U0(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const AT=new ye("Platform Initializer"),Eg=new ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Nr=new ye("AnimationModuleType"),nc=new ye("LocaleId",{providedIn:"root",factory:()=>qn(nc,Kt.Optional|Kt.SkipSelf)||function HR(){return typeof $localize<"u"&&$localize.locale||Mf}()}),WR=(()=>Promise.resolve(0))();function W0(n){typeof Zone>"u"?WR.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Ht{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!1),typeof Zone>"u")throw new Ce(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function GR(){let n=Fn.requestAnimationFrame,t=Fn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function YR(n){const t=()=>{!function qR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Fn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Z0(n),n.isCheckStableRunning=!0,G0(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Z0(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,c)=>{try{return OT(n),e.invokeTask(r,o,a,c)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),PT(n)}},onInvoke:(e,i,r,o,a,c,u)=>{try{return OT(n),e.invoke(r,o,a,c,u)}finally{n.shouldCoalesceRunChangeDetection&&t(),PT(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Z0(n),G0(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ht.isInAngularZone())throw new Ce(909,!1)}static assertNotInAngularZone(){if(Ht.isInAngularZone())throw new Ce(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,t,ZR,kb,kb);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const ZR={};function G0(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Z0(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function OT(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function PT(n){n._nesting--,G0(n)}class KR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ve,this.onMicrotaskEmpty=new Ve,this.onStable=new Ve,this.onError=new Ve}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const RT=new ye(""),Ab=new ye("");let K0,q0=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,K0||(function XR(n){K0=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ht.assertNotInAngularZone(),W0(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())W0(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(Y0),te(Ab))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Y0=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return K0?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const td=!1;let pu=null;const LT=new ye("AllowMultipleToken"),X0=new ye("PlatformDestroyListeners"),QR=new ye("appBootstrapListener");function BT(n,t,e=[]){const i=`Platform: ${t}`,r=new ye(i);return(o=[])=>{let a=Q0();if(!a||a.injector.get(LT,!1)){const c=[...e,...o,{provide:r,useValue:!0}];n?n(c):function tL(n){if(pu&&!pu.get(LT,!1))throw new Ce(400,!1);pu=n;const t=n.get(HT);(function NT(n){const t=n.get(AT,null);t&&t.forEach(e=>e())})(n)}(function VT(n=[],t){return Wo.create({name:t,providers:[{provide:Rh,useValue:"platform"},{provide:X0,useValue:new Set([()=>pu=null])},...n]})}(c,i))}return function iL(n){const t=Q0();if(!t)throw new Ce(401,!1);return t}()}}function Q0(){return pu?.get(HT)??null}let HT=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function $T(n,t){let e;return e="noop"===n?new KR:("zone.js"===n?void 0:n)||new Ht(t),e}(i?.ngZone,function zT(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ht,useValue:r}];return r.run(()=>{const a=Wo.create({providers:o,parent:this.injector,name:e.moduleType.name}),c=e.create(a),u=c.injector.get(ze,null);if(!u)throw new Ce(402,!1);return r.runOutsideAngular(()=>{const m=r.onError.subscribe({next:g=>{u.handleError(g)}});c.onDestroy(()=>{Ib(this._modules,c),m.unsubscribe()})}),function jT(n,t,e){try{const i=e();return bb(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(u,r,()=>{const m=c.injector.get(Sb);return m.runInitializers(),m.donePromise.then(()=>(function pD(n){Sr(n,"Expected localeId to be defined"),"string"==typeof n&&(fD=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(nc,Mf)||Mf),this._moduleDoBootstrap(c),c))})})}bootstrapModule(e,i=[]){const r=UT({},i);return function JR(n,t,e){const i=new I0(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Mg);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ce(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(X0,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(te(Wo))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function UT(n,t){return Array.isArray(t)?t.reduce(UT,n):{...n,...t}}let Mg=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new at(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),a=new at(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Ht.assertNotInAngularZone(),W0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const m=this._zone.onUnstable.subscribe(()=>{Ht.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),m.unsubscribe()}});this.isStable=on(o,a.pipe(Ds()))}bootstrap(e,i){const r=e instanceof sb;if(!this._injector.get(Sb).done){!r&&function Fs(n){const t=Wn(n)||li(n)||_r(n);return null!==t&&t.standalone}(e);throw new Ce(405,td)}let a;a=r?e:this._injector.get(uu).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const c=function eL(n){return n.isBoundToModule}(a)?void 0:this._injector.get(kf),m=a.create(Wo.NULL,[],i||a.selector,c),g=m.location.nativeElement,C=m.injector.get(RT,null);return C?.registerApplication(g),m.onDestroy(()=>{this.detachView(m.hostView),Ib(this.components,m),C?.unregisterApplication(g)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new Ce(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Ib(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(QR,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ib(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ce(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(Jc),te(ze))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ib(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let ti=(()=>{class n{}return n.__NG_ELEMENT_ID__=oL,n})();function oL(n){return function sL(n,t,e){if(Id(n)&&!e){const i=Xr(n.index,t);return new cg(i,i)}return 47&n.type?new cg(t[br],t):null}(yr(),Te(),16==(16&n))}class YT{constructor(){}supports(t){return gb(t)}create(t){return new hL(t)}}const uL=(n,t)=>t;class hL{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||uL}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(r,c),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,c,a,r)),Object.is(e.item,c)||this._addIdentityChange(e,c)):(e=this._mismatch(e,c,a,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new mL(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new KT),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new KT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class mL{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class fL{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class KT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new fL,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function XT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const i=new gL(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class gL{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function JT(){return new Pb([new YT])}let Pb=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||JT()),deps:[[n,new zl,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ce(901,!1)}}return n.\u0275prov=B({token:n,providedIn:"root",factory:JT}),n})();function eE(){return new kg([new QT])}let kg=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||eE()),deps:[[n,new zl,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ce(901,!1)}}return n.\u0275prov=B({token:n,providedIn:"root",factory:eE}),n})();const yL=BT(null,"core",[]);let vL=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(te(Mg))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();let rC=null;function nd(){return rC}class wL{}const en=new ye("DocumentToken");let tE=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:function(){return function DL(){return te(nE)}()},providedIn:"platform"}),n})(),nE=(()=>{class n extends tE{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nd().getBaseHref(this._doc)}onPopState(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){iE()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){iE()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:function(){return function TL(){return new nE(te(en))}()},providedIn:"platform"}),n})();function iE(){return!!window.history.pushState}function rE(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function oE(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Hh(n){return n&&"?"!==n[0]?"?"+n:n}let oC=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:function(){return qn(ML)},providedIn:"root"}),n})();const EL=new ye("appBaseHref");let ML=(()=>{class n extends oC{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??qn(en).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return rE(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Hh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const a=this.prepareExternalUrl(r+Hh(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){const a=this.prepareExternalUrl(r+Hh(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(te(tE),te(EL,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sE=(()=>{class n{constructor(e){this._subject=new Ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function AL(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(oE(aE(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Hh(i))}normalize(e){return n.stripTrailingSlash(function SL(n,t){if(!n||!t.startsWith(n))return t;const e=t.substring(n.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,aE(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Hh,n.joinWithSlash=rE,n.stripTrailingSlash=oE,n.\u0275fac=function(e){return new(e||n)(te(oC))},n.\u0275prov=B({token:n,factory:function(){return function kL(){return new sE(te(oC))}()},providedIn:"root"}),n})();function aE(n){return n.replace(/\/index.html$/,"")}function gE(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const pC=/\s+/,_E=[];let Ff=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=_E,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(pC):_E}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(pC):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(pC).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(E(Pb),E(kg),E(h),E(w))},n.\u0275dir=xe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class p2{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let fs=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new p2(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const c=i.get(o);i.move(c,a),vE(c,r)}});for(let r=0,o=i.length;r{vE(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr),E(Pb))},n.\u0275dir=xe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function vE(n,t){n.context.$implicit=t.item}let Si=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new _2,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){CE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){CE("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr))},n.\u0275dir=xe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class _2{constructor(){this.$implicit=null,this.ngIf=null}}function CE(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Un(t)}'.`)}class gC{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Of=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),Ub=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new gC(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr),E(Of,9))},n.\u0275dir=xe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),xE=(()=>{class n{constructor(e,i,r){r._addDefault(new gC(e,i))}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr),E(Of,9))},n.\u0275dir=xe({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),DE=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(E(xr))},n.\u0275dir=xe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ci]}),n})();class v2{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class C2{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const x2=new C2,w2=new v2;let _C=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(bb(e))return x2;if(w1(e))return w2;throw function il(n,t){return new Ce(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(E(ti,16))},n.\u0275pipe=Gr({name:"async",type:n,pure:!1,standalone:!0}),n})(),TE=(()=>{class n{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=EE}transform(e,i=EE){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const r=this.differ.diff(e),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(a=>{this.keyValues.push(function L2(n,t){return{key:n,value:t}}(a.key,a.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}}return n.\u0275fac=function(e){return new(e||n)(E(kg,16))},n.\u0275pipe=Gr({name:"keyvalue",type:n,pure:!1,standalone:!0}),n})();function EE(n,t){const e=n.key,i=t.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const ME="browser";function kE(n){return n===ME}class AE{}class gN extends wL{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class xC extends gN{static makeCurrent(){!function xL(n){rC||(rC=n)}(new xC)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function _N(){return Fg=Fg||document.querySelector("base"),Fg?Fg.getAttribute("href"):null}();return null==e?null:function bN(n){Zb=Zb||document.createElement("a"),Zb.setAttribute("href",n);const t=Zb.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Fg=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return gE(document.cookie,t)}}let Zb,Fg=null;const RE=new ye("TRANSITION_ID"),vN=[{provide:kT,useFactory:function yN(n,t,e){return()=>{e.get(Sb).donePromise.then(()=>{const i=nd(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const qb=new ye("EventManagerPlugins");let Yb=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Og=(()=>{class n extends NE{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const wC={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},DC=/%COMP%/g,HE=new ye("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function zE(n,t){return t.flat(100).map(e=>e.replace(DC,n))}function $E(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Kb=(()=>{class n{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new TC(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof WE?r.applyToHost(e):r instanceof EC&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestory;switch(i.encapsulation){case ho.Emulated:o=new WE(a,c,i,this.appId,u);break;case ho.ShadowDom:return new SN(a,c,e,i);default:o=new EC(a,c,i,u)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(te(Yb),te(Og),te(If),te(HE))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class TC{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(wC[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(UE(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(UE(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=wC[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=wC[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Jr.DashCase|Jr.Important)?t.style.setProperty(e,i,r&Jr.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Jr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,$E(i)):this.eventManager.addEventListener(t,e,$E(i))}}function UE(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class SN extends TC{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=zE(r.id,r.styles);for(const a of o){const c=document.createElement("style");c.textContent=a,this.shadowRoot.appendChild(c)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class EC extends TC{constructor(t,e,i,r,o=i.id){super(t),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=zE(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class WE extends EC{constructor(t,e,i,r,o){const a=r+"-"+i.id;super(t,e,i,o,a),this.contentAttr=function EN(n){return"_ngcontent-%COMP%".replace(DC,n)}(a),this.hostAttr=function MN(n){return"_nghost-%COMP%".replace(DC,n)}(a)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}let AN=(()=>{class n extends LE{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const GE=["alt","control","meta","shift"],IN={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},FN={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let ON=(()=>{class n extends LE{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),a=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nd().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),GE.forEach(m=>{const g=i.indexOf(m);g>-1&&(i.splice(g,1),a+=m+".")}),a+=o,0!=i.length||0===o.length)return null;const u={};return u.domEventName=r,u.fullKey=a,u}static matchEventFullKeyCode(e,i){let r=IN[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),GE.forEach(a=>{a!==r&&(0,FN[a])(e)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const NN=BT(yL,"browser",[{provide:Eg,useValue:ME},{provide:AT,useValue:function PN(){xC.makeCurrent()},multi:!0},{provide:en,useFactory:function LN(){return function Sv(n){Gp=n}(document),document},deps:[]}]),YE=new ye(""),KE=[{provide:Ab,useClass:class CN{addToWindow(t){Fn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Fn.getAllAngularTestabilities=()=>t.getAllTestabilities(),Fn.getAllAngularRootElements=()=>t.getAllRootElements(),Fn.frameworkStabilizers||(Fn.frameworkStabilizers=[]),Fn.frameworkStabilizers.push(i=>{const r=Fn.getAllAngularTestabilities();let o=r.length,a=!1;const c=function(u){a=a||u,o--,0==o&&i(a)};r.forEach(function(u){u.whenStable(c)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?nd().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:RT,useClass:q0,deps:[Ht,Y0,Ab]},{provide:q0,useClass:q0,deps:[Ht,Y0,Ab]}],XE=[{provide:Rh,useValue:"root"},{provide:ze,useFactory:function RN(){return new ze},deps:[]},{provide:qb,useClass:AN,multi:!0,deps:[en,Ht,Eg]},{provide:qb,useClass:ON,multi:!0,deps:[en]},{provide:Kb,useClass:Kb,deps:[Yb,Og,If,HE]},{provide:b,useExisting:Kb},{provide:NE,useExisting:Og},{provide:Og,useClass:Og,deps:[en]},{provide:Yb,useClass:Yb,deps:[qb,Ht]},{provide:AE,useClass:xN,deps:[]},[]];let QE=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:If,useValue:e.appId},{provide:RE,useExisting:If},vN]}}}return n.\u0275fac=function(e){return new(e||n)(te(YE,12))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[...XE,...KE],imports:[wa,vL]}),n})();typeof window<"u"&&window;let Xb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:function(e){let i=null;return i=e?new(e||n):te(tM),i},providedIn:"root"}),n})(),tM=(()=>{class n extends Xb{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case zn.NONE:return i;case zn.HTML:return Uo(i,"HTML")?no(i):Ph(this._doc,String(i)).toString();case zn.STYLE:return Uo(i,"Style")?no(i):i;case zn.SCRIPT:if(Uo(i,"Script"))return no(i);throw new Error("unsafe value used in a script context");case zn.URL:return Uo(i,"URL")?no(i):Fh(String(i));case zn.RESOURCE_URL:if(Uo(i,"ResourceURL"))return no(i);throw new Error(`unsafe value used in a resource URL context (see ${Ti})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Ti})`)}}bypassSecurityTrustHtml(e){return function j_(n){return new qp(n)}(e)}bypassSecurityTrustStyle(e){return function Yp(n){return new ya(n)}(e)}bypassSecurityTrustScript(e){return function Kp(n){return new au(n)}(e)}bypassSecurityTrustUrl(e){return function Kc(n){return new to(n)}(e)}bypassSecurityTrustResourceUrl(e){return function Iv(n){return new Ih(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:function(e){let i=null;return i=e?new e:function UN(n){return new tM(n.get(en))}(te(Wo)),i},providedIn:"root"}),n})();class nM{}class WN{}const rd="*";function od(n,t){return{type:7,name:n,definitions:t,options:{}}}function Eo(n,t=null){return{type:4,styles:t,timings:n}}function GN(n,t=null){return{type:3,steps:n,options:t}}function iM(n,t=null){return{type:2,steps:n,options:t}}function xi(n){return{type:6,styles:n,offset:null}}function Da(n,t,e){return{type:0,name:n,styles:t,options:e}}function Mo(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function ZN(n=null){return{type:9,options:n}}function qN(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function rM(n){Promise.resolve().then(n)}class Pg{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){rM(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class oM{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?rM(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,c)=>Math.max(a,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const SC="!";function sM(n){return new Ce(3e3,!1)}function SB(){return typeof window<"u"&&typeof window.document<"u"}function AC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function _u(n){switch(n.length){case 0:return new Pg;case 1:return n[0];default:return new oM(n)}}function aM(n,t,e,i,r=new Map,o=new Map){const a=[],c=[];let u=-1,m=null;if(i.forEach(g=>{const C=g.get("offset"),F=C==u,O=F&&m||new Map;g.forEach((V,U)=>{let ie=U,ue=V;if("offset"!==U)switch(ie=t.normalizePropertyName(ie,a),ue){case SC:ue=r.get(U);break;case rd:ue=o.get(U);break;default:ue=t.normalizeStyleValue(U,ie,ue,a)}O.set(ie,ue)}),F||c.push(O),m=O,u=C}),a.length)throw function _B(n){return new Ce(3502,!1)}();return c}function IC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&FC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&FC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&FC(e,"destroy",n)))}}function FC(n,t,e){const o=OC(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),a=n._data;return null!=a&&(o._data=a),o}function OC(n,t,e,i,r="",o=0,a){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Gs(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function lM(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let PC=(n,t)=>!1,cM=(n,t,e)=>[],dM=null;function RC(n){const t=n.parentNode||n.host;return t===dM?null:t}(AC()||typeof Element<"u")&&(SB()?(dM=(()=>document.documentElement)(),PC=(n,t)=>{for(;t;){if(t===n)return!0;t=RC(t)}return!1}):PC=(n,t)=>n.contains(t),cM=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let zh=null,uM=!1;const hM=PC,mM=cM;let fM=(()=>{class n{validateStyleProperty(e){return function IB(n){zh||(zh=function FB(){return typeof document<"u"?document.body:null}()||{},uM=!!zh.style&&"WebkitAppearance"in zh.style);let t=!0;return zh.style&&!function AB(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in zh.style,!t&&uM&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in zh.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return hM(e,i)}getParentElement(e){return RC(e)}query(e,i,r){return mM(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,c=[],u){return new Pg(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),LC=(()=>{class n{}return n.NOOP=new fM,n})();const OB=1e3,NC="ng-enter",Qb="ng-leave",Jb="ng-trigger",ey=".ng-trigger",gM="ng-animating",BC=".ng-animating";function sd(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:VC(parseFloat(t[1]),t[2])}function VC(n,t){return"s"===t?n*OB:n}function ty(n,t,e){return n.hasOwnProperty("duration")?n:function RB(n,t,e){let r,o=0,a="";if("string"==typeof n){const c=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return t.push(sM()),{duration:0,delay:0,easing:""};r=VC(parseFloat(c[1]),c[2]);const u=c[3];null!=u&&(o=VC(parseFloat(u),c[4]));const m=c[5];m&&(a=m)}else r=n;if(!e){let c=!1,u=t.length;r<0&&(t.push(function YN(){return new Ce(3100,!1)}()),c=!0),o<0&&(t.push(function KN(){return new Ce(3101,!1)}()),c=!0),c&&t.splice(u,0,sM())}return{duration:r,delay:o,easing:a}}(n,t,e)}function Rg(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function _M(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function bu(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function yM(n,t,e){return e?t+":"+e+";":""}function vM(n){let t="";for(let e=0;e{const o=zC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),AC()&&vM(n))}function $h(n,t){n.style&&(t.forEach((e,i)=>{const r=zC(i);n.style[r]=""}),AC()&&vM(n))}function Lg(n){return Array.isArray(n)?1==n.length?n[0]:iM(n):n}const HC=new RegExp("{{\\s*(.+?)\\s*}}","g");function CM(n){let t=[];if("string"==typeof n){let e;for(;e=HC.exec(n);)t.push(e[1]);HC.lastIndex=0}return t}function Ng(n,t,e){const i=n.toString(),r=i.replace(HC,(o,a)=>{let c=t[a];return null==c&&(e.push(function QN(n){return new Ce(3003,!1)}()),c=""),c.toString()});return r==i?n:r}function ny(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const BB=/-+([a-z0-9])/g;function zC(n){return n.replace(BB,(...t)=>t[1].toUpperCase())}function VB(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Zs(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function JN(n){return new Ce(3004,!1)}()}}function xM(n,t){return window.getComputedStyle(n)[t]}const oy="*";function WB(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function GB(n,t,e){if(":"==n[0]){const u=function ZB(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof u)return void t.push(u);n=u}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function hB(n){return new Ce(3015,!1)}()),t;const r=i[1],o=i[2],a=i[3];t.push(wM(r,a));"<"==o[0]&&!(r==oy&&a==oy)&&t.push(wM(a,r))}(i,e,t)):e.push(n),e}const sy=new Set(["true","1"]),ay=new Set(["false","0"]);function wM(n,t){const e=sy.has(n)||ay.has(n),i=sy.has(t)||ay.has(t);return(r,o)=>{let a=n==oy||n==r,c=t==oy||t==o;return!a&&e&&"boolean"==typeof r&&(a=r?sy.has(n):ay.has(n)),!c&&i&&"boolean"==typeof o&&(c=o?sy.has(t):ay.has(t)),a&&c}}const qB=new RegExp("s*:selfs*,?","g");function $C(n,t,e,i){return new YB(n).build(t,e,i)}class YB{constructor(t){this._driver=t}build(t,e,i){const r=new QB(e);return this._resetContextStyleTimingState(r),Zs(this,Lg(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push(function tB(){return new Ce(3006,!1)}()),t.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const u=c,m=u.name;m.toString().split(/\s*,\s*/).forEach(g=>{u.name=g,o.push(this.visitState(u,e))}),u.name=m}else if(1==c.type){const u=this.visitTransition(c,e);i+=u.queryCount,r+=u.depCount,a.push(u)}else e.errors.push(function nB(){return new Ce(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(c=>{c instanceof Map&&c.forEach(u=>{CM(u).forEach(m=>{a.hasOwnProperty(m)||o.add(m)})})}),o.size&&(ny(o.values()),e.errors.push(function iB(n,t){return new Ce(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Zs(this,Lg(t.animation),e);return{type:1,matchers:WB(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:jh(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Zs(this,i,e)),options:jh(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(a=>{e.currentTime=i;const c=Zs(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:o,options:jh(t.options)}}visitAnimate(t,e){const i=function e3(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return jC(ty(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=jC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=ty(e,t);return jC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:xi({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=t.styles,c=!1;if(!a){c=!0;const m={};i.easing&&(m.easing=i.easing),a=xi(m)}e.currentTime+=i.duration+i.delay;const u=this.visitStyle(a,e);u.isEmptyStep=c,r=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let c of r)"string"==typeof c?c===rd?i.push(c):e.errors.push(new Ce(3002,!1)):i.push(_M(c));let o=!1,a=null;return i.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(a=c.get("easing"),c.delete("easing")),!o))for(let u of c.values())if(u.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(a=>{"string"!=typeof a&&a.forEach((c,u)=>{const m=e.collectedStyles.get(e.currentQuerySelector),g=m.get(u);let C=!0;g&&(o!=r&&o>=g.startTime&&r<=g.endTime&&(e.errors.push(function oB(n,t,e,i,r){return new Ce(3010,!1)}()),C=!1),o=g.startTime),C&&m.set(u,{startTime:o,endTime:r}),e.options&&function NB(n,t,e){const i=t.params||{},r=CM(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function XN(n){return new Ce(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function sB(){return new Ce(3011,!1)}()),i;let o=0;const a=[];let c=!1,u=!1,m=0;const g=t.steps.map(ue=>{const Le=this._makeStyleAst(ue,e);let ge=null!=Le.offset?Le.offset:function JB(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(Le.styles),ft=0;return null!=ge&&(o++,ft=Le.offset=ge),u=u||ft<0||ft>1,c=c||ft0&&o{const ge=F>0?Le==O?1:F*Le:a[Le],ft=ge*ie;e.currentTime=V+U.delay+ft,U.duration=ft,this._validateStyleAst(ue,e),ue.offset=ge,i.styles.push(ue)}),i}visitReference(t,e){return{type:8,animation:Zs(this,Lg(t.animation),e),options:jh(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:jh(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:jh(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,a]=function KB(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(qB,"")),n=n.replace(/@\*/g,ey).replace(/@\w+/g,e=>ey+"-"+e.slice(1)).replace(/:animating/g,BC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Gs(e.collectedStyles,e.currentQuerySelector,new Map);const c=Zs(this,Lg(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:jh(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function dB(){return new Ce(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:ty(t.timings,e.errors,!0);return{type:12,animation:Zs(this,Lg(t.animation),e),timings:i,options:null}}}class QB{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function jh(n){return n?(n=Rg(n)).params&&(n.params=function XB(n){return n?Rg(n):null}(n.params)):n={},n}function jC(n,t,e){return{duration:n,delay:t,easing:e}}function UC(n,t,e,i,r,o,a=null,c=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:c}}class ly{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const r3=new RegExp(":enter","g"),s3=new RegExp(":leave","g");function WC(n,t,e,i,r,o=new Map,a=new Map,c,u,m=[]){return(new a3).buildKeyframes(n,t,e,i,r,o,a,c,u,m)}class a3{buildKeyframes(t,e,i,r,o,a,c,u,m,g=[]){m=m||new ly;const C=new GC(t,e,m,r,o,g,[]);C.options=u;const F=u.delay?sd(u.delay):0;C.currentTimeline.delayNextStep(F),C.currentTimeline.setStyles([a],null,C.errors,u),Zs(this,i,C);const O=C.timelines.filter(V=>V.containsAnimation());if(O.length&&c.size){let V;for(let U=O.length-1;U>=0;U--){const ie=O[U];if(ie.element===e){V=ie;break}}V&&!V.allowOnlyTimelineStyles()&&V.setStyles([c],null,C.errors,u)}return O.length?O.map(V=>V.buildKeyframes()):[UC(e,[],[],[],0,F,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const a="number"==typeof o?o:sd(Ng(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const a=null!=i.duration?sd(i.duration):null,c=null!=i.delay?sd(i.delay):null;return 0!==a&&t.forEach(u=>{const m=e.appendInstructionToTimeline(u,a,c);o=Math.max(o,m.duration+m.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Zs(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=cy);const a=sd(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>Zs(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?sd(t.options.delay):0;t.steps.forEach(a=>{const c=e.createSubContext(t.options);o&&c.delayNextStep(o),Zs(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return ty(e.params?Ng(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,c=e.createSubContext().currentTimeline;c.easing=i.easing,t.styles.forEach(u=>{c.forwardTime((u.offset||0)*o),c.setStyles(u.styles,u.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?sd(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cy);let a=i;const c=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let u=null;c.forEach((m,g)=>{e.currentQueryIndex=g;const C=e.createSubContext(t.options,m);o&&C.delayNextStep(o),m===e.element&&(u=C.currentTimeline),Zs(this,t.animation,C),C.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,C.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,a=Math.abs(o.duration),c=a*(e.currentQueryTotal-1);let u=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=c-u;break;case"full":u=i.currentStaggerTime}const g=e.currentTimeline;u&&g.delayNextStep(u);const C=g.currentTime;Zs(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-C+(r.startTime-i.currentTimeline.startTime)}}const cy={};class GC{constructor(t,e,i,r,o,a,c,u){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new dy(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=sd(i.duration)),null!=i.delay&&(r.delay=sd(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=Ng(o[c],a,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new GC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=cy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new l3(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,a){let c=[];if(r&&c.push(this.element),t.length>0){t=(t=t.replace(r3,"."+this._enterClassName)).replace(s3,"."+this._leaveClassName);let m=this._driver.query(this.element,t,1!=i);0!==i&&(m=i<0?m.slice(m.length+i,m.length):m.slice(0,i)),c.push(...m)}return!o&&0==c.length&&a.push(function uB(n){return new Ce(3014,!1)}()),c}}class dy{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dy(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||rd),this._currentKeyframe.set(e,rd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function c3(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,rd)}else bu(r,e)}),e}(t,this._globalTimelineStyles);for(let[c,u]of a){const m=Ng(u,o,i);this._pendingStyles.set(c,m),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??rd),this._updateStyle(c,m)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,u)=>{const m=bu(c,new Map,this._backFill);m.forEach((g,C)=>{g===SC?t.add(C):g===rd&&e.add(C)}),i||m.set("offset",u/this.duration),r.push(m)});const o=t.size?ny(t.values()):[],a=e.size?ny(e.values()):[];if(i){const c=r[0],u=new Map(c);c.set("offset",0),u.set("offset",1),r=[c,u]}return UC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class l3 extends dy{constructor(t,e,i,r,o,a,c=!1){super(t,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=i+e,c=e/a,u=bu(t[0]);u.set("offset",0),o.push(u);const m=bu(t[0]);m.set("offset",EM(c)),o.push(m);const g=t.length-1;for(let C=1;C<=g;C++){let F=bu(t[C]);const O=F.get("offset");F.set("offset",EM((e+O*i)/a)),o.push(F)}i=a,e=0,r="",t=o}return UC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function EM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class ZC{}const d3=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class u3 extends ZC{normalizePropertyName(t,e){return zC(t)}normalizeStyleValue(t,e,i,r){let o="";const a=i.toString().trim();if(d3.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function eB(n,t){return new Ce(3005,!1)}())}return a+o}}function MM(n,t,e,i,r,o,a,c,u,m,g,C,F){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:c,queriedElements:u,preStyleProps:m,postStyleProps:g,totalTime:C,errors:F}}const qC={};class kM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function h3(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,a,c,u,m,g){const C=[],F=this.ast.options&&this.ast.options.params||qC,V=this.buildStyles(i,c&&c.params||qC,C),U=u&&u.params||qC,ie=this.buildStyles(r,U,C),ue=new Set,Le=new Map,ge=new Map,ft="void"===r,jn={params:m3(U,F),delay:this.ast.options?.delay},Xn=g?[]:WC(t,e,this.ast.animation,o,a,V,ie,jn,m,C);let ko=0;if(Xn.forEach(md=>{ko=Math.max(md.duration+md.delay,ko)}),C.length)return MM(e,this._triggerName,i,r,ft,V,ie,[],[],Le,ge,ko,C);Xn.forEach(md=>{const fd=md.element,PI=Gs(Le,fd,new Set);md.preStyleProps.forEach(rm=>PI.add(rm));const b_=Gs(ge,fd,new Set);md.postStyleProps.forEach(rm=>b_.add(rm)),fd!==e&&ue.add(fd)});const hd=ny(ue.values());return MM(e,this._triggerName,i,r,ft,V,ie,Xn,hd,Le,ge,ko)}}function m3(n,t){const e=Rg(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class f3{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Rg(this.defaultParams);return Object.keys(t).forEach(o=>{const a=t[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{a&&(a=Ng(a,r,e));const u=this.normalizer.normalizePropertyName(c,e);a=this.normalizer.normalizeStyleValue(c,u,a,e),i.set(c,a)})}),i}}class g3{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new f3(r.style,r.options&&r.options.params||{},i))}),SM(this.states,"true","1"),SM(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new kM(t,r,this.states))}),this.fallbackTransition=function _3(n,t,e){return new kM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,c)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(a=>a.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function SM(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const b3=new ly;class y3{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],r=[],o=$C(this._driver,e,i,r);if(i.length)throw function bB(n){return new Ce(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=aM(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let a;const c=new Map;if(o?(a=WC(this._driver,e,o,NC,Qb,new Map,new Map,i,b3,r),a.forEach(g=>{const C=Gs(c,g.element,new Map);g.postStyleProps.forEach(F=>C.set(F,null))})):(r.push(function yB(){return new Ce(3300,!1)}()),a=[]),r.length)throw function vB(n){return new Ce(3504,!1)}();c.forEach((g,C)=>{g.forEach((F,O)=>{g.set(O,this._driver.computeStyle(C,O,rd))})});const m=_u(a.map(g=>{const C=c.get(g.element);return this._buildPlayer(g,new Map,C)}));return this._playersById.set(t,m),m.onDestroy(()=>this.destroy(t)),this.players.push(m),m}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function CB(n){return new Ce(3301,!1)}();return e}listen(t,e,i,r){const o=OC(e,"","","");return IC(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const AM="ng-animate-queued",YC="ng-animate-disabled",D3=[],IM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},T3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ta="__ng_removed";class KC{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function S3(n){return n??null}(i?t.value:t),i){const o=Rg(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Bg="void",XC=new KC(Bg);class E3{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ea(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function xB(n,t){return new Ce(3302,!1)}();if(null==i||0==i.length)throw function wB(n){return new Ce(3303,!1)}();if(!function A3(n){return"start"==n||"done"==n}(i))throw function DB(n,t){return new Ce(3400,!1)}();const o=Gs(this._elementListeners,t,[]),a={name:e,phase:i,callback:r};o.push(a);const c=Gs(this._engine.statesByElement,t,new Map);return c.has(e)||(Ea(t,Jb),Ea(t,Jb+"-"+e),c.set(e,XC)),()=>{this._engine.afterFlush(()=>{const u=o.indexOf(a);u>=0&&o.splice(u,1),this._triggers.has(e)||c.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function TB(n){return new Ce(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),a=new QC(this.id,e,t);let c=this._engine.statesByElement.get(t);c||(Ea(t,Jb),Ea(t,Jb+"-"+e),this._engine.statesByElement.set(t,c=new Map));let u=c.get(e);const m=new KC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&m.absorbOptions(u.options),c.set(e,m),u||(u=XC),m.value!==Bg&&u.value===m.value){if(!function O3(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{$h(t,ie),ic(t,ue)})}return}const F=Gs(this._engine.playersByElement,t,[]);F.forEach(U=>{U.namespaceId==this.id&&U.triggerName==e&&U.queued&&U.destroy()});let O=o.matchTransition(u.value,m.value,t,m.params),V=!1;if(!O){if(!r)return;O=o.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:O,fromState:u,toState:m,player:a,isFallbackTransition:V}),V||(Ea(t,AM),a.onStart(()=>{Pf(t,AM)})),a.onDone(()=>{let U=this.players.indexOf(a);U>=0&&this.players.splice(U,1);const ie=this._engine.playersByElement.get(t);if(ie){let ue=ie.indexOf(a);ue>=0&&ie.splice(ue,1)}}),this.players.push(a),F.push(a),a}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,ey,!0);i.forEach(r=>{if(r[Ta])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),a=new Map;if(o){const c=[];if(o.forEach((u,m)=>{if(a.set(m,u.value),this._triggers.has(m)){const g=this.trigger(t,m,Bg,r);g&&c.push(g)}}),c.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),i&&_u(c).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const u=this._triggers.get(a).fallbackTransition,m=i.get(a)||XC,g=new KC(Bg),C=new QC(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:u,fromState:m,toState:g,player:C,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let a=t;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Ta];(!o||o===IM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Ea(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(c=>{if(c.name==i.triggerName){const u=OC(o,i.triggerName,i.fromState.value,i.toState.value);u._data=t,IC(i.player,c.phase,u,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class M3{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new E3(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,c=this.driver.getParentElement(e);for(;c;){const u=r.get(c);if(u){const m=i.indexOf(u);i.splice(m+1,0,t),a=!0;break}c=this.driver.getParentElement(c)}a||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(uy(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!uy(e))return;const o=e[Ta];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){const a=this._fetchNamespace(t);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ea(t,YC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Pf(t,YC))}removeNode(t,e,i,r){if(uy(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[Ta]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return uy(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,ey,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,BC,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return _u(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Ta];if(e&&e.setForRemoval){if(t[Ta]=IM,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(YC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?_u(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function EB(n){return new Ce(3402,!1)}()}_flushAnimations(t,e){const i=new ly,r=[],o=new Map,a=[],c=new Map,u=new Map,m=new Map,g=new Set;this.disabledNodes.forEach(Ot=>{g.add(Ot);const Zt=this.driver.query(Ot,".ng-animate-queued",!0);for(let nn=0;nn{const nn=NC+U++;V.set(Zt,nn),Ot.forEach(Zn=>Ea(Zn,nn))});const ie=[],ue=new Set,Le=new Set;for(let Ot=0;Otue.add(Zn)):Le.add(Zt))}const ge=new Map,ft=PM(F,Array.from(ue));ft.forEach((Ot,Zt)=>{const nn=Qb+U++;ge.set(Zt,nn),Ot.forEach(Zn=>Ea(Zn,nn))}),t.push(()=>{O.forEach((Ot,Zt)=>{const nn=V.get(Zt);Ot.forEach(Zn=>Pf(Zn,nn))}),ft.forEach((Ot,Zt)=>{const nn=ge.get(Zt);Ot.forEach(Zn=>Pf(Zn,nn))}),ie.forEach(Ot=>{this.processLeaveNode(Ot)})});const jn=[],Xn=[];for(let Ot=this._namespaceList.length-1;Ot>=0;Ot--)this._namespaceList[Ot].drainQueuedTransitions(e).forEach(nn=>{const Zn=nn.player,ao=nn.element;if(jn.push(Zn),this.collectedEnterElements.length){const So=ao[Ta];if(So&&So.setForMove){if(So.previousTriggersValues&&So.previousTriggersValues.has(nn.triggerName)){const om=So.previousTriggersValues.get(nn.triggerName),Sa=this.statesByElement.get(nn.element);if(Sa&&Sa.has(nn.triggerName)){const cv=Sa.get(nn.triggerName);cv.value=om,Sa.set(nn.triggerName,cv)}}return void Zn.destroy()}}const lc=!C||!this.driver.containsElement(C,ao),Js=ge.get(ao),Su=V.get(ao),Gi=this._buildInstruction(nn,i,Su,Js,lc);if(Gi.errors&&Gi.errors.length)return void Xn.push(Gi);if(lc)return Zn.onStart(()=>$h(ao,Gi.fromStyles)),Zn.onDestroy(()=>ic(ao,Gi.toStyles)),void r.push(Zn);if(nn.isFallbackTransition)return Zn.onStart(()=>$h(ao,Gi.fromStyles)),Zn.onDestroy(()=>ic(ao,Gi.toStyles)),void r.push(Zn);const NI=[];Gi.timelines.forEach(So=>{So.stretchStartingKeyframe=!0,this.disabledNodes.has(So.element)||NI.push(So)}),Gi.timelines=NI,i.append(ao,Gi.timelines),a.push({instruction:Gi,player:Zn,element:ao}),Gi.queriedElements.forEach(So=>Gs(c,So,[]).push(Zn)),Gi.preStyleProps.forEach((So,om)=>{if(So.size){let Sa=u.get(om);Sa||u.set(om,Sa=new Set),So.forEach((cv,Sw)=>Sa.add(Sw))}}),Gi.postStyleProps.forEach((So,om)=>{let Sa=m.get(om);Sa||m.set(om,Sa=new Set),So.forEach((cv,Sw)=>Sa.add(Sw))})});if(Xn.length){const Ot=[];Xn.forEach(Zt=>{Ot.push(function MB(n,t){return new Ce(3505,!1)}())}),jn.forEach(Zt=>Zt.destroy()),this.reportError(Ot)}const ko=new Map,hd=new Map;a.forEach(Ot=>{const Zt=Ot.element;i.has(Zt)&&(hd.set(Zt,Zt),this._beforeAnimationBuild(Ot.player.namespaceId,Ot.instruction,ko))}),r.forEach(Ot=>{const Zt=Ot.element;this._getPreviousPlayers(Zt,!1,Ot.namespaceId,Ot.triggerName,null).forEach(Zn=>{Gs(ko,Zt,[]).push(Zn),Zn.destroy()})});const md=ie.filter(Ot=>LM(Ot,u,m)),fd=new Map;OM(fd,this.driver,Le,m,rd).forEach(Ot=>{LM(Ot,u,m)&&md.push(Ot)});const b_=new Map;O.forEach((Ot,Zt)=>{OM(b_,this.driver,new Set(Ot),u,SC)}),md.forEach(Ot=>{const Zt=fd.get(Ot),nn=b_.get(Ot);fd.set(Ot,new Map([...Array.from(Zt?.entries()??[]),...Array.from(nn?.entries()??[])]))});const rm=[],RI=[],LI={};a.forEach(Ot=>{const{element:Zt,player:nn,instruction:Zn}=Ot;if(i.has(Zt)){if(g.has(Zt))return nn.onDestroy(()=>ic(Zt,Zn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(Zn.totalTime),void r.push(nn);let ao=LI;if(hd.size>1){let Js=Zt;const Su=[];for(;Js=Js.parentNode;){const Gi=hd.get(Js);if(Gi){ao=Gi;break}Su.push(Js)}Su.forEach(Gi=>hd.set(Gi,ao))}const lc=this._buildAnimation(nn.namespaceId,Zn,ko,o,b_,fd);if(nn.setRealPlayer(lc),ao===LI)rm.push(nn);else{const Js=this.playersByElement.get(ao);Js&&Js.length&&(nn.parentPlayer=_u(Js)),r.push(nn)}}else $h(Zt,Zn.fromStyles),nn.onDestroy(()=>ic(Zt,Zn.toStyles)),RI.push(nn),g.has(Zt)&&r.push(nn)}),RI.forEach(Ot=>{const Zt=o.get(Ot.element);if(Zt&&Zt.length){const nn=_u(Zt);Ot.setRealPlayer(nn)}}),r.forEach(Ot=>{Ot.parentPlayer?Ot.syncPlayerEvents(Ot.parentPlayer):Ot.destroy()});for(let Ot=0;Ot!lc.destroyed);ao.length?I3(this,Zt,ao):this.processLeaveNode(Zt)}return ie.length=0,rm.forEach(Ot=>{this.players.push(Ot),Ot.onDone(()=>{Ot.destroy();const Zt=this.players.indexOf(Ot);this.players.splice(Zt,1)}),Ot.play()}),rm}elementContainsData(t,e){let i=!1;const r=e[Ta];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let a=[];if(e){const c=this.playersByQueriedElement.get(t);c&&(a=c)}else{const c=this.playersByElement.get(t);if(c){const u=!o||o==Bg;c.forEach(m=>{m.queued||!u&&m.triggerName!=r||a.push(m)})}}return(i||r)&&(a=a.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(t,e,i){const o=e.element,a=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:e.triggerName;for(const u of e.timelines){const m=u.element,g=m!==o,C=Gs(i,m,[]);this._getPreviousPlayers(m,g,a,c,e.toState).forEach(O=>{const V=O.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),O.destroy(),C.push(O)})}$h(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,a){const c=e.triggerName,u=e.element,m=[],g=new Set,C=new Set,F=e.timelines.map(V=>{const U=V.element;g.add(U);const ie=U[Ta];if(ie&&ie.removedBeforeQueried)return new Pg(V.duration,V.delay);const ue=U!==u,Le=function F3(n){const t=[];return RM(n,t),t}((i.get(U)||D3).map(ko=>ko.getRealPlayer())).filter(ko=>!!ko.element&&ko.element===U),ge=o.get(U),ft=a.get(U),jn=aM(0,this._normalizer,0,V.keyframes,ge,ft),Xn=this._buildPlayer(V,jn,Le);if(V.subTimeline&&r&&C.add(U),ue){const ko=new QC(t,c,U);ko.setRealPlayer(Xn),m.push(ko)}return Xn});m.forEach(V=>{Gs(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function k3(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,V.element,V))}),g.forEach(V=>Ea(V,gM));const O=_u(F);return O.onDestroy(()=>{g.forEach(V=>Pf(V,gM)),ic(u,e.toStyles)}),C.forEach(V=>{Gs(r,V,[]).push(O)}),O}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Pg(t.duration,t.delay)}}class QC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Pg,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>IC(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Gs(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uy(n){return n&&1===n.nodeType}function FM(n,t){const e=n.style.display;return n.style.display=t??"none",e}function OM(n,t,e,i,r){const o=[];e.forEach(u=>o.push(FM(u)));const a=[];i.forEach((u,m)=>{const g=new Map;u.forEach(C=>{const F=t.computeStyle(m,C,r);g.set(C,F),(!F||0==F.length)&&(m[Ta]=T3,a.push(m))}),n.set(m,g)});let c=0;return e.forEach(u=>FM(u,o[c++])),a}function PM(n,t){const e=new Map;if(n.forEach(c=>e.set(c,[])),0==t.length)return e;const i=1,r=new Set(t),o=new Map;function a(c){if(!c)return i;let u=o.get(c);if(u)return u;const m=c.parentNode;return u=e.has(m)?m:r.has(m)?i:a(m),o.set(c,u),u}return t.forEach(c=>{const u=a(c);u!==i&&e.get(u).push(c)}),e}function Ea(n,t){n.classList?.add(t)}function Pf(n,t){n.classList?.remove(t)}function I3(n,t,e){_u(e).onDone(()=>n.processLeaveNode(t))}function RM(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class hy{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new M3(t,e,i),this._timelineEngine=new y3(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const a=t+"-"+r;let c=this._triggerCache[a];if(!c){const u=[],m=[],g=$C(this._driver,o,u,m);if(u.length)throw function gB(n,t){return new Ce(3404,!1)}();c=function p3(n,t,e){return new g3(n,t,e)}(r,g,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,a]=lM(i);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[a,c]=lM(i);return this._timelineEngine.listen(a,e,c,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let R3=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ic(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ic(this._element,this._initialStyles),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&($h(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($h(this._element,this._endStyles),this._endStyles=null),ic(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function JC(n){let t=null;return n.forEach((e,i)=>{(function L3(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class NM{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:xM(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class N3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return hM(t,e)}getParentElement(t){return RC(t)}query(t,e,i){return mM(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,a=[]){const u={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(u.easing=o);const m=new Map,g=a.filter(O=>O instanceof NM);(function HB(n,t){return 0===n||0===t})(i,r)&&g.forEach(O=>{O.currentSnapshot.forEach((V,U)=>m.set(U,V))});let C=function LB(n){return n.length?n[0]instanceof Map?n:n.map(t=>_M(t)):[]}(e).map(O=>bu(O));C=function zB(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;oa.set(c,xM(n,c)))}}return t}(t,C,m);const F=function P3(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=JC(t[0]),t.length>1&&(i=JC(t[t.length-1]))):t instanceof Map&&(e=JC(t)),e||i?new R3(n,e,i):null}(t,C);return new NM(t,C,u,F)}}let B3=(()=>{class n extends nM{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ho.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?iM(e):e;return BM(this._renderer,null,i,"register",[r]),new V3(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(te(b),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class V3 extends WN{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new H3(this._id,t,e||{},this._renderer)}}class H3{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return BM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function BM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const VM="@.disabled";let z3=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,a)=>{const c=a?.parentNode(o);c&&a.removeChild(c,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let g=this._rendererCache.get(o);return g||(g=new HM("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,g)),g}const a=i.id,c=i.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const u=g=>{Array.isArray(g)?g.forEach(u):this.engine.registerTrigger(a,c,e,g.name,g)};return i.data.animation.forEach(u),new $3(this,c,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,c]=o;a(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(te(b),te(hy),te(Ht))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class HM{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==VM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class $3 extends HM{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==VM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function j3(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function U3(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,c=>{this.factory.scheduleListenerCallback(c._data||-1,i,c)})}return this.delegate.listen(t,e,i)}}const zM=[{provide:nM,useClass:B3},{provide:ZC,useFactory:function G3(){return new u3}},{provide:hy,useClass:(()=>{class n extends hy{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(LC),te(ZC),te(Mg))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})()},{provide:b,useFactory:function Z3(n,t,e){return new z3(n,t,e)},deps:[Kb,hy,Ht]}],ex=[{provide:LC,useFactory:()=>new N3},{provide:Nr,useValue:"BrowserAnimations"},...zM],$M=[{provide:LC,useClass:fM},{provide:Nr,useValue:"NoopAnimations"},...zM];let q3=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?$M:ex}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:ex,imports:[QE]}),n})();const{isArray:Y3}=Array,{getPrototypeOf:K3,prototype:X3,keys:Q3}=Object;function jM(n){if(1===n.length){const t=n[0];if(Y3(t))return{args:t,keys:null};if(function J3(n){return n&&"object"==typeof n&&K3(n)===X3}(t)){const e=Q3(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:e5}=Array;function tx(n){return Vn(t=>function t5(n,t){return e5(t)?n(...t):n(t)}(n,t))}function UM(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function WM(...n){const t=ia(n),{args:e,keys:i}=jM(n),r=new at(o=>{const{length:a}=e;if(!a)return void o.complete();const c=new Array(a);let u=a,m=a;for(let g=0;g{C||(C=!0,m--),c[g]=F},()=>u--,void 0,()=>{(!u||!C)&&(m||o.next(i?UM(i,c):c),o.complete())}))}});return t?r.pipe(tx(t)):r}let GM=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(E(w),E(h))},n.\u0275dir=xe({type:n}),n})(),Uh=(()=>{class n extends GM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,features:[nt]}),n})();const Tr=new ye("NgValueAccessor"),r5={provide:Tr,useExisting:Wt(()=>yo),multi:!0},s5=new ye("CompositionEventMode");let yo=(()=>{class n extends GM{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function o5(){const n=nd()?nd().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(E(w),E(h),E(s5,8))},n.\u0275dir=xe({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ce("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Vt([r5]),nt]}),n})();const a5=!1;function yu(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function qM(n){return null!=n&&"number"==typeof n.length}const Wi=new ye("NgValidators"),vu=new ye("NgAsyncValidators"),l5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class bn{static min(t){return function YM(n){return t=>{if(yu(t.value)||yu(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(yu(t.value)||yu(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function XM(n){return yu(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function QM(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function JM(n){return yu(n.value)||l5.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function ek(n){return t=>yu(t.value)||!qM(t.value)?null:t.value.lengthqM(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function nk(n){if(!n)return fy;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(yu(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return lk(t)}static composeAsync(t){return ck(t)}}function fy(n){return null}function ik(n){return null!=n}function rk(n){const t=bb(n)?hr(n):n;if(a5&&!D1(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new Ce(-1101,e)}return t}function ok(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function sk(n,t){return t.map(e=>e(n))}function ak(n){return n.map(t=>function c5(n){return!n.validate}(t)?t:e=>t.validate(e))}function lk(n){if(!n)return null;const t=n.filter(ik);return 0==t.length?null:function(e){return ok(sk(e,t))}}function nx(n){return null!=n?lk(ak(n)):null}function ck(n){if(!n)return null;const t=n.filter(ik);return 0==t.length?null:function(e){return WM(sk(e,t).map(rk)).pipe(Vn(ok))}}function ix(n){return null!=n?ck(ak(n)):null}function dk(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function uk(n){return n._rawValidators}function hk(n){return n._rawAsyncValidators}function rx(n){return n?Array.isArray(n)?n:[n]:[]}function py(n,t){return Array.isArray(n)?n.includes(t):n===t}function mk(n,t){const e=rx(t);return rx(n).forEach(r=>{py(e,r)||e.push(r)}),e}function fk(n,t){return rx(t).filter(e=>!py(n,e))}class pk{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=nx(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ix(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Yo extends pk{get formDirective(){return null}get path(){return null}}class rl extends pk{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class gk{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let oo=(()=>{class n extends gk{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(E(rl,2))},n.\u0275dir=xe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Jt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[nt]}),n})(),qs=(()=>{class n extends gk{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(E(Yo,10))},n.\u0275dir=xe({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Jt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[nt]}),n})();function _k(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const ax=!1,Vg="VALID",_y="INVALID",Rf="PENDING",Hg="DISABLED";function lx(n){return(by(n)?n.validators:n)||null}function cx(n,t){return(by(t)?t.asyncValidators:n)||null}function by(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function bk(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Ce(1e3,ax?function m5(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!i[e])throw new Ce(1001,ax?function f5(n,t){return`Cannot find form control ${_k(n,t)}`}(t,e):"")}function yk(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Ce(1002,ax?function p5(n,t){return`Must supply a value for form control ${_k(n,t)}`}(t,r):"")})}class dx{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Vg}get invalid(){return this.status===_y}get pending(){return this.status==Rf}get disabled(){return this.status===Hg}get enabled(){return this.status!==Hg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(mk(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(mk(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(fk(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(fk(t,this._rawAsyncValidators))}hasValidator(t){return py(this._rawValidators,t)}hasAsyncValidator(t){return py(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Rf,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Hg,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Vg,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Vg||this.status===Rf)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hg:Vg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Rf,this._hasOwnPendingAsyncValidator=!0;const e=rk(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?Hg:this.errors?_y:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rf)?Rf:this._anyControlsHaveStatus(_y)?_y:Vg}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){by(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function g5(n){return Array.isArray(n)?nx(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function _5(n){return Array.isArray(n)?ix(n):n||null}(this._rawAsyncValidators)}}class Ko extends dx{constructor(t,e,i){super(lx(e),cx(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){yk(this,!0,t),Object.keys(t).forEach(i=>{bk(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Wh=new ye("CallSetDisabledState",{providedIn:"root",factory:()=>zg}),zg="always";function yy(n,t){return[...t.path,n]}function $g(n,t,e=zg){ux(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function v5(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&vk(n,t)})}(n,t),function x5(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function C5(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&vk(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function y5(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function vy(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),xy(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Cy(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ux(n,t){const e=uk(n);null!==t.validator?n.setValidators(dk(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=hk(n);null!==t.asyncValidator?n.setAsyncValidators(dk(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Cy(t._rawValidators,r),Cy(t._rawAsyncValidators,r)}function xy(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=uk(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=hk(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return Cy(t._rawValidators,i),Cy(t._rawAsyncValidators,i),e}function vk(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ck(n,t){ux(n,t)}function mx(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function xk(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function fx(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===yo?e=o:function T5(n){return Object.getPrototypeOf(n.constructor)===Uh}(o)?i=o:r=o}),r||i||e||null}const M5={provide:Yo,useExisting:Wt(()=>Lf)},jg=(()=>Promise.resolve())();let Lf=(()=>{class n extends Yo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ve,this.form=new Ko({},nx(e),ix(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){jg.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),$g(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){jg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){jg.then(()=>{const i=this._findContainer(e.path),r=new Ko({});Ck(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){jg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){jg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,xk(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(E(Wi,10),E(vu,10),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&ce("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vt([M5]),nt]}),n})();function wk(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Dk(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const dt=class extends dx{constructor(t=null,e,i){super(lx(e),cx(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),by(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Dk(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){wk(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wk(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){Dk(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},A5={provide:rl,useExisting:Wt(()=>px)},Mk=(()=>Promise.resolve())();let px=(()=>{class n extends rl{constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new dt,this._registered=!1,this.update=new Ve,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=fx(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),mx(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$g(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Mk.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function iC(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Mk.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?yy(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(E(Yo,9),E(Wi,10),E(vu,10),E(Tr,10),E(ti,8),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Vt([A5]),nt,ci]}),n})(),rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const I5={provide:Tr,useExisting:Wt(()=>gx),multi:!0};let gx=(()=>{class n extends Uh{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ce("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Vt([I5]),nt]}),n})(),kk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const _x=new ye("NgModelWithFormControlWarning"),R5={provide:rl,useExisting:Wt(()=>Nf)};let Nf=(()=>{class n extends rl{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Ve,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=fx(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&vy(i,this,!1),$g(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}mx(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vy(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(E(Wi,10),E(vu,10),E(Tr,10),E(_x,8),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Vt([R5]),nt,ci]}),n})();const L5={provide:Yo,useExisting:Wt(()=>so)};let so=(()=>{class n extends Yo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ve,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xy(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return $g(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){vy(e.control||null,e,!1),function E5(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,xk(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(vy(i||null,e),(n=>n instanceof dt)(r)&&($g(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Ck(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function w5(n,t){return xy(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ux(this.form,this),this._oldForm&&xy(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(E(Wi,10),E(vu,10),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ce("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vt([L5]),nt,ci]}),n})();const V5={provide:rl,useExisting:Wt(()=>ps)};let ps=(()=>{class n extends rl{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Ve,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=fx(0,o)}ngOnChanges(e){this._added||this._setUpControl(),mx(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return yy(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(E(Yo,13),E(Wi,10),E(vu,10),E(Tr,10),E(_x,8))},n.\u0275dir=xe({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Vt([V5]),nt,ci]}),n})(),$k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[kk]}),n})();class Bf extends dx{constructor(t,e,i){super(lx(e),cx(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){yk(this,!1,t),t.forEach((i,r)=>{bk(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}let e4=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Wh,useValue:e.callSetDisabledState??zg}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$k]}),n})(),t4=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:_x,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Wh,useValue:e.callSetDisabledState??zg}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$k]}),n})();function gs(...n){return hr(n,co(n))}function _s(n,t){return it((e,i)=>{let r=0;e.subscribe(lt(i,o=>n.call(t,o,r++)&&i.next(o)))})}class wy{}class Dx{}class ad{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ad?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ad;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ad?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(c=>-1===o.indexOf(c)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class r4{encodeKey(t){return jk(t)}encodeValue(t){return jk(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const s4=/%(\d[a-f0-9])/gi,a4={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function jk(n){return encodeURIComponent(n).replace(s4,(t,e)=>a4[e]??t)}function Dy(n){return`${n}`}class Cu{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new r4,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function o4(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,c]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],u=e.get(a)||[];u.push(c),e.set(a,u)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Dy):[Dy(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Cu({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Dy(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Dy(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class l4{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Uk(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Wk(n){return typeof Blob<"u"&&n instanceof Blob}function Gk(n){return typeof FormData<"u"&&n instanceof FormData}class Ug{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function c4(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new ad),this.context||(this.context=new l4),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const c=e.indexOf("?");this.urlWithParams=e+(-1===c?"?":cC.set(F,t.setHeaders[F]),u)),t.setParams&&(m=Object.keys(t.setParams).reduce((C,F)=>C.set(F,t.setParams[F]),m)),new Ug(e,i,o,{params:m,headers:u,context:g,reportProgress:c,responseType:r,withCredentials:a})}}var Er=(()=>((Er=Er||{})[Er.Sent=0]="Sent",Er[Er.UploadProgress=1]="UploadProgress",Er[Er.ResponseHeader=2]="ResponseHeader",Er[Er.DownloadProgress=3]="DownloadProgress",Er[Er.Response=4]="Response",Er[Er.User=5]="User",Er))();class Tx{constructor(t,e=200,i="OK"){this.headers=t.headers||new ad,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ex extends Tx{constructor(t={}){super(t),this.type=Er.ResponseHeader}clone(t={}){return new Ex({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ty extends Tx{constructor(t={}){super(t),this.type=Er.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ty({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Zk extends Tx{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Mx(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Wg=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Ug)o=e;else{let u,m;u=r.headers instanceof ad?r.headers:new ad(r.headers),r.params&&(m=r.params instanceof Cu?r.params:new Cu({fromObject:r.params})),o=new Ug(e,i,void 0!==r.body?r.body:null,{headers:u,context:r.context,params:m,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=gs(o).pipe(function n4(n,t){return j(t)?ir(n,t,1):ir(n,1)}(u=>this.handler.handle(u)));if(e instanceof Ug||"events"===r.observe)return a;const c=a.pipe(_s(u=>u instanceof Ty));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Vn(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(Vn(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(Vn(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return c.pipe(Vn(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Cu).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Mx(r,i))}post(e,i,r={}){return this.request("POST",e,Mx(r,i))}put(e,i,r={}){return this.request("PUT",e,Mx(r,i))}}return n.\u0275fac=function(e){return new(e||n)(te(wy))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function qk(n,t){return t(n)}function u4(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const m4=new ye("HTTP_INTERCEPTORS"),Gg=new ye("HTTP_INTERCEPTOR_FNS");function f4(){let n=null;return(t,e)=>(null===n&&(n=(qn(m4,{optional:!0})??[]).reduceRight(u4,qk)),n(t,e))}let Yk=(()=>{class n extends wy{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Gg)));this.chain=i.reduceRight((r,o)=>function h4(n,t,e){return(i,r)=>e.runInContext(()=>t(i,o=>n(o,r)))}(r,o,this.injector),qk)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(te(Dx),te(Jc))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const b4=/^\)\]\}',?\n/;let Xk=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new at(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((O,V)=>r.setRequestHeader(O,V.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const O=e.detectContentTypeHeader();null!==O&&r.setRequestHeader("Content-Type",O)}if(e.responseType){const O=e.responseType.toLowerCase();r.responseType="json"!==O?O:"text"}const o=e.serializeBody();let a=null;const c=()=>{if(null!==a)return a;const O=r.statusText||"OK",V=new ad(r.getAllResponseHeaders()),U=function y4(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new Ex({headers:V,status:r.status,statusText:O,url:U}),a},u=()=>{let{headers:O,status:V,statusText:U,url:ie}=c(),ue=null;204!==V&&(ue=typeof r.response>"u"?r.responseText:r.response),0===V&&(V=ue?200:0);let Le=V>=200&&V<300;if("json"===e.responseType&&"string"==typeof ue){const ge=ue;ue=ue.replace(b4,"");try{ue=""!==ue?JSON.parse(ue):null}catch(ft){ue=ge,Le&&(Le=!1,ue={error:ft,text:ue})}}Le?(i.next(new Ty({body:ue,headers:O,status:V,statusText:U,url:ie||void 0})),i.complete()):i.error(new Zk({error:ue,headers:O,status:V,statusText:U,url:ie||void 0}))},m=O=>{const{url:V}=c(),U=new Zk({error:O,status:r.status||0,statusText:r.statusText||"Unknown Error",url:V||void 0});i.error(U)};let g=!1;const C=O=>{g||(i.next(c()),g=!0);let V={type:Er.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(V.total=O.total),"text"===e.responseType&&r.responseText&&(V.partialText=r.responseText),i.next(V)},F=O=>{let V={type:Er.UploadProgress,loaded:O.loaded};O.lengthComputable&&(V.total=O.total),i.next(V)};return r.addEventListener("load",u),r.addEventListener("error",m),r.addEventListener("timeout",m),r.addEventListener("abort",m),e.reportProgress&&(r.addEventListener("progress",C),null!==o&&r.upload&&r.upload.addEventListener("progress",F)),r.send(o),i.next({type:Er.Sent}),()=>{r.removeEventListener("error",m),r.removeEventListener("abort",m),r.removeEventListener("load",u),r.removeEventListener("timeout",m),e.reportProgress&&(r.removeEventListener("progress",C),null!==o&&r.upload&&r.upload.removeEventListener("progress",F)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(te(AE))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const kx=new ye("XSRF_ENABLED"),Qk=new ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Jk=new ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class eS{}let x4=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gE(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Eg),te(Qk))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function w4(n,t){const e=n.url.toLowerCase();if(!qn(kx)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=qn(eS).getToken(),r=qn(Jk);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var cr=(()=>((cr=cr||{})[cr.Interceptors=0]="Interceptors",cr[cr.LegacyInterceptors=1]="LegacyInterceptors",cr[cr.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",cr[cr.NoXsrfProtection=3]="NoXsrfProtection",cr[cr.JsonpSupport=4]="JsonpSupport",cr[cr.RequestsMadeViaParent=5]="RequestsMadeViaParent",cr))();function Vf(n,t){return{\u0275kind:n,\u0275providers:t}}function D4(...n){const t=[Wg,Xk,Yk,{provide:wy,useExisting:Yk},{provide:Dx,useExisting:Xk},{provide:Gg,useValue:w4,multi:!0},{provide:kx,useValue:!0},{provide:eS,useClass:x4}];for(const e of n)t.push(...e.\u0275providers);return function Uv(n){return{\u0275providers:n}}(t)}const tS=new ye("LEGACY_INTERCEPTOR_FN");let E4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[D4(Vf(cr.LegacyInterceptors,[{provide:tS,useFactory:f4},{provide:Gg,useExisting:tS,multi:!0}]))]}),n})();function Ct(n){return null!=n&&"false"!=`${n}`}function oc(n,t=0){return function M4(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Zg(n){return Array.isArray(n)?n:[n]}function Mr(n){return null==n?"":"string"==typeof n?n:`${n}px`}function er(n){return n instanceof h?n.nativeElement:n}const S4=["addListener","removeListener"],A4=["addEventListener","removeEventListener"],I4=["on","off"];function sc(n,t,e,i){if(j(e)&&(i=e,e=void 0),i)return sc(n,t,e).pipe(tx(i));const[r,o]=function P4(n){return j(n.addEventListener)&&j(n.removeEventListener)}(n)?A4.map(a=>c=>n[a](t,c,e)):function F4(n){return j(n.addListener)&&j(n.removeListener)}(n)?S4.map(nS(n,t)):function O4(n){return j(n.on)&&j(n.off)}(n)?I4.map(nS(n,t)):[];if(!r&&Aa(n))return ir(a=>sc(a,t,e))(ii(n));if(!r)throw new TypeError("Invalid event target");return new at(a=>{const c=(...u)=>a.next(1o(c)})}function nS(n,t){return e=>i=>n[e](t,i)}class R4 extends z{constructor(t,e){super()}schedule(t,e=0){return this}}const Ey={setInterval(n,t,...e){const{delegate:i}=Ey;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Ey;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class Sx extends R4{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return Ey.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Ey.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,q(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const qg={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=qg;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new z(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=qg;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=qg;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0},iS={now:()=>(iS.delegate||Date).now(),delegate:void 0};class Yg{constructor(t,e=Yg.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Yg.now=iS.now;class Ax extends Yg{constructor(t,e=Yg.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const rS=new class N4 extends Ax{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class L4 extends Sx{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=qg.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(qg.cancelAnimationFrame(e),t._scheduled=void 0)}});let Ix,B4=1;const My={};function oS(n){return n in My&&(delete My[n],!0)}const V4={setImmediate(n){const t=B4++;return My[t]=!0,Ix||(Ix=Promise.resolve()),Ix.then(()=>oS(t)&&n()),t},clearImmediate(n){oS(n)}},{setImmediate:H4,clearImmediate:z4}=V4,ky={setImmediate(...n){const{delegate:t}=ky;return(t?.setImmediate||H4)(...n)},clearImmediate(n){const{delegate:t}=ky;return(t?.clearImmediate||z4)(n)},delegate:void 0},Fx=new class j4 extends Ax{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class $4 extends Sx{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=ky.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(ky.clearImmediate(e),t._scheduled=void 0)}}),Kg=new Ax(Sx),U4=Kg;function Sy(n=0,t,e=U4){let i=-1;return null!=t&&(_l(t)?e=t:i=t),new at(r=>{let o=function G4(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Ox(n,t=Kg){return function W4(n){return it((t,e)=>{let i=!1,r=null,o=null,a=!1;const c=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const m=r;r=null,e.next(m)}a&&e.complete()},u=()=>{o=null,a&&e.complete()};t.subscribe(lt(e,m=>{i=!0,r=m,o||ii(n(m)).subscribe(o=lt(e,c,u))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>Sy(n,t))}function fn(n){return it((t,e)=>{ii(n).subscribe(lt(e,()=>e.complete(),Oe)),!e.closed&&t.subscribe(e)})}function Ay(...n){return function Z4(){return gl(1)}()(hr(n,co(n)))}function Vr(...n){const t=co(n);return it((e,i)=>{(t?Ay(n,e,t):Ay(n,e)).subscribe(i)})}let Px;try{Px=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Px=!1}let Hf,Ai=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?kE(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Px)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(te(Eg))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function aS(){if(Hf)return Hf;if("object"!=typeof document||!document)return Hf=new Set(sS),Hf;let n=document.createElement("input");return Hf=new Set(sS.filter(t=>(n.setAttribute("type",t),n.type===t))),Hf}let Xg,Iy,Zh,Rx;function ol(n){return function q4(){if(null==Xg&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xg=!0}))}finally{Xg=Xg||!1}return Xg}()?n:!!n.capture}function lS(){if(null==Zh){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zh=!1,Zh;if("scrollBehavior"in document.documentElement.style)Zh=!0;else{const n=Element.prototype.scrollTo;Zh=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Zh}function Qg(){if("object"!=typeof document||!document)return 0;if(null==Iy){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),Iy=0,0===n.scrollLeft&&(n.scrollLeft=1,Iy=0===n.scrollLeft?1:2),n.remove()}return Iy}function Lx(n){if(function Y4(){if(null==Rx){const n=typeof document<"u"?document.head:null;Rx=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Rx}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Ys(n){return n.composedPath?n.composedPath()[0]:n.target}function Nx(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const K4=new ye("cdk-dir-doc",{providedIn:"root",factory:function X4(){return qn(en)}}),Q4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Hr=(()=>{class n{constructor(e){this.value="ltr",this.change=new Ve,e&&(this.value=function J4(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?Q4.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(te(K4,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const eV=["contentWrapper"],tV=["*"],nV=new ye("VIRTUAL_SCROLL_STRATEGY");let zf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Ae,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new at(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Ox(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):gs()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(_s(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=er(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>sc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(Ai),te(en,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cS=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Ae,this._elementScrolled=new at(a=>this.ngZone.runOutsideAngular(()=>sc(this.elementRef.nativeElement,"scroll").pipe(fn(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Qg()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Qg()?e.left=e.right:1==Qg()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;lS()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:i:"end"==e&&(e=a?i:r),a&&2==Qg()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Qg()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(zf),E(Ht),E(Hr,8))},n.\u0275dir=xe({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),n})(),ld=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Ae,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Ox(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(Ht),te(en,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dS=new ye("VIRTUAL_SCROLLABLE");let oV=(()=>{class n extends cS{constructor(e,i,r,o){super(e,i,r,o)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(zf),E(Ht),E(Hr,8))},n.\u0275dir=xe({type:n,features:[nt]}),n})();const aV=typeof requestAnimationFrame<"u"?rS:Fx;let lV=(()=>{class n extends oV{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ct(e)}constructor(e,i,r,o,a,c,u,m){super(e,c,r,a),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=o,this.scrollable=m,this._platform=qn(Ai),this._detachedSubject=new Ae,this._renderedRangeSubject=new Ae,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new at(g=>this._scrollStrategy.scrolledIndexChange.subscribe(C=>Promise.resolve().then(()=>this.ngZone.run(()=>g.next(C))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=z.EMPTY,this._viewportChanges=u.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Vr(null),Ox(0,aV)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(fn(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function sV(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let u=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(u+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=u&&(this._renderedContentTransform=u,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let i;const r="left",o="right",a="rtl"==this.dir?.value;i="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Ht),E(nV,8),E(Hr,8),E(zf),E(ld),E(dS,8))},n.\u0275cmp=et({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Nn(eV,7),2&e){let r;yt(r=vt())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[Vt([{provide:cS,useFactory:(t,e)=>t||e,deps:[[new ds,new fa(dS)],n]}]),nt,$D],ngContentSelectors:tV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(bi(),y(0,"div",0,1),Gt(2),v(),Pe(3,"div",2)),2&e&&(T(3),mg("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),qh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})(),uS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[Jg,qh,lV,Jg,qh]}),n})();class Bx extends Ae{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function Ks(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function jf(n,t,e){const i=j(n)||t||e?{next:n,error:t,complete:e}:n;return i?it((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let c=!0;r.subscribe(lt(o,u=>{var m;null===(m=i.next)||void 0===m||m.call(i,u),o.next(u)},()=>{var u;c=!1,null===(u=i.complete)||void 0===u||u.call(i),o.complete()},u=>{var m;c=!1,null===(m=i.error)||void 0===m||m.call(i,u),o.error(u)},()=>{var u,m;c&&(null===(u=i.unsubscribe)||void 0===u||u.call(i)),null===(m=i.finalize)||void 0===m||m.call(i)}))}):Ge}function Hx(n,t=Kg){return it((e,i)=>{let r=null,o=null,a=null;const c=()=>{if(r){r.unsubscribe(),r=null;const m=o;o=null,i.next(m)}};function u(){const m=a+n,g=t.now();if(g{o=m,a=t.now(),r||(r=t.schedule(u,n),i.add(r))},()=>{c(),i.complete()},void 0,()=>{o=r=null}))})}function zx(n){return _s((t,e)=>n<=e)}function $x(n,t=Ge){return n=n??wV,it((e,i)=>{let r,o=!0;e.subscribe(lt(i,a=>{const c=t(a);(o||!n(r,c))&&(o=!1,r=c,i.next(a))}))})}function wV(n,t){return n===t}let mS=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DV=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=er(e);return new at(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Ae,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(te(mS))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fS=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=oc(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ve,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Hx(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(DV),E(h),E(Ht))},n.\u0275dir=xe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[mS]}),n})();function pS(n,t,e){n?lo(e,n,t):t()}function zr(n){return n<=0?()=>na:it((t,e)=>{let i=0;t.subscribe(lt(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}const gS=new Set;let Uf,MV=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):SV}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function kV(n){if(!gS.has(n))try{Uf||(Uf=document.createElement("style"),Uf.setAttribute("type","text/css"),document.head.appendChild(Uf)),Uf.sheet&&(Uf.sheet.insertRule(`@media ${n} {body{ }}`,0),gS.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(te(Ai))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function SV(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Ux=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Ae}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return _S(Zg(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=function TV(...n){const t=co(n),e=ia(n),{args:i,keys:r}=jM(n);if(0===i.length)return hr([],t);const o=new at(function EV(n,t,e=Ge){return i=>{pS(t,()=>{const{length:r}=n,o=new Array(r);let a=r,c=r;for(let u=0;u{const m=hr(n[u],t);let g=!1;m.subscribe(lt(i,C=>{o[u]=C,g||(g=!0,c--),c||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,t,r?a=>UM(r,a):Ge));return e?o.pipe(tx(e)):o}(_S(Zg(e)).map(a=>this._registerQuery(a).observable));return o=Ay(o.pipe(zr(1)),o.pipe(zx(1),Hx(0))),o.pipe(Vn(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:m})=>{c.matches=c.matches||u,c.breakpoints[m]=u}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new at(a=>{const c=u=>this._zone.run(()=>a.next(u));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(Vr(i),Vn(({matches:a})=>({query:e,matches:a})),fn(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(te(MV),te(Ht))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _S(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Ry(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const yS="cdk-describedby-message",Ly="cdk-describedby-host";let Wx=0,OV=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Wx++,this._document=e,this._id=qn(If)+"-"+Wx++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=Gx(i,r);"string"!=typeof i?(vS(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=Gx(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Ly}="${this._id}"]`);for(let i=0;i0!=r.indexOf(yS));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function IV(n,t,e){const i=Ry(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ly,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function FV(n,t,e){const r=Ry(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ly)}_isElementDescribedByMessage(e,i){const r=Ry(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ai))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Gx(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function vS(n,t){n.id||(n.id=`${yS}-${t}-${Wx++}`)}class CS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ae,this._typeaheadSubscription=z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ae,this.change=new Ae,t instanceof fu&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(jf(e=>this._pressedLetters.push(e)),Hx(t),_s(()=>this._pressedLetters.length>0),Vn(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof fu?this._items.toArray():this._items}}class xS extends CS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Zx extends CS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function Ny(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function By(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const VV=new ye("cdk-input-modality-detector-options"),HV={ignoreKeys:[18,17,224,91,16]},Wf=ol({passive:!0,capture:!0});let zV=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Bx(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ys(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ny(a)?"keyboard":"mouse"),this._mostRecentTarget=Ys(a))},this._onTouchstart=a=>{By(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ys(a))},this._options={...HV,...o},this.modalityDetected=this._modality.pipe(zx(1)),this.modalityChanged=this.modalityDetected.pipe($x()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wf),r.addEventListener("mousedown",this._onMousedown,Wf),r.addEventListener("touchstart",this._onTouchstart,Wf)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wf),document.removeEventListener("mousedown",this._onMousedown,Wf),document.removeEventListener("touchstart",this._onTouchstart,Wf))}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(Ht),te(en),te(VV,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $V=new ye("liveAnnouncerElement",{providedIn:"root",factory:function jV(){return null}}),UV=new ye("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let WV=0,qx=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{constructor(e,i,r,o,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ae,this._rootNodeFocusAndBlurListener=c=>{for(let m=Ys(c);m;m=m.parentElement)"focus"===c.type?this._onFocus(c,m):this._onBlur(c,m)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const r=er(e);if(!this._platform.isBrowser||1!==r.nodeType)return gs(null);const o=Lx(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const c={checkChildren:i,subject:new Ae,rootNode:o};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const i=er(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=er(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([c,u])=>this._originChanged(c,i,u)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Ys(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vy),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vy)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(fn(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vy),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vy),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Ve}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(xu))},n.\u0275dir=xe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const TS="cdk-high-contrast-black-on-white",ES="cdk-high-contrast-white-on-black",Yx="cdk-high-contrast-active";let MS=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=qn(Ux).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Yx,TS,ES),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(Yx,TS):2===i&&e.add(Yx,ES)}}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kS=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(te(MS))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[jx]}),n})();function ac(n,t){return it((e,i)=>{let r=null,o=0,a=!1;const c=()=>a&&!r&&i.complete();e.subscribe(lt(i,u=>{r?.unsubscribe();let m=0;const g=o++;ii(n(u,g)).subscribe(r=lt(i,C=>i.next(t?t(u,C,g,m++):C),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function Kx(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function Gf(n,t){const e=t?"":"none";Kx(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function SS(n,t,e){Kx(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Hy(n,t){return t&&"none"!=t?n+" "+t:n}function AS(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function Xx(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function Qx(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Jx(n,t,e){const{top:i,bottom:r,left:o,right:a}=n;return e>=i&&e<=r&&t>=o&&t<=a}function n_(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function IS(n,t,e,i){const{top:r,right:o,bottom:a,left:c,width:u,height:m}=n,g=u*t,C=m*t;return i>r-C&&ic-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Qx(e)})})}handleScroll(t){const e=Ys(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,a;if(e===this._document){const m=this.getViewportScrollPosition();o=m.top,a=m.left}else o=e.scrollTop,a=e.scrollLeft;const c=r.top-o,u=r.left-a;return this.positions.forEach((m,g)=>{m.clientRect&&e!==g&&e.contains(g)&&n_(m.clientRect,c,u)}),r.top=o,r.left=a,{top:c,left:u}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function OS(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;rGf(i,e)))}constructor(t,e,i,r,o,a){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Ae,this._pointerMoveSubscription=z.EMPTY,this._pointerUpSubscription=z.EMPTY,this._scrollSubscription=z.EMPTY,this._resizeSubscription=z.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Ae,this.started=new Ae,this.released=new Ae,this.ended=new Ae,this.entered=new Ae,this.exited=new Ae,this.dropped=new Ae,this.moved=this._moveEvents,this._pointerDown=c=>{if(this.beforeStarted.next(),this._handles.length){const u=this._getTargetHandle(c);u&&!this._disabledHandles.has(u)&&!this.disabled&&this._initializeDragSequence(u,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const u=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(u.x-this._pickupPositionOnPage.x)+Math.abs(u.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const O=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),V=this._dropContainer;if(!O)return void this._endDragSequence(c);(!V||!V.isDragging()&&!V.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const m=this._getConstrainedPointerPosition(u);if(this._hasMoved=!0,this._lastKnownPointerPosition=u,this._updatePointerDirectionDelta(m),this._dropContainer)this._updateActiveDropContainer(m,u);else{const g=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,C=this._activeTransform;C.x=m.x-g.x+this._passiveTransform.x,C.y=m.y-g.y+this._passiveTransform.y,this._applyRootElementTransform(C.x,C.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:m,event:c,distance:this._getDragDistance(m),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const u=this._getTargetHandle(c);u&&!this._disabledHandles.has(u)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new FS(i),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>er(i)),this._handles.forEach(i=>Gf(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=er(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,zy),e.addEventListener("touchstart",this._pointerDown,NS),e.addEventListener("dragstart",this._nativeDragStart,zy)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?er(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Gf(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Gf(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){i_(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),SS(i,!1,ew),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=i_(e),o=!r&&0!==e.button,a=this._rootElement,c=Ys(e),u=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),m=r?By(e):Ny(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||u||m)return;if(this._handles.length){const F=a.style;this._rootElementTapHighlight=F.webkitTapHighlightColor||"",F.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(F=>this._updateOnScroll(F)),this._boundaryElement&&(this._boundaryRect=Qx(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const C=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:C.x,y:C.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){SS(this._rootElement,!0,ew),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,a,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),r=VS(a,this._document),this._previewRef=a,t.matchSize?HS(r,o):r.style.transform=$y(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=OS(this._rootElement),HS(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Kx(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ew),Gf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function YV(n){const t=getComputedStyle(n),e=Xx(t,"transition-property"),i=e.find(c=>"transform"===c||"all"===c);if(!i)return 0;const r=e.indexOf(i),o=Xx(t,"transition-duration"),a=Xx(t,"transition-delay");return AS(o[r])+AS(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=a=>{(!a||Ys(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=VS(this._placeholderRef,this._document)):i=OS(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,a=i_(i)?i.targetTouches[0]:i,c=this._getViewportScrollPosition();return{x:o.left-t.left+(a.pageX-o.left-c.left),y:o.top-t.top+(a.pageY-o.top-c.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=i_(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=o,c.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,c=this._boundaryRect,{width:u,height:m}=this._getPreviewRect(),g=c.top+a,C=c.bottom-(m-a);i=BS(i,c.left+o,c.right-(u-o)),r=BS(r,g,C)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),c=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Gf(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,zy),t.removeEventListener("touchstart",this._pointerDown,NS),t.removeEventListener("dragstart",this._nativeDragStart,zy)}_applyRootElementTransform(t,e){const i=$y(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Hy(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=$y(t,e);this._preview.style.transform=Hy(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,a=i.right-r.right,c=r.top-i.top,u=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,r.height>i.height?(c>0&&(e+=c),u>0&&(e-=u)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:i_(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Ys(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&n_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Lx(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return er(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function $y(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function BS(n,t,e){return Math.max(t,Math.min(e,n))}function i_(n){return"t"===n.type[0]}function VS(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function HS(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=$y(t.left,t.top)}function r_(n,t){return Math.max(0,Math.min(t,n))}class e8{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===a&&o.length>0)return null;const c="horizontal"===this.orientation,u=o.findIndex(ie=>ie.drag===t),m=o[a],C=m.clientRect,F=u>a?1:-1,O=this._getItemOffsetPx(o[u].clientRect,C,F),V=this._getSiblingOffsetPx(u,o,F),U=o.slice();return function JV(n,t,e){const i=r_(t,n.length-1),r=r_(e,n.length-1);if(i===r)return;const o=n[i],a=r{if(U[ue]===ie)return;const Le=ie.drag===t,ge=Le?O:V,ft=Le?t.getPlaceholderElement():ie.drag.getRootElement();ie.offset+=ge,c?(ft.style.transform=Hy(`translate3d(${Math.round(ie.offset)}px, 0, 0)`,ie.initialTransform),n_(ie.clientRect,0,ge)):(ft.style.transform=Hy(`translate3d(0, ${Math.round(ie.offset)}px, 0)`,ie.initialTransform),n_(ie.clientRect,ge,0))}),this._previousSwap.overlaps=Jx(C,e,i),this._previousSwap.drag=m.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:u,currentIndex:a}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,a=this._activeDraggables,c=a.indexOf(t),u=t.getPlaceholderElement();let m=a[o];if(m===t&&(m=a[o+1]),!m&&(null==o||-1===o||o-1&&a.splice(c,1),m&&!this._dragDropRegistry.isDragging(m)){const g=m.getRootElement();g.parentElement.insertBefore(u,g),a.splice(o,0,t)}else er(this._element).appendChild(u),a.push(t);u.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{n_(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Qx(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,a=e[t+-1*i];let c=o[r?"width":"height"]*i;if(a){const u=r?"left":"top",m=r?"right":"bottom";-1===i?c-=a.clientRect[u]-o[m]:c+=o[u]-a.clientRect[m]}return c}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return r?t>=a.right:e>=a.bottom}{const a=i[0].clientRect;return r?t<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:u})=>c!==t&&((!r||c!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(u.left)&&e=Math.floor(u.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ae,this.entered=new Ae,this.exited=new Ae,this.dropped=new Ae,this.sorted=new Ae,this.receivingStarted=new Ae,this.receivingStopped=new Ae,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=z.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ae,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function qV(n=0,t=Kg){return n<0&&(n=0),Sy(n,n,t)}(0,rS).pipe(fn(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=er(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new FS(i),this._sortStrategy=new e8(this.element,e),this._sortStrategy.withSortPredicate((a,c)=>this.sortPredicate(a,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,a,c,u={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:c,event:u})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=er(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!IS(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||i||IS(a.clientRect,.05,t,e)&&([r,o]=function n8(n,t,e,i){const r=jS(t,i),o=US(t,e);let a=0,c=0;if(r){const u=n.scrollTop;1===r?u>0&&(a=1):n.scrollHeight-u>n.clientHeight&&(a=2)}if(o){const u=n.scrollLeft;1===o?u>0&&(c=1):n.scrollWidth-u>n.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,t,e),(r||o)&&(i=c))}),!r&&!o){const{width:a,height:c}=this._viewportRuler.getViewportSize(),u={width:a,height:c,top:0,right:a,bottom:c,left:0};r=jS(u,e),o=US(u,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=er(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=er(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=er(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&Jx(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!Jx(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=er(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Lx(er(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function jS(n,t){const{top:e,bottom:i,height:r}=n,o=r*$S;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function US(n,t){const{left:e,right:i,width:r}=n,o=r*$S;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const jy=ol({passive:!1,capture:!0});let i8=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ae,this.pointerUp=new Ae,this.scroll=new Ae,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,jy)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,jy)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:jy}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:jy}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new at(r=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),on(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const r8={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let tw=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=r8){return new QV(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new t8(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ht),te(ld),te(i8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nw=new ye("CDK_DRAG_PARENT"),iw=new ye("CdkDropListGroup");let WS=(()=>{class n{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e)}ngOnDestroy(){this._items.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],standalone:!0,features:[Vt([{provide:iw,useExisting:n}])]}),n})();const GS=new ye("CDK_DRAG_CONFIG");let o8=0;const ZS=new ye("CdkDropList");let qS=(()=>{class n{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ct(e)}constructor(e,i,r,o,a,c,u){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=c,this._destroyed=new Ae,this.connectedTo=[],this.id="cdk-drop-list-"+o8++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ve,this.entered=new Ve,this.exited=new Ve,this.sorted=new Ve,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=(m,g)=>this.enterPredicate(m.data,g.data),this._dropListRef.sortPredicate=(m,g,C)=>this.sortPredicate(m,g.data,C.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),c&&c._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Vr(this._dir.value),fn(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=Zg(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Ct(this.sortingDisabled),e.autoScrollDisabled=Ct(this.autoScrollDisabled),e.autoScrollStep=oc(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),on(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=c||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(E(h),E(tw),E(ti),E(zf),E(Hr,8),E(iw,12),E(GS,8))},n.\u0275dir=xe({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&(bt("id",i.id),Jt("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[Vt([{provide:iw,useValue:void 0},{provide:ZS,useExisting:n}])]}),n})();const rw=new ye("CdkDragHandle"),YS=new ye("CdkDragPlaceholder"),KS=new ye("CdkDragPreview");let XS=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ct(e),this._dragRef.disabled=this._disabled}constructor(e,i,r,o,a,c,u,m,g,C,F){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=u,this._changeDetectorRef=g,this._selfHandle=C,this._parentDrag=F,this._destroyed=new Ae,this.started=new Ve,this.released=new Ve,this.ended=new Ve,this.entered=new Ve,this.exited=new Ve,this.dropped=new Ve,this.moved=new at(O=>{const V=this._dragRef.moved.pipe(Vn(U=>({source:this,pointerPosition:U.pointerPosition,event:U.event,delta:U.delta,distance:U.distance}))).subscribe(O);return()=>{V.unsubscribe()}}),this._dragRef=m.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),c&&this._assignDefaults(c),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(zr(1),fn(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):er(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:oc(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(zr(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:c,draggingDisabled:u,rootElementSelector:m,previewContainer:g}=e;this.disabled=u??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),c&&(this.boundaryElement=c),m&&(this.rootElementSelector=m),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.changes.pipe(Vr(this._handles),jf(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),ac(e=>on(...e.map(i=>i._stateChanges.pipe(Vr(i))))),fn(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(E(h),E(ZS,12),E(en),E(Ht),E(xr),E(GS,8),E(Hr,8),E(tw),E(ti),E(rw,10),E(nw,12))},n.\u0275dir=xe({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,KS,5),Bn(r,YS,5),Bn(r,rw,5)),2&e){let o;yt(o=vt())&&(i._previewTemplate=o.first),yt(o=vt())&&(i._placeholderTemplate=o.first),yt(o=vt())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[Vt([{provide:nw,useExisting:n}]),ci]}),n})(),d8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[tw],imports:[qh]}),n})();const u8=["text"];function h8(n,t){if(1&n&&Pe(0,"mat-pseudo-checkbox",6),2&n){const e=Z();N("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function m8(n,t){1&n&&Pe(0,"mat-pseudo-checkbox",7),2&n&&N("disabled",Z().disabled)}function f8(n,t){if(1&n&&(y(0,"span",8),A(1),v()),2&n){const e=Z();T(1),hi("(",e.group.label,")")}}const p8=[[["mat-icon"]],"*"],g8=["mat-icon","*"],b8=new ye("mat-sanity-checks",{providedIn:"root",factory:function _8(){return!0}});let $n=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Nx()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(te(MS),te(b8,8),te(en))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[Jg,Jg]}),n})();function Kh(n){return class extends n{get disabled(){return this._disabled}set disabled(t){this._disabled=Ct(t)}constructor(...t){super(...t),this._disabled=!1}}}function Zf(n,t){return class extends n{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=t,this.color=t}}}function wu(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ct(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function o_(n,t=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?oc(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function ow(n){return class extends n{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let Uy=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class v8{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const eA=ol({passive:!0,capture:!0});class C8{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=Ys(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,i,r){const o=this._events.get(e);if(o){const a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,eA)})}removeHandler(t,e,i){const r=this._events.get(t);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,eA)))}}const tA={enterDuration:225,exitDuration:150},nA=ol({passive:!0,capture:!0}),iA=["mousedown","touchstart"],rA=["mouseup","mouseleave","touchend","touchcancel"];class a_{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=er(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...tA,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const a=i.radius||function w8(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),c=t-r.left,u=e-r.top,m=o.enterDuration,g=document.createElement("div");g.classList.add("mat-ripple-element"),g.style.left=c-a+"px",g.style.top=u-a+"px",g.style.height=2*a+"px",g.style.width=2*a+"px",null!=i.color&&(g.style.backgroundColor=i.color),g.style.transitionDuration=`${m}ms`,this._containerElement.appendChild(g);const C=window.getComputedStyle(g),O=C.transitionDuration,V="none"===C.transitionProperty||"0s"===O||"0s, 0s"===O||0===r.width&&0===r.height,U=new v8(this,g,i,V);g.style.transform="scale3d(1, 1, 1)",U.state=0,i.persistent||(this._mostRecentTransientRipple=U);let ie=null;return!V&&(m||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ue=()=>this._finishRippleTransition(U),Le=()=>this._destroyRipple(U);g.addEventListener("transitionend",ue),g.addEventListener("transitioncancel",Le),ie={onTransitionEnd:ue,onTransitionCancel:Le}}),this._activeRipples.set(U,ie),(V||!m)&&this._finishRippleTransition(U),U}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...tA,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=er(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,iA.forEach(i=>{a_._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{rA.forEach(e=>{this._triggerElement.addEventListener(e,this,nA)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=Ny(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(iA.forEach(e=>a_._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&rA.forEach(e=>t.removeEventListener(e,this,nA)))}}a_._eventManager=new C8;const sw=new ye("mat-ripple-global-options");let Xo=(()=>{class n{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new a_(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht),E(Ai),E(sw,8),E(Nr,8))},n.\u0275dir=xe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Xh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,$n]}),n})(),D8=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return n.\u0275fac=function(e){return new(e||n)(E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&Jt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal","minimal"===i.appearance)("mat-pseudo-checkbox-full","full"===i.appearance)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),n})(),T8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n]}),n})();const aw=new ye("MAT_OPTION_PARENT_COMPONENT"),lw=new ye("MatOptgroup");let E8=0;class oA{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let M8=(()=>{class n{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Ct(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+E8++,this.onSelectionChange=new Ve,this._stateChanges=new Ae}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ks(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new oA(this,e))}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(u8,7),2&e){let r;yt(r=vt())&&(i._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Qh=(()=>{class n extends M8{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(aw,8),E(lw,8))},n.\u0275cmp=et({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(e,i){1&e&&ce("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Ws("id",i.id),bt("tabindex",i._getTabIndex())("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),Jt("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},exportAs:["matOption"],features:[nt],ngContentSelectors:g8,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(bi(p8),K(0,h8,1,2,"mat-pseudo-checkbox",0),Gt(1),y(2,"span",1,2),Gt(4,1),v(),K(5,m8,1,1,"mat-pseudo-checkbox",3),K(6,f8,2,1,"span",4),Pe(7,"div",5)),2&e&&(N("ngIf",i.multiple),T(5),N("ngIf",!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator),T(1),N("ngIf",i.group&&i.group._inert),T(1),N("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[Xo,Si,D8],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),n})();function sA(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,n-i+t):e}let Wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[Xh,wa,$n,T8]}),n})();class cw{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Gy extends cw{constructor(t,e,i,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Jh extends cw{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class k8 extends cw{constructor(t){super(),this.element=t instanceof h?t.nativeElement:t}}class dw{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Gy?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Jh?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof k8?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class S8 extends dw{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const c=a.element,u=this._document.createComment("dom-portal");c.parentNode.insertBefore(u,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(c,u)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Wo.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let A8=(()=>{class n extends Jh{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(E(Cr),E(xr))},n.\u0275dir=xe({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[nt]}),n})(),l_=(()=>{class n extends dw{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ve,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(E(uu),E(xr),E(en))},n.\u0275dir=xe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[nt]}),n})(),uw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const lA=lS();class F8{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Mr(-this._previousScrollPosition.left),t.style.top=Mr(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),lA&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),lA&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class O8{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class cA{enable(){}disable(){}attach(){}}function hw(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function dA(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class P8{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();hw(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let R8=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new cA,this.close=a=>new O8(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new F8(this._viewportRuler,this._document),this.reposition=a=>new P8(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(te(zf),te(ld),te(Ht),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class c_{constructor(t){if(this.scrollStrategy=new cA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class L8{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let uA=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N8=(()=>{class n extends uA{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const c=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ht,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),B8=(()=>{class n extends uA{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ys(o)},this._clickListener=o=>{const a=Ys(o),c="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const u=this._attachedOverlays.slice();for(let m=u.length-1;m>-1;m--){const g=u[m];if(g._outsidePointerEvents.observers.length<1||!g.hasAttached())continue;if(g.overlayElement.contains(a)||g.overlayElement.contains(c))break;const C=g._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>C.next(o)):C.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ai),te(Ht,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hA=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Nx()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(C),this._backdropTransitionendHandler=C=>{this._disposeBackdrop(C.target)},this._keydownEvents=new Ae,this._outsidePointerEvents=new Ae,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(zr(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Mr(this._config.width),t.height=Mr(this._config.height),t.minWidth=Mr(this._config.minWidth),t.minHeight=Mr(this._config.minHeight),t.maxWidth=Mr(this._config.maxWidth),t.maxHeight=Mr(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=Zg(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(fn(on(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const mA="cdk-overlay-connected-position-bounding-box",H8=/([A-Za-z%]+)$/;class z8{get positions(){return this._preferredPositions}constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ae,this._resizeSubscription=z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(mA),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let a;for(let c of this._preferredPositions){let u=this._getOriginPoint(t,r,c),m=this._getOverlayPoint(u,e,c),g=this._getOverlayFit(m,e,i,c);if(g.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,u);this._canFitWithFlexibleDimensions(g,m,i)?o.push({position:c,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,c)}):(!a||a.overlayFit.visibleAreau&&(u=g,c=m)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&em(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const a=this._isRtl()?t.right:t.left,c=this._isRtl()?t.left:t.right;r="start"==i.originX?a:c}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=pA(e);let{x:a,y:c}=t,u=this._getOffset(r,"x"),m=this._getOffset(r,"y");u&&(a+=u),m&&(c+=m);let F=0-c,O=c+o.height-i.height,V=this._subtractOverflows(o.width,0-a,a+o.width-i.width),U=this._subtractOverflows(o.height,F,O),ie=V*U;return{visibleArea:ie,isCompletelyWithinViewport:o.width*o.height===ie,fitsInViewportVertically:U===o.height,fitsInViewportHorizontally:V==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,a=fA(this._overlayRef.getConfig().minHeight),c=fA(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=r)&&(t.fitsInViewportHorizontally||null!=c&&c<=o)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=pA(e),o=this._viewportRect,a=Math.max(t.x+r.width-o.width,0),c=Math.max(t.y+r.height-o.height,0),u=Math.max(o.top-i.top-t.y,0),m=Math.max(o.left-i.left-t.x,0);let g=0,C=0;return g=r.width<=o.width?m||-a:t.xV&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)F=i.width-t.x+this._viewportMargin,g=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)C=t.x,g=i.right-t.x;else{const O=Math.min(i.right-t.x+i.left,t.x),V=this._lastBoundingBoxSize.width;g=2*O,C=t.x-O,g>V&&!this._isInitialRender&&!this._growAfterOpen&&(C=t.x-V/2)}return{top:a,left:C,bottom:c,right:F,width:g,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=Mr(i.height),r.top=Mr(i.top),r.bottom=Mr(i.bottom),r.width=Mr(i.width),r.left=Mr(i.left),r.right=Mr(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Mr(o)),a&&(r.maxWidth=Mr(a))}this._lastBoundingBoxSize=i,em(this._boundingBox.style,r)}_resetBoundingBoxStyles(){em(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){em(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const g=this._viewportRuler.getViewportScrollPosition();em(i,this._getExactOverlayY(e,t,g)),em(i,this._getExactOverlayX(e,t,g))}else i.position="static";let c="",u=this._getOffset(e,"x"),m=this._getOffset(e,"y");u&&(c+=`translateX(${u}px) `),m&&(c+=`translateY(${m}px)`),i.transform=c.trim(),a.maxHeight&&(r?i.maxHeight=Mr(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=Mr(a.maxWidth):o&&(i.maxWidth="")),em(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Mr(o.y),r}_getExactOverlayX(t,e,i){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Mr(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:dA(t,i),isOriginOutsideView:hw(t,i),isOverlayClipped:dA(e,i),isOverlayOutsideView:hw(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Zg(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof h)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function em(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function fA(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(H8);return e&&"px"!==e?null:parseFloat(t)}return n||null}function pA(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const gA="cdk-global-overlay-wrapper";class $8{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(gA),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:c}=i,u=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),m=!("100%"!==o&&"100vh"!==o||c&&"100%"!==c&&"100vh"!==c),g=this._xPosition,C=this._xOffset,F="rtl"===this._overlayRef.getConfig().direction;let O="",V="",U="";u?U="flex-start":"center"===g?(U="center",F?V=C:O=C):F?"left"===g||"end"===g?(U="flex-end",O=C):("right"===g||"start"===g)&&(U="flex-start",V=C):"left"===g||"start"===g?(U="flex-start",O=C):("right"===g||"end"===g)&&(U="flex-end",V=C),t.position=this._cssPosition,t.marginLeft=u?"0":O,t.marginTop=m?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=u?"0":V,e.justifyContent=U,e.alignItems=m?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(gA),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let j8=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new $8}flexibleConnectedTo(e){return new z8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(te(ld),te(en),te(Ai),te(hA))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),U8=0,Ma=(()=>{class n{constructor(e,i,r,o,a,c,u,m,g,C,F,O){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=c,this._ngZone=u,this._document=m,this._directionality=g,this._location=C,this._outsideClickDispatcher=F,this._animationsModuleType=O}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new c_(e);return a.direction=a.direction||this._directionality.value,new V8(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+U8++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Mg)),new S8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(te(R8),te(hA),te(uu),te(j8),te(N8),te(Wo),te(Ht),te(en),te(Hr),te(sE),te(B8),te(Nr,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const W8=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_A=new ye("cdk-connected-overlay-scroll-strategy");let mw=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275dir=xe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),n})(),bA=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ct(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ct(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ct(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ct(e)}get push(){return this._push}set push(e){this._push=Ct(e)}constructor(e,i,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=z.EMPTY,this._attachSubscription=z.EMPTY,this._detachSubscription=z.EMPTY,this._positionSubscription=z.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ve,this.positionChange=new Ve,this.attach=new Ve,this.detach=new Ve,this.overlayKeydown=new Ve,this.overlayOutsideClick=new Ve,this._templatePortal=new Jh(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=W8);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Ks(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new c_({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof mw?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function I8(n,t=!1){return it((e,i)=>{let r=0;e.subscribe(lt(i,o=>{const a=n(o,r++);(a||t)&&i.next(o),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(Ma),E(Cr),E(xr),E(_A),E(Hr,8))},n.\u0275dir=xe({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ci]}),n})();const Z8={provide:_A,deps:[Ma],useFactory:function G8(n){return()=>n.scrollStrategies.reposition()}};let d_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Ma,Z8],imports:[Jg,uw,uS,uS]}),n})();function yA(n){return new at(t=>{ii(n()).subscribe(t)})}const q8=["matFormFieldNotchedOutline",""],Y8=["*"],K8=["textField"],X8=["iconPrefixContainer"],Q8=["textPrefixContainer"];function J8(n,t){1&n&&Pe(0,"span",19)}function e6(n,t){if(1&n){const e=Nt();y(0,"label",17),ce("cdkObserveContent",function(){return He(e),je(Z(2)._refreshOutlineNotchWidth())}),Gt(1,1),K(2,J8,1,0,"span",18),v()}if(2&n){const e=Z(2);N("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),bt("for",e._control.id)("aria-owns",e._control.id),T(2),N("ngIf",!e.hideRequiredMarker&&e._control.required)}}function t6(n,t){1&n&&K(0,e6,3,6,"label",16),2&n&&N("ngIf",Z()._hasFloatingLabel())}function n6(n,t){1&n&&Pe(0,"div",20)}function i6(n,t){}function r6(n,t){1&n&&K(0,i6,0,0,"ng-template",22),2&n&&(Z(2),N("ngTemplateOutlet",Go(1)))}function o6(n,t){if(1&n&&(y(0,"div",21),K(1,r6,1,1,"ng-template",9),v()),2&n){const e=Z();N("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),T(1),N("ngIf",!e._forceDisplayInfixLabel())}}function s6(n,t){1&n&&(y(0,"div",23,24),Gt(2,2),v())}function a6(n,t){1&n&&(y(0,"div",25,26),Gt(2,3),v())}function l6(n,t){}function c6(n,t){1&n&&K(0,l6,0,0,"ng-template",22),2&n&&(Z(),N("ngTemplateOutlet",Go(1)))}function d6(n,t){1&n&&(y(0,"div",27),Gt(1,4),v())}function u6(n,t){1&n&&(y(0,"div",28),Gt(1,5),v())}function h6(n,t){1&n&&Pe(0,"div",29)}function m6(n,t){1&n&&(y(0,"div",30),Gt(1,6),v()),2&n&&N("@transitionMessages",Z()._subscriptAnimationState)}function f6(n,t){if(1&n&&(y(0,"mat-hint",34),A(1),v()),2&n){const e=Z(2);N("id",e._hintLabelId),T(1),Rt(e.hintLabel)}}function p6(n,t){if(1&n&&(y(0,"div",31),K(1,f6,2,2,"mat-hint",32),Gt(2,7),Pe(3,"div",33),Gt(4,8),v()),2&n){const e=Z();N("@transitionMessages",e._subscriptAnimationState),T(1),N("ngIf",e.hintLabel)}}const g6=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_6=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let $r=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-label"]]}),n})(),b6=0;const vA=new ye("MatError");let cd=(()=>{class n{constructor(e,i){this.id="mat-mdc-error-"+b6++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(go("aria-live"),E(h))},n.\u0275dir=xe({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,i){2&e&&Ws("id",i.id)},inputs:{id:"id"},features:[Vt([{provide:vA,useExisting:n}])]}),n})(),y6=0,CA=(()=>{class n{constructor(){this.align="start",this.id="mat-mdc-hint-"+y6++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,i){2&e&&(Ws("id",i.id),bt("align",null),Jt("mat-mdc-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"}}),n})();const v6=new ye("MatPrefix"),C6=new ye("MatSuffix");let xA=(()=>{class n{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function x6(n){if(null!==n.offsetParent)return n.scrollWidth;const e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275dir=xe({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating"}}),n})();const wA="mdc-line-ripple--active",Zy="mdc-line-ripple--deactivating";let DA=(()=>{class n{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(Zy);"opacity"===r.propertyName&&a&&o.remove(wA,Zy)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Zy),e.add(wA)}deactivate(){this._elementRef.nativeElement.classList.add(Zy)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht))},n.\u0275dir=xe({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),n})(),TA=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht))},n.\u0275cmp=et({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mdc-notched-outline--notched",i.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:q8,ngContentSelectors:Y8,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,i){1&e&&(bi(),Pe(0,"div",0),y(1,"div",1),Gt(2),v(),Pe(3,"div",2)),2&e&&(T(1),mg("width",i._getNotchWidth()))},encapsulation:2,changeDetection:0}),n})();const w6={transitionMessages:od("transitionMessages",[Da("enter",xi({opacity:1,transform:"translateY(0%)"})),Mo("void => enter",[xi({opacity:0,transform:"translateY(-5px)"}),Eo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n}),n})();const u_=new ye("MatFormField"),D6=new ye("MAT_FORM_FIELD_DEFAULT_OPTIONS");let EA=0,vo=(()=>{class n{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ct(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,a,c,u,m){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=c,this._animationMode=u,this._document=m,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+EA++,this._hintLabelId="mat-mdc-hint-"+EA++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Ae,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=Boolean(c?.hideRequiredMarker),c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(fn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),on(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(fn(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(fn(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Ht),E(Hr),E(Ai),E(D6,8),E(Nr,8),E(en))},n.\u0275cmp=et({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,$r,5),Bn(r,$r,7),Bn(r,qy,5),Bn(r,v6,5),Bn(r,C6,5),Bn(r,vA,5),Bn(r,CA,5)),2&e){let o;yt(o=vt())&&(i._labelChildNonStatic=o.first),yt(o=vt())&&(i._labelChildStatic=o.first),yt(o=vt())&&(i._formFieldControl=o.first),yt(o=vt())&&(i._prefixChildren=o),yt(o=vt())&&(i._suffixChildren=o),yt(o=vt())&&(i._errorChildren=o),yt(o=vt())&&(i._hintChildren=o)}},viewQuery:function(e,i){if(1&e&&(Nn(K8,5),Nn(X8,5),Nn(Q8,5),Nn(xA,5),Nn(TA,5),Nn(DA,5)),2&e){let r;yt(r=vt())&&(i._textField=r.first),yt(r=vt())&&(i._iconPrefixContainer=r.first),yt(r=vt())&&(i._textPrefixContainer=r.first),yt(r=vt())&&(i._floatingLabel=r.first),yt(r=vt())&&(i._notchedOutline=r.first),yt(r=vt())&&(i._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,i){2&e&&Jt("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===i._animationMode)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary","accent"!==i.color&&"warn"!==i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Vt([{provide:u_,useExisting:n}])],ngContentSelectors:_6,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,i){1&e&&(bi(g6),K(0,t6,1,1,"ng-template",null,0,Eb),y(2,"div",1,2),ce("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),K(4,n6,1,0,"div",3),y(5,"div",4),K(6,o6,2,3,"div",5),K(7,s6,3,0,"div",6),K(8,a6,3,0,"div",7),y(9,"div",8),K(10,c6,1,1,"ng-template",9),Gt(11),v(),K(12,d6,2,0,"div",10),K(13,u6,2,0,"div",11),v(),K(14,h6,1,0,"div",12),v(),y(15,"div",13),K(16,m6,2,1,"div",14),K(17,p6,5,2,"div",15),v()),2&e&&(T(2),Jt("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),T(2),N("ngIf",!i._hasOutline()&&!i._control.disabled),T(2),N("ngIf",i._hasOutline()),T(1),N("ngIf",i._hasIconPrefix),T(1),N("ngIf",i._hasTextPrefix),T(2),N("ngIf",!i._hasOutline()||i._forceDisplayInfixLabel()),T(2),N("ngIf",i._hasTextSuffix),T(1),N("ngIf",i._hasIconSuffix),T(1),N("ngIf",!i._hasOutline()),T(1),Jt("mat-mdc-form-field-subscript-dynamic-size","dynamic"===i.subscriptSizing),N("ngSwitch",i._getDisplayedMessages()),T(1),N("ngSwitchCase","error"),T(1),N("ngSwitchCase","hint"))},dependencies:[Si,DE,Of,Ub,fS,CA,xA,TA,DA],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[w6.transitionMessages]},changeDetection:0}),n})(),Yy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,wa,jx,$n]}),n})();function SA(n,t){return t?e=>Ay(t.pipe(zr(1),function M6(){return it((n,t)=>{n.subscribe(lt(t,Oe))})}()),e.pipe(SA(n))):ir((e,i)=>ii(n(e,i)).pipe(zr(1),function k6(n){return Vn(()=>n)}(e)))}function fw(n,t=Kg){const e=Sy(n,t);return SA(()=>e)}const S6=["panel"];function A6(n,t){if(1&n&&(y(0,"div",0,1),Gt(2),v()),2&n){const e=t.id,i=Z();N("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),bt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const I6=["*"],F6=od("panelAnimation",[Da("void, hidden",xi({opacity:0,transform:"scaleY(0.8)"})),Mo(":enter, hidden => visible",[GN([Eo("0.03s linear",xi({opacity:1})),Eo("0.12s cubic-bezier(0, 0, 0.2, 1)",xi({transform:"scaleY(1)"}))])]),Mo(":leave, visible => hidden",[Eo("0.075s linear",xi({opacity:0}))])]);let O6=0;class P6{constructor(t,e){this.source=t,this.option=e}}const R6=wu(class{}),AA=new ye("mat-autocomplete-default-options",{providedIn:"root",factory:function L6(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let N6=(()=>{class n extends R6{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ct(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ct(e)}set classList(e){this._classList=e&&e.length?function k4(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=z.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new Ve,this.opened=new Ve,this.closed=new Ve,this.optionActivated=new Ve,this._classList={},this.id="mat-autocomplete-"+O6++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new xS(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new P6(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(AA),E(Ai))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&(Nn(Cr,7),Nn(S6,5)),2&e){let r;yt(r=vt())&&(i.template=r.first),yt(r=vt())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[nt]}),n})(),B6=(()=>{class n extends N6{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ct(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,lw,5),Bn(r,Qh,5)),2&e){let o;yt(o=vt())&&(i.optionGroups=o),yt(o=vt())&&(i.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Vt([{provide:aw,useExisting:n}]),nt],ngContentSelectors:I6,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(bi(),K(0,A6,3,5,"ng-template"))},dependencies:[Ff],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[F6]},changeDetection:0}),n})();const V6={provide:Tr,useExisting:Wt(()=>FA),multi:!0},IA=new ye("mat-autocomplete-scroll-strategy"),z6={provide:IA,deps:[Ma],useFactory:function H6(n){return()=>n.scrollStrategies.reposition()}};let $6=(()=>{class n{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ct(e)}constructor(e,i,r,o,a,c,u,m,g,C,F){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=u,this._formField=m,this._document=g,this._viewportRuler=C,this._defaults=F,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=z.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ae,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=yA(()=>{const O=this.autocomplete?this.autocomplete.options:null;return O?O.changes.pipe(Vr(O),ac(()=>on(...O.map(V=>V.onSelectionChange)))):this._zone.onStable.pipe(zr(1),ac(()=>this.optionSelections))}),this._scrollStrategy=c}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return on(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(_s(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(_s(()=>this._overlayAttached)):gs()).pipe(Vn(e=>e instanceof oA?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return on(sc(this._document,"click"),sc(this._document,"auxclick"),sc(this._document,"touchend")).pipe(_s(e=>{const i=Ys(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=Ks(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return on(this._zone.onStable.pipe(zr(1)),this.autocomplete.options.changes.pipe(jf(()=>this._positionStrategy.reapplyLastPosition()),fw(0))).pipe(ac(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),zr(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Jh(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new c_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=sA(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const a=o._getHostElement(),c=aA(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Ks(i)||38===i.keyCode&&Ks(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ma),E(xr),E(Ht),E(ti),E(IA),E(Hr,8),E(u_,9),E(en,8),E(ld),E(AA,8))},n.\u0275dir=xe({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[ci]}),n})(),FA=(()=>{class n extends $6{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&ce("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&bt("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Vt([V6]),nt]}),n})(),j6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[z6],imports:[d_,Wy,$n,wa,qh,Wy,$n]}),n})();const U6=["mat-button",""],OA=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],PA=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],G6=["mat-fab",""],Z6=["mat-icon-button",""],q6=["*"],Y6=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],K6=Zf(Kh(wu(class{constructor(n){this._elementRef=n}})));let pw=(()=>{class n extends K6{constructor(e,i,r,o){super(e),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=qn(xu),this._isFab=!1;const a=e.nativeElement.classList;for(const c of Y6)this._hasHostAttributes(c.selector)&&c.mdcClasses.forEach(u=>{a.add(u)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(Xo,5),2&e){let r;yt(r=vt())&&(i.ripple=r.first)}},features:[nt]}),n})(),tr=(()=>{class n extends pw{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(Ht),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(bt("disabled",i.disabled||null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[nt],attrs:U6,ngContentSelectors:PA,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(bi(OA),Pe(0,"span",0),Gt(1),y(2,"span",1),Gt(3,1),v(),Gt(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Jt("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),T(6),N("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[Xo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})();const Q6=new ye("mat-mdc-fab-default-options",{providedIn:"root",factory:RA});function RA(){return{color:"accent"}}const LA=RA();let h_=(()=>{class n extends pw{get extended(){return this._extended}set extended(e){this._extended=Ct(e)}constructor(e,i,r,o,a){super(e,i,r,o),this._options=a,this._isFab=!0,this._options=this._options||LA,this.color=this.defaultColor=this._options.color||LA.color}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(Ht),E(Nr,8),E(Q6,8))},n.\u0275cmp=et({type:n,selectors:[["button","mat-fab",""]],hostVars:11,hostBindings:function(e,i){2&e&&(bt("disabled",i.disabled||null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0)("mdc-fab--extended",i.extended)("mat-mdc-extended-fab",i.extended))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",extended:"extended"},exportAs:["matButton"],features:[nt],attrs:G6,ngContentSelectors:PA,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(bi(OA),Pe(0,"span",0),Gt(1),y(2,"span",1),Gt(3,1),v(),Gt(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Jt("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),T(6),N("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[Xo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),n})(),m_=(()=>{class n extends pw{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(Ht),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(bt("disabled",i.disabled||null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[nt],attrs:Z6,ngContentSelectors:q6,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(bi(),Pe(0,"span",0),Gt(1),Pe(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(T(3),N("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[Xo],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),NA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Xh,$n]}),n})();class BA{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ae,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}const J6=["button"],eH=["*"],VA=new ye("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),HA=new ye("MatButtonToggleGroup"),tH={provide:Tr,useExisting:Wt(()=>gw),multi:!0};let zA=0;class $A{constructor(t,e){this.source=t,this.value=e}}let gw=(()=>{class n{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(e){this._vertical=Ct(e)}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=Ct(e),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._markButtonsForCheck()}constructor(e,i){this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+zA++,this.valueChange=new Ve,this.change=new Ve,this.appearance=i&&i.appearance?i.appearance:"standard"}ngOnInit(){this._selectionModel=new BA(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const i=new $A(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>null!=e.value&&i===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const i=this._buttonToggles.find(r=>null!=r.value&&r.value===e);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(VA,8))},n.\u0275dir=xe({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,_w,5),2&e){let o;yt(o=vt())&&(i._buttonToggles=o)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,i){2&e&&(bt("aria-disabled",i.disabled),Jt("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard","standard"===i.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Vt([tH,{provide:HA,useExisting:n}])]}),n})();const nH=wu(class{});let _w=(()=>{class n extends nH{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){const i=Ct(e);i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=Ct(e)}constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Ve;const u=Number(a);this.tabIndex=u||0===u?u:null,this.buttonToggleGroup=e,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+zA++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new $A(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return n.\u0275fac=function(e){return new(e||n)(E(HA,8),E(ti),E(h),E(xu),go("tabindex"),E(VA,8))},n.\u0275cmp=et({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(e,i){if(1&e&&Nn(J6,5),2&e){let r;yt(r=vt())&&(i._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,i){1&e&&ce("focus",function(){return i.focus()}),2&e&&(bt("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),Jt("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-appearance-standard","standard"===i.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[nt],ngContentSelectors:eH,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,i){if(1&e&&(bi(),y(0,"button",0,1),ce("click",function(){return i._onButtonClick()}),y(2,"span",2),Gt(3),v()(),Pe(4,"span",3)(5,"span",4)),2&e){const r=Go(1);N("id",i.buttonId)("disabled",i.disabled||null),bt("tabindex",i.disabled?-1:i.tabIndex)("aria-pressed",i.checked)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby),T(5),N("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)}},dependencies:[Xo],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),n})(),iH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Xh,$n]}),n})();const rH=["*"],aH=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],lH=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],cH=new ye("MAT_CARD_CONFIG");let Du=(()=>{class n{constructor(e){this.appearance=e?.appearance||"raised"}}return n.\u0275fac=function(e){return new(e||n)(E(cH,8))},n.\u0275cmp=et({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("mat-mdc-card-outlined","outlined"===i.appearance)("mdc-card--outlined","outlined"===i.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:rH,decls:1,vars:0,template:function(e,i){1&e&&(bi(),Gt(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),n})(),qf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),n})(),Tu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),n})(),Yf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),n})(),Eu=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mat-mdc-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n})(),Kf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:lH,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(e,i){1&e&&(bi(aH),Gt(0),y(1,"div",0),Gt(2,1),v(),Gt(3,2))},encapsulation:2,changeDetection:0}),n})(),bH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,wa,$n]}),n})();const yH=["input"],vH=["label"],CH=["*"],xH=new ye("mat-checkbox-default-options",{providedIn:"root",factory:jA});function jA(){return{color:"accent",clickAction:"check-indeterminate"}}const wH={provide:Tr,useExisting:Wt(()=>dd),multi:!0};class DH{}let TH=0;const UA=jA(),EH=o_(Zf(wu(Kh(class{constructor(n){this._elementRef=n}}))));let MH=(()=>{class n extends EH{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ct(e)}constructor(e,i,r,o,a,c,u){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=c,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Ve,this.indeterminateChange=new Ve,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||UA,this.color=this.defaultColor=this._options.color||UA.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++TH}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=Ct(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Ct(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Ct(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&(Nn(yH,5),Nn(vH,5),Nn(Xo,5)),2&e){let r;yt(r=vt())&&(i._inputElement=r.first),yt(r=vt())&&(i._labelElement=r.first),yt(r=vt())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[nt]}),n})(),dd=(()=>{class n extends MH{constructor(e,i,r,o,a,c){super("mat-mdc-checkbox-",e,i,r,o,a,c),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new DH;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Ht),go("tabindex"),E(Nr,8),E(xH,8))},n.\u0275cmp=et({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(Ws("id",i.id),bt("tabindex",null)("aria-label",null)("aria-labelledby",null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mdc-checkbox--disabled",i.disabled)("mat-mdc-checkbox-disabled",i.disabled)("mat-mdc-checkbox-checked",i.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Vt([wH]),nt],ngContentSelectors:CH,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(e,i){if(1&e&&(bi(),y(0,"div",0),ce("click",function(o){return i._preventBubblingFromLabel(o)}),y(1,"div",1,2)(3,"div",3),ce("click",function(){return i._onTouchTargetClick()}),v(),y(4,"input",4,5),ce("blur",function(){return i._onBlur()})("click",function(){return i._onInputClick()})("change",function(o){return i._onInteractionEvent(o)}),v(),Pe(6,"div",6),y(7,"div",7),ua(),y(8,"svg",8),Pe(9,"path",9),v(),$d(),Pe(10,"div",10),v(),Pe(11,"div",11),v(),y(12,"label",12,13),Gt(14),v()()),2&e){const r=Go(2);Jt("mdc-form-field--align-end","before"==i.labelPosition),T(4),Jt("mdc-checkbox--selected",i.checked),N("checked",i.checked)("disabled",i.disabled)("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex),bt("aria-checked",i._getAriaChecked())("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("name",i.name)("value",i.value),T(7),N("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),T(1),N("for",i.inputId)}},dependencies:[Xo],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),WA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})(),AH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Xh,WA,$n,WA]}),n})();function IH(n,t){1&n&&(y(0,"span",8),Gt(1,1),v())}function FH(n,t){1&n&&(y(0,"span",9),Gt(1,2),v())}const GA=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ZA=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function RH(n,t){if(1&n&&(io(0),Pe(1,"span",9)(2,"span",10),ro()),2&n){const e=Z();T(1),N("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e._isRippleCentered)("matRippleTrigger",e._elementRef.nativeElement)}}function LH(n,t){1&n&&(y(0,"span",11),Gt(1),v())}function NH(n,t){1&n&&(io(0),Gt(1,1),ro())}function BH(n,t){1&n&&Gt(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function VH(n,t){1&n&&Pe(0,"span",14)}function HH(n,t){if(1&n&&(io(0),K(1,BH,1,0,"ng-content",12),K(2,VH,1,0,"ng-template",null,13,Eb),ro()),2&n){const e=Go(3),i=Z();T(1),N("ngIf",i.contentEditInput)("ngIfElse",e)}}function zH(n,t){1&n&&(y(0,"span",15),Gt(1,3),v())}const $H=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],jH=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],bw=["*"],Ky=new ye("mat-chips-default-options"),yw=new ye("MatChipAvatar"),vw=new ye("MatChipTrailingIcon"),Cw=new ye("MatChipRemove"),Xy=new ye("MatChip");class UH{}const WH=o_(UH,-1);let Xf=(()=>{class n extends WH{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=Ct(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Xy))},n.\u0275dir=xe({type:n,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(e,i){1&e&&ce("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(bt("tabindex",i._getTabindex())("disabled",i._getDisabledAttribute())("aria-disabled",i.disabled),Jt("mdc-evolution-chip__action--primary",i._isPrimary)("mdc-evolution-chip__action--presentational",!i.isInteractive)("mdc-evolution-chip__action--trailing",!i._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[nt]}),n})(),xw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Vt([{provide:yw,useExisting:n}])]}),n})(),KA=(()=>{class n extends Xf{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(e,i){2&e&&bt("aria-hidden",null)},features:[Vt([{provide:Cw,useExisting:n}]),nt]}),n})(),ZH=0;const qH=o_(Zf(wu(Kh(class{constructor(n){this._elementRef=n}})),"primary"),-1);let Mu=(()=>{class n extends qH{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=Ct(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=Ct(e)}constructor(e,i,r,o,a,c,u,m){super(i),this._changeDetectorRef=e,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=u,this._isRippleCentered=!1,this._onFocus=new Ae,this._onBlur=new Ae,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ZH++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Ve,this.destroyed=new Ve,this.basicChipAttrName="mat-basic-chip";const g=i.nativeElement;this._document=a,this._animationsDisabled="NoopAnimations"===c,this._isBasicChip=g.hasAttribute(this.basicChipAttrName)||g.tagName.toLowerCase()===this.basicChipAttrName,null!=m&&(this.tabIndex=parseInt(m)??this.defaultTabIndex),this._monitorFocus()}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=on(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(zr(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(Ht),E(xu),E(en),E(Nr,8),E(sw,8),go("tabindex"))},n.\u0275cmp=et({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,yw,5),Bn(r,vw,5),Bn(r,Cw,5),Bn(r,yw,5),Bn(r,vw,5),Bn(r,Cw,5)),2&e){let o;yt(o=vt())&&(i.leadingIcon=o.first),yt(o=vt())&&(i.trailingIcon=o.first),yt(o=vt())&&(i.removeIcon=o.first),yt(o=vt())&&(i._allLeadingIcons=o),yt(o=vt())&&(i._allTrailingIcons=o),yt(o=vt())&&(i._allRemoveIcons=o)}},viewQuery:function(e,i){if(1&e&&(Nn(Xo,5),Nn(Xf,5)),2&e){let r;yt(r=vt())&&(i.ripple=r.first),yt(r=vt())&&(i.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Ws("id",i.id),bt("role",i.role)("tabindex",i.role?i.tabIndex:null)("aria-label",i.ariaLabel),Jt("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-basic-chip",i._isBasicChip)("mat-mdc-standard-chip",!i._isBasicChip)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon())("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Vt([{provide:Xy,useExisting:n}]),nt],ngContentSelectors:ZA,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(bi(GA),Pe(0,"span",0)(1,"span",1),y(2,"span",2)(3,"span",3),K(4,IH,2,0,"span",4),y(5,"span",5),Gt(6),Pe(7,"span",6),v()()(),K(8,FH,2,0,"span",7)),2&e&&(N("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i._isRippleCentered)("matRippleTrigger",i._elementRef.nativeElement),T(3),N("isInteractive",!1),T(1),N("ngIf",i.leadingIcon),T(4),N("ngIf",i._hasTrailingIcon()))},dependencies:[Si,Xo,Xf],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),Qy=(()=>{class n{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(en))},n.\u0275dir=xe({type:n,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),n})(),ww=(()=>{class n extends Mu{constructor(e,i,r,o,a,c,u,m){super(e,i,r,o,a,c,u,m),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Ve,this._isEditing=!1,this.role="row",this._onBlur.pipe(fn(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_mousedown(e){this._isEditing||(this.disabled||this.focus(),e.preventDefault())}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_doubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=!0,this._editStartPending=!0,setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=!1,this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(Ht),E(xu),E(en),E(Nr,8),E(sw,8),go("tabindex"))},n.\u0275cmp=et({type:n,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(e,i,r){if(1&e&&Bn(r,Qy,5),2&e){let o;yt(o=vt())&&(i.contentEditInput=o.first)}},viewQuery:function(e,i){if(1&e&&Nn(Qy,5),2&e){let r;yt(r=vt())&&(i.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(e,i){1&e&&ce("mousedown",function(o){return i._mousedown(o)})("dblclick",function(o){return i._doubleclick(o)}),2&e&&(Ws("id",i.id),bt("tabindex",null)("aria-label",null)("aria-description",null)("role",i.role),Jt("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-chip-editing",i._isEditing)("mat-mdc-chip-editable",i.editable)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Vt([{provide:Mu,useExisting:n},{provide:Xy,useExisting:n}]),nt],ngContentSelectors:jH,decls:11,vars:13,consts:[[4,"ngIf"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(bi($H),K(0,RH,3,3,"ng-container",0),y(1,"span",1)(2,"span",2),K(3,LH,2,0,"span",3),y(4,"span",4),K(5,NH,2,0,"ng-container",5),K(6,HH,4,2,"ng-container",5),Pe(7,"span",6),v()()(),K(8,zH,2,0,"span",7),y(9,"span",8),A(10),v()),2&e&&(N("ngIf",!i._isEditing),T(2),N("tabIndex",i.tabIndex)("disabled",i.disabled),bt("role",i.editable?"button":null)("aria-label",i.ariaLabel)("aria-describedby",i._ariaDescriptionId),T(1),N("ngIf",i.leadingIcon),T(1),N("ngSwitch",i._isEditing),T(1),N("ngSwitchCase",!1),T(1),N("ngSwitchCase",!0),T(2),N("ngIf",i._hasTrailingIcon()),T(1),N("id",i._ariaDescriptionId),T(1),Rt(i.ariaDescription))},dependencies:[Si,Of,Ub,Xo,Xf,Qy],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();class YH{constructor(t){}}const KH=o_(YH);let Jy=(()=>{class n extends KH{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._syncChipsState()}get empty(){return 0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,r){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Ae,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new fu}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(Vr(null),ac(()=>on(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList&&i.classList.contains("mdc-evolution-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Vr(this._chips)).subscribe(e=>{const i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Zx(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(fn(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(fn(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Vr(null),fn(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(fn(this._destroyed)).subscribe(e=>{const r=this._chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Hr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-chip-set"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,Mu,5),2&e){let o;yt(o=vt())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)}),2&e&&bt("role",i.role)},inputs:{disabled:"disabled",role:"role"},features:[nt],ngContentSelectors:bw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(bi(),y(0,"div",0),Gt(1),v())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})();class JH{constructor(t,e){this.source=t,this.value=e}}class ez extends Jy{constructor(t,e,i,r,o,a,c){super(t,e,i),this._defaultErrorStateMatcher=r,this._parentForm=o,this._parentFormGroup=a,this.ngControl=c,this.stateChanges=new Ae}}const tz=ow(ez);let JA=(()=>{class n extends tz{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ct(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(bn.required)??!1}set required(e){this._required=Ct(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,r,o,a,c,u){super(e,i,r,c,o,a,u),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Ve,this.valueChange=new Ve,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(fn(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),on(this.chipFocusChanges,this._chips.changes).pipe(fn(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&Ks(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new JH(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Hr,8),E(Lf,8),E(so,8),E(Uy),E(rl,10))},n.\u0275cmp=et({type:n,selectors:[["mat-chip-grid"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,ww,5),2&e){let o;yt(o=vt())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(e,i){1&e&&ce("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Ws("tabIndex",i._chips&&0===i._chips.length?-1:i.tabIndex),bt("role",i.role)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState),Jt("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-invalid",i.errorState)("mat-mdc-chip-list-required",i.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Vt([{provide:qy,useExisting:n}]),nt],ngContentSelectors:bw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(bi(),y(0,"div",0),Gt(1),v())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})(),nz=0,eI=(()=>{class n{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ct(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=Ct(e)}get empty(){return!this.inputElement.value}constructor(e,i,r){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Ve,this.placeholder="",this.id="mat-mdc-chip-list-input-"+nz++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,r&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Ks(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ky),E(u_,8))},n.\u0275dir=xe({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Ws("id",i.id),bt("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipGrid&&i._chipGrid.ngControl?i._chipGrid.ngControl.invalid:null)("aria-required",i._chipGrid&&i._chipGrid.required||null)("required",i._chipGrid&&i._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[ci]}),n})(),iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Uy,{provide:Ky,useValue:{separatorKeyCodes:[13]}}],imports:[$n,wa,Xh,$n]}),n})();function Dw(n){return it((t,e)=>{let o,i=null,r=!1;i=t.subscribe(lt(e,void 0,void 0,a=>{o=ii(n(a,Dw(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}const sz=["*"];let ev;function f_(n){return function az(){if(void 0===ev&&(ev=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(ev=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ev}()?.createHTML(n)||n}function tI(n){return Error(`Unable to find icon with the name "${n}"`)}function nI(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function iI(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class tm{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let p_=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new tm(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const a=this._sanitizer.sanitize(zn.HTML,r);if(!a)throw iI(r);const c=f_(a);return this._addSvgIconConfig(e,i,new tm("",c,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new tm(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(zn.HTML,i);if(!o)throw iI(i);const a=f_(o);return this._addSvgIconSetConfig(e,new tm("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(zn.RESOURCE_URL,e);if(!i)throw nI(e);const r=this._cachedIconsByUrl.get(i);return r?gs(tv(r)):this._loadSvgIconFromConfig(new tm(e,null)).pipe(jf(o=>this._cachedIconsByUrl.set(i,o)),Vn(o=>tv(o)))}getNamedSvgIcon(e,i=""){const r=rI(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):function rz(n,t){const e=j(n)?n:()=>n,i=r=>r.error(e());return new at(t?r=>t.schedule(i,0,r):i)}(tI(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?gs(tv(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Vn(i=>tv(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?gs(r):WM(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Dw(c=>{const m=`Loading icon set URL: ${this._sanitizer.sanitize(zn.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(m)),gs(null)})))).pipe(Vn(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw tI(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(a,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(jf(i=>e.svgText=i),Vn(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?gs(null):this._fetchIcon(e).pipe(jf(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const c=this._svgElementFromString(f_(""));return c.appendChild(a),this._setSvgAttributes(c,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(f_("")),r=e.attributes;for(let o=0;of_(m)),function oz(n){return it((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(a)),Ds());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(rI(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),oI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pz=oI.map(n=>`[${n}]`).join(", "),gz=/^url\(['"]?#(.*?)['"]?\)$/;let Xs=(()=>{class n extends uz{get inline(){return this._inline}set inline(e){this._inline=Ct(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,a,c){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=z.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(pz),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const c=i[o],u=c.getAttribute(a),m=u?u.match(gz):null;if(m){let g=r.get(c);g||(g=[],r.set(c,g)),g.push({name:a,value:m[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(zr(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(p_),go("aria-hidden"),E(mz),E(ze),E(hz,8))},n.\u0275cmp=et({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(bt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Jt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[nt],ngContentSelectors:sz,decls:1,vars:0,template:function(e,i){1&e&&(bi(),Gt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),_z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,$n]}),n})();const sI=ol({passive:!0});let bz=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return na;const i=er(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Ae,a="cdk-text-field-autofilled",c=u=>{"cdk-text-field-autofill-start"!==u.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===u.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",c,sI),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",c,sI)}}),o}stopMonitoring(e){const i=er(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(Ht))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const vz=new ye("MAT_INPUT_VALUE_ACCESSOR"),Cz=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let xz=0;const wz=ow(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new Ae}});let bs=(()=>{class n extends wz{get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(bn.required)??!1}set required(e){this._required=Ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&aS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ct(e)}constructor(e,i,r,o,a,c,u,m,g,C){super(c,o,a,r),this._elementRef=e,this._platform=i,this._autofillMonitor=m,this._formField=C,this._uid="mat-input-"+xz++,this.focused=!1,this.stateChanges=new Ae,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(V=>aS().has(V)),this._iOSKeyupListener=V=>{const U=V.target;!U.value&&0===U.selectionStart&&0===U.selectionEnd&&(U.setSelectionRange(1,1),U.setSelectionRange(0,0))};const F=this._elementRef.nativeElement,O=F.nodeName.toLowerCase();this._inputValueAccessor=u||F,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&g.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===O,this._isTextarea="textarea"===O,this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=F.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Cz.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(rl,10),E(Lf,8),E(so,8),E(Uy),E(vz,10),E(bz),E(Ht),E(u_,8))},n.\u0275dir=xe({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,i){1&e&&ce("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ws("id",i.id)("disabled",i.disabled)("required",i.required),bt("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),Jt("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Vt([{provide:qy,useExisting:n}]),nt,ci]}),n})(),Dz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Yy,Yy,yz,$n]}),n})();const Tz=["mat-menu-item",""];function Ez(n,t){1&n&&(ua(),y(0,"svg",3),Pe(1,"polygon",4),v())}const Mz=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],kz=["mat-icon, [matMenuItemIcon]","*"];function Sz(n,t){if(1&n){const e=Nt();y(0,"div",0),ce("keydown",function(r){return He(e),je(Z()._handleKeydown(r))})("click",function(){return He(e),je(Z().closed.emit("click"))})("@transformMenu.start",function(r){return He(e),je(Z()._onAnimationStart(r))})("@transformMenu.done",function(r){return He(e),je(Z()._onAnimationDone(r))}),y(1,"div",1),Gt(2),v()()}if(2&n){const e=Z();N("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),bt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Az=["*"],Tw=new ye("MAT_MENU_PANEL"),Iz=wu(Kh(class{}));let nv=(()=>{class n extends Iz{constructor(e,i,r,o,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Ae,this._focused=new Ae,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",Eo("120ms cubic-bezier(0, 0, 0.2, 1)",xi({opacity:1,transform:"scale(1)"}))),Mo("* => void",Eo("100ms 25ms linear",xi({opacity:0})))]),fadeInItems:od("fadeInItems",[Da("showing",xi({opacity:1})),Mo("void => *",[xi({opacity:0}),Eo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Oz=0;const aI=new ye("mat-menu-default-options",{providedIn:"root",factory:function Pz(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let g_=(()=>{class n{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ct(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ct(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new fu,this._classList={},this._panelAnimationState="void",this._animationDone=new Ae,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ve,this.close=this.closed,this.panelId="mat-menu-panel-"+Oz++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Zx(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vr(this._directDescendantItems),ac(e=>on(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Vr(this._directDescendantItems),ac(i=>on(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Ks(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(zr(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht),E(aI),E(ti))},n.\u0275dir=xe({type:n,contentQueries:function(e,i,r){if(1&e&&(Bn(r,Fz,5),Bn(r,nv,5),Bn(r,nv,4)),2&e){let o;yt(o=vt())&&(i.lazyContent=o.first),yt(o=vt())&&(i._allItems=o),yt(o=vt())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Nn(Cr,5),2&e){let r;yt(r=vt())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Rz=(()=>{class n extends g_{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht),E(aI),E(ti))},n.\u0275cmp=et({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&bt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Vt([{provide:Tw,useExisting:n}]),nt],ngContentSelectors:Az,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,i){1&e&&(bi(),K(0,Sz,3,6,"ng-template"))},dependencies:[Ff],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[iv.transformMenu,iv.fadeInItems]},changeDetection:0}),n})();const lI=new ye("mat-menu-scroll-strategy"),Nz={provide:lI,deps:[Ma],useFactory:function Lz(n){return()=>n.scrollStrategies.reposition()}},cI=ol({passive:!0});let Bz=(()=>{class n{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,a,c,u,m,g){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=u,this._focusMonitor=m,this._ngZone=g,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=z.EMPTY,this._hoverSubscription=z.EMPTY,this._menuCloseSubscription=z.EMPTY,this._changeDetectorRef=qn(ti),this._handleTouchStart=C=>{By(C)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ve,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ve,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof g_?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,cI)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,cI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof g_&&(e._startAnimation(),e._directDescendantItems.changes.pipe(fn(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof g_?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(_s(r=>"void"===r.toState),zr(1),fn(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new c_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[u,m]=[a,c],[g,C]=[r,o],F=0;if(this.triggersSubmenu()){if(C=r="before"===e.xPosition?"start":"end",o=g="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const O=this._parentMaterialMenu.items.first;this._parentInnerPadding=O?O._getHostElement().offsetTop:0}F="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(u="top"===a?"bottom":"top",m="top"===c?"bottom":"top");i.withPositions([{originX:r,originY:u,overlayX:g,overlayY:a,offsetY:F},{originX:o,originY:u,overlayX:C,overlayY:a,offsetY:F},{originX:r,originY:m,overlayX:g,overlayY:c,offsetY:-F},{originX:o,originY:m,overlayX:C,overlayY:c,offsetY:-F}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return on(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:gs(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(_s(a=>a!==this._menuItemInstance),_s(()=>this._menuOpen)):gs(),i)}_handleMousedown(e){Ny(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(_s(e=>e===this._menuItemInstance&&!e.disabled),fw(0,Fx)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof g_&&this.menu._isAnimating?this.menu._animationDone.pipe(zr(1),fw(0,Fx),fn(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Jh(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(E(Ma),E(h),E(xr),E(lI),E(Tw,8),E(nv,10),E(Hr,8),E(xu),E(Ht))},n.\u0275dir=xe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&ce("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&bt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Vz=(()=>{class n extends Bz{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[nt]}),n})(),Hz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Nz],imports:[wa,Xh,$n,d_,qh,$n]}),n})();const zz=["trigger"],$z=["panel"];function jz(n,t){if(1&n&&(y(0,"span",10),A(1),v()),2&n){const e=Z();T(1),Rt(e.placeholder)}}function Uz(n,t){if(1&n&&(y(0,"span",14),A(1),v()),2&n){const e=Z(2);T(1),Rt(e.triggerValue)}}function Wz(n,t){1&n&&Gt(0,0,["*ngSwitchCase","true"])}function Gz(n,t){1&n&&(y(0,"span",11),K(1,Uz,2,1,"span",12),K(2,Wz,1,0,"ng-content",13),v()),2&n&&(N("ngSwitch",!!Z().customTrigger),T(2),N("ngSwitchCase",!0))}function Zz(n,t){if(1&n){const e=Nt();ua(),$d(),y(0,"div",15,16),ce("@transformPanel.done",function(r){return He(e),je(Z()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return He(e),je(Z()._handleKeydown(r))}),Gt(2,1),v()}if(2&n){const e=Z();nD("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),N("ngClass",e.panelClass)("@transformPanel","showing"),bt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const qz=[[["mat-select-trigger"]],"*"],Yz=["mat-select-trigger","*"],Kz={transformPanelWrap:od("transformPanelWrap",[Mo("* => void",qN("@transformPanel",[ZN()],{optional:!0}))]),transformPanel:od("transformPanel",[Da("void",xi({opacity:0,transform:"scale(1, 0.8)"})),Mo("void => showing",Eo("120ms cubic-bezier(0, 0, 0.2, 1)",xi({opacity:1,transform:"scale(1, 1)"}))),Mo("* => void",Eo("100ms linear",xi({opacity:0})))])};let dI=0;const uI=new ye("mat-select-scroll-strategy"),Qz=new ye("MAT_SELECT_CONFIG"),Jz={provide:uI,deps:[Ma],useFactory:function Xz(n){return()=>n.scrollStrategies.reposition()}},e$=new ye("MatSelectTrigger");class t${constructor(t,e){this.source=t,this.value=e}}const n$=wu(o_(Kh(ow(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new Ae}}))));let i$=(()=>{class n extends n${get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(bn.required)??!1}set required(e){this._required=Ct(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ct(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ct(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=oc(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,o,a,c,u,m,g,C,F,O,V,U){super(a,o,u,m,C),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=c,this._parentFormField=g,this._liveAnnouncer=V,this._defaultOptions=U,this._panelOpen=!1,this._compareWith=(ie,ue)=>ie===ue,this._uid="mat-select-"+dI++,this._triggerAriaLabelledBy=null,this._destroy=new Ae,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+dI++,this._panelDoneAnimatingStream=new Ae,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=yA(()=>{const ie=this.options;return ie?ie.changes.pipe(Vr(ie),ac(()=>on(...ie.map(ue=>ue.onSelectionChange)))):this._ngZone.onStable.pipe(zr(1),ac(()=>this.optionSelectionChanges))}),this.openedChange=new Ve,this._openedStream=this.openedChange.pipe(_s(ie=>ie),Vn(()=>{})),this._closedStream=this.openedChange.pipe(_s(ie=>!ie),Vn(()=>{})),this.selectionChange=new Ve,this.valueChange=new Ve,this.ngControl&&(this.ngControl.valueAccessor=this),null!=U?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=U.typeaheadDebounceInterval),this._scrollStrategyFactory=O,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(F)||0,this.id=this.id}ngOnInit(){this._selectionModel=new BA(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($x(),fn(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(fn(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Vr(null),fn(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&o&&!Ks(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(e);const u=this.selected;u&&c!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!i.activeItem||Ks(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(c?u.select():u.deselect())})}else{const c=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==c&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(zr(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new xS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=on(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(fn(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),on(...this.options.map(i=>i._stateChanges)).pipe(fn(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(E(ld),E(ti),E(Ht),E(Uy),E(h),E(Hr,8),E(Lf,8),E(so,8),E(u_,8),E(rl,10),go("tabindex"),E(uI),E(qx),E(Qz,8))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&(Nn(zz,5),Nn($z,5),Nn(bA,5)),2&e){let r;yt(r=vt())&&(i.trigger=r.first),yt(r=vt())&&(i.panel=r.first),yt(r=vt())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[nt,ci]}),n})(),rv=(()=>{class n extends i${constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(fn(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=sA(e,this.options,this.optionGroups),a=i._getHostElement();r.scrollTop=0===e&&1===o?0:aA(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new t$(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof mw?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ct(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,e$,5),Bn(r,Qh,5),Bn(r,lw,5)),2&e){let o;yt(o=vt())&&(i.customTrigger=o.first),yt(o=vt())&&(i.options=o),yt(o=vt())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(bt("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),Jt("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Vt([{provide:qy,useExisting:n},{provide:aw,useExisting:n}]),nt],ngContentSelectors:Yz,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(bi(qz),y(0,"div",0,1),ce("click",function(){return i.toggle()}),y(3,"div",2),K(4,jz,2,1,"span",3),K(5,Gz,3,2,"span",4),v(),y(6,"div",5)(7,"div",6),ua(),y(8,"svg",7),Pe(9,"path",8),v()()()(),K(10,Zz,3,9,"ng-template",9),ce("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Go(1);bt("aria-owns",i.panelOpen?i.id+"-panel":null),T(3),N("ngSwitch",i.empty),bt("id",i._valueId),T(1),N("ngSwitchCase",!0),T(1),N("ngSwitchCase",!1),T(5),N("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[Ff,Of,Ub,xE,bA,mw],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Kz.transformPanel]},changeDetection:0}),n})(),r$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Jz],imports:[wa,d_,Wy,$n,qh,Yy,Wy,$n]}),n})();function o$(n,t){if(1&n){const e=Nt();y(0,"div",2)(1,"button",3),ce("click",function(){return He(e),je(Z().action())}),A(2),v()()}if(2&n){const e=Z();T(2),hi(" ",e.data.action," ")}}const s$=["label"];function a$(n,t){}const l$=Math.pow(2,31)-1;class ov{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Ae,this._afterOpened=new Ae,this._onAction=new Ae,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,l$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Ew=new ye("MatSnackBarData");class sv{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let c$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),n})(),d$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),n})(),u$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),n})(),h$=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(E(ov),E(Ew))},n.\u0275cmp=et({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),A(1),v(),K(2,o$,3,1,"div",1)),2&e&&(T(1),hi(" ",i.data.message,"\n"),T(1),N("ngIf",i.hasAction))},dependencies:[Si,tr,c$,d$,u$],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),n})();const m$={snackBarState:od("state",[Da("void, hidden",xi({transform:"scale(0.8)",opacity:0})),Da("visible",xi({transform:"scale(1)",opacity:1})),Mo("* => visible",Eo("150ms cubic-bezier(0, 0, 0.2, 1)")),Mo("* => void, * => hidden",Eo("75ms cubic-bezier(0.4, 0.0, 1, 1)",xi({opacity:0})))])};let f$=0,p$=(()=>{class n extends dw{constructor(e,i,r,o,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=qn(en),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ae,this._onExit=new Ae,this._onEnter=new Ae,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+f$++,this.attachDomPortal=c=>{this._assertNotAttached();const u=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),u},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(zr(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=e.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(E(Ht),E(h),E(ti),E(Ai),E(sv))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(l_,7),2&e){let r;yt(r=vt())&&(i._portalOutlet=r.first)}},features:[nt]}),n})(),g$=(()=>{class n extends p${_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,i){if(1&e&&Nn(s$,7),2&e){let r;yt(r=vt())&&(i._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,i){1&e&&b0("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&D0("@state",i._animationState)},features:[nt],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(y(0,"div",0)(1,"div",1,2)(3,"div",3),K(4,a$,0,0,"ng-template",4),v(),Pe(5,"div"),v()()),2&e&&(T(5),bt("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[l_],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[m$.snackBarState]}}),n})(),hI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[d_,uw,wa,NA,$n,$n]}),n})();const mI=new ye("mat-snack-bar-default-options",{providedIn:"root",factory:function _$(){return new sv}});let b$=(()=>{class n{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,a,c){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Wo.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:sv,useValue:i}]}),a=new Gy(this.snackBarContainerComponent,i.viewContainerRef,o),c=e.attach(a);return c.instance.snackBarConfig=i,c.instance}_attach(e,i){const r={...new sv,...this._defaultConfig,...i},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),c=new ov(a,o);if(e instanceof Cr){const u=new Jh(e,null,{$implicit:r.data,snackBarRef:c});c.instance=a.attachTemplatePortal(u)}else{const u=this._createInjector(r,c),m=new Gy(e,void 0,u),g=a.attachComponentPortal(m);c.instance=g.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(fn(o.detachments())).subscribe(u=>{o.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(c,r),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new c_;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,c=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):c?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Wo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ov,useValue:i},{provide:Ew,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(te(Ma),te(qx),te(Wo),te(Ux),te(n,12),te(mI))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),y$=(()=>{class n extends b${constructor(e,i,r,o,a,c){super(e,i,r,o,a,c),this.simpleSnackBarComponent=h$,this.snackBarContainerComponent=g$,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(te(Ma),te(qx),te(Wo),te(Ux),te(n,12),te(mI))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:hI}),n})();function v$(n,t){}const C$=function(n){return{animationDuration:n}},x$=function(n,t){return{value:n,params:t}};function w$(n,t){1&n&&Gt(0)}const fI=["*"],D$=["tabListContainer"],T$=["tabList"],E$=["tabListInner"],M$=["nextPaginator"],k$=["previousPaginator"],S$=["tabBodyWrapper"],A$=["tabHeader"];function I$(n,t){}function F$(n,t){1&n&&K(0,I$,0,0,"ng-template",14),2&n&&N("cdkPortalOutlet",Z().$implicit.templateLabel)}function O$(n,t){1&n&&A(0),2&n&&Rt(Z().$implicit.textLabel)}function P$(n,t){if(1&n){const e=Nt();y(0,"div",6,7),ce("click",function(){const r=He(e),o=r.$implicit,a=r.index,c=Z(),u=Go(1);return je(c._handleClick(o,u,a))})("cdkFocusChange",function(r){const a=He(e).index;return je(Z()._tabFocusChanged(r,a))}),Pe(2,"span",8)(3,"div",9),y(4,"span",10)(5,"span",11),K(6,F$,1,1,"ng-template",12),K(7,O$,1,1,"ng-template",null,13,Eb),v()()()}if(2&n){const e=t.$implicit,i=t.index,r=Go(1),o=Go(8),a=Z();Jt("mdc-tab--active",a.selectedIndex===i),N("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),bt("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),T(3),N("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),T(3),N("ngIf",e.templateLabel)("ngIfElse",o)}}function R$(n,t){if(1&n){const e=Nt();y(0,"mat-tab-body",15),ce("_onCentered",function(){return He(e),je(Z()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return He(e),je(Z()._setTabBodyWrapperHeight(r))}),v()}if(2&n){const e=t.$implicit,i=t.index,r=Z();Jt("mat-mdc-tab-body-active",r.selectedIndex===i),N("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),bt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const L$={translateTab:od("translateTab",[Da("center, void, left-origin-center, right-origin-center",xi({transform:"none"})),Da("left",xi({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Da("right",xi({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Mo("* => left, * => right, left => center, right => center",Eo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Mo("void => left-origin-center",[xi({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Eo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Mo("void => right-origin-center",[xi({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Eo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let N$=(()=>{class n extends l_{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=z.EMPTY,this._leavingSub=z.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Vr(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(uu),E(xr),E(Wt(()=>pI)),E(en))},n.\u0275dir=xe({type:n,selectors:[["","matTabBodyHost",""]],features:[nt]}),n})(),B$=(()=>{class n{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=z.EMPTY,this._translateTabComplete=new Ae,this._onCentering=new Ve,this._beforeCentering=new Ve,this._afterLeavingCenter=new Ve,this._onCentered=new Ve(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe($x((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Hr,8),E(ti))},n.\u0275dir=xe({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),pI=(()=>{class n extends B${constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Hr,8),E(ti))},n.\u0275cmp=et({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Nn(l_,5),2&e){let r;yt(r=vt())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[nt],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(y(0,"div",0,1),ce("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),K(2,v$,0,0,"ng-template",2),v()),2&e&&N("@translateTab",KD(3,x$,i._position,function YD(n,t,e,i){return XD(Te(),Fr(),n,t,e,i)}(1,C$,i.animationDuration)))},dependencies:[N$],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[L$.translateTab]}}),n})();const V$=new ye("MatTabContent");let H$=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(E(Cr))},n.\u0275dir=xe({type:n,selectors:[["","matTabContent",""]],features:[Vt([{provide:V$,useExisting:n}])]}),n})();const z$=new ye("MatTabLabel"),gI=new ye("MAT_TAB");let _I=(()=>{class n extends A8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(E(Cr),E(xr),E(gI,8))},n.\u0275dir=xe({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Vt([{provide:z$,useExisting:n}]),nt]}),n})();const Mw="mdc-tab-indicator--active",bI="mdc-tab-indicator--no-transition";class $${constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){const e=this._items.find(r=>r.elementRef.nativeElement===t),i=this._currentItem;if(i?.deactivateInkBar(),e){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function j$(n){return class extends n{constructor(...t){super(...t),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){const e=Ct(t);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const e=this.elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(Mw);const i=e.getBoundingClientRect(),r=t.width/i.width,o=t.left-i.left;e.classList.add(bI),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(bI),e.classList.add(Mw),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Mw)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=t.createElement("span"),this._inkBarContentElement=t.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const W$=Kh(class{}),G$=j$((()=>{class n extends W${constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275dir=xe({type:n,features:[nt]}),n})());let yI=(()=>{class n extends G${}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(bt("aria-disabled",!!i.disabled),Jt("mat-mdc-tab-disabled",i.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[nt]}),n})();const Z$=Kh(class{}),vI=new ye("MAT_TAB_GROUP");let q$=(()=>{class n extends Z${get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ae,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Jh(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(vI,8))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(Cr,7),2&e){let r;yt(r=vt())&&(i._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[nt,ci]}),n})(),CI=(()=>{class n extends q${get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,H$,7,Cr),Bn(r,_I,5)),2&e){let o;yt(o=vt())&&(i._explicitContent=o.first),yt(o=vt())&&(i.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Vt([{provide:gI,useExisting:n}]),nt],ngContentSelectors:fI,decls:1,vars:0,template:function(e,i){1&e&&(bi(),K(0,w$,1,0,"ng-template"))},encapsulation:2}),n})();const xI=ol({passive:!0});let X$=(()=>{class n{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=oc(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,r,o,a,c,u){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=c,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ae,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ae,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ve,this.indexFocused=new Ve,a.runOutsideAngular(()=>{sc(e.nativeElement,"mouseleave").pipe(fn(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){sc(this._previousPaginator.nativeElement,"touchstart",xI).pipe(fn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),sc(this._nextPaginator.nativeElement,"touchstart",xI).pipe(fn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:gs("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Zx(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(zr(1)).subscribe(r),on(e,i,this._items.changes,this._itemsResized()).pipe(fn(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?na:this._items.changes.pipe(Vr(this._items),ac(e=>new at(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),zx(1),_s(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ks(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement;let c,u;"ltr"==this._getLayoutDirection()?(c=o,u=c+a):(u=this._tabListInner.nativeElement.offsetWidth-o,c=u-a);const m=this.scrollDistance,g=this.scrollDistance+r;cg&&(this.scrollDistance+=u-g+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Sy(650,100).pipe(fn(on(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(ld),E(Hr,8),E(Ht),E(Ai),E(Nr,8))},n.\u0275dir=xe({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),Q$=(()=>{class n extends X${get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ct(e)}constructor(e,i,r,o,a,c,u){super(e,i,r,o,a,c,u),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(ld),E(Hr,8),E(Ht),E(Ai),E(Nr,8))},n.\u0275dir=xe({type:n,inputs:{disableRipple:"disableRipple"},features:[nt]}),n})(),J$=(()=>{class n extends Q${constructor(e,i,r,o,a,c,u){super(e,i,r,o,a,c,u)}ngAfterContentInit(){this._inkBar=new $$(this._items),super.ngAfterContentInit()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(ld),E(Hr,8),E(Ht),E(Ai),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,yI,4),2&e){let o;yt(o=vt())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Nn(D$,7),Nn(T$,7),Nn(E$,7),Nn(M$,5),Nn(k$,5)),2&e){let r;yt(r=vt())&&(i._tabListContainer=r.first),yt(r=vt())&&(i._tabList=r.first),yt(r=vt())&&(i._tabListInner=r.first),yt(r=vt())&&(i._nextPaginator=r.first),yt(r=vt())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("mat-mdc-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[nt],ngContentSelectors:fI,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(bi(),y(0,"button",0,1),ce("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),Pe(2,"div",2),v(),y(3,"div",3,4),ce("keydown",function(o){return i._handleKeydown(o)}),y(5,"div",5,6),ce("cdkObserveContent",function(){return i._onContentChanges()}),y(7,"div",7,8),Gt(9),v()()(),y(10,"button",9,10),ce("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),Pe(12,"div",2),v()),2&e&&(Jt("mat-mdc-tab-header-pagination-disabled",i._disableScrollBefore),N("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),T(3),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode),T(7),Jt("mat-mdc-tab-header-pagination-disabled",i._disableScrollAfter),N("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[Xo,fS],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),n})();const DI=new ye("MAT_TABS_CONFIG");let ej=0;const tj=Zf(wu(class{constructor(n){this._elementRef=n}}),"primary");let nj=(()=>{class n extends tj{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=oc(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=oc(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ct(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ct(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new fu,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=z.EMPTY,this._tabLabelSubscription=z.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ve,this.focusChange=new Ve,this.animationDone=new Ve,this.selectedTabChange=new Ve(!0),this._groupId=ej++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Vr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new rj;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=on(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(DI,8),E(Nr,8))},n.\u0275dir=xe({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[nt]}),n})(),ij=(()=>{class n extends nj{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=Ct(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=Ct(e)}constructor(e,i,r,o){super(e,i,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(DI,8),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,CI,5),2&e){let o;yt(o=vt())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Nn(S$,5),Nn(A$,5)),2&e){let r;yt(r=vt())&&(i._tabBodyWrapper=r.first),yt(r=vt())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,i){2&e&&Jt("mat-mdc-tab-group-dynamic-height",i.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===i.headerPosition)("mat-mdc-tab-group-stretch-tabs",i.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Vt([{provide:vI,useExisting:n}]),nt],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(y(0,"mat-tab-header",0,1),ce("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),K(2,P$,9,17,"div",2),v(),y(3,"div",3,4),K(5,R$,1,11,"mat-tab-body",5),v()),2&e&&(N("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),T(2),N("ngForOf",i._tabs),T(1),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode),T(2),N("ngForOf",i._tabs))},dependencies:[Ff,fs,Si,l_,Xo,ZV,pI,yI,J$],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),n})();class rj{}let oj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[wa,$n,uw,Xh,jx,kS,$n]}),n})();const sj=["*",[["mat-toolbar-row"]]],aj=["*","mat-toolbar-row"],lj=Zf(class{constructor(n){this._elementRef=n}});let cj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),dj=(()=>{class n extends lj{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(en))},n.\u0275cmp=et({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,cj,5),2&e){let o;yt(o=vt())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[nt],ngContentSelectors:aj,decls:2,vars:0,template:function(e,i){1&e&&(bi(sj),Gt(0),Gt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),uj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,$n]}),n})();const hj=["tooltip"],TI=new ye("mat-tooltip-scroll-strategy"),pj={provide:TI,deps:[Ma],useFactory:function fj(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},_j=new ye("mat-tooltip-default-options",{providedIn:"root",factory:function gj(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),EI="tooltip-panel",MI=ol({passive:!0});let wj=(()=>{class n{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Ct(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=oc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=oc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,a,c,u,m,g,C,F,O){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=c,this._ariaDescriber=u,this._focusMonitor=m,this._dir=C,this._defaultOptions=F,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ae,this._scrollStrategy=g,this._document=O,F&&(F.position&&(this.position=F.position),F.positionAtOrigin&&(this.positionAtOrigin=F.positionAtOrigin),F.touchGestures&&(this.touchGestures=F.touchGestures)),C.change.pipe(fn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(fn(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,MI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Gy(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(fn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof h)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(fn(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${EI}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(fn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(fn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(fn(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Ks(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(zr(1),fn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const u=`${this._cssClassPrefix}-${EI}-`;c.removePanelClass(u+this._currentPosition),c.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,MI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),ys=(()=>{class n extends wj{constructor(e,i,r,o,a,c,u,m,g,C,F,O){super(e,i,r,o,a,c,u,m,g,C,F,O),this._tooltipComponent=Tj,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return n.\u0275fac=function(e){return new(e||n)(E(Ma),E(h),E(zf),E(xr),E(Ht),E(Ai),E(OV),E(xu),E(TI),E(Hr,8),E(_j,8),E(en))},n.\u0275dir=xe({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[nt]}),n})(),Dj=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ae,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(Nr,8))},n.\u0275dir=xe({type:n}),n})(),Tj=(()=>{class n extends Dj{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Nn(hj,7),2&e){let r;yt(r=vt())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&ce("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&mg("zoom",i.isVisible()?1:null)},features:[nt],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,i){1&e&&(y(0,"div",0,1),ce("animationend",function(o){return i._handleAnimationEnd(o)}),y(2,"div",2),A(3),v()()),2&e&&(Jt("mdc-tooltip--multiline",i._isMultiline),N("ngClass",i.tooltipClass),T(3),Rt(i.message))},dependencies:[Ff],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),n})(),Ej=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[pj],imports:[kS,wa,d_,$n,$n,qh]}),n})();function __(n){return(__="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function al(n,t,e){return(t=function kj(n){var t=function Mj(n,t){if("object"!==__(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==__(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"===__(t)?t:String(t)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const kI=new ye("ngx-segment-analytics.config"),Sj={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};class nm{constructor(){al(this,"analytics",void 0)}}al(nm,"\u0275fac",function(t){return new(t||nm)}),al(nm,"\u0275prov",B({token:nm,factory:nm.\u0275fac}));class im{constructor(t,e,i){if(al(this,"_w",void 0),al(this,"_doc",void 0),al(this,"_config",void 0),this._w=t,this._doc=e,this._config={...Sj,...i},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=r=>(...o)=>(o.unshift(r),this._w.analytics.push(o),this._w.analytics),this._w.analytics.methods.forEach(r=>{this._w.analytics[r]=this._w.analytics.factory(r)}),this._w.analytics.load=(r,o)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",r);const c=this._doc.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c),this._w.analytics._loadOptions=o},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(t,e){this._w.analytics.load(t,e),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(t,e,i){return new Promise(r=>{this._w.analytics.identify(t,e,i,o=>r(this))})}track(t,e,i){return new Promise(r=>{this._w.analytics.track(t,e,i,o=>r(this))})}page(t,e,i,r){return new Promise(o=>{this._w.analytics.page(t,e,i,r,a=>o(this))})}group(t,e){return new Promise(i=>{this._w.analytics.group(t,e,r=>i(this))})}alias(t,e,i){return new Promise(r=>{this._w.analytics.alias(t,e,i,o=>r(this))})}ready(){return new Promise(t=>{this._w.analytics.ready(e=>t(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(t){this._w.analytics.setAnonymousId(t)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(t){this._w.analytics.debug(t)}on(t,e){this._w.analytics.on(t,e)}trackLink(t,e,i){this._w.analytics.trackLink(t,e,i)}trackForm(t,e,i){this._w.analytics.trackForm(t,e,i)}timeout(t){this._w.analytics.timeout(t)}addSourceMiddleware(t){this._w.analytics.addSourceMiddleware(t)}addDestinationMiddleware(t,e){this._w.analytics.addDestinationMiddleware(t,e)}register(...t){return this._w.analytics.register(...t)}get plugins(){return this._w.analytics.plugins}}al(im,"\u0275fac",function(t){return new(t||im)(te(nm),te(en),te(kI))}),al(im,"\u0275prov",B({token:im,factory:im.\u0275fac,providedIn:"root"}));class ud{static forRoot(t){return{ngModule:ud,providers:[{provide:kI,useValue:t},im]}}constructor(t){if(t)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}}al(ud,"\u0275fac",function(t){return new(t||ud)(te(ud,12))}),al(ud,"\u0275mod",sn({type:ud})),al(ud,"\u0275inj",Se({providers:[{provide:nm,useFactory:function Aj(n){return kE(n)?window:{}},deps:[Eg]}],imports:[wa]}));var vs=M(5861);let Ij=(()=>{class n{constructor(e,i){this.snackbarRef=e,this.message=i.message,this.noLabel=i.noLabel,this.yesLabel=i.yesLabel}doNo(){this.snackbarRef.dismiss()}doYes(){this.snackbarRef.dismissWithAction()}}return n.\u0275fac=function(e){return new(e||n)(E(ov),E(Ew))},n.\u0275cmp=et({type:n,selectors:[["app-confirm"]],decls:6,vars:3,consts:[["data-cy","confirm-no","mat-raised-button","",3,"click"],["data-cy","confirm-yes","mat-raised-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"p"),A(1),v(),y(2,"button",0),ce("click",function(){return i.doNo()}),A(3),v(),y(4,"button",1),ce("click",function(){return i.doYes()}),A(5),v()),2&e&&(T(1),Rt(i.message),T(2),hi("",i.noLabel," "),T(2),Rt(i.yesLabel))},dependencies:[tr]}),n})(),Qo=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1/devstate"}addContainer(e){return this.http.post(this.base+"/container",{name:e.name,image:e.image,command:e.command,args:e.args,env:e.env,memReq:e.memoryRequest,memLimit:e.memoryLimit,cpuReq:e.cpuRequest,cpuLimit:e.cpuLimit,volumeMounts:e.volumeMounts,configureSources:e.configureSources,mountSources:e.mountSources,sourceMapping:e.sourceMapping,annotation:{deployment:e.annotation.deployment,service:e.annotation.service},endpoints:e.endpoints})}saveContainer(e){return this.http.patch(this.base+"/container/"+e.name,{image:e.image,command:e.command,args:e.args,env:e.env,memReq:e.memoryRequest,memLimit:e.memoryLimit,cpuReq:e.cpuRequest,cpuLimit:e.cpuLimit,volumeMounts:e.volumeMounts,configureSources:e.configureSources,mountSources:e.mountSources,sourceMapping:e.sourceMapping,annotation:{deployment:e.annotation.deployment,service:e.annotation.service},endpoints:e.endpoints})}addImage(e){return this.http.post(this.base+"/image",{name:e.name,imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}saveImage(e){return this.http.patch(this.base+"/image/"+e.name,{imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}addResource(e){return this.http.post(this.base+"/resource",{name:e.name,inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}saveResource(e){return this.http.patch(this.base+"/resource/"+e.name,{inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}addVolume(e){return this.http.post(this.base+"/volume",{name:e.name,ephemeral:e.ephemeral,size:e.size})}saveVolume(e){return this.http.patch(this.base+"/volume/"+e.name,{ephemeral:e.ephemeral,size:e.size})}addExecCommand(e,i){return this.http.post(this.base+"/execCommand",{name:e,component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}updateExecCommand(e,i){return this.http.patch(this.base+"/execCommand/"+e,{component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}addApplyCommand(e,i){return this.http.post(this.base+"/applyCommand",{name:e,component:i.component})}updateApplyCommand(e,i){return this.http.patch(this.base+"/applyCommand/"+e,{component:i.component})}addCompositeCommand(e,i){return this.http.post(this.base+"/compositeCommand",{name:e,parallel:i.parallel,commands:i.commands})}updateCompositeCommand(e,i){return this.http.patch(this.base+"/compositeCommand/"+e,{parallel:i.parallel,commands:i.commands})}getFlowChart(){return this.http.get(this.base+"/chart")}setDevfileContent(e){return this.http.put(this.base+"/devfile",{content:e})}getDevfileContent(){return this.http.get(this.base+"/devfile")}clearDevfileContent(){return this.http.delete(this.base+"/devfile")}setMetadata(e){return this.http.put(this.base+"/metadata",{name:e.name,version:e.version,displayName:e.displayName,description:e.description,tags:e.tags,architectures:e.architectures,icon:e.icon,globalMemoryLimit:e.globalMemoryLimit,projectType:e.projectType,language:e.language,website:e.website,provider:e.provider,supportUrl:e.supportUrl})}moveCommand(e,i,r,o){return this.http.post(this.base+"/command/0/move",{fromGroup:e,fromIndex:r,toGroup:i,toIndex:o})}setDefaultCommand(e,i){return this.http.post(this.base+"/command/"+e+"/setDefault",{group:i})}unsetDefaultCommand(e){return this.http.post(this.base+"/command/"+e+"/unsetDefault",{})}deleteCommand(e){return this.http.delete(this.base+"/command/"+e)}deleteContainer(e){return this.http.delete(this.base+"/container/"+e)}deleteImage(e){return this.http.delete(this.base+"/image/"+e)}deleteResource(e){return this.http.delete(this.base+"/resource/"+e)}deleteVolume(e){return this.http.delete(this.base+"/volume/"+e)}updateEvents(e,i){return this.http.put(this.base+"/events",{eventName:e,commands:i})}isQuantityValid(e){return this.http.post(this.base+"/quantityValid",{quantity:e})}isQuantity(){return e=>{const i=e.value;return""==i?gs(null):this.isQuantityValid(i).pipe(Vn(()=>null),Dw(()=>gs({isQuantity:!1})))}}}return n.\u0275fac=function(e){return new(e||n)(te(Wg))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fj=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1"}getDevfile(){return this.http.get(this.base+"/devfile")}saveDevfile(e){return this.http.put(this.base+"/devfile",{content:e})}telemetry(){return this.http.get(this.base+"/telemetry")}}return n.\u0275fac=function(e){return new(e||n)(te(Wg))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Oj=M(9037);let Pj=(()=>{class n{constructor(){}getMermaidAsSVG(e){return(0,vs.Z)(function*(){const{svg:i}=yield Oj.N.render("rendered",e);return i})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qs=(()=>{class n{constructor(){this.savedDevfile="",this._state=new Bx(null),this.state=this._state.asObservable(),this._modified=new Bx(null),this.modified=this._modified.asObservable()}changeDevfileYaml(e,i=!1){this._state.next(e),i&&(this.savedDevfile=e.content),""==this.savedDevfile&&(this.savedDevfile=e.content),this._modified.next(this.savedDevfile!=e.content)}isUpdated(e){return e!=this.savedDevfile}getDragAndDropEnabled(){return"true"==localStorage.getItem("dragAndDropEnabled")}saveDragAndDropEnabled(e){return localStorage.setItem("dragAndDropEnabled",e?"true":"false")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rj=(()=>{class n{constructor(){this.base="/api/v1",this.evtSource=new EventSource(this.base+"/notifications")}subscribeTo(e){return new at(i=>{e.forEach(r=>{this.evtSource.addEventListener(r,o=>{i.next(o)})}),this.evtSource.onerror=r=>{i.error(r)}})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ka=(()=>{class n{constructor(e){this.segment=e,this.options={context:{ip:"0.0.0.0"}}}init(e,i){this.segment.identify(i,{},this.options),this.segment.load(e),this.segment.setAnonymousId(i)}track(e){this.segment.track(e,{},this.options)}}return n.\u0275fac=function(e){return new(e||n)(te(im))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nj=(()=>{class n{constructor(e,i,r){this.devstate=e,this.state=i,this.telemetry=r,this.form=new Ko({name:new dt(""),version:new dt("",bn.pattern("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$")),displayName:new dt(""),description:new dt(""),tags:new dt(""),architectures:new dt(""),icon:new dt(""),globalMemoryLimit:new dt(""),projectType:new dt(""),language:new dt(""),website:new dt(""),provider:new dt(""),supportUrl:new dt("")})}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,vs.Z)(function*(r){const o=r?.metadata;null!=o&&e.form.patchValue(o)});return function(r){return i.apply(this,arguments)}}())}onSave(){this.telemetry.track("[ui] apply metadata"),this.devstate.setMetadata(this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-metadata"]],decls:60,vars:3,consts:[[1,"main"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["data-cy","metadata-name","placeholder","Unique name to identify the devfile","matInput","","formControlName","name"],["placeholder","Version of the devfile, semver-compatible","matInput","","formControlName","version"],["appearance","outline",1,"full-width"],["placeholder","Name to display instead of the unique name","matInput","","formControlName","displayName"],["matInput","","formControlName","description","rows","4"],["placeholder","Tags to help find the devfile in a registry","matInput","","formControlName","tags"],["placeholder","Ex: amd64,arm64,ppc64le,s390x","matInput","","formControlName","architectures"],["placeholder","Can be a URI or a relative path in the project","matInput","","formControlName","icon"],[1,"icon-display","width-10"],["width","56",3,"src"],["appearance","outline",1,"width-40"],["placeholder","Informative limit of memory used by the devfile. Ex: 1Gi","matInput","","formControlName","globalMemoryLimit"],["placeholder","Ex: Framework of the project","matInput","","formControlName","projectType"],["placeholder","Language of the project","matInput","","formControlName","language"],["placeholder","Official website of the devfile","matInput","","formControlName","website"],["placeholder","Information about the provider of the devfile","matInput","","formControlName","provider"],["placeholder","Link to a page providing support information","matInput","","formControlName","supportUrl"],["mat-flat-button","","color","primary",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),A(4,"Name"),v(),Pe(5,"input",3),v(),y(6,"mat-form-field",2)(7,"mat-label"),A(8,"Version"),v(),y(9,"mat-error"),A(10,"Examples: 1.0.4, 1.4.7-alpha1"),v(),Pe(11,"input",4),v(),y(12,"mat-form-field",5)(13,"mat-label"),A(14,"Display Name"),v(),Pe(15,"input",6),v(),y(16,"mat-form-field",5)(17,"mat-label"),A(18,"Description"),v(),Pe(19,"textarea",7),v(),y(20,"mat-form-field",2)(21,"mat-label"),A(22,"Tags (comma-speparated)"),v(),Pe(23,"input",8),v(),y(24,"mat-form-field",2)(25,"mat-label"),A(26,"Architectures (comma-separated)"),v(),Pe(27,"input",9),v(),y(28,"mat-form-field",2)(29,"mat-label"),A(30,"Icon"),v(),Pe(31,"input",10),v(),y(32,"span",11),Pe(33,"img",12),v(),y(34,"mat-form-field",13)(35,"mat-label"),A(36,"Global Memory Limit"),v(),Pe(37,"input",14),v(),y(38,"mat-form-field",2)(39,"mat-label"),A(40,"Project Type"),v(),Pe(41,"input",15),v(),y(42,"mat-form-field",2)(43,"mat-label"),A(44,"Language"),v(),Pe(45,"input",16),v(),y(46,"mat-form-field",2)(47,"mat-label"),A(48,"Website"),v(),Pe(49,"input",17),v(),y(50,"mat-form-field",2)(51,"mat-label"),A(52,"Provider"),v(),Pe(53,"input",18),v(),y(54,"mat-form-field",5)(55,"mat-label"),A(56,"Support URL"),v(),Pe(57,"input",19),v()(),y(58,"button",20),ce("click",function(){return i.onSave()}),A(59,"Apply"),v()()),2&e&&(T(1),N("formGroup",i.form),T(32),N("src",i.form.controls.icon.value,Jp),T(25),N("disabled",i.form.invalid))},dependencies:[rc,yo,oo,qs,so,ps,tr,vo,$r,cd,bs],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}.quart-width[_ngcontent-%COMP%]{width:25%}.icon-display[_ngcontent-%COMP%]{display:inline-flex;position:relative;left:16px;top:22px}.width-10[_ngcontent-%COMP%]{width:10%}.width-40[_ngcontent-%COMP%]{width:40%}"]}),n})();const av="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",lv="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";function Bj(n,t){if(1&n&&(y(0,"h3"),A(1),v()),2&n){const e=Z();T(1),Rt(e.title)}}function Vj(n,t){if(1&n){const e=Nt();y(0,"span")(1,"mat-form-field",5)(2,"mat-label")(3,"span"),A(4),v()(),Pe(5,"input",6),v(),y(6,"button",7),ce("click",function(){const o=He(e).index;return je(Z(2).removeText(o))}),y(7,"mat-icon",8),A(8,"delete_forever"),v()()()}if(2&n){const e=t.$implicit,i=t.index,r=Z(2);T(4),Rt(r.label),T(1),N("formControl",e),bt("data-cy",r.dataCyPrefix+"-text-"+i),T(1),N("matTooltip",r.deleteLabel),bt("data-cy",r.dataCyPrefix+"-minus-"+i)}}function Hj(n,t){if(1&n){const e=Nt();y(0,"mat-card")(1,"mat-card-content"),K(2,Vj,9,5,"span",3),v(),y(3,"mat-card-actions")(4,"button",4),ce("click",function(){return He(e),je(Z().addText(""))}),A(5),v()()()}if(2&n){const e=Z();T(2),N("ngForOf",e.form.controls),T(2),bt("data-cy","add-text"),T(1),Rt(e.addLabel)}}function zj(n,t){if(1&n){const e=Nt();y(0,"button",4),ce("click",function(){return He(e),je(Z().addText(""))}),A(1),v()}if(2&n){const e=Z();bt("data-cy","add-text"),T(1),Rt(e.addLabel)}}let SI=(()=>{class n{constructor(){this.dataCyPrefix="",this.label="",this.addLabel="",this.deleteLabel="",this.title="",this.onChange=e=>{},this.form=new Bf([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}newText(e){return new dt(e,[bn.required])}writeValue(e){e?.forEach(i=>this.addText(i))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addText(e){this.form.push(this.newText(e))}removeText(e){this.form.removeAt(e)}validate(e){return this.form.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-multi-text"]],inputs:{dataCyPrefix:"dataCyPrefix",label:"label",addLabel:"addLabel",deleteLabel:"deleteLabel",title:"title"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:4,vars:3,consts:[[4,"ngIf"],[1,"group"],["mat-flat-button","",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"],["appearance","outline",1,"inline"],["matInput","",3,"formControl"],["mat-icon-button","",1,"adjust-position",3,"matTooltip","click"],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){1&e&&(K(0,Bj,2,1,"h3",0),y(1,"div",1),K(2,Hj,6,3,"mat-card",0),K(3,zj,2,2,"button",2),v()),2&e&&(N("ngIf",i.title),T(2),N("ngIf",i.form.controls.length>0),T(1),N("ngIf",0==i.form.controls.length))},dependencies:[fs,Si,yo,oo,Nf,tr,m_,Du,Eu,Tu,vo,$r,Xs,bs,ys],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}button.adjust-position[_ngcontent-%COMP%]{right:6px;top:6px}"]}),n})();function $j(n,t){1&n&&(y(0,"h2"),A(1,"Add a new volume"),v())}function jj(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit volume "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.volume.name)}}function Uj(n,t){if(1&n){const e=Nt();y(0,"button",11),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function Wj(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function Gj(n,t){if(1&n){const e=Nt();y(0,"button",13),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let AI=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),size:new dt("",null,[this.devstate.isQuantity()]),ephemeral:new dt(!1)})}create(){this.telemetry.track("[ui] create volume"),this.created.emit(this.form.value)}save(){this.form.value.name=this.volume?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.volume)return;const i=e.volume.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-volume"]],inputs:{cancelable:"cancelable",volume:"volume"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:25,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the volume","data-cy","volume-name","matInput","","formControlName","name"],["placeholder","Minimal size of the volume","data-cy","volume-size","matInput","","formControlName","size"],["data-cy","volume-ephemeral","formControlName","ephemeral"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click",4,"ngIf"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,$j,2,0,"h2",1),K(2,jj,4,1,"h2",1),y(3,"div",2),A(4,"A volume can be mounted and shared by several containers."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-volume"),v(),Pe(12,"input",5),v(),y(13,"mat-form-field",4)(14,"mat-label")(15,"span"),A(16,"Size"),v()(),y(17,"mat-error"),A(18,"Example of valid quantities: 300k (300*1000), 30Mi(30*1024\xb2), 3Gi (3*1024\xb3), 3G (3*1000\xb3)"),v(),Pe(19,"input",6),v(),y(20,"mat-checkbox",7),A(21,"Volume is Ephemeral"),v()(),K(22,Uj,2,1,"button",8),K(23,Wj,2,1,"button",9),K(24,Gj,2,0,"button",10),v()),2&e&&(T(1),N("ngIf",!i.volume),T(1),N("ngIf",i.volume),T(3),N("formGroup",i.form),T(17),N("ngIf",!i.volume),T(1),N("ngIf",i.volume),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function Zj(n,t){if(1&n&&(y(0,"mat-option",12),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),Rt(e)}}function qj(n,t){if(1&n){const e=Nt();y(0,"app-volume",13),ce("created",function(r){He(e);const o=Z().index;return je(Z().onNewVolumeCreated(o,r))}),v()}}function Yj(n,t){if(1&n){const e=Nt();y(0,"div"),io(1,3),y(2,"mat-form-field",4)(3,"mat-label")(4,"span"),A(5,"Volume"),v()(),y(6,"mat-select",5),ce("selectionChange",function(r){const a=He(e).index;return je(Z().onNameChange(a,r.value))}),K(7,Zj,2,2,"mat-option",6),y(8,"mat-option",7),A(9,"(New Volume)"),v()()(),y(10,"mat-form-field",4)(11,"mat-label")(12,"span"),A(13,"Mount Path"),v()(),Pe(14,"input",8),v(),y(15,"button",9),ce("click",function(){const o=He(e).index;return je(Z().remove(o))}),y(16,"mat-icon",10),A(17,"delete_forever"),v()(),K(18,qj,1,0,"app-volume",11),ro(),v()}if(2&n){const e=t.$implicit,i=t.index,r=Z();T(1),N("formGroup",e),T(5),bt("data-cy","volume-mount-name-"+i),T(1),N("ngForOf",r.volumes),T(7),bt("data-cy","volume-mount-path-"+i),T(1),bt("data-cy","volume-mount-minus-"+i),T(3),N("ngIf",r.showNewVolume[i])}}let Kj=(()=>{class n{constructor(){this.volumes=[],this.createNewVolume=new Ve,this.form=new Bf([]),this.showNewVolume=[],this.onChange=e=>{},this.onValidatorChange=()=>{},this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.add(i.name,i.path))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newVolumeMount(e){return new Ko({name:new dt(e.name,[bn.required]),path:new dt(e.path,[bn.required])})}add(e,i){this.form.push(this.newVolumeMount({name:e,path:i}))}remove(e){this.form.removeAt(e)}onNameChange(e,i){this.showNewVolume[e]="!"==i}onNewVolumeCreated(e,i){this.volumes.push(i.name),this.form.at(e).get("name")?.setValue(i.name),this.createNewVolume.next(i),this.showNewVolume[e]=!1,this.onValidatorChange()}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-volume-mounts"]],inputs:{volumes:"volumes"},outputs:{createNewVolume:"createNewVolume"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:4,vars:1,consts:[[1,"group"],[4,"ngFor","ngForOf"],["data-cy","volume-mount-add","mat-flat-button","",3,"click"],[3,"formGroup"],["appearance","outline",1,"inline"],["formControlName","name",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],["formControlName","path","matInput",""],["mat-icon-button","","matTooltip","Delete Volume Mount",1,"adjust-position",3,"click"],[1,"tab-icon","material-icons-outlined"],[3,"created",4,"ngIf"],[3,"value"],[3,"created"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Yj,19,6,"div",1),y(2,"button",2),ce("click",function(){return i.add("","")}),A(3,"Add Volume Mount"),v()()),2&e&&(T(1),N("ngForOf",i.form.controls))},dependencies:[fs,Si,yo,oo,qs,so,ps,Qh,tr,m_,vo,$r,Xs,bs,rv,ys,AI],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}button.adjust-position[_ngcontent-%COMP%]{right:6px;top:6px}"]}),n})();function Xj(n,t){if(1&n){const e=Nt();y(0,"div"),io(1,3),y(2,"mat-form-field",4)(3,"mat-label")(4,"span"),A(5,"Name"),v()(),Pe(6,"input",5),v(),y(7,"mat-form-field",4)(8,"mat-label")(9,"span"),A(10,"Value"),v()(),Pe(11,"input",6),v(),y(12,"button",7),ce("click",function(){const o=He(e).index;return je(Z().removeEntry(o))}),y(13,"mat-icon",8),A(14,"delete_forever"),v()(),ro(),v()}if(2&n){const e=t.$implicit,i=t.index,r=Z();T(1),N("formGroup",e),T(5),bt("data-cy",r.dataCyPrefix+"-name-"+i),T(5),bt("data-cy",r.dataCyPrefix+"-value-"+i),T(1),N("matTooltip",r.deleteLabel),bt("data-cy",r.dataCyPrefix+"-minus-"+i)}}let Qj=(()=>{class n{constructor(){this.dataCyPrefix="",this.addLabel="",this.deleteLabel="",this.form=new Bf([]),this.onChange=e=>{},this.onValidatorChange=()=>{},this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.addEntry(i.name,i.value))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newKeyValueForm(e){return new Ko({name:new dt(e.name,[bn.required]),value:new dt(e.value,[bn.required])})}addEntry(e,i){this.form.push(this.newKeyValueForm({name:e,value:i}))}removeEntry(e){this.form.removeAt(e)}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-multi-key-value"]],inputs:{dataCyPrefix:"dataCyPrefix",addLabel:"addLabel",deleteLabel:"deleteLabel"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:4,vars:3,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"],[3,"formGroup"],["appearance","outline",1,"kv-width"],["matInput","","formControlName","name"],["matInput","","formControlName","value"],["mat-icon-button","",1,"adjust-position",3,"matTooltip","click"],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Xj,15,5,"div",1),y(2,"button",2),ce("click",function(){return i.addEntry("","")}),A(3),v()()),2&e&&(T(1),N("ngForOf",i.form.controls),T(1),bt("data-cy",i.dataCyPrefix+"-add"),T(1),Rt(i.addLabel))},dependencies:[fs,yo,oo,qs,so,ps,tr,m_,vo,$r,Xs,bs,ys],styles:["div.group[_ngcontent-%COMP%]{margin-bottom:16px}.kv-width[_ngcontent-%COMP%]{width:45%}button.adjust-position[_ngcontent-%COMP%]{right:6px;top:6px}"]}),n})();function Jj(n,t){if(1&n){const e=Nt();y(0,"mat-card")(1,"mat-card-content",3)(2,"mat-form-field",4)(3,"mat-label")(4,"span"),A(5,"Name"),v()(),Pe(6,"input",5),v(),y(7,"mat-form-field",6)(8,"mat-label")(9,"span"),A(10,"Target Port"),v()(),Pe(11,"input",7),v(),y(12,"mat-form-field",6)(13,"mat-label"),A(14,"Exposure"),v(),y(15,"mat-select",8)(16,"mat-option",9),A(17,"(default, public)"),v(),y(18,"mat-option",10),A(19,"public"),v(),y(20,"mat-option",11),A(21,"internal"),v(),y(22,"mat-option",12),A(23,"none"),v()()(),y(24,"mat-form-field",4)(25,"mat-label")(26,"span"),A(27,"Path"),v()(),Pe(28,"input",13),v(),y(29,"mat-form-field",6)(30,"mat-label"),A(31,"Protocol"),v(),y(32,"mat-select",14)(33,"mat-option",9),A(34,"(default, http)"),v(),y(35,"mat-option",15),A(36,"http"),v(),y(37,"mat-option",16),A(38,"https"),v(),y(39,"mat-option",17),A(40,"ws"),v(),y(41,"mat-option",18),A(42,"wss"),v(),y(43,"mat-option",19),A(44,"tcp"),v(),y(45,"mat-option",20),A(46,"udp"),v()()(),y(47,"mat-checkbox",21),A(48,"Protocol Is Secure"),v()(),y(49,"mat-card-actions")(50,"button",22),ce("click",function(){const o=He(e).index;return je(Z().removeEndpoint(o))}),y(51,"mat-icon",23),A(52,"delete_forever"),v()()()()}if(2&n){const e=t.$implicit,i=t.index;T(1),N("formGroup",e),T(5),bt("data-cy","endpoint-name-"+i),T(5),bt("data-cy","endpoint-targetPort-"+i),T(4),bt("data-cy","endpoint-exposure-"+i),T(13),bt("data-cy","endpoint-path-"+i),T(4),bt("data-cy","endpoint-protocol-"+i),T(15),bt("data-cy","endpoint-secure-"+i),T(3),bt("data-cy","endpoint-minus-"+i)}}let eU=(()=>{class n{constructor(){this.onChange=e=>{},this.onValidatorChange=()=>{},this.form=new Bf([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}newEndpoint(e){return new Ko({name:new dt(e.name,[bn.required]),targetPort:new dt(e.targetPort,[bn.required,bn.pattern("^[0-9]*$")]),exposure:new dt(e.exposure),path:new dt(e.path),protocol:new dt(e.protocol),secure:new dt(e.secure)})}addEndpoint(){this.form.push(this.newEndpoint({name:"",targetPort:0}))}removeEndpoint(e){this.form.removeAt(e)}writeValue(e){e.forEach(i=>{this.form.push(this.newEndpoint(i))})}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-endpoints"]],features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:5,vars:1,consts:[[1,"group"],[4,"ngFor","ngForOf"],["data-cy","endpoints-add","mat-flat-button","",3,"click"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["matInput","","formControlName","name"],["appearance","outline",1,"quart-width"],["type","number","matInput","","formControlName","targetPort"],["formControlName","exposure"],["value",""],["value","public"],["value","internal"],["value","none"],["matInput","","formControlName","path"],["formControlName","protocol"],["value","http"],["value","https"],["value","ws"],["value","wss"],["value","tcp"],["value","udp"],["formControlName","secure"],["mat-icon-button","","matTooltip","Delete endpoint",1,"adjust-position",3,"click"],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Jj,53,8,"mat-card",1),y(2,"div")(3,"button",2),ce("click",function(){return i.addEndpoint()}),A(4,"Add an Endpoint"),v()()()),2&e&&(T(1),N("ngForOf",i.form.controls))},dependencies:[fs,yo,gx,oo,qs,so,ps,Qh,tr,m_,Du,Eu,Tu,dd,vo,$r,Xs,bs,rv,ys],styles:[".mid-width[_ngcontent-%COMP%]{width:50%}.quart-width[_ngcontent-%COMP%]{width:25%}mat-card[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{flex-grow:1;overflow:auto}button.adjust-position[_ngcontent-%COMP%]{right:6px}"]}),n})();function tU(n,t){1&n&&(y(0,"h2"),A(1,"Add a new container"),v())}function nU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit container "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.container.name)}}function iU(n,t){if(1&n){const e=Nt();y(0,"button",19),ce("click",function(){return He(e),je(Z().more())}),A(1,"More parameters..."),v()}}function rU(n,t){1&n&&(y(0,"div",28)(1,"div",29)(2,"mat-checkbox",30),A(3,"Mount sources into container"),v(),y(4,"mat-checkbox",31),A(5,"Into specific directory"),v()(),y(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Mount sources into"),v()(),Pe(10,"input",32),v()())}function oU(n,t){if(1&n&&(y(0,"div")(1,"h3"),A(2,"Resource Usage"),v(),y(3,"div",2),A(4,"CPU and Memory resources necessary for container's execution"),v(),y(5,"mat-form-field",4)(6,"mat-label")(7,"span"),A(8,"Memory Request"),v()(),y(9,"mat-error"),A(10),v(),Pe(11,"input",20),v(),y(12,"mat-form-field",4)(13,"mat-label")(14,"span"),A(15,"Memory Limit"),v()(),y(16,"mat-error"),A(17),v(),Pe(18,"input",21),v(),y(19,"mat-form-field",4)(20,"mat-label")(21,"span"),A(22,"CPU Request"),v()(),y(23,"mat-error"),A(24),v(),Pe(25,"input",22),v(),y(26,"mat-form-field",4)(27,"mat-label")(28,"span"),A(29,"CPU Limit"),v()(),y(30,"mat-error"),A(31),v(),Pe(32,"input",23),v(),y(33,"h3"),A(34,"Sources"),v(),y(35,"div",2),A(36,"Declare if and how sources are mounted into the container's filesystem. By default, sources are automatically mounted into $PROJECTS_ROOT or /projects directory"),v(),y(37,"div")(38,"mat-checkbox",24),A(39,"Configure Source mount"),v()(),K(40,rU,11,0,"div",25),y(41,"h3"),A(42,"Deployment Annotations"),v(),y(43,"div",2),A(44,"Annotations added to the Kubernetes Deployment created for running this container"),v(),Pe(45,"app-multi-key-value",26),y(46,"h3"),A(47,"Service Annotations"),v(),y(48,"div",2),A(49,"Annotations added to the Kubernetes Service created for accessing this container"),v(),Pe(50,"app-multi-key-value",27),v()),2&n){const e=Z();let i;T(10),Rt(e.quantityErrMsgMemory),T(7),Rt(e.quantityErrMsgMemory),T(7),Rt(e.quantityErrMsgCPU),T(7),Rt(e.quantityErrMsgCPU),T(9),N("ngIf",null==(i=e.form.get("configureSources"))?null:i.value)}}function sU(n,t){if(1&n){const e=Nt();y(0,"button",33),ce("click",function(){return He(e),je(Z().less())}),A(1,"Less parameters..."),v()}}function aU(n,t){if(1&n){const e=Nt();y(0,"button",34),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function lU(n,t){if(1&n){const e=Nt();y(0,"button",35),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function cU(n,t){if(1&n){const e=Nt();y(0,"button",36),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let II=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.volumeNames=[],this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.quantityErrMsgMemory="Numeric value, with optional unit Ki, Mi, Gi, Ti, Pi, Ei",this.quantityErrMsgCPU="Numeric value, with optional unit m, k, M, G, T, P, E",this.volumesToCreate=[],this.seeMore=!1,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),image:new dt("",[bn.required]),command:new dt([]),args:new dt([]),env:new dt([]),volumeMounts:new dt([]),memoryRequest:new dt("",null,[this.devstate.isQuantity()]),memoryLimit:new dt("",null,[this.devstate.isQuantity()]),cpuRequest:new dt("",null,[this.devstate.isQuantity()]),cpuLimit:new dt("",null,[this.devstate.isQuantity()]),configureSources:new dt(!1),mountSources:new dt(!0),_specificDir:new dt(!1),sourceMapping:new dt(""),deployAnnotations:new dt([]),svcAnnotations:new dt([]),endpoints:new dt([])}),this.form.valueChanges.subscribe(r=>{this.updateSourceFields(r)}),this.updateSourceFields(this.form.value)}updateSourceFields(e){const i=e.mountSources&&e._specificDir;!i&&!this.form.get("sourceMapping")?.disabled&&(this.form.get("sourceMapping")?.disable(),this.form.get("sourceMapping")?.setValue(""),this.form.get("_specificDir")?.setValue(!1)),i&&!this.form.get("sourceMapping")?.enabled&&this.form.get("sourceMapping")?.enable();const r=e.mountSources;!r&&!this.form.get("_specificDir")?.disabled&&this.form.get("_specificDir")?.disable(),r&&!this.form.get("_specificDir")?.enabled&&this.form.get("_specificDir")?.enable()}toObject(e){return null==e?{}:e.reduce((i,r)=>(i[r.name]=r.value,i),{})}fromObject(e){return null==e?[]:Object.keys(e).map(i=>({name:i,value:e[i]}))}create(){this.telemetry.track("[ui] create container");const e=this.form.value;e.annotation={deployment:this.toObject(e.deployAnnotations),service:this.toObject(e.svcAnnotations)},this.created.emit({container:this.form.value,volumes:this.volumesToCreate})}save(){this.telemetry.track("[ui] edit container");const e=this.form.value;e.name=this.container?.name,e.annotation={deployment:this.toObject(e.deployAnnotations),service:this.toObject(e.svcAnnotations)},this.saved.emit({container:e,volumes:this.volumesToCreate})}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.container)return;const i=e.container.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable(),""!=this.form.get("sourceMapping")?.value&&this.form.get("_specificDir")?.setValue(!0),this.form.get("deployAnnotations")?.setValue(this.fromObject(i.annotation.deployment)),this.form.get("svcAnnotations")?.setValue(this.fromObject(i.annotation.service)))}onCreateNewVolume(e){this.volumesToCreate.push(e)}more(){this.seeMore=!0}less(){this.seeMore=!1}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-container"]],inputs:{volumeNames:"volumeNames",cancelable:"cancelable",container:"container"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:48,vars:10,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the container","data-cy","container-name","matInput","","formControlName","name"],["placeholder","Image to start the container","data-cy","container-image","matInput","","formControlName","image"],["dataCyPrefix","container-command","formControlName","command","label","Command","addLabel","Add command","deleteLabel","Delete command"],["dataCyPrefix","container-arg","formControlName","args","label","Arg","addLabel","Add arg","deleteLabel","Delete arg"],["dataCyPrefix","container-env","addLabel","Add Environment Variable","deleteLabel","Delete Environment Variable","formControlName","env"],["formControlName","volumeMounts",3,"volumes","createNewVolume"],["formControlName","endpoints"],[1,"outbutton"],["data-cy","container-more-params","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","container-less-params","mat-flat-button","",3,"click",4,"ngIf"],[1,"buttonbar"],["data-cy","container-create","mat-flat-button","","color","primary","matTooltip","create new container",3,"disabled","click",4,"ngIf"],["data-cy","container-save","mat-flat-button","","color","primary","matTooltip","save container",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","container-more-params","mat-flat-button","",3,"click"],["placeholder","memory requested for the container. Ex: 1Gi","data-cy","container-memory-request","matInput","","formControlName","memoryRequest"],["placeholder","memory limit for the container. Ex: 1Gi","data-cy","container-memory-limit","matInput","","formControlName","memoryLimit"],["placeholder","CPU requested for the container. Ex: 500m","data-cy","container-cpu-request","matInput","","formControlName","cpuRequest"],["placeholder","CPU limit for the container. Ex: 1","data-cy","container-cpu-limit","matInput","","formControlName","cpuLimit"],["data-cy","container-sources-configuration","formControlName","configureSources"],["class","source-configuration-details",4,"ngIf"],["dataCyPrefix","container-deploy-anno","addLabel","Add Annotation","deleteLabel","Delete Deployment Annotation","formControlName","deployAnnotations"],["dataCyPrefix","container-svc-anno","addLabel","Add Annotation","deleteLabel","Delete Service Annotation","formControlName","svcAnnotations"],[1,"source-configuration-details"],[1,"mid-width",2,"display","inline-flex"],["data-cy","container-mount-sources","formControlName","mountSources"],["data-cy","container-sources-specific-directory","matTooltip","${PROJECTS_ROOT} or /projects by default","formControlName","_specificDir"],["placeholder","Container's directory on which to mount sources","data-cy","container-source-mapping","matInput","","formControlName","sourceMapping"],["data-cy","container-less-params","mat-flat-button","",3,"click"],["data-cy","container-create","mat-flat-button","","color","primary","matTooltip","create new container",3,"disabled","click"],["data-cy","container-save","mat-flat-button","","color","primary","matTooltip","save container",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,tU,2,0,"h2",1),K(2,nU,4,1,"h2",1),y(3,"div",2),A(4,"A Container is used to execute shell commands into a specific environment. The entrypoint of the container must be a non-terminating command. You can use an image pulled from a registry or an image built by an Image command."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-container"),v(),Pe(12,"input",5),v(),y(13,"mat-form-field",4)(14,"mat-label")(15,"span"),A(16,"Image"),v()(),Pe(17,"input",6),v(),y(18,"h3"),A(19,"Command and Arguments"),v(),y(20,"div",2),A(21,"Command and Arguments can be used to override the entrypoint of the image"),v(),Pe(22,"app-multi-text",7)(23,"app-multi-text",8),y(24,"h3"),A(25,"Environment Variables"),v(),y(26,"div",2),A(27,"Environment Variables to define in the running container"),v(),Pe(28,"app-multi-key-value",9),y(29,"h3"),A(30,"Volume Mounts"),v(),y(31,"div",2),A(32,"Volumes to mount into the container's filesystem"),v(),y(33,"app-volume-mounts",10),ce("createNewVolume",function(o){return i.onCreateNewVolume(o)}),v(),y(34,"h3"),A(35,"Endpoints"),v(),y(36,"div",2),A(37,"Endpoints exposed by the container"),v(),Pe(38,"app-endpoints",11),y(39,"div",12),K(40,iU,2,0,"button",13),v(),K(41,oU,51,5,"div",1),y(42,"div",12),K(43,sU,2,0,"button",14),v()(),y(44,"div",15),K(45,aU,2,1,"button",16),K(46,lU,2,1,"button",17),K(47,cU,2,0,"button",18),v()()),2&e&&(T(1),N("ngIf",!i.container),T(1),N("ngIf",i.container),T(3),N("formGroup",i.form),T(28),N("volumes",i.volumeNames),T(7),N("ngIf",!i.seeMore),T(1),N("ngIf",i.seeMore),T(2),N("ngIf",i.seeMore),T(2),N("ngIf",!i.container),T(1),N("ngIf",i.container),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys,SI,Kj,Qj,eU],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}.mid-width[_ngcontent-%COMP%]{width:50%}.source-configuration-details[_ngcontent-%COMP%]{margin-left:16px}div.buttonbar[_ngcontent-%COMP%]{margin-top:16px}.outbutton[_ngcontent-%COMP%]{text-align:right}"]}),n})();function dU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Command:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.command.join(" "))}}function uU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Args:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.args.join(" "))}}function hU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=t.$implicit;T(1),pg(" ",e.name,": ",e.value," ")}}function mU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Environment variables:"),v(),y(3,"td"),K(4,hU,2,2,"div",9),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",e.env)}}function fU(n,t){if(1&n&&(y(0,"div",11)(1,"mat-chip",12)(2,"mat-icon",13),A(3,"storage"),v(),A(4),v(),y(5,"span",14),A(6," in "),y(7,"code"),A(8),v()()()),2&n){const e=t.$implicit;T(4),hi(" ",e.name," "),T(4),Rt(e.path)}}function pU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Volume Mounts:"),v(),y(3,"td"),K(4,fU,9,2,"div",10),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",e.volumeMounts)}}function gU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Memory Request:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.memoryRequest)}}function _U(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Memory Limit:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.memoryLimit)}}function bU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"CPU Request:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.cpuRequest)}}function yU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"CPU Limit:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.cpuLimit)}}function vU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=t.$implicit;T(1),pg(" ",e.key,": ",e.value," ")}}function CU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Deployment Annotations:"),v(),y(3,"td"),K(4,vU,2,2,"div",9),xg(5,"keyvalue"),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",wg(5,1,e.annotation.deployment))}}function xU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=t.$implicit;T(1),pg(" ",e.key,": ",e.value," ")}}function wU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Service Annotations:"),v(),y(3,"td"),K(4,xU,2,2,"div",9),xg(5,"keyvalue"),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",wg(5,1,e.annotation.service))}}function DU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Mount Sources:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.mountSources?"Yes":"No")}}function TU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Mount Sources Into:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.sourceMapping)}}function EU(n,t){1&n&&(y(0,"div"),A(1,"secure"),v())}function MU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=Z().$implicit;T(1),hi("path: ",e.path,"")}}function kU(n,t){if(1&n&&(y(0,"mat-card",17)(1,"mat-card-header")(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5),v()(),y(6,"mat-card-content")(7,"div"),A(8),v(),y(9,"div"),A(10),v(),K(11,EU,2,0,"div",3),K(12,MU,2,1,"div",3),v()()),2&n){const e=t.$implicit;let i,r;T(3),Rt(e.name),T(2),Rt(e.targetPort),T(3),hi("exposure: ",null!==(i=e.exposure)&&void 0!==i?i:"public",""),T(2),hi("protocol: ",null!==(r=e.protocol)&&void 0!==r?r:"http",""),T(1),N("ngIf",e.secure),T(1),N("ngIf",e.path)}}function SU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Endpoints:"),v(),y(3,"td",15),K(4,kU,13,6,"mat-card",16),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",e.endpoints)}}function AU(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Container"),v()(),y(6,"mat-card-content")(7,"table",6)(8,"tr")(9,"td"),A(10,"Image:"),v(),y(11,"td")(12,"code"),A(13),v()()(),K(14,dU,6,1,"tr",3),K(15,uU,6,1,"tr",3),K(16,mU,5,1,"tr",3),K(17,pU,5,1,"tr",3),K(18,gU,6,1,"tr",3),K(19,_U,6,1,"tr",3),K(20,bU,6,1,"tr",3),K(21,yU,6,1,"tr",3),K(22,CU,6,3,"tr",3),K(23,wU,6,3,"tr",3),K(24,DU,6,1,"tr",3),K(25,TU,6,1,"tr",3),K(26,SU,5,1,"tr",3),v()(),y(27,"mat-card-actions")(28,"button",7),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(29,"Delete"),v(),y(30,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(31,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(10),Rt(e.image),T(1),N("ngIf",null!=e.command&&e.command.length>0),T(1),N("ngIf",null!=e.args&&e.args.length>0),T(1),N("ngIf",e.env.length),T(1),N("ngIf",e.volumeMounts.length>0),T(1),N("ngIf",null!=e.memoryRequest&&e.memoryRequest.length>0),T(1),N("ngIf",null!=e.memoryLimit&&e.memoryLimit.length>0),T(1),N("ngIf",null!=e.cpuRequest&&e.cpuRequest.length>0),T(1),N("ngIf",null!=e.cpuLimit&&e.cpuLimit.length>0),T(1),N("ngIf",e.annotation.deployment),T(1),N("ngIf",e.annotation.service),T(1),N("ngIf",e.configureSources),T(1),N("ngIf",e.configureSources&&e.mountSources&&e.sourceMapping),T(1),N("ngIf",e.endpoints.length)}}const IU=function(){return[]};function FU(n,t){if(1&n){const e=Nt();y(0,"app-container",18),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();let i;N("volumeNames",null!==(i=e.volumeNames)&&void 0!==i?i:el(3,IU))("cancelable",e.forceDisplayForm)("container",e.editingContainer)}}function OU(n,t){if(1&n){const e=Nt();io(0),y(1,"button",19),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",20),A(3,"add"),v()(),ro()}}let PU=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.containers=[],this.volumeNames=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){e.volumeNames=o?.volumes.map(a=>a.name),i.containers=o?.containers,null!=e.containers&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingContainer=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the container "'+e+'". Continue?')&&this.devstate.deleteContainer(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}edit(e){this.editingContainer=e,this.displayForm()}onCreated(e){const i=e.container;this.createVolumes(e.volumes,0,()=>{this.devstate.addContainer(i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})})}onSaved(e){const i=e.container;this.createVolumes(e.volumes,0,()=>{this.devstate.saveContainer(i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-containers"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","container-info",4,"ngFor","ngForOf"],[3,"volumeNames","cancelable","container","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","container-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],["data-cy","container-edit","mat-button","",3,"click"],[4,"ngFor","ngForOf"],["class","volume-mount",4,"ngFor","ngForOf"],[1,"volume-mount"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],[1,"path"],[1,"container-list"],["class","endpoint",4,"ngFor","ngForOf"],[1,"endpoint"],[3,"volumeNames","cancelable","container","canceled","created","saved"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,AU,32,15,"mat-card",1),K(2,FU,1,4,"app-container",2),v(),K(3,OU,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.containers),T(1),N("ngIf",i.forceDisplayForm||null==i.containers||0==i.containers.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.containers&&i.containers.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Mu,xw,Xs,II,TE],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.volume-mount[_ngcontent-%COMP%]{margin-top:4px}.volume-mount[_ngcontent-%COMP%] > mat-chip[_ngcontent-%COMP%]{top:-11px}.volume-mount[_ngcontent-%COMP%] > span.path[_ngcontent-%COMP%]{position:relative;top:-14px}table.aligned[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:top}div.endpoint-list[_ngcontent-%COMP%]{display:float}mat-card.endpoint[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;float:left;margin:0 8px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:8px 8px 0}mat-card.endpoint[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:16px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{font-size:12px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:8px}"]}),n})();function RU(n,t){if(1&n&&(y(0,"mat-option",4),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),Rt(e)}}let kw=(()=>{class n{constructor(){this.containers=[],this.label="",this.createNew=new Ve,this.onChange=e=>{},this.onValidatorChange=()=>{},this.formCtrl=new dt("",[bn.required,this.validatorIsNotNew()])}validatorIsNotNew(){return e=>"!"==e.value?{internal:!0}:null}writeValue(e){this.formCtrl.setValue(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}onSelectChange(e){this.onValidatorChange(),"!"!=e&&this.onChange(e),this.createNew.emit("!"==e)}registerOnValidatorChange(e){this.onValidatorChange=e}validate(e){return this.formCtrl.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-select-container"]],inputs:{containers:"containers",label:"label"},outputs:{createNew:"createNew"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:7,vars:4,consts:[["appearance","fill"],["data-cy","select-container",3,"formControl","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],[3,"value"]],template:function(e,i){1&e&&(y(0,"mat-form-field",0)(1,"mat-label"),A(2),v(),y(3,"mat-select",1),ce("selectionChange",function(o){return i.onSelectChange(o.value)}),K(4,RU,2,2,"mat-option",2),y(5,"mat-option",3),A(6),v()()()),2&e&&(T(2),Rt(i.label),T(1),N("formControl",i.formCtrl),T(1),N("ngForOf",i.containers),T(2),hi("(New ",i.label,")"))},dependencies:[fs,oo,Nf,Qh,vo,$r,rv]}),n})();function LU(n,t){1&n&&(y(0,"h2"),A(1,"Add an Exec Command"),v())}function NU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit exec command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}const BU=function(){return[]};function VU(n,t){if(1&n){const e=Nt();y(0,"app-container",15),ce("created",function(r){return He(e),je(Z().onNewContainerCreated(r))}),v()}if(2&n){let i;N("volumeNames",null!==(i=Z().volumeNames)&&void 0!==i?i:el(1,BU))}}function HU(n,t){if(1&n){const e=Nt();y(0,"button",16),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function zU(n,t){if(1&n){const e=Nt();y(0,"button",17),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let $U=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.containerList=[],this.showNewContainer=!1,this.containerToCreate=null,this.volumesToCreate=[],this.volumeNames=[],this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),component:new dt("",[bn.required]),commandLine:new dt("",[bn.required]),workingDir:new dt("",[bn.required]),hotReloadCapable:new dt(!1)}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){o.volumeNames=c?.volumes.map(m=>m.name);const u=c?.containers;null!=u&&(o.containerList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}create(){this.telemetry.track("[ui] create exec command");const e=()=>{this.devstate.addExecCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}cancel(){this.canceled.emit()}onProjectsRoot(){this.form.controls.workingDir.setValue("${PROJECTS_ROOT}")}onCreateNewContainer(e){this.showNewContainer=e}onNewContainerCreated(e){const i=e.container;this.containerList.push(i.name),this.form.controls.component.setValue(i.name),this.showNewContainer=!1,this.containerToCreate=i,this.volumesToCreate.push(...e.volumes)}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.exec),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update exec command");const e=()=>{null!=this.command&&this.devstate.updateExecCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-exec"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:35,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["formControlName","hotReloadCapable"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-exec-name","matInput","","formControlName","name"],["placeholder","command line passed to the shell","data-cy","command-exec-command-line","matInput","","formControlName","commandLine"],["placeholder","Working directory of the command","data-cy","command-exec-working-dir","matInput","","formControlName","workingDir"],["data-cy","command-exec-projects-root","mat-button","",3,"click"],["formControlName","component","label","Container",3,"containers","createNew"],[3,"volumeNames","created",4,"ngIf"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click",4,"ngIf"],["data-cy","command-exec-save","mat-flat-button","","color","primary","matTooltip","save command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"volumeNames","created"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click"],["data-cy","command-exec-save","mat-flat-button","","color","primary","matTooltip","save command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,LU,2,0,"h2",1),K(2,NU,4,1,"h2",1),y(3,"div",2),A(4,"An Exec command is a shell command executed into a container."),v(),y(5,"form",3)(6,"div")(7,"mat-checkbox",4),A(8,"Hot Reload Capable"),v()(),y(9,"mat-form-field",5)(10,"mat-label")(11,"span"),A(12,"Name"),v()(),y(13,"mat-error"),A(14,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(15,"input",6),v(),y(16,"mat-form-field",5)(17,"mat-label")(18,"span"),A(19,"Command Line"),v()(),Pe(20,"input",7),v(),y(21,"mat-form-field",5)(22,"mat-label")(23,"span"),A(24,"Working Dir"),v()(),Pe(25,"input",8),v(),y(26,"button",9),ce("click",function(){return i.onProjectsRoot()}),A(27,"Work on Project's Root Directory"),v(),y(28,"div")(29,"app-select-container",10),ce("createNew",function(o){return i.onCreateNewContainer(o)}),v()()(),K(30,VU,1,2,"app-container",11),K(31,HU,2,1,"button",12),K(32,zU,2,1,"button",13),y(33,"button",14),ce("click",function(){return i.cancel()}),A(34,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(3),N("formGroup",i.form),T(24),N("containers",i.containerList),T(1),N("ngIf",i.showNewContainer),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys,II,kw],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function jU(n,t){1&n&&(y(0,"h2"),A(1,"Add a new resource"),v())}function UU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit resource "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.resource.name)}}function WU(n,t){1&n&&(y(0,"mat-form-field",19)(1,"mat-label")(2,"span"),A(3,"URI"),v()(),Pe(4,"input",20),v())}function GU(n,t){1&n&&(y(0,"mat-form-field",19)(1,"mat-label"),A(2,"YAML Manifest"),v(),Pe(3,"textarea",21),v())}function ZU(n,t){if(1&n){const e=Nt();y(0,"button",22),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function qU(n,t){if(1&n){const e=Nt();y(0,"button",23),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function YU(n,t){if(1&n){const e=Nt();y(0,"button",24),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let FI=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.uriOrInlined="uri",this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),_choice:new dt("uri"),uri:new dt("",[bn.required]),inlined:new dt("",[]),deployByDefault:new dt("undefined")})}changeUriOrInlined(e){this.uriOrInlined=e,"uri"==this.uriOrInlined?(this.form.controls.inlined.removeValidators(bn.required),this.form.controls.inlined.setValue(""),this.form.controls.uri?.addValidators(bn.required)):"inlined"==this.uriOrInlined&&(this.form.controls.uri?.removeValidators(bn.required),this.form.controls.uri.setValue(""),this.form.controls.inlined?.setValidators(bn.required)),this.form.controls.uri.updateValueAndValidity(),this.form.controls.inlined.updateValueAndValidity()}create(){this.telemetry.track("[ui] create resource"),this.created.emit(this.form.value)}save(){this.form.value.name=this.resource?.name,this.telemetry.track("[ui] edit resource"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.resource)return;const i=e.resource.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),i.inlined?(this.form.get("_choice")?.setValue("inlined"),this.changeUriOrInlined("inlined")):(this.form.get("_choice")?.setValue("uri"),this.changeUriOrInlined("uri")),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-resource"]],inputs:{cancelable:"cancelable",resource:"resource"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:33,vars:8,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","deployByDefault"],["data-cy","resource-auto-deploy-never","matTooltip","Do not deploy the resource at startup","value","never"],["data-cy","resource-auto-deploy-undefined","matTooltip","Deploy at startup only if the resource is not referenced in any command","value","undefined"],["data-cy","resource-auto-deploy-always","matTooltip","Force deploying the resource at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the resource","data-cy","resource-name","matInput","","formControlName","name"],[1,"toggleUriInlined"],["formControlName","_choice",3,"change"],["data-cy","resource-toogle-uri","value","uri"],["data-cy","resource-toggle-inlined","value","inlined"],["appearance","outline","class","full-width",4,"ngIf"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click",4,"ngIf"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"full-width"],["placeholder","Reference to a YAML manifest","data-cy","resource-uri","matInput","","formControlName","uri"],["data-cy","resource-manifest","matInput","","formControlName","inlined","rows","8"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,jU,2,0,"h2",1),K(2,UU,4,1,"h2",1),y(3,"div",2),A(4,"A Resource defines a Kubernetes resource. Its definition can be given either by a URI pointing to a manifest file or by an inlined YAML manifest."),v(),y(5,"form",3)(6,"div",4),A(7," Deploy at Startup: "),y(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),A(10,"Never"),v(),y(11,"mat-button-toggle",7),A(12,"If Orphan"),v(),y(13,"mat-button-toggle",8),A(14,"Always"),v()()(),y(15,"mat-form-field",9)(16,"mat-label")(17,"span"),A(18,"Name"),v()(),y(19,"mat-error"),A(20,"Lowercase words separated by dashes. Ex: my-resource"),v(),Pe(21,"input",10),v(),y(22,"span",11)(23,"mat-button-toggle-group",12),ce("change",function(o){return i.changeUriOrInlined(o.value)}),y(24,"mat-button-toggle",13),A(25,"Specify URI"),v(),y(26,"mat-button-toggle",14),A(27,"Inlined content"),v()()(),K(28,WU,5,0,"mat-form-field",15),K(29,GU,4,0,"mat-form-field",15),v(),K(30,ZU,2,1,"button",16),K(31,qU,2,1,"button",17),K(32,YU,2,0,"button",18),v()),2&e&&(T(1),N("ngIf",!i.resource),T(1),N("ngIf",i.resource),T(3),N("formGroup",i.form),T(23),N("ngIf","uri"==i.uriOrInlined),T(1),N("ngIf","inlined"==i.uriOrInlined),T(1),N("ngIf",!i.resource),T(1),N("ngIf",i.resource),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,gw,_w,vo,$r,cd,bs,ys],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}span.toggleUriInlined[_ngcontent-%COMP%]{margin-left:16px}"]}),n})();function KU(n,t){1&n&&(y(0,"h2"),A(1,"Add an Apply Command"),v())}function XU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit apply command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}function QU(n,t){if(1&n){const e=Nt();y(0,"app-resource",11),ce("created",function(r){return He(e),je(Z().onNewResourceCreated(r))}),v()}}function JU(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function e7(n,t){if(1&n){const e=Nt();y(0,"button",13),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let t7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.resourceList=[],this.showNewResource=!1,this.resourceToCreate=null,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),component:new dt("",[bn.required])}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){const u=c?.resources;null!=u&&(o.resourceList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create apply command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewContainer(e){this.showNewResource=e}onNewResourceCreated(e){this.resourceList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewResource=!1,this.resourceToCreate=e}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.apply),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update apply command");const e=()=>{null!=this.command&&this.devstate.updateApplyCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-apply"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:22,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-apply-name","matInput","","formControlName","name"],["formControlName","component","label","Resource",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click",4,"ngIf"],["data-cy","command-apply-save","mat-flat-button","","color","primary","matTooltip","save Apply Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"created"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click"],["data-cy","command-apply-save","mat-flat-button","","color","primary","matTooltip","save Apply Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,KU,2,0,"h2",1),K(2,XU,4,1,"h2",1),y(3,"div",2),A(4,'An Apply command "applies" a resource to the cluster. Equivalent to '),y(5,"code"),A(6,"kubectl apply -f ..."),v()(),y(7,"form",3)(8,"mat-form-field",4)(9,"mat-label")(10,"span"),A(11,"Name"),v()(),y(12,"mat-error"),A(13,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(14,"input",5),v(),y(15,"div")(16,"app-select-container",6),ce("createNew",function(o){return i.onCreateNewContainer(o)}),v()()(),K(17,QU,1,0,"app-resource",7),K(18,JU,2,1,"button",8),K(19,e7,2,1,"button",9),y(20,"button",10),ce("click",function(){return i.cancel()}),A(21,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(5),N("formGroup",i.form),T(9),N("containers",i.resourceList),T(1),N("ngIf",i.showNewResource),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,vo,$r,cd,bs,ys,kw,FI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function n7(n,t){if(1&n&&(y(0,"mat-option",8),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),Rt(e)}}function i7(n,t){if(1&n){const e=Nt();y(0,"span")(1,"mat-form-field",3)(2,"mat-label")(3,"span"),A(4,"Command"),v()(),y(5,"mat-select",4),K(6,n7,2,2,"mat-option",5),v()(),y(7,"button",6),ce("click",function(){const o=He(e).index;return je(Z().removeCommand(o))}),y(8,"mat-icon",7),A(9,"delete_forever"),v()()()}if(2&n){const e=t.$implicit,i=t.index,r=Z();T(5),N("formControl",e),bt("data-cy","command-selector-"+i),T(1),N("ngForOf",r.commandList),T(1),bt("data-cy","command-minus-"+i)}}let r7=(()=>{class n{constructor(){this.addLabel="",this.commandList=[],this.title="",this.onChange=e=>{},this.form=new Bf([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.addCommand(i))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newCommand(e){return new dt(e,[bn.required])}addCommand(e){this.form.push(this.newCommand(e))}removeCommand(e){this.form.removeAt(e)}validate(e){return this.form.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-multi-command"]],inputs:{addLabel:"addLabel",commandList:"commandList",title:"title"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:7,vars:4,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"],["appearance","fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","","matTooltip","Delete command",1,"adjust-position",3,"click"],[1,"tab-icon","material-icons-outlined"],[3,"value"]],template:function(e,i){1&e&&(y(0,"h3"),A(1),v(),y(2,"div",0),K(3,i7,10,4,"span",1),y(4,"div")(5,"button",2),ce("click",function(){return i.addCommand("")}),A(6),v()()()),2&e&&(T(1),Rt(i.title),T(2),N("ngForOf",i.form.controls),T(2),bt("data-cy","add-command"),T(1),Rt(i.addLabel))},dependencies:[fs,oo,Nf,Qh,tr,m_,vo,$r,Xs,rv,ys],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}button.adjust-position[_ngcontent-%COMP%]{right:6px}"]}),n})();function o7(n,t){1&n&&(y(0,"h2"),A(1,"Add a Composite Command"),v())}function s7(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit composite command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}function a7(n,t){if(1&n){const e=Nt();y(0,"button",11),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function l7(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let c7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.commandList=[],this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),parallel:new dt(!1),commands:new dt([])}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){const u=c?.commands;null!=u&&(o.commandList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create composite command"),this.devstate.addCompositeCommand(this.form.value.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.composite),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update composite command"),null!=this.command&&this.devstate.updateCompositeCommand(this.command.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-composite"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:21,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-composite-name","matInput","","formControlName","name"],["formControlName","parallel"],["formControlName","commands","title","Commands","addLabel","Add a command",3,"commandList"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click",4,"ngIf"],["data-cy","command-composite-save","mat-flat-button","","color","primary","matTooltip","save Composite Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click"],["data-cy","command-composite-save","mat-flat-button","","color","primary","matTooltip","save Composite Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,o7,2,0,"h2",1),K(2,s7,4,1,"h2",1),y(3,"div",2),A(4,"A Composite command executes several commands, either serially or in parallel."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(12,"input",5),v(),y(13,"div")(14,"mat-checkbox",6),A(15,"Run commands in parallel"),v()(),Pe(16,"app-multi-command",7),v(),K(17,a7,2,1,"button",8),K(18,l7,2,1,"button",9),y(19,"button",10),ce("click",function(){return i.cancel()}),A(20,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(3),N("formGroup",i.form),T(11),N("commandList",i.commandList),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys,r7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function d7(n,t){1&n&&(y(0,"h2"),A(1,"Add a new image"),v())}function u7(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit image "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.image.name)}}function h7(n,t){if(1&n){const e=Nt();y(0,"button",19),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function m7(n,t){if(1&n){const e=Nt();y(0,"button",20),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function f7(n,t){if(1&n){const e=Nt();y(0,"button",21),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let OI=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),imageName:new dt("",[bn.required]),args:new dt([]),buildContext:new dt(""),rootRequired:new dt(!1),uri:new dt("",[bn.required]),autoBuild:new dt("undefined")})}create(){this.telemetry.track("[ui] create image"),this.created.emit(this.form.value)}save(){this.form.value.name=this.image?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(console.log("changes",e),!e.image)return;const i=e.image.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-image"]],inputs:{cancelable:"cancelable",image:"image"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:43,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","autoBuild"],["data-cy","image-auto-build-never","matTooltip","Do not build the image at startup","value","never"],["data-cy","image-auto-build-undefined","matTooltip","Build at startup only if the image is not referenced in any command","value","undefined"],["data-cy","image-auto-build-always","matTooltip","Force building the image at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the image","data-cy","image-name","matInput","","formControlName","name"],["placeholder","Reference to a container image","data-cy","image-image-name","matInput","","formControlName","imageName"],["dataCyPrefix","image-arg","formControlName","args","title","Build Args","label","Arg","addLabel","Add Build Arg","deleteLabel","Delete Build Args"],["placeholder","Directory from which the build will be executed","data-cy","image-build-context","matInput","","formControlName","buildContext"],["placeholder","Dockerfile used to build the image","data-cy","image-dockerfile-uri","matInput","","formControlName","uri"],["formControlName","rootRequired"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click",4,"ngIf"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,d7,2,0,"h2",1),K(2,u7,4,1,"h2",1),y(3,"div",2),A(4,"An Image defines how to build a container image."),v(),y(5,"form",3)(6,"div",4),A(7," Build at Startup: "),y(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),A(10,"Never"),v(),y(11,"mat-button-toggle",7),A(12,"If Orphan"),v(),y(13,"mat-button-toggle",8),A(14,"Always"),v()()(),y(15,"mat-form-field",9)(16,"mat-label")(17,"span"),A(18,"Name"),v()(),y(19,"mat-error"),A(20,"Lowercase words separated by dashes. Ex: my-image"),v(),Pe(21,"input",10),v(),y(22,"mat-form-field",9)(23,"mat-label")(24,"span"),A(25,"Image Name"),v()(),Pe(26,"input",11),v(),Pe(27,"app-multi-text",12),y(28,"mat-form-field",9)(29,"mat-label")(30,"span"),A(31,"Build Context"),v()(),Pe(32,"input",13),v(),y(33,"mat-form-field",9)(34,"mat-label")(35,"span"),A(36,"Dockerfile URI"),v()(),Pe(37,"input",14),v(),y(38,"mat-checkbox",15),A(39,"Root Required"),v()(),K(40,h7,2,1,"button",16),K(41,m7,2,1,"button",17),K(42,f7,2,0,"button",18),v()),2&e&&(T(1),N("ngIf",!i.image),T(1),N("ngIf",i.image),T(3),N("formGroup",i.form),T(35),N("ngIf",!i.image),T(1),N("ngIf",i.image),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,gw,_w,dd,vo,$r,cd,bs,ys,SI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}div.toggle-group-div[_ngcontent-%COMP%]{margin:16px 0}"]}),n})();function p7(n,t){1&n&&(y(0,"h2"),A(1,"Add an Image Command"),v())}function g7(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit image command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}function _7(n,t){if(1&n){const e=Nt();y(0,"app-image",11),ce("created",function(r){return He(e),je(Z().onNewImageCreated(r))}),v()}}function b7(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function y7(n,t){if(1&n){const e=Nt();y(0,"button",13),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let v7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.imageList=[],this.showNewImage=!1,this.imageToCreate=null,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),component:new dt("",[bn.required])}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){const u=c?.images;null!=u&&(o.imageList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create image command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewImage(e){this.showNewImage=e}onNewImageCreated(e){this.imageList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewImage=!1,this.imageToCreate=e}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.image),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update image command");const e=()=>{null!=this.command&&this.devstate.updateApplyCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-image"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:20,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-image-name","matInput","","formControlName","name"],["formControlName","component","label","Image",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click",4,"ngIf"],["data-cy","command-image-save","mat-flat-button","","color","primary","matTooltip","save Image Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"created"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click"],["data-cy","command-image-save","mat-flat-button","","color","primary","matTooltip","save Image Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,p7,2,0,"h2",1),K(2,g7,4,1,"h2",1),y(3,"div",2),A(4,"An Image command builds a container image and pushes it to a container registry."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(12,"input",5),v(),y(13,"div")(14,"app-select-container",6),ce("createNew",function(o){return i.onCreateNewImage(o)}),v()()(),K(15,_7,1,0,"app-image",7),K(16,b7,2,1,"button",8),K(17,y7,2,1,"button",9),y(18,"button",10),ce("click",function(){return i.cancel()}),A(19,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(3),N("formGroup",i.form),T(9),N("containers",i.imageList),T(1),N("ngIf",i.showNewImage),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,vo,$r,cd,bs,ys,kw,OI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function C7(n,t){if(1&n&&(y(0,"div",2),A(1),v()),2&n){const e=Z();T(1),hi("No ",e.kind," commands yet. You can create a command then drag&drop it here")}}function x7(n,t){1&n&&(y(0,"div",2),A(1,"No generic commands yet. New commands will appear here"),v())}function w7(n,t){if(1&n){const e=Nt();y(0,"mat-checkbox",11),ce("change",function(r){He(e);const o=Z(2).$implicit;return je(Z().toggleDefault(r,o.name,o.group))}),A(1),v()}if(2&n){const e=Z(2).$implicit,i=Z();N("checked",e.default),T(1),hi("Default ",i.kind," command")}}function D7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Exec Command"),v())}function T7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Apply Command"),v())}function E7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Image Command"),v())}function M7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Composite Command"),v())}function k7(n,t){1&n&&(y(0,"span"),A(1,"Yes"),v())}function S7(n,t){1&n&&(y(0,"span"),A(1,"No"),v())}function A7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Is Hot Reload Capable:"),v(),y(5,"td"),K(6,k7,2,0,"span",8),K(7,S7,2,0,"span",8),v()(),y(8,"tr")(9,"td"),A(10,"Command Line:"),v(),y(11,"td")(12,"code"),A(13),v()()(),y(14,"tr")(15,"td"),A(16,"Working Directory:"),v(),y(17,"td")(18,"code"),A(19),v()()(),y(20,"tr")(21,"td"),A(22,"Container:"),v(),y(23,"td")(24,"mat-chip",13)(25,"mat-icon",14),A(26,"width_normal"),v(),A(27),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(6),N("ngIf",null==e.exec?null:e.exec.hotReloadCapable),T(1),N("ngIf",!(null!=e.exec&&e.exec.hotReloadCapable)),T(6),Rt(null==e.exec?null:e.exec.commandLine),T(6),Rt(null==e.exec?null:e.exec.workingDir),T(8),hi(" ",null==e.exec?null:e.exec.component," ")}}function I7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Cluster resource:"),v(),y(5,"td")(6,"mat-chip",13)(7,"mat-icon",14),A(8,"description"),v(),A(9),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(9),hi(" ",null==e.apply?null:e.apply.component," ")}}function F7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Image:"),v(),y(5,"td")(6,"mat-chip",13)(7,"mat-icon",14),A(8,"image"),v(),A(9),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(9),hi(" ",null==e.image?null:e.image.component," ")}}function O7(n,t){1&n&&(y(0,"div"),A(1,"Commands executed in parallel"),v())}function P7(n,t){1&n&&(y(0,"div"),A(1,"Commands executed serially"),v())}function R7(n,t){if(1&n&&(y(0,"mat-chip",13)(1,"mat-icon",14),A(2,"code"),v(),A(3),v()),2&n){const e=t.$implicit;T(3),hi(" ",e," ")}}function L7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Scheduling:"),v(),y(5,"td"),K(6,O7,2,0,"div",8),K(7,P7,2,0,"div",8),v()(),y(8,"tr")(9,"td"),A(10,"Commands:"),v(),y(11,"td")(12,"mat-chip-set"),K(13,R7,4,1,"mat-chip",15),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(6),N("ngIf",null==e.composite?null:e.composite.parallel),T(1),N("ngIf",!(null!=e.composite&&e.composite.parallel)),T(5),Jt("mat-mdc-chip-set-stacked",null==e.composite?null:e.composite.parallel),T(1),N("ngForOf",null==e.composite?null:e.composite.commands)}}function N7(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"div",6)(3,"mat-card-title"),A(4),v(),K(5,w7,2,2,"mat-checkbox",7),v(),y(6,"div"),K(7,D7,2,0,"mat-card-subtitle",8),K(8,T7,2,0,"mat-card-subtitle",8),K(9,E7,2,0,"mat-card-subtitle",8),K(10,M7,2,0,"mat-card-subtitle",8),v()(),y(11,"mat-card-content"),K(12,A7,28,5,"ng-container",8),K(13,I7,10,1,"ng-container",8),K(14,F7,10,1,"ng-container",8),K(15,L7,14,5,"ng-container",8),v(),y(16,"mat-card-actions")(17,"button",9),ce("click",function(){He(e);const r=Z().$implicit;return je(Z().delete(r.name))}),A(18,"Delete"),v(),y(19,"button",10),ce("click",function(){He(e);const r=Z().$implicit;return je(Z().edit(r))}),A(20,"Edit"),v()()()}if(2&n){const e=Z().$implicit;N("cdkDragDisabled",Z().dragDisabled),T(4),hi(" ",e.name," "),T(1),N("ngIf",""!=e.group),T(2),N("ngIf","exec"==e.type),T(1),N("ngIf","apply"==e.type),T(1),N("ngIf","image"==e.type),T(1),N("ngIf","composite"==e.type),T(2),N("ngIf","exec"==e.type),T(1),N("ngIf","apply"==e.type),T(1),N("ngIf","image"==e.type),T(1),N("ngIf","composite"==e.type)}}function B7(n,t){if(1&n&&(io(0),K(1,N7,21,11,"mat-card",3),ro()),2&n){const e=t.$implicit,i=Z();T(1),N("ngIf",e.group==i.kind)}}let V7=(()=>{class n{constructor(e,i){this.devstate=e,this.state=i,this.kind="",this.dragDisabled=!0,this.onEdit=new Ve}toggleDefault(e,i,r){e.checked?this.setDefault(i,r):this.unsetDefault(i)}setDefault(e,i){this.devstate.setDefaultCommand(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}unsetDefault(e){this.devstate.unsetDefaultCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}getCommandsByKind(e,i){return e?.filter(r=>r.group==i)}delete(e){confirm('You will delete the command "'+e+'". Continue?')&&this.devstate.deleteCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.onEdit.next(e)}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs))},n.\u0275cmp=et({type:n,selectors:[["app-commands-list"]],inputs:{commands:"commands",kind:"kind",dragDisabled:"dragDisabled"},outputs:{onEdit:"onEdit"},decls:3,vars:3,consts:[["class","nothing-here",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"nothing-here"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled",4,"ngIf"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled"],[1,"with-right-content","colored-title"],[1,"space-between"],[3,"checked","change",4,"ngIf"],[4,"ngIf"],["mat-button","","color","warn",3,"click"],["data-cy","command-edit","mat-button","",3,"click"],[3,"checked","change"],[1,"aligned"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],["disableRipple","",4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(K(0,C7,2,1,"div",0),K(1,x7,2,0,"div",0),K(2,B7,2,1,"ng-container",1)),2&e){let r,o;N("ngIf",!(null!=(r=i.getCommandsByKind(i.commands,i.kind))&&r.length)&&""!=i.kind),T(1),N("ngIf",!(null!=(o=i.getCommandsByKind(i.commands,i.kind))&&o.length)&&""==i.kind),T(1),N("ngForOf",i.commands)}},dependencies:[fs,Si,XS,tr,Du,Eu,Tu,Kf,Yf,qf,dd,Mu,xw,Jy,Xs],styles:["mat-card-header.with-right-content[_ngcontent-%COMP%]{display:block}.space-between[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}div.nothing-here[_ngcontent-%COMP%]{margin:0 4px 16px;color:#00000054}"]}),n})();function H7(n,t){if(1&n){const e=Nt();y(0,"app-command-exec",26),ce("canceled",function(){return He(e),je(Z().undisplayExecForm())}),v()}2&n&&N("command",Z().editingCommand)}function z7(n,t){if(1&n){const e=Nt();y(0,"app-command-apply",26),ce("canceled",function(){return He(e),je(Z().undisplayApplyForm())}),v()}2&n&&N("command",Z().editingCommand)}function $7(n,t){if(1&n){const e=Nt();y(0,"app-command-image",26),ce("canceled",function(){return He(e),je(Z().undisplayImageForm())}),v()}2&n&&N("command",Z().editingCommand)}function j7(n,t){if(1&n){const e=Nt();y(0,"app-command-composite",26),ce("canceled",function(){return He(e),je(Z().undisplayCompositeForm())}),v()}2&n&&N("command",Z().editingCommand)}function U7(n,t){if(1&n&&(io(0),y(1,"button",27)(2,"mat-icon",28),A(3,"add"),v()(),ro()),2&n){Z();const e=Go(48);T(1),N("matMenuTriggerFor",e)}}let W7=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r,this.forceDisplayExecForm=!1,this.forceDisplayApplyForm=!1,this.forceDisplayImageForm=!1,this.forceDisplayCompositeForm=!1,this.commands=[],this.enableDragAndDrop=this.state.getDragAndDropEnabled()}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,vs.Z)(function*(r){e.commands=r?.commands,null!=e.commands&&(e.forceDisplayExecForm=!1,e.forceDisplayApplyForm=!1,e.forceDisplayImageForm=!1,e.forceDisplayCompositeForm=!1)});return function(r){return i.apply(this,arguments)}}())}displayAddExecForm(){this.telemetry.track("[ui] start create exec command"),this.editingCommand=void 0,this.displayExecForm()}displayExecForm(){this.forceDisplayExecForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddApplyForm(){this.telemetry.track("[ui] start create apply command"),this.editingCommand=void 0,this.displayApplyForm()}displayApplyForm(){this.forceDisplayApplyForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddImageForm(){this.telemetry.track("[ui] start create image command"),this.editingCommand=void 0,this.displayImageForm()}displayImageForm(){this.forceDisplayImageForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddCompositeForm(){this.telemetry.track("[ui] start create composite command"),this.editingCommand=void 0,this.displayCompositeForm()}displayCompositeForm(){this.forceDisplayCompositeForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayExecForm(){this.forceDisplayExecForm=!1}undisplayApplyForm(){this.forceDisplayApplyForm=!1}undisplayImageForm(){this.forceDisplayImageForm=!1}undisplayCompositeForm(){this.forceDisplayCompositeForm=!1}drop(e){this.moveCommand(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}moveCommand(e,i,r,o){this.devstate.moveCommand(e,i,r,o).subscribe({next:c=>{this.state.changeDevfileYaml(c)},error:c=>{alert(c.error.message)}})}enableDragAndDropChange(){this.state.saveDragAndDropEnabled(this.enableDragAndDrop)}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}edit(e){switch(this.editingCommand=e,this.undisplayExecForm(),this.undisplayApplyForm(),this.undisplayImageForm(),this.undisplayCompositeForm(),e.type){case"exec":this.displayExecForm();break;case"apply":this.displayApplyForm();break;case"image":this.displayImageForm();break;case"composite":this.displayCompositeForm()}}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-commands"]],decls:67,vars:18,consts:[[1,"main"],[1,"align-right"],[3,"ngModel","ngModelChange"],["cdkDropListGroup",""],["cdkDropList","","cdkDropListData","build",3,"cdkDropListDropped"],[1,"description"],["kind","build",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","run",3,"cdkDropListDropped"],["kind","run",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","test",3,"cdkDropListDropped"],["kind","test",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","debug",3,"cdkDropListDropped"],["kind","debug",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","deploy",3,"cdkDropListDropped"],["kind","deploy",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","",3,"cdkDropListDropped"],["kind","",3,"dragDisabled","commands","onEdit"],[3,"command","canceled",4,"ngIf"],[4,"ngIf"],["yPosition","above","xPosition","before"],["menu","matMenu"],["data-cy","new-command-exec","mat-menu-item","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","new-command-image","mat-menu-item","",3,"click"],["data-cy","new-command-apply","mat-menu-item","",3,"click"],["data-cy","new-command-composite","mat-menu-item","",3,"click"],[3,"command","canceled"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"matMenuTriggerFor"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),ce("ngModelChange",function(o){return i.enableDragAndDrop=o})("ngModelChange",function(){return i.enableDragAndDropChange()}),A(3,"Enable Drag and Drop"),v()(),y(4,"div",3)(5,"div",4),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(6,"h2"),A(7,"Build Commands"),v(),y(8,"div",5),A(9,"When using odo, a Build command is the first command executed during the inner loop. The command is expected to terminate after the build is completed."),v(),y(10,"app-commands-list",6),ce("onEdit",function(o){return i.edit(o)}),v()(),y(11,"div",7),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(12,"h2"),A(13,"Run Commands"),v(),y(14,"div",5),A(15,"When using odo, a Run command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),v(),y(16,"app-commands-list",8),ce("onEdit",function(o){return i.edit(o)}),v()(),y(17,"div",9),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(18,"h2"),A(19,"Test Commands"),v(),y(20,"app-commands-list",10),ce("onEdit",function(o){return i.edit(o)}),v()(),y(21,"div",11),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(22,"h2"),A(23,"Debug Commands"),v(),y(24,"div",5),A(25,"When using odo, a Debug command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),v(),y(26,"app-commands-list",12),ce("onEdit",function(o){return i.edit(o)}),v()(),y(27,"div",13),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(28,"h2"),A(29,"Deploy Commands"),v(),y(30,"div",5),A(31,"When using odo, a Deploy command is executed with "),y(32,"code"),A(33,"odo deploy"),v(),A(34,"."),v(),y(35,"app-commands-list",14),ce("onEdit",function(o){return i.edit(o)}),v()(),y(36,"div",15),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(37,"h2"),A(38,"Generic Commands"),v(),y(39,"div",5),A(40,"Generic can be executed manually, or be part of composite commands and events."),v(),y(41,"app-commands-list",16),ce("onEdit",function(o){return i.edit(o)}),v()()(),K(42,H7,1,1,"app-command-exec",17),K(43,z7,1,1,"app-command-apply",17),K(44,$7,1,1,"app-command-image",17),K(45,j7,1,1,"app-command-composite",17),v(),K(46,U7,4,1,"ng-container",18),y(47,"mat-menu",19,20)(49,"button",21),ce("click",function(){return i.displayAddExecForm()}),y(50,"mat-icon",22),A(51,"width_normal"),v(),y(52,"span"),A(53,"Exec command"),v()(),y(54,"button",23),ce("click",function(){return i.displayAddImageForm()}),y(55,"mat-icon",22),A(56,"image"),v(),y(57,"span"),A(58,"Image command"),v()(),y(59,"button",24),ce("click",function(){return i.displayAddApplyForm()}),y(60,"mat-icon",22),A(61,"description"),v(),y(62,"span"),A(63,"Apply command"),v()(),y(64,"button",25),ce("click",function(){return i.displayAddCompositeForm()}),y(65,"span"),A(66,"Composite command"),v()()()),2&e&&(T(2),N("ngModel",i.enableDragAndDrop),T(8),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(6),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(4),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(6),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(9),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(6),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(1),N("ngIf",i.forceDisplayExecForm),T(1),N("ngIf",i.forceDisplayApplyForm),T(1),N("ngIf",i.forceDisplayImageForm),T(1),N("ngIf",i.forceDisplayCompositeForm),T(1),N("ngIf",!(i.forceDisplayExecForm||i.forceDisplayApplyForm||i.forceDisplayImageForm||i.forceDisplayCompositeForm)))},dependencies:[Si,oo,px,qS,WS,h_,dd,Xs,Rz,nv,Vz,$U,t7,c7,v7,V7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}h2[_ngcontent-%COMP%]{color:#3f51b5}div.align-right[_ngcontent-%COMP%]{text-align:right}"]}),n})();function G7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, forced"),v()())}function Z7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, the resource is not referenced by any command"),v()())}function q7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, the resource is referenced by a command"),v()())}function Y7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, disabled"),v()())}function K7(n,t){if(1&n&&(y(0,"div"),A(1,"URI: "),y(2,"code"),A(3),v()()),2&n){const e=Z().$implicit;T(3),Rt(e.uri)}}function X7(n,t){if(1&n&&(y(0,"div")(1,"pre"),A(2),v()()),2&n){const e=Z().$implicit;T(2),Rt(e.inlined)}}function Q7(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Cluster Resource"),v()(),y(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),A(10,"Deploy at Startup:"),v(),K(11,G7,3,0,"td",3),K(12,Z7,3,0,"td",3),K(13,q7,3,0,"td",3),K(14,Y7,3,0,"td",3),v()(),K(15,K7,4,1,"div",3),K(16,X7,3,1,"div",3),v(),y(17,"mat-card-actions")(18,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(19,"Delete"),v(),y(20,"button",9),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(21,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(8),N("ngIf","always"==e.deployByDefault),T(1),N("ngIf","undefined"==e.deployByDefault&&e.orphan),T(1),N("ngIf","undefined"==e.deployByDefault&&!e.orphan),T(1),N("ngIf","never"==e.deployByDefault),T(1),N("ngIf",e.uri),T(1),N("ngIf",e.inlined)}}function J7(n,t){if(1&n){const e=Nt();y(0,"app-resource",10),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();N("cancelable",e.forceDisplayForm)("resource",e.editingResource)}}function e9(n,t){if(1&n){const e=Nt();io(0),y(1,"button",11),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",12),A(3,"add"),v()(),ro()}}let t9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.resources=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){i.resources=o?.resources,null!=e.resources&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingResource=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the resource "'+e+'". Continue?')&&this.devstate.deleteResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingResource=e,this.displayForm()}onCreated(e){this.devstate.addResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-resources"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","resource-info",4,"ngFor","ngForOf"],[3,"cancelable","resource","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","resource-info"],[1,"colored-title"],[1,"aligned"],["data-cy","resource-deploy-startup"],["mat-button","","color","warn",3,"click"],["data-cy","resource-edit","mat-button","",3,"click"],[3,"cancelable","resource","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Q7,22,7,"mat-card",1),K(2,J7,1,2,"app-resource",2),v(),K(3,e9,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.resources),T(1),N("ngIf",i.forceDisplayForm||null==i.resources||0==i.resources.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.resources&&i.resources.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Xs,FI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function n9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, forced"),v()())}function i9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, the image is not referenced by any command"),v()())}function r9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, the image is referenced by a command"),v()())}function o9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, disabled"),v()())}function s9(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Build Args:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.args)}}function a9(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Image"),v()(),y(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),A(10,"Build at Startup:"),v(),K(11,n9,3,0,"td",3),K(12,i9,3,0,"td",3),K(13,r9,3,0,"td",3),K(14,o9,3,0,"td",3),v(),y(15,"tr")(16,"td"),A(17,"Image Name:"),v(),y(18,"td")(19,"code"),A(20),v()()(),y(21,"tr")(22,"td"),A(23,"Dockerfile URI:"),v(),y(24,"td")(25,"code"),A(26),v()()(),K(27,s9,6,1,"tr",3),y(28,"tr")(29,"td"),A(30,"Build Context:"),v(),y(31,"td")(32,"code"),A(33),v()()(),y(34,"tr")(35,"td"),A(36,"Root Required:"),v(),y(37,"td")(38,"code"),A(39),v()()()()(),y(40,"mat-card-actions")(41,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(42,"Delete"),v(),y(43,"button",9),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(44,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(8),N("ngIf","always"==e.autoBuild),T(1),N("ngIf","undefined"==e.autoBuild&&e.orphan),T(1),N("ngIf","undefined"==e.autoBuild&&!e.orphan),T(1),N("ngIf","never"==e.autoBuild),T(6),Rt(e.imageName),T(6),Rt(e.uri),T(1),N("ngIf",null!=e.args&&e.args.length>0),T(6),Rt(e.buildContext),T(6),Rt(e.rootRequired?"Yes":"No")}}function l9(n,t){if(1&n){const e=Nt();y(0,"app-image",10),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();N("cancelable",e.forceDisplayForm)("image",e.editingImage)}}function c9(n,t){if(1&n){const e=Nt();io(0),y(1,"button",11),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",12),A(3,"add"),v()(),ro()}}let d9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.images=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){i.images=o?.images,null!=e.images&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingImage=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the image "'+e+'". Continue?')&&this.devstate.deleteImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingImage=e,this.displayForm()}onCreated(e){this.devstate.addImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-images"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","image-info",4,"ngFor","ngForOf"],[3,"cancelable","image","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","image-info"],[1,"colored-title"],[1,"aligned"],["data-cy","image-build-startup"],["mat-button","","color","warn",3,"click"],["data-cy","image-edit","mat-button","",3,"click"],[3,"cancelable","image","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,a9,45,10,"mat-card",1),K(2,l9,1,2,"app-image",2),v(),K(3,c9,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.images),T(1),N("ngIf",i.forceDisplayForm||null==i.images||0==i.images.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.images&&i.images.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Xs,OI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function u9(n,t){if(1&n){const e=Nt();y(0,"mat-chip-row",8),ce("removed",function(){const o=He(e).$implicit;return je(Z().remove(o))}),A(1),y(2,"button",9)(3,"mat-icon",10),A(4,"cancel"),v()()()}if(2&n){const e=t.$implicit;T(1),hi(" ",e," ")}}function h9(n,t){if(1&n&&(y(0,"mat-option",11),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),hi(" ",e," ")}}let m9=(()=>{class n{constructor(e){this.commandInput=e,this.commands=[],this.allCommands=[],this.updated=new Ve,this.separatorKeysCodes=[13,188],this.commandCtrl=new dt(""),this.filteredCommands=new at}ngOnChanges(e){this.filteredCommands=this.commandCtrl.valueChanges.pipe(Vr(null),Vn(i=>i?this._filter(i):this.allCommands.slice()))}add(e){const i=(e.value||"").trim();i&&(this.commands.push(i),this.updated.emit(this.commands)),e.chipInput.clear(),this.commandCtrl.setValue(null)}remove(e){const i=this.commands.indexOf(e);i>=0&&(this.commands.splice(i,1),this.updated.emit(this.commands))}selected(e){this.commands.push(e.option.viewValue),this.updated.emit(this.commands),this.commandInput.nativeElement.value="",this.commandCtrl.setValue(null)}_filter(e){const i=e.toLowerCase();return this.allCommands.filter(r=>r.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275cmp=et({type:n,selectors:[["app-chips-events"]],inputs:{commands:"commands",allCommands:"allCommands"},outputs:{updated:"updated"},features:[ci],decls:12,vars:8,consts:[["appearance","fill",1,"chip-list"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["data-cy","input","placeholder","New command...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd"],["commandInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"removed"],["matChipRemove",""],[1,"material-icons-outlined"],[3,"value"]],template:function(e,i){if(1&e&&(y(0,"mat-form-field",0)(1,"mat-label"),A(2,"Commands"),v(),y(3,"mat-chip-grid",null,1),K(5,u9,5,1,"mat-chip-row",2),v(),y(6,"input",3,4),ce("matChipInputTokenEnd",function(o){return i.add(o)}),v(),y(8,"mat-autocomplete",5,6),ce("optionSelected",function(o){return i.selected(o)}),K(10,h9,2,2,"mat-option",7),xg(11,"async"),v()()),2&e){const r=Go(4),o=Go(9);T(5),N("ngForOf",i.commands),T(1),N("formControl",i.commandCtrl)("matChipInputFor",r)("matAutocomplete",o)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes),T(4),N("ngForOf",wg(11,6,i.filteredCommands))}},dependencies:[fs,yo,oo,Nf,B6,Qh,FA,JA,eI,KA,ww,vo,$r,Xs,_C],styles:[".chip-list[_ngcontent-%COMP%]{width:100%}"]}),n})();const ku=function(){return[]};let f9=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,vs.Z)(function*(r){e.events=r?.events,null==e.events&&(e.events={}),null==e.events.preStart&&(e.events.preStart=[]),null==e.events.preStop&&(e.events.preStop=[]),null==e.events.postStart&&(e.events.postStart=[]),null==e.events.postStop&&(e.events.postStop=[]),e.allCommands=r?.commands?.map(o=>o.name)});return function(r){return i.apply(this,arguments)}}())}onUpdate(e,i){this.telemetry.track("[ui] add "+e+" event"),this.devstate.updateEvents(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-events"]],decls:21,vars:16,consts:[[1,"main"],[1,"description"],["data-cy","prestart",3,"commands","allCommands","updated"],["data-cy","poststart",3,"commands","allCommands","updated"],["data-cy","prestop",3,"commands","allCommands","updated"],["data-cy","poststop",3,"commands","allCommands","updated"]],template:function(e,i){if(1&e&&(y(0,"div",0)(1,"h2"),A(2,"Pre-Start event"),v(),y(3,"div",1),A(4,"Pre-Start commands are executed before the inner loop is started, inside init-containers (not implemented by odo)."),v(),y(5,"app-chips-events",2),ce("updated",function(o){return i.onUpdate("preStart",o)}),v(),y(6,"h2"),A(7,"Post-Start event"),v(),y(8,"div",1),A(9,"Post-Start commands are executed at the beginning of the inner loop, inside pre-fetched containers."),v(),y(10,"app-chips-events",3),ce("updated",function(o){return i.onUpdate("postStart",o)}),v(),y(11,"h2"),A(12,"Pre-Stop event"),v(),y(13,"div",1),A(14,"Pre-Stop commands are executed at the end of the inner loop, inside pre-fetched containers."),v(),y(15,"app-chips-events",4),ce("updated",function(o){return i.onUpdate("preStop",o)}),v(),y(16,"h2"),A(17,"Post-Stop event"),v(),y(18,"div",1),A(19,"Post-Stop commands are executed after the inner loop is finished (not implemented by odo)."),v(),y(20,"app-chips-events",5),ce("updated",function(o){return i.onUpdate("postStop",o)}),v()()),2&e){let r,o,a,c,u,m,g,C;T(5),N("commands",null!==(r=null==i.events?null:i.events.preStart)&&void 0!==r?r:el(8,ku))("allCommands",null!==(o=i.allCommands)&&void 0!==o?o:el(9,ku)),T(5),N("commands",null!==(a=null==i.events?null:i.events.postStart)&&void 0!==a?a:el(10,ku))("allCommands",null!==(c=i.allCommands)&&void 0!==c?c:el(11,ku)),T(5),N("commands",null!==(u=null==i.events?null:i.events.preStop)&&void 0!==u?u:el(12,ku))("allCommands",null!==(m=i.allCommands)&&void 0!==m?m:el(13,ku)),T(5),N("commands",null!==(g=null==i.events?null:i.events.postStop)&&void 0!==g?g:el(14,ku))("allCommands",null!==(C=i.allCommands)&&void 0!==C?C:el(15,ku))}},dependencies:[m9],styles:[".main[_ngcontent-%COMP%]{padding:16px}h2[_ngcontent-%COMP%]{color:#3f51b5}"]}),n})();function p9(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Size:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.size)}}function g9(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Volume"),v()(),y(6,"mat-card-content")(7,"table",6),K(8,p9,6,1,"tr",3),y(9,"tr")(10,"td"),A(11,"Volume is Ephemeral:"),v(),y(12,"td")(13,"code"),A(14),v()()()()(),y(15,"mat-card-actions")(16,"button",7),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(17,"Delete"),v(),y(18,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(19,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(5),N("ngIf",e.size),T(6),Rt(e.ephemeral?"Yes":"No")}}function _9(n,t){if(1&n){const e=Nt();y(0,"app-volume",9),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();N("cancelable",e.forceDisplayForm)("volume",e.editingVolume)}}function b9(n,t){if(1&n){const e=Nt();io(0),y(1,"button",10),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",11),A(3,"add"),v()(),ro()}}let y9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.volumes=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){i.volumes=o?.volumes,null!=e.volumes&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingVolume=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the volume "'+e+'". Continue?')&&this.devstate.deleteVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingVolume=e,this.displayForm()}onCreated(e){this.devstate.addVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-volumes"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","volume-info",4,"ngFor","ngForOf"],[3,"cancelable","volume","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","volume-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],["data-cy","volume-edit","mat-button","",3,"click"],[3,"cancelable","volume","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,g9,20,3,"mat-card",1),K(2,_9,1,2,"app-volume",2),v(),K(3,b9,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.volumes),T(1),N("ngIf",i.forceDisplayForm||null==i.volumes||0==i.volumes.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.volumes&&i.volumes.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Xs,AI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function v9(n,t){1&n&&A(0),2&n&&hi(" ",Z().tabNames[2]," ")}function C9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"code"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[3]," ")}}function x9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"alarm"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[4]," ")}}function w9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"width_normal"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[5]," ")}}function D9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"image"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[6]," ")}}function T9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"description"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[7]," ")}}function E9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"storage"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[8]," ")}}let M9=(()=>{class n{constructor(e,i,r,o,a,c,u,m,g){this.sanitizer=e,this.matIconRegistry=i,this.wasmGo=r,this.odoApi=o,this.mermaid=a,this.state=c,this.sse=u,this.telemetry=m,this.snackbar=g,this.tabNames=["YAML","Chart","Metadata","Commands","Events","Containers","Images","Resources","Volumes"],this.mermaidContent="",this.devfileYaml="",this.snackBarRef=null,this.matIconRegistry.addSvgIcon("github",this.sanitizer.bypassSecurityTrustResourceUrl("../assets/github-24.svg"))}ngOnInit(){var e=this;const i=document.getElementById("loading");null!=i&&(i.style.visibility="hidden"),this.odoApi.getDevfile().subscribe({next:o=>{null!=o.content&&this.propagateChange(o.content,!1,!0)}}),this.state.state.subscribe(function(){var o=(0,vs.Z)(function*(a){var u;null!=a&&(e.devfileYaml=a.content,e.wasmGo.getFlowChart().subscribe({next:(u=(0,vs.Z)(function*(m){const g=yield e.mermaid.getMermaidAsSVG(m.chart);e.mermaidContent=g}),function(g){return u.apply(this,arguments)}),error:u=>{console.log(u)}}),"2.2.0"!=a.version&&e.snackbar.open("The version of the Devfile is "+a.version+".\nOnly version 2.2.0 is supported","ok"))});return function(a){return o.apply(this,arguments)}}()),this.sse.subscribeTo(["DevfileUpdated"]).subscribe(o=>{const a=JSON.parse(o.data);this.state.isUpdated(a.content)&&(null!=this.snackBarRef&&(this.snackBarRef.afterDismissed().subscribe(()=>{}),this.snackBarRef.dismiss()),this.snackBarRef=this.snackbar.openFromComponent(Ij,{data:{message:"The Devfile has changed on disk. Do you want to update it here?",noLabel:"Cancel",yesLabel:"Update"}}),this.snackBarRef.onAction().subscribe(()=>{null!=a.content&&this.propagateChange(a.content,!1,!0),this.snackBarRef=null}),this.snackBarRef.afterDismissed().subscribe(()=>{this.snackBarRef=null}))}),this.odoApi.telemetry().subscribe({next:o=>{if(o.enabled){if(null==o.apikey||null==o.userid)return;this.telemetry.init(o.apikey,o.userid),this.telemetry.track("[ui] start")}},error:()=>{}})}propagateChange(e,i,r){this.wasmGo.setDevfileContent(e).subscribe({next:a=>{this.state.changeDevfileYaml(a,r),i&&this.odoApi.saveDevfile(a.content).subscribe({next:()=>{},error:c=>{this.snackbar.open(c.error.message,"ok")}})},error:a=>{this.snackbar.open(a.error.message,"ok")}})}onSave(e){this.telemetry.track("[ui] save devfile to disk"),this.propagateChange(e,!0,!0)}onApply(e){this.telemetry.track("[ui] change devfile from textarea"),this.propagateChange(e,!1,!1)}clear(){confirm("You will delete the content of the Devfile. Continue?")&&(this.telemetry.track("[ui] clear devfile"),this.wasmGo.clearDevfileContent().subscribe({next:e=>{this.propagateChange(e.content,!1,!1)}}))}onSelectedTabChange(e){this.telemetry.track("[ui] change to tab "+this.tabNames[e.index])}}return n.\u0275fac=function(e){return new(e||n)(E(Xb),E(p_),E(Qo),E(Fj),E(Pj),E(Qs),E(Rj),E(ka),E(y$))},n.\u0275cmp=et({type:n,selectors:[["app-root"]],decls:50,vars:7,consts:[["color","primary"],[1,"spacer"],[1,"topright"],["href","https://odo.dev/docs/user-guides/advanced/using-gui/","target","_blank",1,"toplink"],["data-cy","yaml-send","matTooltip","Save Devfile to disk","mat-flat-button","","color","warn",2,"top","-8px",3,"disabled","click"],[1,"flex-container"],[1,"flex-child"],["animationDuration","0",3,"selectedTabChange"],["data-cy","tab-yaml",3,"label"],[1,"tab-content"],["appearance","outline",1,"full-width"],["data-cy","yaml-input","matInput","","id","input","rows","20",3,"value"],["input",""],["data-cy","yaml-save","matTooltip","Apply changes to other tabs","mat-flat-button","","color","primary",3,"click"],["data-cy","yaml-clear","matTooltip","Clear Devfile content","mat-flat-button","","color","normal",3,"click"],["data-cy","tab-chart",3,"label"],["id","mermaid",1,"mermaid",3,"innerHTML"],["mermaid",""],["data-cy","tab-metadata"],["mat-tab-label",""],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){if(1&e){const r=Nt();y(0,"mat-toolbar",0)(1,"span"),A(2,"Devfile Builder"),v(),Pe(3,"span",1),y(4,"span",2)(5,"a",3),A(6,"Work in progress"),v()(),y(7,"button",4),ce("click",function(){He(r);const a=Go(20);return je(i.onSave(a.value))}),xg(8,"async"),A(9,"Save"),v()(),y(10,"main")(11,"div",5)(12,"div",6)(13,"mat-tab-group",7),ce("selectedTabChange",function(a){return i.onSelectedTabChange(a)}),y(14,"mat-tab",8)(15,"div",9)(16,"mat-form-field",10)(17,"mat-label"),A(18,"Devfile YAML"),v(),Pe(19,"textarea",11,12),v(),y(21,"button",13),ce("click",function(){He(r);const a=Go(20);return je(i.onApply(a.value))}),A(22,"Apply"),v(),y(23,"button",14),ce("click",function(){return i.clear()}),A(24,"Clear"),v()()(),y(25,"mat-tab",15)(26,"div",6),Pe(27,"div",16,17),v()(),y(29,"mat-tab",18),K(30,v9,1,1,"ng-template",19),Pe(31,"app-metadata"),v(),y(32,"mat-tab"),K(33,C9,3,1,"ng-template",19),Pe(34,"app-commands"),v(),y(35,"mat-tab"),K(36,x9,3,1,"ng-template",19),Pe(37,"app-events"),v(),y(38,"mat-tab"),K(39,w9,3,1,"ng-template",19),Pe(40,"app-containers"),v(),y(41,"mat-tab"),K(42,D9,3,1,"ng-template",19),Pe(43,"app-images"),v(),y(44,"mat-tab"),K(45,T9,3,1,"ng-template",19),Pe(46,"app-resources"),v(),y(47,"mat-tab"),K(48,E9,3,1,"ng-template",19),Pe(49,"app-volumes"),v()()()()()}2&e&&(T(7),hg("disabled",!wg(8,5,i.state.modified)),T(7),hg("label",i.tabNames[0]),T(5),N("value",i.devfileYaml),T(6),hg("label",i.tabNames[1]),T(2),N("innerHTML",i.sanitizer.bypassSecurityTrustHtml(i.mermaidContent),K_))},dependencies:[tr,vo,$r,Xs,bs,_I,CI,ij,dj,ys,Nj,PU,W7,t9,d9,f9,y9,_C],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - 100px)}div.mermaid[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace!important}.flex-container[_ngcontent-%COMP%]{display:flex}.flex-child[_ngcontent-%COMP%]{flex:1}.flex-child[_ngcontent-%COMP%]:first-child{margin-right:20px}#input[_ngcontent-%COMP%]{width:99%}button[_ngcontent-%COMP%]{margin-top:20px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}div.tab-content[_ngcontent-%COMP%]{padding:16px}div.error-message[_ngcontent-%COMP%]{font-size:large;margin:16px}.toplink[_ngcontent-%COMP%]{color:#fff}"]}),n})(),k9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n,bootstrap:[M9]}),n.\u0275inj=Se({imports:[QE,q3,t4,e4,E4,d8,j6,NA,iH,bH,AH,iz,Yy,_z,Dz,Hz,r$,hI,oj,uj,Ej,ud.forRoot({loadOnInitialization:!1})]}),n})();NN().bootstrapModule(k9).catch(n=>console.error(n))},1764:function(rt){rt.exports=function(){"use strict";var M=6e4,j=36e5,J="millisecond",re="second",q="minute",z="hour",ae="day",me="week",_e="month",X="quarter",S="year",oe="date",Oe="Invalid Date",Ne=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,be=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Et){var We=["th","st","nd","rd"],De=Et%100;return"["+Et+(We[(De-20)%10]||We[De]||We[0])+"]"}},pe=function(Et,We,De){var xt=String(Et);return!xt||xt.length>=We?Et:""+Array(We+1-xt.length).join(De)+Et},he={s:pe,z:function(Et){var We=-Et.utcOffset(),De=Math.abs(We),xt=Math.floor(De/60),Ge=De%60;return(We<=0?"+":"-")+pe(xt,2,"0")+":"+pe(Ge,2,"0")},m:function Et(We,De){if(We.date()1)return Et(zt[0])}else{var at=We.name;Xe[at]=We,Ge=at}return!xt&&Ge&&(Ue=Ge),Ge||!xt&&Ue},cn=function(Et,We){if(pt(Et))return Et.clone();var De="object"==typeof We?We:{};return De.date=Et,De.args=arguments,new dn(De)},Fe=he;Fe.l=Tt,Fe.i=pt,Fe.w=function(Et,We){return cn(Et,{locale:We.$L,utc:We.$u,x:We.$x,$offset:We.$offset})};var dn=function(){function Et(De){this.$L=Tt(De.locale,null,!0),this.parse(De)}var We=Et.prototype;return We.parse=function(De){this.$d=function(xt){var Ge=xt.date,jt=xt.utc;if(null===Ge)return new Date(NaN);if(Fe.u(Ge))return new Date;if(Ge instanceof Date)return new Date(Ge);if("string"==typeof Ge&&!/Z$/i.test(Ge)){var zt=Ge.match(Ne);if(zt){var at=zt[2]-1||0,Pn=(zt[7]||"0").substring(0,3);return jt?new Date(Date.UTC(zt[1],at,zt[3]||1,zt[4]||0,zt[5]||0,zt[6]||0,Pn)):new Date(zt[1],at,zt[3]||1,zt[4]||0,zt[5]||0,zt[6]||0,Pn)}}return new Date(Ge)}(De),this.$x=De.x||{},this.init()},We.init=function(){var De=this.$d;this.$y=De.getFullYear(),this.$M=De.getMonth(),this.$D=De.getDate(),this.$W=De.getDay(),this.$H=De.getHours(),this.$m=De.getMinutes(),this.$s=De.getSeconds(),this.$ms=De.getMilliseconds()},We.$utils=function(){return Fe},We.isValid=function(){return this.$d.toString()!==Oe},We.isSame=function(De,xt){var Ge=cn(De);return this.startOf(xt)<=Ge&&Ge<=this.endOf(xt)},We.isAfter=function(De,xt){return cn(De)1?_n-1:0),Rn=1;Rn<_n;Rn++)xn[Rn-1]=arguments[Rn];return me(En,Mt,xn)}}function Fe(En,Mt){let _n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe;M&&M(En,null);let xn=Mt.length;for(;xn--;){let Rn=Mt[xn];if("string"==typeof Rn){const Mn=_n(Rn);Mn!==Rn&&(j(Mt)||(Mt[xn]=Mn),Rn=Mn)}En[Rn]=!0}return En}function dn(En){for(let Mt=0;Mt/gm),ut=z(/\${[\w\W]*}/gm),it=z(/^data-[\-\w.\u00B7-\uFFFF]/),lt=z(/^aria-[\-\w]+$/),Cn=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vn=z(/^(?:\w+script|data):/i),ni=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cs=z(/^html$/i),nr=z(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ao=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ae,ERB_EXPR:Jn,TMPLIT_EXPR:ut,DATA_ATTR:it,ARIA_ATTR:lt,IS_ALLOWED_URI:Cn,IS_SCRIPT_OR_DATA:Vn,ATTR_WHITESPACE:ni,DOCTYPE_NAME:Cs,CUSTOM_ELEMENT:nr});const dr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Au=function(){return typeof window>"u"?null:window},cc=function(Mt,_n){if("object"!=typeof Mt||"function"!=typeof Mt.createPolicy)return null;let xn=null;const Rn="data-tt-policy-suffix";_n&&_n.hasAttribute(Rn)&&(xn=_n.getAttribute(Rn));const Mn="dompurify"+(xn?"#"+xn:"");try{return Mt.createPolicy(Mn,{createHTML:kr=>kr,createScriptURL:kr=>kr})}catch{return console.warn("TrustedTypes policy "+Mn+" could not be created."),null}};return function sm(){let En=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Au();const Mt=Ft=>sm(Ft);if(Mt.version="3.1.6",Mt.removed=[],!En||!En.document||En.document.nodeType!==dr.document)return Mt.isSupported=!1,Mt;let{document:_n}=En;const xn=_n,Rn=xn.currentScript,{DocumentFragment:Mn,HTMLTemplateElement:kr,Node:Io,Element:am,NodeFilter:ll,NamedNodeMap:lm=En.NamedNodeMap||En.MozNamedAttrMap,HTMLFormElement:Ii,DOMParser:xs,trustedTypes:ea}=En,Jo=am.prototype,cl=Et(Jo,"cloneNode"),gd=Et(Jo,"remove"),Iu=Et(Jo,"nextSibling"),dc=Et(Jo,"childNodes"),_d=Et(Jo,"parentNode");if("function"==typeof kr){const Ft=_n.createElement("template");Ft.content&&Ft.content.ownerDocument&&(_n=Ft.content.ownerDocument)}let wi,dl="";const{implementation:Aa,createNodeIterator:ul,createDocumentFragment:bd,getElementsByTagName:hl}=_n,{importNode:ml}=xn;let ur={};Mt.isSupported="function"==typeof de&&"function"==typeof _d&&Aa&&void 0!==Aa.createHTMLDocument;const{MUSTACHE_EXPR:ta,ERB_EXPR:Ia,TMPLIT_EXPR:Fa,DATA_ATTR:fl,ARIA_ATTR:ii,IS_SCRIPT_OR_DATA:Lt,ATTR_WHITESPACE:pl,CUSTOM_ELEMENT:jr}=Ao;let{IS_ALLOWED_URI:ws}=Ao,Di=null;const yd=Fe({},[...We,...De,...xt,...jt,...at]);let Fi=null;const lo=Fe({},[...Pn,...It,...Ut,...yn]);let di=Object.seal(ae(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ir=null,gl=null,na=!0,vd=!0,Cd=!1,_l=!0,Fo=!1,ia=!0,co=!1,uc=!1,bl=!1,Oo=!1,yl=!1,vl=!1,hc=!0,Cl=!1,mc=!0,ra=!1,hr={},on=null;const Ds=Fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ts=null;const Hn=Fe({},["audio","video","img","source","image","track"]);let Oa=null;const Un=Fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),es="http://www.w3.org/1998/Math/MathML",Oi="http://www.w3.org/2000/svg",Wt="http://www.w3.org/1999/xhtml";let Pt=Wt,Po=!1,Pa=null;const cm=Fe({},[es,Oi,Wt],Ne);let Ti=null;const Ce=["application/xhtml+xml","text/html"],Ra="text/html";let _t=null,wn=null;const Es=_n.createElement("form"),ts=function(B){return B instanceof RegExp||B instanceof Function},Ms=function(){let B=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!wn||wn!==B){if((!B||"object"!=typeof B)&&(B={}),B=Qn(B),Ti=-1===Ce.indexOf(B.PARSER_MEDIA_TYPE)?Ra:B.PARSER_MEDIA_TYPE,_t="application/xhtml+xml"===Ti?Ne:Oe,Di=Ue(B,"ALLOWED_TAGS")?Fe({},B.ALLOWED_TAGS,_t):yd,Fi=Ue(B,"ALLOWED_ATTR")?Fe({},B.ALLOWED_ATTR,_t):lo,Pa=Ue(B,"ALLOWED_NAMESPACES")?Fe({},B.ALLOWED_NAMESPACES,Ne):cm,Oa=Ue(B,"ADD_URI_SAFE_ATTR")?Fe(Qn(Un),B.ADD_URI_SAFE_ATTR,_t):Un,Ts=Ue(B,"ADD_DATA_URI_TAGS")?Fe(Qn(Hn),B.ADD_DATA_URI_TAGS,_t):Hn,on=Ue(B,"FORBID_CONTENTS")?Fe({},B.FORBID_CONTENTS,_t):Ds,ir=Ue(B,"FORBID_TAGS")?Fe({},B.FORBID_TAGS,_t):{},gl=Ue(B,"FORBID_ATTR")?Fe({},B.FORBID_ATTR,_t):{},hr=!!Ue(B,"USE_PROFILES")&&B.USE_PROFILES,na=!1!==B.ALLOW_ARIA_ATTR,vd=!1!==B.ALLOW_DATA_ATTR,Cd=B.ALLOW_UNKNOWN_PROTOCOLS||!1,_l=!1!==B.ALLOW_SELF_CLOSE_IN_ATTR,Fo=B.SAFE_FOR_TEMPLATES||!1,ia=!1!==B.SAFE_FOR_XML,co=B.WHOLE_DOCUMENT||!1,Oo=B.RETURN_DOM||!1,yl=B.RETURN_DOM_FRAGMENT||!1,vl=B.RETURN_TRUSTED_TYPE||!1,bl=B.FORCE_BODY||!1,hc=!1!==B.SANITIZE_DOM,Cl=B.SANITIZE_NAMED_PROPS||!1,mc=!1!==B.KEEP_CONTENT,ra=B.IN_PLACE||!1,ws=B.ALLOWED_URI_REGEXP||Cn,Pt=B.NAMESPACE||Wt,di=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&ts(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(di.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&ts(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(di.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(di.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fo&&(vd=!1),yl&&(Oo=!0),hr&&(Di=Fe({},at),Fi=[],!0===hr.html&&(Fe(Di,We),Fe(Fi,Pn)),!0===hr.svg&&(Fe(Di,De),Fe(Fi,It),Fe(Fi,yn)),!0===hr.svgFilters&&(Fe(Di,xt),Fe(Fi,It),Fe(Fi,yn)),!0===hr.mathMl&&(Fe(Di,jt),Fe(Fi,Ut),Fe(Fi,yn))),B.ADD_TAGS&&(Di===yd&&(Di=Qn(Di)),Fe(Di,B.ADD_TAGS,_t)),B.ADD_ATTR&&(Fi===lo&&(Fi=Qn(Fi)),Fe(Fi,B.ADD_ATTR,_t)),B.ADD_URI_SAFE_ATTR&&Fe(Oa,B.ADD_URI_SAFE_ATTR,_t),B.FORBID_CONTENTS&&(on===Ds&&(on=Qn(on)),Fe(on,B.FORBID_CONTENTS,_t)),mc&&(Di["#text"]=!0),co&&Fe(Di,["html","head","body"]),Di.table&&(Fe(Di,["tbody"]),delete ir.tbody),B.TRUSTED_TYPES_POLICY){if("function"!=typeof B.TRUSTED_TYPES_POLICY.createHTML)throw pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof B.TRUSTED_TYPES_POLICY.createScriptURL)throw pt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');wi=B.TRUSTED_TYPES_POLICY,dl=wi.createHTML("")}else void 0===wi&&(wi=cc(ea,Rn)),null!==wi&&"string"==typeof dl&&(dl=wi.createHTML(""));q&&q(B),wn=B}},ks=Fe({},["mi","mo","mn","ms","mtext"]),mi=Fe({},["foreignobject","annotation-xml"]),wl=Fe({},["title","style","font","a","script"]),oa=Fe({},[...De,...xt,...Ge]),Ur=Fe({},[...jt,...zt]),fr=function(B){oe(Mt.removed,{element:B});try{_d(B).removeChild(B)}catch{gd(B)}},La=function(B,Be){try{oe(Mt.removed,{attribute:Be.getAttributeNode(B),from:Be})}catch{oe(Mt.removed,{attribute:null,from:Be})}if(Be.removeAttribute(B),"is"===B&&!Fi[B])if(Oo||yl)try{fr(Be)}catch{}else try{Be.setAttribute(B,"")}catch{}},fc=function(B){let Be=null,Se=null;if(bl)B=""+B;else{const yi=be(B,/^[\r\n\t ]+/);Se=yi&&yi[0]}"application/xhtml+xml"===Ti&&Pt===Wt&&(B=''+B+"");const An=wi?wi.createHTML(B):B;if(Pt===Wt)try{Be=(new xs).parseFromString(An,Ti)}catch{}if(!Be||!Be.documentElement){Be=Aa.createDocument(Pt,"template",null);try{Be.documentElement.innerHTML=Po?dl:An}catch{}}const Pi=Be.body||Be.documentElement;return B&&Se&&Pi.insertBefore(_n.createTextNode(Se),Pi.childNodes[0]||null),Pt===Wt?hl.call(Be,co?"html":"body")[0]:co?Be.documentElement:Pi},pc=function(B){return ul.call(B.ownerDocument||B,B,ll.SHOW_ELEMENT|ll.SHOW_COMMENT|ll.SHOW_TEXT|ll.SHOW_PROCESSING_INSTRUCTION|ll.SHOW_CDATA_SECTION,null)},fi=function(B){return B instanceof Ii&&("string"!=typeof B.nodeName||"string"!=typeof B.textContent||"function"!=typeof B.removeChild||!(B.attributes instanceof lm)||"function"!=typeof B.removeAttribute||"function"!=typeof B.setAttribute||"string"!=typeof B.namespaceURI||"function"!=typeof B.insertBefore||"function"!=typeof B.hasChildNodes)},gc=function(B){return"function"==typeof Io&&B instanceof Io},Ro=function(B,Be,Se){ur[B]&&X(ur[B],An=>{An.call(Mt,Be,Se,wn)})},xd=function(B){let Be=null;if(Ro("beforeSanitizeElements",B,null),fi(B))return fr(B),!0;const Se=_t(B.nodeName);if(Ro("uponSanitizeElement",B,{tagName:Se,allowedTags:Di}),B.hasChildNodes()&&!gc(B.firstElementChild)&&Xe(/<[/\w]/g,B.innerHTML)&&Xe(/<[/\w]/g,B.textContent)||B.nodeType===dr.progressingInstruction||ia&&B.nodeType===dr.comment&&Xe(/<[/\w]/g,B.data))return fr(B),!0;if(!Di[Se]||ir[Se]){if(!ir[Se]&&kn(Se)&&(di.tagNameCheck instanceof RegExp&&Xe(di.tagNameCheck,Se)||di.tagNameCheck instanceof Function&&di.tagNameCheck(Se)))return!1;if(mc&&!on[Se]){const An=_d(B)||B.parentNode,Pi=dc(B)||B.childNodes;if(Pi&&An)for(let Ri=Pi.length-1;Ri>=0;--Ri){const Ar=cl(Pi[Ri],!0);Ar.__removalCount=(B.__removalCount||0)+1,An.insertBefore(Ar,Iu(B))}}return fr(B),!0}return B instanceof am&&!function(B){let Be=_d(B);(!Be||!Be.tagName)&&(Be={namespaceURI:Pt,tagName:"template"});const Se=Oe(B.tagName),An=Oe(Be.tagName);return!!Pa[B.namespaceURI]&&(B.namespaceURI===Oi?Be.namespaceURI===Wt?"svg"===Se:Be.namespaceURI===es?"svg"===Se&&("annotation-xml"===An||ks[An]):Boolean(oa[Se]):B.namespaceURI===es?Be.namespaceURI===Wt?"math"===Se:Be.namespaceURI===Oi?"math"===Se&&mi[An]:Boolean(Ur[Se]):B.namespaceURI===Wt?!(Be.namespaceURI===Oi&&!mi[An]||Be.namespaceURI===es&&!ks[An])&&!Ur[Se]&&(wl[Se]||!oa[Se]):!("application/xhtml+xml"!==Ti||!Pa[B.namespaceURI]))}(B)||("noscript"===Se||"noembed"===Se||"noframes"===Se)&&Xe(/<\/no(script|embed|frames)/i,B.innerHTML)?(fr(B),!0):(Fo&&B.nodeType===dr.text&&(Be=B.textContent,X([ta,Ia,Fa],An=>{Be=Y(Be,An," ")}),B.textContent!==Be&&(oe(Mt.removed,{element:B.cloneNode()}),B.textContent=Be)),Ro("afterSanitizeElements",B,null),!1)},Sr=function(B,Be,Se){if(hc&&("id"===Be||"name"===Be)&&(Se in _n||Se in Es))return!1;if((!vd||gl[Be]||!Xe(fl,Be))&&(!na||!Xe(ii,Be)))if(!Fi[Be]||gl[Be]){if(!(kn(B)&&(di.tagNameCheck instanceof RegExp&&Xe(di.tagNameCheck,B)||di.tagNameCheck instanceof Function&&di.tagNameCheck(B))&&(di.attributeNameCheck instanceof RegExp&&Xe(di.attributeNameCheck,Be)||di.attributeNameCheck instanceof Function&&di.attributeNameCheck(Be))||"is"===Be&&di.allowCustomizedBuiltInElements&&(di.tagNameCheck instanceof RegExp&&Xe(di.tagNameCheck,Se)||di.tagNameCheck instanceof Function&&di.tagNameCheck(Se))))return!1}else if(!Oa[Be]&&!Xe(ws,Y(Se,pl,""))&&("src"!==Be&&"xlink:href"!==Be&&"href"!==Be||"script"===B||0!==pe(Se,"data:")||!Ts[B])&&(!Cd||Xe(Lt,Y(Se,pl,"")))&&Se)return!1;return!0},kn=function(B){return"annotation-xml"!==B&&be(B,jr)},_c=function(B){Ro("beforeSanitizeAttributes",B,null);const{attributes:Be}=B;if(!Be)return;const Se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fi};let An=Be.length;for(;An--;){const Pi=Be[An],{name:yi,namespaceURI:Ri,value:Ar}=Pi,Lo=_t(yi);let pi="value"===yi?Ar:he(Ar);if(Se.attrName=Lo,Se.attrValue=pi,Se.keepAttr=!0,Se.forceKeepAttr=void 0,Ro("uponSanitizeAttribute",B,Se),pi=Se.attrValue,ia&&Xe(/((--!?|])>)|<\/(style|title)/i,pi)){La(yi,B);continue}if(Se.forceKeepAttr||(La(yi,B),!Se.keepAttr))continue;if(!_l&&Xe(/\/>/i,pi)){La(yi,B);continue}Fo&&X([ta,Ia,Fa],gr=>{pi=Y(pi,gr," ")});const pr=_t(B.nodeName);if(Sr(pr,Lo,pi)){if(Cl&&("id"===Lo||"name"===Lo)&&(La(yi,B),pi="user-content-"+pi),wi&&"object"==typeof ea&&"function"==typeof ea.getAttributeType&&!Ri)switch(ea.getAttributeType(pr,Lo)){case"TrustedHTML":pi=wi.createHTML(pi);break;case"TrustedScriptURL":pi=wi.createScriptURL(pi)}try{Ri?B.setAttributeNS(Ri,yi,pi):B.setAttribute(yi,pi),fi(B)?fr(B):S(Mt.removed)}catch{}}}Ro("afterSanitizeAttributes",B,null)},Fu=function Ft(B){let Be=null;const Se=pc(B);for(Ro("beforeSanitizeShadowDOM",B,null);Be=Se.nextNode();)Ro("uponSanitizeShadowNode",Be,null),!xd(Be)&&(Be.content instanceof Mn&&Ft(Be.content),_c(Be));Ro("afterSanitizeShadowDOM",B,null)};return Mt.sanitize=function(Ft){let B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Be=null,Se=null,An=null,Pi=null;if(Po=!Ft,Po&&(Ft="\x3c!--\x3e"),"string"!=typeof Ft&&!gc(Ft)){if("function"!=typeof Ft.toString)throw pt("toString is not a function");if("string"!=typeof(Ft=Ft.toString()))throw pt("dirty is not a string, aborting")}if(!Mt.isSupported)return Ft;if(uc||Ms(B),Mt.removed=[],"string"==typeof Ft&&(ra=!1),ra){if(Ft.nodeName){const Ar=_t(Ft.nodeName);if(!Di[Ar]||ir[Ar])throw pt("root node is forbidden and cannot be sanitized in-place")}}else if(Ft instanceof Io)Be=fc("\x3c!----\x3e"),Se=Be.ownerDocument.importNode(Ft,!0),Se.nodeType===dr.element&&"BODY"===Se.nodeName||"HTML"===Se.nodeName?Be=Se:Be.appendChild(Se);else{if(!Oo&&!Fo&&!co&&-1===Ft.indexOf("<"))return wi&&vl?wi.createHTML(Ft):Ft;if(Be=fc(Ft),!Be)return Oo?null:vl?dl:""}Be&&bl&&fr(Be.firstChild);const yi=pc(ra?Ft:Be);for(;An=yi.nextNode();)xd(An)||(An.content instanceof Mn&&Fu(An.content),_c(An));if(ra)return Ft;if(Oo){if(yl)for(Pi=bd.call(Be.ownerDocument);Be.firstChild;)Pi.appendChild(Be.firstChild);else Pi=Be;return(Fi.shadowroot||Fi.shadowrootmode)&&(Pi=ml.call(xn,Pi,!0)),Pi}let Ri=co?Be.outerHTML:Be.innerHTML;return co&&Di["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Xe(Cs,Be.ownerDocument.doctype.name)&&(Ri="\n"+Ri),Fo&&X([ta,Ia,Fa],Ar=>{Ri=Y(Ri,Ar," ")}),wi&&vl?wi.createHTML(Ri):Ri},Mt.setConfig=function(){Ms(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),uc=!0},Mt.clearConfig=function(){wn=null,uc=!1},Mt.isValidAttribute=function(Ft,B,Be){wn||Ms({});const Se=_t(Ft),An=_t(B);return Sr(Se,An,Be)},Mt.addHook=function(Ft,B){"function"==typeof B&&(ur[Ft]=ur[Ft]||[],oe(ur[Ft],B))},Mt.removeHook=function(Ft){if(ur[Ft])return S(ur[Ft])},Mt.removeHooks=function(Ft){ur[Ft]&&(ur[Ft]=[])},Mt.removeAllHooks=function(){ur={}},Mt}()}()},458:(rt,de,M)=>{"use strict";function j(re){for(var q=[],z=1;zj})},8586:(rt,de,M)=>{"use strict";function j(s,d){let h;if(void 0===d)for(const p of s)null!=p&&(h=p)&&(h=p);else{let p=-1;for(let b of s)null!=(b=d(b,++p,s))&&(h=b)&&(h=b)}return h}function J(s,d){let h;if(void 0===d)for(const p of s)null!=p&&(h>p||void 0===h&&p>=p)&&(h=p);else{let p=-1;for(let b of s)null!=(b=d(b,++p,s))&&(h>b||void 0===h&&b>=b)&&(h=b)}return h}function re(s){return s}M.d(de,{Nb1:()=>Ow,LLu:()=>he,F5q:()=>Y,$0Z:()=>Hv,Dts:()=>K_,WQY:()=>Jp,qpX:()=>$v,u93:()=>jv,tFB:()=>Rw,YY7:()=>J_,OvA:()=>eb,dCK:()=>Uv,zgE:()=>tb,fGX:()=>Lw,$m7:()=>Wv,c_6:()=>Rv,fxm:()=>nb,FdL:()=>uf,ak_:()=>Jc,SxZ:()=>Gv,eA_:()=>ob,jsv:()=>Zv,iJ:()=>cu,JHv:()=>hp,jvg:()=>Nv,Fp7:()=>j,VV$:()=>J,ve8:()=>Y_,tiA:()=>vr,BYU:()=>Bl,PKp:()=>Fc,Xf:()=>kv,K2I:()=>Sv,Ys:()=>$_,td_:()=>ef,YPS:()=>dp,rr1:()=>vi,i$Z:()=>Ah,y2j:()=>wt,WQD:()=>$c,U8T:()=>Ni,Z_i:()=>zc,Ox9:()=>Bs,F0B:()=>yh,LqH:()=>Vs,S1K:()=>wo,Zyz:()=>us,Igq:()=>_a,YDX:()=>ga,EFj:()=>Vm});var q=1,z=2,ae=3,me=4,_e=1e-6;function X(s){return"translate("+s+",0)"}function S(s){return"translate(0,"+s+")"}function oe(s){return d=>+s(d)}function Oe(s,d){return d=Math.max(0,s.bandwidth()-2*d)/2,s.round()&&(d=Math.round(d)),h=>+s(h)+d}function Ne(){return!this.__axis}function be(s,d){var h=[],p=null,b=null,w=6,D=6,I=3,P=typeof window<"u"&&window.devicePixelRatio>1?0:.5,R=s===q||s===me?-1:1,$=s===me||s===z?"x":"y",ee=s===q||s===ae?X:S;function W(le){var ze=p??(d.ticks?d.ticks.apply(d,h):d.domain()),At=b??(d.tickFormat?d.tickFormat.apply(d,h):re),we=Math.max(w,0)+I,fe=d.range(),Ze=+fe[0]+P,Ie=+fe[fe.length-1]+P,Je=(d.bandwidth?Oe:oe)(d.copy(),P),tt=le.selection?le.selection():le,Re=tt.selectAll(".domain").data([null]),Bt=tt.selectAll(".tick").data(ze,d).order(),gn=Bt.exit(),Gn=Bt.enter().append("g").attr("class","tick"),hn=Bt.select("line"),st=Bt.select("text");Re=Re.merge(Re.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Bt=Bt.merge(Gn),hn=hn.merge(Gn.append("line").attr("stroke","currentColor").attr($+"2",R*w)),st=st.merge(Gn.append("text").attr("fill","currentColor").attr($,R*we).attr("dy",s===q?"0em":s===ae?"0.71em":"0.32em")),le!==tt&&(Re=Re.transition(le),Bt=Bt.transition(le),hn=hn.transition(le),st=st.transition(le),gn=gn.transition(le).attr("opacity",_e).attr("transform",function(mn){return isFinite(mn=Je(mn))?ee(mn+P):this.getAttribute("transform")}),Gn.attr("opacity",_e).attr("transform",function(mn){var Ye=this.parentNode.__axis;return ee((Ye&&isFinite(Ye=Ye(mn))?Ye:Je(mn))+P)})),gn.remove(),Re.attr("d",s===me||s===z?D?"M"+R*D+","+Ze+"H"+P+"V"+Ie+"H"+R*D:"M"+P+","+Ze+"V"+Ie:D?"M"+Ze+","+R*D+"V"+P+"H"+Ie+"V"+R*D:"M"+Ze+","+P+"H"+Ie),Bt.attr("opacity",1).attr("transform",function(mn){return ee(Je(mn)+P)}),hn.attr($+"2",R*w),st.attr($,R*we).text(At),tt.filter(Ne).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",s===z?"start":s===me?"end":"middle"),tt.each(function(){this.__axis=Je})}return W.scale=function(le){return arguments.length?(d=le,W):d},W.ticks=function(){return h=Array.from(arguments),W},W.tickArguments=function(le){return arguments.length?(h=null==le?[]:Array.from(le),W):h.slice()},W.tickValues=function(le){return arguments.length?(p=null==le?null:Array.from(le),W):p&&p.slice()},W.tickFormat=function(le){return arguments.length?(b=le,W):b},W.tickSize=function(le){return arguments.length?(w=D=+le,W):w},W.tickSizeInner=function(le){return arguments.length?(w=+le,W):w},W.tickSizeOuter=function(le){return arguments.length?(D=+le,W):D},W.tickPadding=function(le){return arguments.length?(I=+le,W):I},W.offset=function(le){return arguments.length?(P=+le,W):P},W}function Y(s){return be(q,s)}function he(s){return be(ae,s)}function Xe(){}function pt(s){return null==s?Xe:function(){return this.querySelector(s)}}function cn(s){return null==s?[]:Array.isArray(s)?s:Array.from(s)}function Fe(){return[]}function dn(s){return null==s?Fe:function(){return this.querySelectorAll(s)}}function We(s){return function(){return this.matches(s)}}function De(s){return function(d){return d.matches(s)}}var xt=Array.prototype.find;function jt(){return this.firstElementChild}var at=Array.prototype.filter;function Pn(){return Array.from(this.children)}function Ae(s){return new Array(s.length)}function ut(s,d){this.ownerDocument=s.ownerDocument,this.namespaceURI=s.namespaceURI,this._next=null,this._parent=s,this.__data__=d}function lt(s,d,h,p,b,w){for(var I,D=0,P=d.length,R=w.length;Dd?1:s>=d?0:NaN}ut.prototype={constructor:ut,appendChild:function(s){return this._parent.insertBefore(s,this._next)},insertBefore:function(s,d){return this._parent.insertBefore(s,d)},querySelector:function(s){return this._parent.querySelector(s)},querySelectorAll:function(s){return this._parent.querySelectorAll(s)}};var Mn="http://www.w3.org/1999/xhtml";const kr={svg:"http://www.w3.org/2000/svg",xhtml:Mn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Io(s){var d=s+="",h=d.indexOf(":");return h>=0&&"xmlns"!==(d=s.slice(0,h))&&(s=s.slice(h+1)),kr.hasOwnProperty(d)?{space:kr[d],local:s}:s}function am(s){return function(){this.removeAttribute(s)}}function ll(s){return function(){this.removeAttributeNS(s.space,s.local)}}function lm(s,d){return function(){this.setAttribute(s,d)}}function Ii(s,d){return function(){this.setAttributeNS(s.space,s.local,d)}}function xs(s,d){return function(){var h=d.apply(this,arguments);null==h?this.removeAttribute(s):this.setAttribute(s,h)}}function ea(s,d){return function(){var h=d.apply(this,arguments);null==h?this.removeAttributeNS(s.space,s.local):this.setAttributeNS(s.space,s.local,h)}}function cl(s){return s.ownerDocument&&s.ownerDocument.defaultView||s.document&&s||s.defaultView}function gd(s){return function(){this.style.removeProperty(s)}}function Iu(s,d,h){return function(){this.style.setProperty(s,d,h)}}function dc(s,d,h){return function(){var p=d.apply(this,arguments);null==p?this.style.removeProperty(s):this.style.setProperty(s,p,h)}}function wi(s,d){return s.style.getPropertyValue(d)||cl(s).getComputedStyle(s,null).getPropertyValue(d)}function dl(s){return function(){delete this[s]}}function Aa(s,d){return function(){this[s]=d}}function ul(s,d){return function(){var h=d.apply(this,arguments);null==h?delete this[s]:this[s]=h}}function hl(s){return s.trim().split(/^|\s+/)}function ml(s){return s.classList||new ur(s)}function ur(s){this._node=s,this._names=hl(s.getAttribute("class")||"")}function ta(s,d){for(var h=ml(s),p=-1,b=d.length;++p=0&&(this._names.splice(d,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(s){return this._names.indexOf(s)>=0}};var es=[null];function Oi(s,d){this._groups=s,this._parents=d}function Wt(){return new Oi([[document.documentElement]],es)}Oi.prototype=Wt.prototype={constructor:Oi,select:function Tt(s){"function"!=typeof s&&(s=pt(s));for(var d=this._groups,h=d.length,p=new Array(h),b=0;b=Ie&&(Ie=Ze+1);!(tt=we[Ie])&&++Ie=0;)(D=p[b])&&(w&&4^D.compareDocumentPosition(w)&&w.parentNode.insertBefore(D,w),w=D);return this},sort:function cc(s){function d(ee,W){return ee&&W?s(ee.__data__,W.__data__):!ee-!W}s||(s=sm);for(var h=this._groups,p=h.length,b=new Array(p),w=0;w1?this.each((null==d?gd:"function"==typeof d?dc:Iu)(s,d,h??"")):wi(this.node(),s)},property:function bd(s,d){return arguments.length>1?this.each((null==d?dl:"function"==typeof d?ul:Aa)(s,d)):this.node()[s]},classed:function Lt(s,d){var h=hl(s+"");if(arguments.length<2){for(var p=ml(this.node()),b=-1,w=h.length;++b=0&&(h=d.slice(p+1),d=d.slice(0,p)),{type:d,name:h}})}(s+""),w=p.length;if(!(arguments.length<2)){for(I=d?hr:ra,b=0;b{}};function cm(){for(var p,s=0,d=arguments.length,h={};s=0&&(p=h.slice(b+1),h=h.slice(0,b)),h&&!d.hasOwnProperty(h))throw new Error("unknown type: "+h);return{type:h,name:p}})}(s+"",h),w=-1,D=p.length;if(!(arguments.length<2)){if(null!=d&&"function"!=typeof d)throw new Error("invalid callback: "+d);for(;++w0)for(var b,w,h=new Array(b),p=0;p=0&&s._call.call(void 0,d),s=s._next;--Es}()}finally{Es=0,function kn(){for(var s,h,d=mi,p=1/0;d;)d._call?(p>d._time&&(p=d._time),s=d,d=d._next):(h=d._next,d._next=null,d=s?s._next=h:mi=h);wl=s,_c(p)}(),Ur=0}}function Sr(){var s=fr.now(),d=s-oa;d>ks&&(mr-=d,oa=s)}function _c(s){Es||(ts&&(ts=clearTimeout(ts)),s-Ur>24?(s<1/0&&(ts=setTimeout(xd,s-fr.now()-mr)),Ms&&(Ms=clearInterval(Ms))):(Ms||(oa=fr.now(),Ms=setInterval(Sr,ks)),Es=1,La(xd)))}function Fu(s,d,h){var p=new fi;return p.restart(b=>{p.stop(),s(b+d)},d=null==d?0:+d,h),p}fi.prototype=gc.prototype={constructor:fi,restart:function(s,d,h){if("function"!=typeof s)throw new TypeError("callback is not a function");h=(null==h?fc():+h)+(null==d?0:+d),!this._next&&wl!==this&&(wl?wl._next=this:mi=this,wl=this),this._call=s,this._time=h,_c()},stop:function(){this._call&&(this._call=null,this._time=1/0,_c())}};var Ft=wn("start","end","cancel","interrupt"),B=[],Be=0,Se=1,An=2,Pi=3,yi=4,Ri=5,Ar=6;function Lo(s,d,h,p,b,w){var D=s.__transition;if(D){if(h in D)return}else s.__transition={};!function Qf(s,d,h){var b,p=s.__transition;function D(R){var $,ee,W,le;if(h.state!==Se)return P();for($ in p)if((le=p[$]).name===h.name){if(le.state===Pi)return Fu(D);le.state===yi?(le.state=Ar,le.timer.stop(),le.on.call("interrupt",s,s.__data__,le.index,le.group),delete p[$]):+$Be)throw new Error("too late; already scheduled");return h}function pr(s,d){var h=gr(s,d);if(h.state>Pi)throw new Error("too late; already running");return h}function gr(s,d){var h=s.__transition;if(!h||!(h=h[d]))throw new Error("transition not found");return h}function No(s,d){return s=+s,d=+d,function(h){return s*(1-h)+d*h}}var Fn,Wr=180/Math.PI,wd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dm(s,d,h,p,b,w){var D,I,P;return(D=Math.sqrt(s*s+d*d))&&(s/=D,d/=D),(P=s*h+d*p)&&(h-=s*P,p-=d*P),(I=Math.sqrt(h*h+p*p))&&(h/=I,p/=I,P/=I),s*p180?$+=360:$-R>180&&(R+=360),W.push({i:ee.push(b(ee)+"rotate(",null,p)-2,x:No(R,$)})):$&&ee.push(b(ee)+"rotate("+$+p)}(R.rotate,$.rotate,ee,W),function I(R,$,ee,W){R!==$?W.push({i:ee.push(b(ee)+"skewX(",null,p)-2,x:No(R,$)}):$&&ee.push(b(ee)+"skewX("+$+p)}(R.skewX,$.skewX,ee,W),function P(R,$,ee,W,le,ze){if(R!==ee||$!==W){var At=le.push(b(le)+"scale(",null,",",null,")");ze.push({i:At-4,x:No(R,ee)},{i:At-2,x:No($,W)})}else(1!==ee||1!==W)&&le.push(b(le)+"scale("+ee+","+W+")")}(R.scaleX,R.scaleY,$.scaleX,$.scaleY,ee,W),R=$=null,function(le){for(var we,ze=-1,At=W.length;++ze>8&15|d>>4&240,d>>4&15|240&d,(15&d)<<4|15&d,1):8===h?mo(d>>24&255,d>>16&255,d>>8&255,(255&d)/255):4===h?mo(d>>12&15|d>>8&240,d>>8&15|d>>4&240,d>>4&15|240&d,((15&d)<<4|15&d)/255):null):(d=yc.exec(s))?new et(d[1],d[2],d[3],1):(d=Jf.exec(s))?new et(255*d[1]/100,255*d[2]/100,255*d[3]/100,1):(d=ep.exec(s))?mo(d[1],d[2],d[3],d[4]):(d=hm.exec(s))?mo(255*d[1]/100,255*d[2]/100,255*d[3]/100,d[4]):(d=As.exec(s))?xe(d[1],d[2]/100,d[3]/100,1):(d=Li.exec(s))?xe(d[1],d[2]/100,d[3]/100,d[4]):ho.hasOwnProperty(s)?Sd(ho[s]):"transparent"===s?new et(NaN,NaN,NaN,0):null}function Sd(s){return new et(s>>16&255,s>>8&255,255&s,1)}function mo(s,d,h,p){return p<=0&&(s=d=h=NaN),new et(s,d,h,p)}function Cc(s){return s instanceof uo||(s=Is(s)),s?new et((s=s.rgb()).r,s.g,s.b,s.opacity):new et}function Ru(s,d,h,p){return 1===arguments.length?Cc(s):new et(s,d,h,p??1)}function et(s,d,h,p){this.r=+s,this.g=+d,this.b=+h,this.opacity=+p}function mm(){return`#${la(this.r)}${la(this.g)}${la(this.b)}`}function fm(){const s=sn(this.opacity);return`${1===s?"rgb(":"rgba("}${El(this.r)}, ${El(this.g)}, ${El(this.b)}${1===s?")":`, ${s})`}`}function sn(s){return isNaN(s)?1:Math.max(0,Math.min(1,s))}function El(s){return Math.max(0,Math.min(255,Math.round(s)||0))}function la(s){return((s=El(s))<16?"0":"")+s.toString(16)}function xe(s,d,h,p){return p<=0?s=d=h=NaN:h<=0||h>=1?s=d=NaN:d<=0&&(s=NaN),new li(s,d,h,p)}function Gr(s){if(s instanceof li)return new li(s.h,s.s,s.l,s.opacity);if(s instanceof uo||(s=Is(s)),!s)return new li;if(s instanceof li)return s;var d=(s=s.rgb()).r/255,h=s.g/255,p=s.b/255,b=Math.min(d,h,p),w=Math.max(d,h,p),D=NaN,I=w-b,P=(w+b)/2;return I?(D=d===w?(h-p)/I+6*(h0&&P<1?0:D,new li(D,I,P,s.opacity)}function li(s,d,h,p){this.h=+s,this.s=+d,this.l=+h,this.opacity=+p}function _r(s){return(s=(s||0)%360)<0?s+360:s}function Fs(s){return Math.max(0,Math.min(1,s||0))}function Zr(s,d,h){return 255*(s<60?d+(h-d)*s/60:s<180?h:s<240?d+(h-d)*(240-s)/60:d)}function Os(s,d,h,p,b){var w=s*s,D=w*s;return((1-3*s+3*w-D)*d+(4-6*w+3*D)*h+(1+3*s+3*w-3*D)*p+D*b)/6}Dl(uo,Is,{copy(s){return Object.assign(new this.constructor,this,s)},displayable(){return this.rgb().displayable()},hex:is,formatHex:is,formatHex8:function Sn(){return this.rgb().formatHex8()},formatHsl:function kd(){return Gr(this).formatHsl()},formatRgb:vc,toString:vc}),Dl(et,Ru,Ss(uo,{brighter(s){return s=null==s?te:Math.pow(te,s),new et(this.r*s,this.g*s,this.b*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new et(this.r*s,this.g*s,this.b*s,this.opacity)},rgb(){return this},clamp(){return new et(El(this.r),El(this.g),El(this.b),sn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mm,formatHex:mm,formatHex8:function Lu(){return`#${la(this.r)}${la(this.g)}${la(this.b)}${la(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fm,toString:fm})),Dl(li,function Wn(s,d,h,p){return 1===arguments.length?Gr(s):new li(s,d,h,p??1)},Ss(uo,{brighter(s){return s=null==s?te:Math.pow(te,s),new li(this.h,this.s,this.l*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new li(this.h,this.s,this.l*s,this.opacity)},rgb(){var s=this.h%360+360*(this.h<0),d=isNaN(s)||isNaN(this.s)?0:this.s,h=this.l,p=h+(h<.5?h:1-h)*d,b=2*h-p;return new et(Zr(s>=240?s-240:s+120,b,p),Zr(s,b,p),Zr(s<120?s+240:s-120,b,p),this.opacity)},clamp(){return new li(_r(this.h),Fs(this.s),Fs(this.l),sn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const s=sn(this.opacity);return`${1===s?"hsl(":"hsla("}${_r(this.h)}, ${100*Fs(this.s)}%, ${100*Fs(this.l)}%${1===s?")":`, ${s})`}`}}));const ri=s=>()=>s;function Bo(s,d){return function(h){return s+h*d}}function ei(s,d){var h=d-s;return h?Bo(s,h):ri(isNaN(s)?d:s)}const Sl=function s(d){var h=function kl(s){return 1==(s=+s)?ei:function(d,h){return h-d?function Ml(s,d,h){return s=Math.pow(s,h),d=Math.pow(d,h)-s,h=1/h,function(p){return Math.pow(s+p*d,h)}}(d,h,s):ri(isNaN(d)?h:d)}}(d);function p(b,w){var D=h((b=Ru(b)).r,(w=Ru(w)).r),I=h(b.g,w.g),P=h(b.b,w.b),R=ei(b.opacity,w.opacity);return function($){return b.r=D($),b.g=I($),b.b=P($),b.opacity=R($),b+""}}return p.gamma=s,p}(1);function Ad(s){return function(d){var D,I,h=d.length,p=new Array(h),b=new Array(h),w=new Array(h);for(D=0;D=1?(h=1,d-1):Math.floor(h*d),b=s[p],w=s[p+1];return Os((h-p/d)*d,p>0?s[p-1]:2*b-w,b,w,ph&&(w=d.slice(h,w),I[D]?I[D]+=w:I[++D]=w),(p=p[0])===(b=b[0])?I[D]?I[D]+=b:I[++D]=b:(I[++D]=null,P.push({i:D,x:No(p,b)})),h=Nu.lastIndex;return h=0&&(d=d.slice(0,h)),!d||"start"===d})}(d)?pi:pr;return function(){var D=w(this,s),I=D.on;I!==p&&(b=(p=I).copy()).on(d,h),D.on=b}}(h,s,d))},attr:function _m(s,d){var h=Io(s),p="transform"===h?Td:Al;return this.attrTween(s,"function"==typeof d?(h.local?gm:dv)(h,p,sa(this,"attr."+s,d)):null==d?(h.local?wc:Ps)(h):(h.local?ui:Bu)(h,p,d))},attrTween:function v_(s,d){var h="attr."+s;if(arguments.length<2)return(h=this.tween(h))&&h._value;if(null==d)return this.tween(h,null);if("function"!=typeof d)throw new Error;var p=Io(s);return this.tween(h,(p.local?Tc:qr)(p,d))},style:function yv(s,d,h){var p="transform"==(s+="")?bc:Al;return null==d?this.styleTween(s,function bv(s,d){var h,p,b;return function(){var w=wi(this,s),D=(this.style.removeProperty(s),wi(this,s));return w===D?null:w===h&&D===p?b:b=d(h=w,p=D)}}(s,p)).on("end.style."+s,ym(s)):"function"==typeof d?this.styleTween(s,function T_(s,d,h){var p,b,w;return function(){var D=wi(this,s),I=h(this),P=I+"";return null==I&&(this.style.removeProperty(s),P=I=wi(this,s)),D===P?null:D===p&&P===b?w:(b=P,w=d(p=D,I))}}(s,p,sa(this,"style."+s,d))).each(function sp(s,d){var h,p,b,I,w="style."+d,D="end."+w;return function(){var P=pr(this,s),R=P.on,$=null==P.value[w]?I||(I=ym(d)):void 0;(R!==h||b!==$)&&(p=(h=R).copy()).on(D,b=$),P.on=p}}(this._id,s)):this.styleTween(s,function op(s,d,h){var p,w,b=h+"";return function(){var D=wi(this,s);return D===b?null:D===p?w:w=d(p=D,h)}}(s,p,d),h).on("end.style."+s,null)},styleTween:function ci(s,d,h){var p="style."+(s+="");if(arguments.length<2)return(p=this.tween(p))&&p._value;if(null==d)return this.tween(p,null);if("function"!=typeof d)throw new Error;return this.tween(p,function E_(s,d,h){var p,b;function w(){var D=d.apply(this,arguments);return D!==b&&(p=(b=D)&&function Il(s,d,h){return function(p){this.style.setProperty(s,d.call(this,p),h)}}(s,D,h)),p}return w._value=d,w}(s,d,h??""))},text:function k_(s){return this.tween("text","function"==typeof s?function M_(s){return function(){var d=s(this);this.textContent=d??""}}(sa(this,"text",s)):function Hu(s){return function(){this.textContent=s}}(null==s?"":s+""))},textTween:function lp(s){var d="text";if(arguments.length<1)return(d=this.tween(d))&&d._value;if(null==s)return this.tween(d,null);if("function"!=typeof s)throw new Error;return this.tween(d,function vm(s){var d,h;function p(){var b=s.apply(this,arguments);return b!==h&&(d=(h=b)&&function ap(s){return function(d){this.textContent=s.call(this,d)}}(b)),d}return p._value=s,p}(s))},remove:function pv(){return this.on("end.remove",function ip(s){return function(){var d=this.parentNode;for(var h in this.__transition)if(+h!==s)return;d&&d.removeChild(this)}}(this._id))},tween:function Pu(s,d){var h=this._id;if(s+="",arguments.length<2){for(var D,p=gr(this.node(),h).tween,b=0,w=p.length;bAn&&p.statefunction os(s,d){return fetch(s,d).then(Fr)}(d,h).then(p=>(new DOMParser).parseFromString(p,s))}["w","e"].map(He),["n","s"].map(He),["n","w","e","s","nw","ne","sw","se"].map(He),Yu("application/xml"),Yu("text/html");var dp=Yu("image/svg+xml");const Ku=Math.PI/180,S_=180/Math.PI,Qu=.96422,Bd=1,Vd=.82521,Ju=4/29,Sc=6/29,Dm=3*Sc*Sc,eh=Sc*Sc*Sc;function Hd(s){if(s instanceof Ho)return new Ho(s.l,s.a,s.b,s.opacity);if(s instanceof ss)return $d(s);s instanceof et||(s=Cc(s));var w,D,d=qi(s.r),h=qi(s.g),p=qi(s.b),b=Ac((.2225045*d+.7168786*h+.0606169*p)/Bd);return d===h&&h===p?w=D=b:(w=Ac((.4360747*d+.3850649*h+.1430804*p)/Qu),D=Ac((.0139322*d+.0971045*h+.7141733*p)/Vd)),new Ho(116*b-16,500*(w-b),200*(b-D),s.opacity)}function Ho(s,d,h,p){this.l=+s,this.a=+d,this.b=+h,this.opacity=+p}function Ac(s){return s>eh?Math.pow(s,1/3):s/Dm+Ju}function zd(s){return s>Sc?s*s*s:Dm*(s-Ju)}function Ic(s){return 255*(s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055)}function qi(s){return(s/=255)<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)}function ua(s,d,h,p){return 1===arguments.length?function da(s){if(s instanceof ss)return new ss(s.h,s.c,s.l,s.opacity);if(s instanceof Ho||(s=Hd(s)),0===s.a&&0===s.b)return new ss(NaN,0180||h<-180?h-360*Math.round(h/360):h):ri(isNaN(s)?d:s)});function ja(s,d){switch(arguments.length){case 0:break;case 1:this.range(s);break;default:this.range(d).domain(s)}return this}Tm(ei);class Ud extends Map{constructor(d,h=Em){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:h}}),null!=d)for(const[p,b]of d)this.set(p,b)}get(d){return super.get(nh(this,d))}has(d){return super.has(nh(this,d))}set(d,h){return super.set(Ua(this,d),h)}delete(d){return super.delete(Fl(this,d))}}class fp extends Set{constructor(d,h=Em){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:h}}),null!=d)for(const p of d)this.add(p)}has(d){return super.has(nh(this,d))}add(d){return super.add(Ua(this,d))}delete(d){return super.delete(Fl(this,d))}}function nh({_intern:s,_key:d},h){const p=d(h);return s.has(p)?s.get(p):h}function Ua({_intern:s,_key:d},h){const p=d(h);return s.has(p)?s.get(p):(s.set(p,h),h)}function Fl({_intern:s,_key:d},h){const p=d(h);return s.has(p)&&(h=s.get(p),s.delete(p)),h}function Em(s){return null!==s&&"object"==typeof s?s.valueOf():s}const pp=Symbol("implicit");function Fc(){var s=new Ud,d=[],h=[],p=pp;function b(w){let D=s.get(w);if(void 0===D){if(p!==pp)return p;s.set(w,D=d.push(w)-1)}return h[D%h.length]}return b.domain=function(w){if(!arguments.length)return d.slice();d=[],s=new Ud;for(const D of w)s.has(D)||s.set(D,d.push(D)-1);return b},b.range=function(w){return arguments.length?(h=Array.from(w),b):h.slice()},b.unknown=function(w){return arguments.length?(p=w,b):p},b.copy=function(){return Fc(d,h).unknown(p)},ja.apply(b,arguments),b}function vr(){var w,D,s=Fc().unknown(void 0),d=s.domain,h=s.range,p=0,b=1,I=!1,P=0,R=0,$=.5;function ee(){var W=d().length,le=b=ha?10:w>=Mm?5:w>=Oc?2:1;let I,P,R;return b<0?(R=Math.pow(10,-b)/D,I=Math.round(s*R),P=Math.round(d*R),I/Rd&&--P,R=-R):(R=Math.pow(10,b)*D,I=Math.round(s/R),P=Math.round(d/R),I*Rd&&--P),Pd?1:s>=d?0:NaN}function Zd(s,d){return null==s||null==d?NaN:ds?1:d>=s?0:NaN}function Yi(s){let d,h,p;function b(I,P,R=0,$=I.length){if(R<$){if(0!==d(P,P))return $;do{const ee=R+$>>>1;h(I[ee],P)<0?R=ee+1:$=ee}while(R<$)}return R}return 2!==s.length?(d=Rc,h=(I,P)=>Rc(s(I),P),p=(I,P)=>s(I)-P):(d=s===Rc||s===Zd?s:Lc,h=s,p=s),{left:b,center:function D(I,P,R=0,$=I.length){const ee=b(I,P,R,$-1);return ee>R&&p(I[ee-1],P)>-p(I[ee],P)?ee-1:ee},right:function w(I,P,R=0,$=I.length){if(R<$){if(0!==d(P,P))return $;do{const ee=R+$>>>1;h(I[ee],P)<=0?R=ee+1:$=ee}while(R<$)}return R}}}function Lc(){return 0}const Sm=Yi(Rc).right,as=(Yi(function rh(s){return null===s?NaN:+s}),Sm);function Bc(s,d){var D,h=d?d.length:0,p=s?Math.min(h,s.length):0,b=new Array(p),w=new Array(h);for(D=0;Dd&&(h=s,s=d,d=h),function(p){return Math.max(s,Math.min(d,p))}}(s[0],s[W-1])),I=W>2?Pm:bp,P=R=null,ee}function ee(W){return null==W||isNaN(W=+W)?w:(P||(P=I(s.map(p),d,h)))(p(D(W)))}return ee.invert=function(W){return D(b((R||(R=I(d,s.map(p),No)))(W)))},ee.domain=function(W){return arguments.length?(s=Array.from(W,Om),$()):s.slice()},ee.range=function(W){return arguments.length?(d=Array.from(W),$()):d.slice()},ee.rangeRound=function(W){return d=Array.from(W),h=Im,$()},ee.clamp=function(W){return arguments.length?(D=!!W||Ol,$()):D!==Ol},ee.interpolate=function(W){return arguments.length?(h=W,$()):h},ee.unknown=function(W){return arguments.length?(w=W,ee):w},function(W,le){return p=W,b=le,$()}}()(Ol,Ol)}var qa,Yn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ll(s){if(!(d=Yn.exec(s)))throw new Error("invalid format: "+s);var d;return new uh({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}function uh(s){this.fill=void 0===s.fill?" ":s.fill+"",this.align=void 0===s.align?">":s.align+"",this.sign=void 0===s.sign?"-":s.sign+"",this.symbol=void 0===s.symbol?"":s.symbol+"",this.zero=!!s.zero,this.width=void 0===s.width?void 0:+s.width,this.comma=!!s.comma,this.precision=void 0===s.precision?void 0:+s.precision,this.trim=!!s.trim,this.type=void 0===s.type?"":s.type+""}function go(s,d){if((h=(s=d?s.toExponential(d-1):s.toExponential()).indexOf("e"))<0)return null;var h,p=s.slice(0,h);return[p.length>1?p[0]+p.slice(2):p,+s.slice(h+1)]}function xo(s){return(s=go(Math.abs(s)))?s[1]:NaN}function Nm(s,d){var h=go(s,d);if(!h)return s+"";var p=h[0],b=h[1];return b<0?"0."+new Array(-b).join("0")+p:p.length>b+1?p.slice(0,b+1)+"."+p.slice(b+1):p+new Array(b-p.length+2).join("0")}Ll.prototype=uh.prototype,uh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ye={"%":(s,d)=>(100*s).toFixed(d),b:s=>Math.round(s).toString(2),c:s=>s+"",d:function hh(s){return Math.abs(s=Math.round(s))>=1e21?s.toLocaleString("en").replace(/,/g,""):s.toString(10)},e:(s,d)=>s.toExponential(d),f:(s,d)=>s.toFixed(d),g:(s,d)=>s.toPrecision(d),o:s=>Math.round(s).toString(8),p:(s,d)=>Nm(100*s,d),r:Nm,s:function O_(s,d){var h=go(s,d);if(!h)return s+"";var p=h[0],b=h[1],w=b-(qa=3*Math.max(-8,Math.min(8,Math.floor(b/3))))+1,D=p.length;return w===D?p:w>D?p+new Array(w-D+1).join("0"):w>0?p.slice(0,w)+"."+p.slice(w):"0."+new Array(1-w).join("0")+go(s,Math.max(0,d+w-1))[0]},X:s=>Math.round(s).toString(16).toUpperCase(),x:s=>Math.round(s).toString(16)};function yp(s){return s}var fh,xp,wp,vp=Array.prototype.map,Cp=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function ph(s){var d=s.domain;return s.ticks=function(h){var p=d();return function km(s,d,h){if(!((h=+h)>0))return[];if((s=+s)==(d=+d))return[s];const p=d=b))return[];const I=w-b+1,P=new Array(I);if(p)if(D<0)for(let R=0;R0;){if((R=Wa(D,I,h))===P)return p[b]=D,p[w]=I,d(p);if(R>0)D=Math.floor(D/R)*R,I=Math.ceil(I/R)*R;else{if(!(R<0))break;D=Math.ceil(D*R)/R,I=Math.floor(I*R)/R}P=R}return s},s}function Bl(){var s=Rm();return s.copy=function(){return dh(s,Bl())},ja.apply(s,arguments),ph(s)}!function Vc(s){fh=function P_(s){var d=void 0===s.grouping||void 0===s.thousands?yp:function Nl(s,d){return function(h,p){for(var b=h.length,w=[],D=0,I=s[0],P=0;b>0&&I>0&&(P+I+1>p&&(I=Math.max(1,p-P)),w.push(h.substring(b-=I,b+I)),!((P+=I+1)>p));)I=s[D=(D+1)%s.length];return w.reverse().join(d)}}(vp.call(s.grouping,Number),s.thousands+""),h=void 0===s.currency?"":s.currency[0]+"",p=void 0===s.currency?"":s.currency[1]+"",b=void 0===s.decimal?".":s.decimal+"",w=void 0===s.numerals?yp:function Lm(s){return function(d){return d.replace(/[0-9]/g,function(h){return s[+h]})}}(vp.call(s.numerals,String)),D=void 0===s.percent?"%":s.percent+"",I=void 0===s.minus?"\u2212":s.minus+"",P=void 0===s.nan?"NaN":s.nan+"";function R(ee){var W=(ee=Ll(ee)).fill,le=ee.align,ze=ee.sign,At=ee.symbol,we=ee.zero,fe=ee.width,Ze=ee.comma,Ie=ee.precision,Je=ee.trim,tt=ee.type;"n"===tt?(Ze=!0,tt="g"):ye[tt]||(void 0===Ie&&(Ie=12),Je=!0,tt="g"),(we||"0"===W&&"="===le)&&(we=!0,W="0",le="=");var Re="$"===At?h:"#"===At&&/[boxX]/.test(tt)?"0"+tt.toLowerCase():"",Bt="$"===At?p:/[%p]/.test(tt)?D:"",gn=ye[tt],Gn=/[defgprs%]/.test(tt);function hn(st){var G,Ke,ve,mn=Re,Ye=Bt;if("c"===tt)Ye=gn(st)+Ye,st="";else{var $e=(st=+st)<0||1/st<0;if(st=isNaN(st)?P:gn(Math.abs(st),Ie),Je&&(st=function mh(s){e:for(var b,d=s.length,h=1,p=-1;h0&&(p=0)}return p>0?s.slice(0,p)+s.slice(b+1):s}(st)),$e&&0==+st&&"+"!==ze&&($e=!1),mn=($e?"("===ze?ze:I:"-"===ze||"("===ze?"":ze)+mn,Ye=("s"===tt?Cp[8+qa/3]:"")+Ye+($e&&"("===ze?")":""),Gn)for(G=-1,Ke=st.length;++G(ve=st.charCodeAt(G))||ve>57){Ye=(46===ve?b+st.slice(G+1):st.slice(G))+Ye,st=st.slice(0,G);break}}Ze&&!we&&(st=d(st,1/0));var Dt=mn.length+st.length+Ye.length,ct=Dt>1)+mn+st+Ye+ct.slice(Dt);break;default:st=ct+mn+st+Ye}return w(st)}return Ie=void 0===Ie?6:/[gprs]/.test(tt)?Math.max(1,Math.min(21,Ie)):Math.max(0,Math.min(20,Ie)),hn.toString=function(){return ee+""},hn}return{format:R,formatPrefix:function $(ee,W){var le=R(((ee=Ll(ee)).type="f",ee)),ze=3*Math.max(-8,Math.min(8,Math.floor(xo(W)/3))),At=Math.pow(10,-ze),we=Cp[8+ze/3];return function(fe){return le(At*fe)+we}}}}(s),xp=fh.format,wp=fh.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const Ns=1e3,_i=60*Ns,Or=60*_i,ls=24*Or,Vl=7*ls,Hl=30*ls,cs=365*ls,Hc=new Date,qd=new Date;function zi(s,d,h,p){function b(w){return s(w=0===arguments.length?new Date:new Date(+w)),w}return b.floor=w=>(s(w=new Date(+w)),w),b.ceil=w=>(s(w=new Date(w-1)),d(w,1),s(w),w),b.round=w=>{const D=b(w),I=b.ceil(w);return w-D(d(w=new Date(+w),null==D?1:Math.floor(D)),w),b.range=(w,D,I)=>{const P=[];if(w=b.ceil(w),I=null==I?1:Math.floor(I),!(w0))return P;let R;do{P.push(R=new Date(+w)),d(w,I),s(w)}while(Rzi(D=>{if(D>=D)for(;s(D),!w(D);)D.setTime(D-1)},(D,I)=>{if(D>=D)if(I<0)for(;++I<=0;)for(;d(D,-1),!w(D););else for(;--I>=0;)for(;d(D,1),!w(D););}),h&&(b.count=(w,D)=>(Hc.setTime(+w),qd.setTime(+D),s(Hc),s(qd),Math.floor(h(Hc,qd))),b.every=w=>(w=Math.floor(w),isFinite(w)&&w>0?w>1?b.filter(p?D=>p(D)%w==0:D=>b.count(0,D)%w==0):b:null)),b}const Ni=zi(()=>{},(s,d)=>{s.setTime(+s+d)},(s,d)=>d-s);Ni.every=s=>(s=Math.floor(s),isFinite(s)&&s>0?s>1?zi(d=>{d.setTime(Math.floor(d/s)*s)},(d,h)=>{d.setTime(+d+h*s)},(d,h)=>(h-d)/s):Ni:null);const wo=zi(s=>{s.setTime(s-s.getMilliseconds())},(s,d)=>{s.setTime(+s+d*Ns)},(s,d)=>(d-s)/Ns,s=>s.getUTCSeconds()),zc=zi(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*Ns)},(s,d)=>{s.setTime(+s+d*_i)},(s,d)=>(d-s)/_i,s=>s.getMinutes()),Bm=zi(s=>{s.setUTCSeconds(0,0)},(s,d)=>{s.setTime(+s+d*_i)},(s,d)=>(d-s)/_i,s=>s.getUTCMinutes()),$c=zi(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*Ns-s.getMinutes()*_i)},(s,d)=>{s.setTime(+s+d*Or)},(s,d)=>(d-s)/Or,s=>s.getHours()),zo=zi(s=>{s.setUTCMinutes(0,0,0)},(s,d)=>{s.setTime(+s+d*Or)},(s,d)=>(d-s)/Or,s=>s.getUTCHours()),vi=zi(s=>s.setHours(0,0,0,0),(s,d)=>s.setDate(s.getDate()+d),(s,d)=>(d-s-(d.getTimezoneOffset()-s.getTimezoneOffset())*_i)/ls,s=>s.getDate()-1),ds=zi(s=>{s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCDate(s.getUTCDate()+d)},(s,d)=>(d-s)/ls,s=>s.getUTCDate()-1),zl=zi(s=>{s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCDate(s.getUTCDate()+d)},(s,d)=>(d-s)/ls,s=>Math.floor(s/ls));function pa(s){return zi(d=>{d.setDate(d.getDate()-(d.getDay()+7-s)%7),d.setHours(0,0,0,0)},(d,h)=>{d.setDate(d.getDate()+7*h)},(d,h)=>(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*_i)/Vl)}const us=pa(0),Bs=pa(1),ga=pa(2),Vm=pa(3),_a=pa(4),wt=pa(5),Vs=pa(6);function Hs(s){return zi(d=>{d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-s)%7),d.setUTCHours(0,0,0,0)},(d,h)=>{d.setUTCDate(d.getUTCDate()+7*h)},(d,h)=>(h-d)/Vl)}const jl=Hs(0),Uc=Hs(1),Wc=(Hs(2),Hs(3),Hs(4)),yh=(Hs(5),Hs(6),zi(s=>{s.setDate(1),s.setHours(0,0,0,0)},(s,d)=>{s.setMonth(s.getMonth()+d)},(s,d)=>d.getMonth()-s.getMonth()+12*(d.getFullYear()-s.getFullYear()),s=>s.getMonth())),Ip=zi(s=>{s.setUTCDate(1),s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCMonth(s.getUTCMonth()+d)},(s,d)=>d.getUTCMonth()-s.getUTCMonth()+12*(d.getUTCFullYear()-s.getUTCFullYear()),s=>s.getUTCMonth()),zs=zi(s=>{s.setMonth(0,1),s.setHours(0,0,0,0)},(s,d)=>{s.setFullYear(s.getFullYear()+d)},(s,d)=>d.getFullYear()-s.getFullYear(),s=>s.getFullYear());zs.every=s=>isFinite(s=Math.floor(s))&&s>0?zi(d=>{d.setFullYear(Math.floor(d.getFullYear()/s)*s),d.setMonth(0,1),d.setHours(0,0,0,0)},(d,h)=>{d.setFullYear(d.getFullYear()+h*s)}):null;const hs=zi(s=>{s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCFullYear(s.getUTCFullYear()+d)},(s,d)=>d.getUTCFullYear()-s.getUTCFullYear(),s=>s.getUTCFullYear());function vh(s,d,h,p,b,w){const D=[[wo,1,Ns],[wo,5,5*Ns],[wo,15,15*Ns],[wo,30,30*Ns],[w,1,_i],[w,5,5*_i],[w,15,15*_i],[w,30,30*_i],[b,1,Or],[b,3,3*Or],[b,6,6*Or],[b,12,12*Or],[p,1,ls],[p,2,2*ls],[h,1,Vl],[d,1,Hl],[d,3,3*Hl],[s,1,cs]];function P(R,$,ee){const W=Math.abs($-R)/ee,le=Yi(([,,we])=>we).right(D,W);if(le===D.length)return s.every(Gd(R/cs,$/cs,ee));if(0===le)return Ni.every(Math.max(Gd(R,$,ee),1));const[ze,At]=D[W/D[le-1][2]isFinite(s=Math.floor(s))&&s>0?zi(d=>{d.setUTCFullYear(Math.floor(d.getUTCFullYear()/s)*s),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},(d,h)=>{d.setUTCFullYear(d.getUTCFullYear()+h*s)}):null;const[Pp,Jr]=vh(hs,Ip,jl,zl,zo,Bm),[Rp,Lp]=vh(zs,yh,us,vi,$c,zc);function Ch(s){if(0<=s.y&&s.y<100){var d=new Date(-1,s.m,s.d,s.H,s.M,s.S,s.L);return d.setFullYear(s.y),d}return new Date(s.y,s.m,s.d,s.H,s.M,s.S,s.L)}function Xd(s){if(0<=s.y&&s.y<100){var d=new Date(Date.UTC(-1,s.m,s.d,s.H,s.M,s.S,s.L));return d.setUTCFullYear(s.y),d}return new Date(Date.UTC(s.y,s.m,s.d,s.H,s.M,s.S,s.L))}function Ya(s,d,h){return{y:s,m:d,d:h,H:0,M:0,S:0,L:0}}var Zl,Ah,jm={"-":"",_:" ",0:"0"},Ki=/^\s*\d+/,Um=/^%/,Bp=/[\\^$*+?|[\]().{}]/g;function On(s,d,h){var p=s<0?"-":"",b=(p?-s:s)+"",w=b.length;return p+(w[d.toLowerCase(),h]))}function xh(s,d,h){var p=Ki.exec(d.slice(h,h+1));return p?(s.w=+p[0],h+p[0].length):-1}function or(s,d,h){var p=Ki.exec(d.slice(h,h+1));return p?(s.u=+p[0],h+p[0].length):-1}function Gc(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.U=+p[0],h+p[0].length):-1}function Qd(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.V=+p[0],h+p[0].length):-1}function wh(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.W=+p[0],h+p[0].length):-1}function Wm(s,d,h){var p=Ki.exec(d.slice(h,h+4));return p?(s.y=+p[0],h+p[0].length):-1}function Dh(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.y=+p[0]+(+p[0]>68?1900:2e3),h+p[0].length):-1}function Vp(s,d,h){var p=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(h,h+6));return p?(s.Z=p[1]?0:-(p[2]+(p[3]||"00")),h+p[0].length):-1}function Gm(s,d,h){var p=Ki.exec(d.slice(h,h+1));return p?(s.q=3*p[0]-3,h+p[0].length):-1}function Zm(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.m=p[0]-1,h+p[0].length):-1}function Jd(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.d=+p[0],h+p[0].length):-1}function Hp(s,d,h){var p=Ki.exec(d.slice(h,h+3));return p?(s.m=0,s.d=+p[0],h+p[0].length):-1}function qm(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.H=+p[0],h+p[0].length):-1}function Th(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.M=+p[0],h+p[0].length):-1}function Zc(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.S=+p[0],h+p[0].length):-1}function zp(s,d,h){var p=Ki.exec(d.slice(h,h+3));return p?(s.L=+p[0],h+p[0].length):-1}function $o(s,d,h){var p=Ki.exec(d.slice(h,h+6));return p?(s.L=Math.floor(p[0]/1e3),h+p[0].length):-1}function $p(s,d,h){var p=Um.exec(d.slice(h,h+1));return p?h+p[0].length:-1}function jp(s,d,h){var p=Ki.exec(d.slice(h));return p?(s.Q=+p[0],h+p[0].length):-1}function eu(s,d,h){var p=Ki.exec(d.slice(h));return p?(s.s=+p[0],h+p[0].length):-1}function tu(s,d){return On(s.getDate(),d,2)}function Eh(s,d){return On(s.getHours(),d,2)}function Wl(s,d){return On(s.getHours()%12||12,d,2)}function Mh(s,d){return On(1+vi.count(zs(s),s),d,3)}function nu(s,d){return On(s.getMilliseconds(),d,3)}function Up(s,d){return nu(s,d)+"000"}function Gl(s,d){return On(s.getMonth()+1,d,2)}function kh(s,d){return On(s.getMinutes(),d,2)}function Ym(s,d){return On(s.getSeconds(),d,2)}function Wp(s){var d=s.getDay();return 0===d?7:d}function Km(s,d){return On(us.count(zs(s)-1,s),d,2)}function Do(s){var d=s.getDay();return d>=4||0===d?_a(s):_a.ceil(s)}function l(s,d){return s=Do(s),On(_a.count(zs(s),s)+(4===zs(s).getDay()),d,2)}function f(s){return s.getDay()}function _(s,d){return On(Bs.count(zs(s)-1,s),d,2)}function x(s,d){return On(s.getFullYear()%100,d,2)}function k(s,d){return On((s=Do(s)).getFullYear()%100,d,2)}function L(s,d){return On(s.getFullYear()%1e4,d,4)}function H(s,d){var h=s.getDay();return On((s=h>=4||0===h?_a(s):_a.ceil(s)).getFullYear()%1e4,d,4)}function ne(s){var d=s.getTimezoneOffset();return(d>0?"-":(d*=-1,"+"))+On(d/60|0,"0",2)+On(d%60,"0",2)}function se(s,d){return On(s.getUTCDate(),d,2)}function Ee(s,d){return On(s.getUTCHours(),d,2)}function Qe(s,d){return On(s.getUTCHours()%12||12,d,2)}function Me(s,d){return On(1+ds.count(hs(s),s),d,3)}function Q(s,d){return On(s.getUTCMilliseconds(),d,3)}function ke(s,d){return Q(s,d)+"000"}function qt(s,d){return On(s.getUTCMonth()+1,d,2)}function rn(s,d){return On(s.getUTCMinutes(),d,2)}function pn(s,d){return On(s.getUTCSeconds(),d,2)}function an(s){var d=s.getUTCDay();return 0===d?7:d}function St(s,d){return On(jl.count(hs(s)-1,s),d,2)}function Pr(s){var d=s.getUTCDay();return d>=4||0===d?Wc(s):Wc.ceil(s)}function $s(s,d){return s=Pr(s),On(Wc.count(hs(s),s)+(4===hs(s).getUTCDay()),d,2)}function Ei(s){return s.getUTCDay()}function sr(s,d){return On(Uc.count(hs(s)-1,s),d,2)}function oi(s,d){return On(s.getUTCFullYear()%100,d,2)}function iu(s,d){return On((s=Pr(s)).getUTCFullYear()%100,d,2)}function ru(s,d){return On(s.getUTCFullYear()%1e4,d,4)}function Sh(s,d){var h=s.getUTCDay();return On((s=h>=4||0===h?Wc(s):Wc.ceil(s)).getUTCFullYear()%1e4,d,4)}function qc(){return"+0000"}function Xm(){return"%"}function ou(s){return+s}function Qm(s){return Math.floor(+s/1e3)}function Tv(s){return new Date(s)}function Ev(s){return s instanceof Date?+s:+new Date(+s)}function Mv(s,d,h,p,b,w,D,I,P,R){var $=Rm(),ee=$.invert,W=$.domain,le=R(".%L"),ze=R(":%S"),At=R("%I:%M"),we=R("%I %p"),fe=R("%a %d"),Ze=R("%b %d"),Ie=R("%B"),Je=R("%Y");function tt(Re){return(P(Re)=12)]},q:function Xt(ot){return 1+~~(ot.getMonth()/3)},Q:ou,s:Qm,S:Ym,u:Wp,U:Km,V:l,w:f,W:_,x:null,X:null,y:x,Y:L,Z:ne,"%":Xm},Je={a:function Xi(ot){return D[ot.getUTCDay()]},A:function si(ot){return w[ot.getUTCDay()]},b:function ai(ot){return P[ot.getUTCMonth()]},B:function Qi(ot){return I[ot.getUTCMonth()]},c:null,d:se,e:se,f:ke,g:iu,G:Sh,H:Ee,I:Qe,j:Me,L:Q,m:qt,M:rn,p:function Ln(ot){return b[+(ot.getUTCHours()>=12)]},q:function ji(ot){return 1+~~(ot.getUTCMonth()/3)},Q:ou,s:Qm,S:pn,u:an,U:St,V:$s,w:Ei,W:sr,x:null,X:null,y:oi,Y:ru,Z:qc,"%":Xm},tt={a:function hn(ot,ln,qe){var T=le.exec(ln.slice(qe));return T?(ot.w=ze.get(T[0].toLowerCase()),qe+T[0].length):-1},A:function st(ot,ln,qe){var T=ee.exec(ln.slice(qe));return T?(ot.w=W.get(T[0].toLowerCase()),qe+T[0].length):-1},b:function mn(ot,ln,qe){var T=fe.exec(ln.slice(qe));return T?(ot.m=Ze.get(T[0].toLowerCase()),qe+T[0].length):-1},B:function Ye(ot,ln,qe){var T=At.exec(ln.slice(qe));return T?(ot.m=we.get(T[0].toLowerCase()),qe+T[0].length):-1},c:function G(ot,ln,qe){return gn(ot,d,ln,qe)},d:Jd,e:Jd,f:$o,g:Dh,G:Wm,H:qm,I:qm,j:Hp,L:zp,m:Zm,M:Th,p:function Gn(ot,ln,qe){var T=R.exec(ln.slice(qe));return T?(ot.p=$.get(T[0].toLowerCase()),qe+T[0].length):-1},q:Gm,Q:jp,s:eu,S:Zc,u:or,U:Gc,V:Qd,w:xh,W:wh,x:function Ke(ot,ln,qe){return gn(ot,h,ln,qe)},X:function ve(ot,ln,qe){return gn(ot,p,ln,qe)},y:Dh,Y:Wm,Z:Vp,"%":$p};function Re(ot,ln){return function(qe){var bo,Yt,Bi,T=[],ki=-1,Kn=0,_o=ot.length;for(qe instanceof Date||(qe=new Date(+qe));++ki<_o;)37===ot.charCodeAt(ki)&&(T.push(ot.slice(Kn,ki)),null!=(Yt=jm[bo=ot.charAt(++ki)])?bo=ot.charAt(++ki):Yt="e"===bo?" ":"0",(Bi=ln[bo])&&(bo=Bi(qe,Yt)),T.push(bo),Kn=ki+1);return T.push(ot.slice(Kn,ki)),T.join("")}}function Bt(ot,ln){return function(qe){var Kn,_o,T=Ya(1900,void 0,1);if(gn(T,ot,qe+="",0)!=qe.length)return null;if("Q"in T)return new Date(T.Q);if("s"in T)return new Date(1e3*T.s+("L"in T?T.L:0));if(ln&&!("Z"in T)&&(T.Z=0),"p"in T&&(T.H=T.H%12+12*T.p),void 0===T.m&&(T.m="q"in T?T.q:0),"V"in T){if(T.V<1||T.V>53)return null;"w"in T||(T.w=1),"Z"in T?(_o=(Kn=Xd(Ya(T.y,0,1))).getUTCDay(),Kn=_o>4||0===_o?Uc.ceil(Kn):Uc(Kn),Kn=ds.offset(Kn,7*(T.V-1)),T.y=Kn.getUTCFullYear(),T.m=Kn.getUTCMonth(),T.d=Kn.getUTCDate()+(T.w+6)%7):(_o=(Kn=Ch(Ya(T.y,0,1))).getDay(),Kn=_o>4||0===_o?Bs.ceil(Kn):Bs(Kn),Kn=vi.offset(Kn,7*(T.V-1)),T.y=Kn.getFullYear(),T.m=Kn.getMonth(),T.d=Kn.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),_o="Z"in T?Xd(Ya(T.y,0,1)).getUTCDay():Ch(Ya(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+7*T.W-(_o+5)%7:T.w+7*T.U-(_o+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,Xd(T)):Ch(T)}}function gn(ot,ln,qe,T){for(var bo,Yt,ki=0,Kn=ln.length,_o=qe.length;ki=_o)return-1;if(37===(bo=ln.charCodeAt(ki++))){if(bo=ln.charAt(ki++),!(Yt=tt[bo in jm?ln.charAt(ki++):bo])||(T=Yt(ot,qe,T))<0)return-1}else if(bo!=qe.charCodeAt(T++))return-1}return T}return Ie.x=Re(h,Ie),Ie.X=Re(p,Ie),Ie.c=Re(d,Ie),Je.x=Re(h,Je),Je.X=Re(p,Je),Je.c=Re(d,Je),{format:function(ot){var ln=Re(ot+="",Ie);return ln.toString=function(){return ot},ln},parse:function(ot){var ln=Bt(ot+="",!1);return ln.toString=function(){return ot},ln},utcFormat:function(ot){var ln=Re(ot+="",Je);return ln.toString=function(){return ot},ln},utcParse:function(ot){var ln=Bt(ot+="",!0);return ln.toString=function(){return ot},ln}}}(s),Ah=Zl.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Sv=function Gp(s){for(var d=s.length/6|0,h=new Array(d),p=0;p=1?no:s<=-1?-no:Math.asin(s)}const Yp=Math.PI,Kp=2*Yp,Kc=1e-6,Iv=Kp-Kc;function Xp(s){this._+=s[0];for(let d=1,h=s.length;d=0))throw new Error(`invalid digits: ${s}`);if(d>15)return Xp;const h=10**d;return function(p){this._+=p[0];for(let b=1,w=p.length;bKc)if(Math.abs(ee*P-R*$)>Kc&&w){let le=p-D,ze=b-I,At=P*P+R*R,we=le*le+ze*ze,fe=Math.sqrt(At),Ze=Math.sqrt(W),Ie=w*Math.tan((Yp-Math.acos((At+W-we)/(2*fe*Ze)))/2),Je=Ie/Ze,tt=Ie/fe;Math.abs(Je-1)>Kc&&this._append`L${d+Je*$},${h+Je*ee}`,this._append`A${w},${w},0,0,${+(ee*le>$*ze)},${this._x1=d+tt*P},${this._y1=h+tt*R}`}else this._append`L${this._x1=d},${this._y1=h}`}arc(d,h,p,b,w,D){if(d=+d,h=+h,D=!!D,(p=+p)<0)throw new Error(`negative radius: ${p}`);let I=p*Math.cos(b),P=p*Math.sin(b),R=d+I,$=h+P,ee=1^D,W=D?b-w:w-b;null===this._x1?this._append`M${R},${$}`:(Math.abs(this._x1-R)>Kc||Math.abs(this._y1-$)>Kc)&&this._append`L${R},${$}`,p&&(W<0&&(W=W%Kp+Kp),W>Iv?this._append`A${p},${p},0,1,${ee},${d-I},${h-P}A${p},${p},0,1,${ee},${this._x1=R},${this._y1=$}`:W>Kc&&this._append`A${p},${p},0,${+(W>=Yp)},${ee},${this._x1=d+p*Math.cos(w)},${this._y1=h+p*Math.sin(w)}`)}rect(d,h,p,b){this._append`M${this._x0=this._x1=+d},${this._y0=this._y1=+h}h${p=+p}v${+b}h${-p}Z`}toString(){return this._}}function Fh(s){let d=3;return s.digits=function(h){if(!arguments.length)return d;if(null==h)d=null;else{const p=Math.floor(h);if(!(p>=0))throw new RangeError(`invalid digits: ${h}`);d=p}return s},()=>new tf(d)}function Xa(s){return s.innerRadius}function Oh(s){return s.outerRadius}function U_(s){return s.startAngle}function W_(s){return s.endAngle}function G_(s){return s&&s.padAngle}function Qp(s,d,h,p,b,w,D){var I=s-h,P=d-p,R=(D?w:-w)/au(I*I+P*P),$=R*P,ee=-R*I,W=s+$,le=d+ee,ze=h+$,At=p+ee,we=(W+ze)/2,fe=(le+At)/2,Ze=ze-W,Ie=At-le,Je=Ze*Ze+Ie*Ie,tt=b-w,Re=W*At-ze*le,Bt=(Ie<0?-1:1)*au(Yc(0,tt*tt*Je-Re*Re)),gn=(Re*Ie-Ze*Bt)/Je,Gn=(-Re*Ze-Ie*Bt)/Je,hn=(Re*Ie+Ze*Bt)/Je,st=(-Re*Ze+Ie*Bt)/Je,mn=gn-we,Ye=Gn-fe,G=hn-we,Ke=st-fe;return mn*mn+Ye*Ye>G*G+Ke*Ke&&(gn=hn,Gn=st),{cx:gn,cy:Gn,x01:-$,y01:-ee,x11:gn*(b/tt-1),y11:Gn*(b/tt-1)}}function Ow(){var s=Xa,d=Oh,h=Mi(0),p=null,b=U_,w=W_,D=G_,I=null,P=Fh(R);function R(){var $,ee,W=+s.apply(this,arguments),le=+d.apply(this,arguments),ze=b.apply(this,arguments)-no,At=w.apply(this,arguments)-no,we=Zp(At-ze),fe=At>ze;if(I||(I=$=P()),leto)if(we>Uo-to)I.moveTo(le*Yl(ze),le*ya(ze)),I.arc(0,0,le,ze,At,!fe),W>to&&(I.moveTo(W*Yl(At),W*ya(At)),I.arc(0,0,W,At,ze,fe));else{var Ye,G,Ze=ze,Ie=At,Je=ze,tt=At,Re=we,Bt=we,gn=D.apply(this,arguments)/2,Gn=gn>to&&(p?+p.apply(this,arguments):au(W*W+le*le)),hn=qp(Zp(le-W)/2,+h.apply(this,arguments)),st=hn,mn=hn;if(Gn>to){var Ke=j_(Gn/W*ya(gn)),ve=j_(Gn/le*ya(gn));(Re-=2*Ke)>to?(Je+=Ke*=fe?1:-1,tt-=Ke):(Re=0,Je=tt=(ze+At)/2),(Bt-=2*ve)>to?(Ze+=ve*=fe?1:-1,Ie-=ve):(Bt=0,Ze=Ie=(ze+At)/2)}var $e=le*Yl(Ze),Dt=le*ya(Ze),ct=W*Yl(tt),ht=W*ya(tt);if(hn>to){var ai,$t=le*Yl(Ie),Xt=le*ya(Ie),Xi=W*Yl(Je),si=W*ya(Je);if(we1?0:s<-1?Ih:Math.acos(s)}((Qi*ji+Ln*ot)/(au(Qi*Qi+Ln*Ln)*au(ji*ji+ot*ot)))/2),qe=au(ai[0]*ai[0]+ai[1]*ai[1]);st=qp(hn,(W-qe)/(ln-1)),mn=qp(hn,(le-qe)/(ln+1))}else st=mn=0}Bt>to?mn>to?(Ye=Qp(Xi,si,$e,Dt,le,mn,fe),G=Qp($t,Xt,ct,ht,le,mn,fe),I.moveTo(Ye.cx+Ye.x01,Ye.cy+Ye.y01),mnto&&Re>to?st>to?(Ye=Qp(ct,ht,$t,Xt,W,-st,fe),G=Qp($e,Dt,Xi,si,W,-st,fe),I.lineTo(Ye.cx+Ye.x01,Ye.cy+Ye.y01),sts?1:d>=s?0:NaN}function Vv(s){return s}function Y_(){var s=Vv,d=Bv,h=null,p=Mi(0),b=Mi(Uo),w=Mi(0);function D(I){var P,$,ee,fe,Je,R=(I=nf(I)).length,W=0,le=new Array(R),ze=new Array(R),At=+p.apply(this,arguments),we=Math.min(Uo,Math.max(-Uo,b.apply(this,arguments)-At)),Ze=Math.min(Math.abs(we)/R,w.apply(this,arguments)),Ie=Ze*(we<0?-1:1);for(P=0;P0&&(W+=Je);for(null!=d?le.sort(function(tt,Re){return d(ze[tt],ze[Re])}):null!=h&&le.sort(function(tt,Re){return h(I[tt],I[Re])}),P=0,ee=W?(we-R*Ie)/W:0;P0?Je*ee:0)+Ie,padAngle:Ze};return ze}return D.value=function(I){return arguments.length?(s="function"==typeof I?I:Mi(+I),D):s},D.sortValues=function(I){return arguments.length?(d=I,h=null,D):d},D.sort=function(I){return arguments.length?(h=I,d=null,D):h},D.startAngle=function(I){return arguments.length?(p="function"==typeof I?I:Mi(+I),D):p},D.endAngle=function(I){return arguments.length?(b="function"==typeof I?I:Mi(+I),D):b},D.padAngle=function(I){return arguments.length?(w="function"==typeof I?I:Mi(+I),D):w},D}function js(){}function Ph(s,d,h){s._context.bezierCurveTo((2*s._x0+s._x1)/3,(2*s._y0+s._y1)/3,(s._x0+2*s._x1)/3,(s._y0+2*s._y1)/3,(s._x0+4*s._x1+d)/6,(s._y0+4*s._y1+h)/6)}function lu(s){this._context=s}function Hv(s){return new lu(s)}function zn(s){this._context=s}function K_(s){return new zn(s)}function X_(s){this._context=s}function Jp(s){return new X_(s)}Pv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;default:this._context.lineTo(s,d)}}},lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ph(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ph(this,s,d)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=d}},zn.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._x2=s,this._y2=d;break;case 1:this._point=2,this._x3=s,this._y3=d;break;case 2:this._point=3,this._x4=s,this._y4=d,this._context.moveTo((this._x0+4*this._x1+s)/6,(this._y0+4*this._y1+d)/6);break;default:Ph(this,s,d)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=d}},X_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var h=(this._x0+4*this._x1+s)/6,p=(this._y0+4*this._y1+d)/6;this._line?this._context.lineTo(h,p):this._context.moveTo(h,p);break;case 3:this._point=4;default:Ph(this,s,d)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=d}};class eg{constructor(d,h){this._context=d,this._x=h}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(d,h){switch(d=+d,h=+h,this._point){case 0:this._point=1,this._line?this._context.lineTo(d,h):this._context.moveTo(d,h);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+d)/2,this._y0,this._x0,h,d,h):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+h)/2,d,this._y0,d,h)}this._x0=d,this._y0=h}}function $v(s){return new eg(s,!0)}function jv(s){return new eg(s,!1)}function Q_(s,d){this._basis=new lu(s),this._beta=d}Q_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var s=this._x,d=this._y,h=s.length-1;if(h>0)for(var P,p=s[0],b=d[0],w=s[h]-p,D=d[h]-b,I=-1;++I<=h;)this._basis.point(this._beta*s[I]+(1-this._beta)*(p+(P=I/h)*w),this._beta*d[I]+(1-this._beta)*(b+P*D));this._x=this._y=null,this._basis.lineEnd()},point:function(s,d){this._x.push(+s),this._y.push(+d)}};const Rw=function s(d){function h(p){return 1===d?new lu(p):new Q_(p,d)}return h.beta=function(p){return s(+p)},h}(.85);function tg(s,d,h){s._context.bezierCurveTo(s._x1+s._k*(s._x2-s._x0),s._y1+s._k*(s._y2-s._y0),s._x2+s._k*(s._x1-d),s._y2+s._k*(s._y1-h),s._x2,s._y2)}function Xc(s,d){this._context=s,this._k=(1-d)/6}Xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tg(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2,this._x1=s,this._y1=d;break;case 2:this._point=3;default:tg(this,s,d)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const J_=function s(d){function h(p){return new Xc(p,d)}return h.tension=function(p){return s(+p)},h}(0);function rf(s,d){this._context=s,this._k=(1-d)/6}rf.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._x3=s,this._y3=d;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=d);break;case 2:this._point=3,this._x5=s,this._y5=d;break;default:tg(this,s,d)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const eb=function s(d){function h(p){return new rf(p,d)}return h.tension=function(p){return s(+p)},h}(0);function sf(s,d){this._context=s,this._k=(1-d)/6}sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tg(this,s,d)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const Uv=function s(d){function h(p){return new sf(p,d)}return h.tension=function(p){return s(+p)},h}(0);function ng(s,d,h){var p=s._x1,b=s._y1,w=s._x2,D=s._y2;if(s._l01_a>to){var I=2*s._l01_2a+3*s._l01_a*s._l12_a+s._l12_2a,P=3*s._l01_a*(s._l01_a+s._l12_a);p=(p*I-s._x0*s._l12_2a+s._x2*s._l01_2a)/P,b=(b*I-s._y0*s._l12_2a+s._y2*s._l01_2a)/P}if(s._l23_a>to){var R=2*s._l23_2a+3*s._l23_a*s._l12_a+s._l12_2a,$=3*s._l23_a*(s._l23_a+s._l12_a);w=(w*R+s._x1*s._l23_2a-d*s._l12_2a)/$,D=(D*R+s._y1*s._l23_2a-h*s._l12_2a)/$}s._context.bezierCurveTo(p,b,w,D,s._x2,s._y2)}function ig(s,d){this._context=s,this._alpha=d}ig.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){if(s=+s,d=+d,this._point){var h=this._x2-s,p=this._y2-d;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;break;case 2:this._point=3;default:ng(this,s,d)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const tb=function s(d){function h(p){return d?new ig(p,d):new Xc(p,0)}return h.alpha=function(p){return s(+p)},h}(.5);function af(s,d){this._context=s,this._alpha=d}af.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(s,d){if(s=+s,d=+d,this._point){var h=this._x2-s,p=this._y2-d;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=s,this._y3=d;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=d);break;case 2:this._point=3,this._x5=s,this._y5=d;break;default:ng(this,s,d)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const Lw=function s(d){function h(p){return d?new af(p,d):new rf(p,0)}return h.alpha=function(p){return s(+p)},h}(.5);function lf(s,d){this._context=s,this._alpha=d}lf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){if(s=+s,d=+d,this._point){var h=this._x2-s,p=this._y2-d;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+p*p,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ng(this,s,d)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const Wv=function s(d){function h(p){return d?new lf(p,d):new sf(p,0)}return h.alpha=function(p){return s(+p)},h}(.5);function cf(s){this._context=s}function nb(s){return new cf(s)}function rg(s){return s<0?-1:1}function Kl(s,d,h){var p=s._x1-s._x0,b=d-s._x1,w=(s._y1-s._y0)/(p||b<0&&-0),D=(h-s._y1)/(b||p<0&&-0),I=(w*b+D*p)/(p+b);return(rg(w)+rg(D))*Math.min(Math.abs(w),Math.abs(D),.5*Math.abs(I))||0}function ib(s,d){var h=s._x1-s._x0;return h?(3*(s._y1-s._y0)/h-d)/2:d}function Rh(s,d,h){var p=s._x0,w=s._x1,D=s._y1,I=(w-p)/3;s._context.bezierCurveTo(p+I,s._y0+I*d,w-I,D-I*h,w,D)}function Qc(s){this._context=s}function rb(s){this._context=new df(s)}function df(s){this._context=s}function uf(s){return new Qc(s)}function Jc(s){return new rb(s)}function og(s){this._context=s}function hf(s){var d,p,h=s.length-1,b=new Array(h),w=new Array(h),D=new Array(h);for(b[0]=0,w[0]=2,D[0]=s[0]+2*s[1],d=1;d=0;--d)b[d]=(D[d]-b[d+1])/w[d];for(w[h-1]=(s[h]+b[h-1])/2,d=0;d=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,d),this._context.lineTo(s,d);else{var h=this._x*(1-this._t)+s*this._t;this._context.lineTo(h,this._y),this._context.lineTo(h,d)}}this._x=s,this._y=d}},du.prototype={constructor:du,scale:function(s){return 1===s?this:new du(this.k*s,this.x,this.y)},translate:function(s,d){return 0===s&0===d?this:new du(this.k,this.x+this.k*s,this.y+this.k*d)},apply:function(s){return[s[0]*this.k+this.x,s[1]*this.k+this.y]},applyX:function(s){return s*this.k+this.x},applyY:function(s){return s*this.k+this.y},invert:function(s){return[(s[0]-this.x)/this.k,(s[1]-this.y)/this.k]},invertX:function(s){return(s-this.x)/this.k},invertY:function(s){return(s-this.y)/this.k},rescaleX:function(s){return s.copy().domain(s.range().map(this.invertX,this).map(s.invert,s))},rescaleY:function(s){return s.copy().domain(s.range().map(this.invertY,this).map(s.invert,s))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new du(1,0,0)},4556:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(8267),J=M(3796);const _e=new class z{constructor(S,oe){this.color=oe,this.changed=!1,this.data=S,this.type=new class re{constructor(){this.type=J.w.ALL}get(){return this.type}set(S){if(this.type&&this.type!==S)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=S}reset(){this.type=J.w.ALL}is(S){return this.type===S}}}set(S,oe){return this.color=oe,this.changed=!1,this.data=S,this.type.type=J.w.ALL,this}_ensureHSL(){const S=this.data,{h:oe,s:Oe,l:Ne}=S;void 0===oe&&(S.h=j.Z.channel.rgb2hsl(S,"h")),void 0===Oe&&(S.s=j.Z.channel.rgb2hsl(S,"s")),void 0===Ne&&(S.l=j.Z.channel.rgb2hsl(S,"l"))}_ensureRGB(){const S=this.data,{r:oe,g:Oe,b:Ne}=S;void 0===oe&&(S.r=j.Z.channel.hsl2rgb(S,"r")),void 0===Oe&&(S.g=j.Z.channel.hsl2rgb(S,"g")),void 0===Ne&&(S.b=j.Z.channel.hsl2rgb(S,"b"))}get r(){const S=this.data,oe=S.r;return this.type.is(J.w.HSL)||void 0===oe?(this._ensureHSL(),j.Z.channel.hsl2rgb(S,"r")):oe}get g(){const S=this.data,oe=S.g;return this.type.is(J.w.HSL)||void 0===oe?(this._ensureHSL(),j.Z.channel.hsl2rgb(S,"g")):oe}get b(){const S=this.data,oe=S.b;return this.type.is(J.w.HSL)||void 0===oe?(this._ensureHSL(),j.Z.channel.hsl2rgb(S,"b")):oe}get h(){const S=this.data,oe=S.h;return this.type.is(J.w.RGB)||void 0===oe?(this._ensureRGB(),j.Z.channel.rgb2hsl(S,"h")):oe}get s(){const S=this.data,oe=S.s;return this.type.is(J.w.RGB)||void 0===oe?(this._ensureRGB(),j.Z.channel.rgb2hsl(S,"s")):oe}get l(){const S=this.data,oe=S.l;return this.type.is(J.w.RGB)||void 0===oe?(this._ensureRGB(),j.Z.channel.rgb2hsl(S,"l")):oe}get a(){return this.data.a}set r(S){this.type.set(J.w.RGB),this.changed=!0,this.data.r=S}set g(S){this.type.set(J.w.RGB),this.changed=!0,this.data.g=S}set b(S){this.type.set(J.w.RGB),this.changed=!0,this.data.b=S}set h(S){this.type.set(J.w.HSL),this.changed=!0,this.data.h=S}set s(S){this.type.set(J.w.HSL),this.changed=!0,this.data.s=S}set l(S){this.type.set(J.w.HSL),this.changed=!0,this.data.l=S}set a(S){this.changed=!0,this.data.a=S}}({r:0,g:0,b:0,a:0},"transparent")},486:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Ne});var j=M(4556),J=M(3796);const re={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:be=>{if(35!==be.charCodeAt(0))return;const Y=be.match(re.re);if(!Y)return;const pe=Y[1],he=parseInt(pe,16),Ue=pe.length,Xe=Ue%4==0,pt=Ue>4,Tt=pt?1:17,cn=pt?8:4,Fe=Xe?0:-1,dn=pt?255:15;return j.Z.set({r:(he>>cn*(Fe+3)&dn)*Tt,g:(he>>cn*(Fe+2)&dn)*Tt,b:(he>>cn*(Fe+1)&dn)*Tt,a:Xe?(he&dn)*Tt/255:1},be)},stringify:be=>{const{r:Y,g:pe,b:he,a:Ue}=be;return Ue<1?`#${J.Q[Math.round(Y)]}${J.Q[Math.round(pe)]}${J.Q[Math.round(he)]}${J.Q[Math.round(255*Ue)]}`:`#${J.Q[Math.round(Y)]}${J.Q[Math.round(pe)]}${J.Q[Math.round(he)]}`}},q=re;var z=M(8267);const ae={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:be=>{const Y=be.match(ae.hueRe);if(Y){const[,pe,he]=Y;switch(he){case"grad":return z.Z.channel.clamp.h(.9*parseFloat(pe));case"rad":return z.Z.channel.clamp.h(180*parseFloat(pe)/Math.PI);case"turn":return z.Z.channel.clamp.h(360*parseFloat(pe))}}return z.Z.channel.clamp.h(parseFloat(be))},parse:be=>{const Y=be.charCodeAt(0);if(104!==Y&&72!==Y)return;const pe=be.match(ae.re);if(!pe)return;const[,he,Ue,Xe,pt,Tt]=pe;return j.Z.set({h:ae._hue2deg(he),s:z.Z.channel.clamp.s(parseFloat(Ue)),l:z.Z.channel.clamp.l(parseFloat(Xe)),a:pt?z.Z.channel.clamp.a(Tt?parseFloat(pt)/100:parseFloat(pt)):1},be)},stringify:be=>{const{h:Y,s:pe,l:he,a:Ue}=be;return Ue<1?`hsla(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}%, ${z.Z.lang.round(he)}%, ${Ue})`:`hsl(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}%, ${z.Z.lang.round(he)}%)`}},me=ae,_e={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:be=>{be=be.toLowerCase();const Y=_e.colors[be];if(Y)return q.parse(Y)},stringify:be=>{const Y=q.stringify(be);for(const pe in _e.colors)if(_e.colors[pe]===Y)return pe}},X=_e,S={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:be=>{const Y=be.charCodeAt(0);if(114!==Y&&82!==Y)return;const pe=be.match(S.re);if(!pe)return;const[,he,Ue,Xe,pt,Tt,cn,Fe,dn]=pe;return j.Z.set({r:z.Z.channel.clamp.r(Ue?2.55*parseFloat(he):parseFloat(he)),g:z.Z.channel.clamp.g(pt?2.55*parseFloat(Xe):parseFloat(Xe)),b:z.Z.channel.clamp.b(cn?2.55*parseFloat(Tt):parseFloat(Tt)),a:Fe?z.Z.channel.clamp.a(dn?parseFloat(Fe)/100:parseFloat(Fe)):1},be)},stringify:be=>{const{r:Y,g:pe,b:he,a:Ue}=be;return Ue<1?`rgba(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}, ${z.Z.lang.round(he)}, ${z.Z.lang.round(Ue)})`:`rgb(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}, ${z.Z.lang.round(he)})`}},oe=S,Ne={format:{keyword:_e,hex:q,rgb:S,rgba:S,hsl:ae,hsla:ae},parse:be=>{if("string"!=typeof be)return be;const Y=q.parse(be)||oe.parse(be)||me.parse(be)||X.parse(be);if(Y)return Y;throw new Error(`Unsupported color format: "${be}"`)},stringify:be=>!be.changed&&be.color?be.color:be.type.is(J.w.HSL)||void 0===be.data.r?me.stringify(be):be.a<1||!Number.isInteger(be.r)||!Number.isInteger(be.g)||!Number.isInteger(be.b)?oe.stringify(be):q.stringify(be)}},3796:(rt,de,M)=>{"use strict";M.d(de,{Q:()=>J,w:()=>re});var j=M(8267);const J={};for(let q=0;q<=255;q++)J[q]=j.Z.unit.dec2hex(q);const re={ALL:0,RGB:1,HSL:2}},9846:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(8267),J=M(486);const q=(z,ae,me)=>{const _e=J.Z.parse(z),X=_e[ae],S=j.Z.channel.clamp[ae](X+me);return X!==S&&(_e[ae]=S),J.Z.stringify(_e)}},2961:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(8267),J=M(486);const q=(z,ae)=>{const me=J.Z.parse(z);for(const _e in ae)me[_e]=j.Z.channel.clamp[_e](ae[_e]);return J.Z.stringify(me)}},8674:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(9846);const re=(q,z)=>(0,j.Z)(q,"l",-z)},5847:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(8267),J=M(486);const _e=X=>!(X=>(X=>{const{r:S,g:oe,b:Oe}=J.Z.parse(X),Ne=.2126*j.Z.channel.toLinear(S)+.7152*j.Z.channel.toLinear(oe)+.0722*j.Z.channel.toLinear(Oe);return j.Z.lang.round(Ne)})(X)>=.5)(X)},1223:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(9846);const re=(q,z)=>(0,j.Z)(q,"l",z)},3396:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>ae});var j=M(8267),J=M(4556),re=M(486),q=M(2961);const ae=(me,_e,X=0,S=1)=>{if("number"!=typeof me)return(0,q.Z)(me,{a:_e});const oe=J.Z.set({r:j.Z.channel.clamp.r(me),g:j.Z.channel.clamp.g(_e),b:j.Z.channel.clamp.b(X),a:j.Z.channel.clamp.a(S)});return re.Z.stringify(oe)}},8267:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});const j={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:X=>X>=255?255:X<0?0:X,g:X=>X>=255?255:X<0?0:X,b:X=>X>=255?255:X<0?0:X,h:X=>X%360,s:X=>X>=100?100:X<0?0:X,l:X=>X>=100?100:X<0?0:X,a:X=>X>=1?1:X<0?0:X},toLinear:X=>{const S=X/255;return X>.03928?Math.pow((S+.055)/1.055,2.4):S/12.92},hue2rgb:(X,S,oe)=>(oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?X+6*(S-X)*oe:oe<.5?S:oe<2/3?X+(S-X)*(2/3-oe)*6:X),hsl2rgb:({h:X,s:S,l:oe},Oe)=>{if(!S)return 2.55*oe;X/=360,S/=100;const Ne=(oe/=100)<.5?oe*(1+S):oe+S-oe*S,be=2*oe-Ne;switch(Oe){case"r":return 255*j.hue2rgb(be,Ne,X+1/3);case"g":return 255*j.hue2rgb(be,Ne,X);case"b":return 255*j.hue2rgb(be,Ne,X-1/3)}},rgb2hsl:({r:X,g:S,b:oe},Oe)=>{X/=255,S/=255,oe/=255;const Ne=Math.max(X,S,oe),be=Math.min(X,S,oe),Y=(Ne+be)/2;if("l"===Oe)return 100*Y;if(Ne===be)return 0;const pe=Ne-be;if("s"===Oe)return 100*(Y>.5?pe/(2-Ne-be):pe/(Ne+be));switch(Ne){case X:return 60*((S-oe)/pe+(SS>oe?Math.min(S,Math.max(oe,X)):Math.min(oe,Math.max(S,X)),round:X=>Math.round(1e10*X)/1e10},unit:{dec2hex:X=>{const S=Math.round(X).toString(16);return S.length>1?S:`0${S}`}}}},2622:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>he});var re=M(3093);const z=function q(Ue,Xe){for(var pt=Ue.length;pt--;)if((0,re.Z)(Ue[pt][0],Xe))return pt;return-1};var me=Array.prototype.splice;function pe(Ue){var Xe=-1,pt=null==Ue?0:Ue.length;for(this.clear();++Xe-1},pe.prototype.set=function be(Ue,Xe){var pt=this.__data__,Tt=z(pt,Ue);return Tt<0?(++this.size,pt.push([Ue,Xe])):pt[Tt][1]=Xe,this};const he=pe},9329:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(3858),J=M(5946);const q=(0,j.Z)(J.Z,"Map")},3639:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Jn});const re=(0,M(3858).Z)(Object,"create");var S=Object.prototype.hasOwnProperty;var be=Object.prototype.hasOwnProperty;function pt(ut){var it=-1,lt=null==ut?0:ut.length;for(this.clear();++it{"use strict";M.d(de,{Z:()=>q});var j=M(3858),J=M(5946);const q=(0,j.Z)(J.Z,"Set")},5343:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>pe});var j=M(2622);var S=M(9329),oe=M(3639);function Y(he){var Ue=this.__data__=new j.Z(he);this.size=Ue.size}Y.prototype.clear=function J(){this.__data__=new j.Z,this.size=0},Y.prototype.delete=function q(he){var Ue=this.__data__,Xe=Ue.delete(he);return this.size=Ue.size,Xe},Y.prototype.get=function ae(he){return this.__data__.get(he)},Y.prototype.has=function _e(he){return this.__data__.has(he)},Y.prototype.set=function Ne(he,Ue){var Xe=this.__data__;if(Xe instanceof j.Z){var pt=Xe.__data__;if(!S.Z||pt.length<199)return pt.push([he,Ue]),this.size=++Xe.size,this;Xe=this.__data__=new oe.Z(pt)}return Xe.set(he,Ue),this.size=Xe.size,this};const pe=Y},8492:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=M(5946).Z.Symbol},1630:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=M(5946).Z.Uint8Array},3487:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>oe});var re=M(4825),q=M(4177),z=M(5202),ae=M(6667),me=M(7583),X=Object.prototype.hasOwnProperty;const oe=function S(Oe,Ne){var be=(0,q.Z)(Oe),Y=!be&&(0,re.Z)(Oe),pe=!be&&!Y&&(0,z.Z)(Oe),he=!be&&!Y&&!pe&&(0,me.Z)(Oe),Ue=be||Y||pe||he,Xe=Ue?function j(Oe,Ne){for(var be=-1,Y=Array(Oe);++be{"use strict";M.d(de,{Z:()=>ae});var j=M(3496),J=M(3093),q=Object.prototype.hasOwnProperty;const ae=function z(me,_e,X){var S=me[_e];(!q.call(me,_e)||!(0,J.Z)(S,X)||void 0===X&&!(_e in me))&&(0,j.Z)(me,_e,X)}},3496:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(2370);const re=function J(q,z,ae){"__proto__"==z&&j.Z?(0,j.Z)(q,z,{configurable:!0,enumerable:!0,value:ae,writable:!0}):q[z]=ae}},139:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});const q=function j(z){return function(ae,me,_e){for(var X=-1,S=Object(ae),oe=_e(ae),Oe=oe.length;Oe--;){var Ne=oe[z?Oe:++X];if(!1===me(S[Ne],Ne,S))break}return ae}}()},7079:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>pe});var j=M(8492),J=Object.prototype,re=J.hasOwnProperty,q=J.toString,z=j.Z?j.Z.toStringTag:void 0;var X=Object.prototype.toString;var be=j.Z?j.Z.toStringTag:void 0;const pe=function Y(he){return null==he?void 0===he?"[object Undefined]":"[object Null]":be&&be in Object(he)?function ae(he){var Ue=re.call(he,z),Xe=he[z];try{he[z]=void 0;var pt=!0}catch{}var Tt=q.call(he);return pt&&(Ue?he[z]=Xe:delete he[z]),Tt}(he):function S(he){return X.call(he)}(he)}},4884:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(1986);const q=(0,M(5820).Z)(Object.keys,Object);var ae=Object.prototype.hasOwnProperty;const _e=function me(X){if(!(0,j.Z)(X))return q(X);var S=[];for(var oe in Object(X))ae.call(X,oe)&&"constructor"!=oe&&S.push(oe);return S}},7965:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>z});var j=M(9940),J=M(5604),re=M(8959);const z=function q(ae,me){return(0,re.Z)((0,J.Z)(ae,me,j.Z),ae+"")}},6932:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return function(q){return re(q)}}},3116:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(1630);const re=function J(q){var z=new q.constructor(q.byteLength);return new j.Z(z).set(new j.Z(q)),z}},634:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(5946),J="object"==typeof exports&&exports&&!exports.nodeType&&exports,re=J&&"object"==typeof module&&module&&!module.nodeType&&module,z=re&&re.exports===J?j.Z.Buffer:void 0,ae=z?z.allocUnsafe:void 0;const _e=function me(X,S){if(S)return X.slice();var oe=X.length,Oe=ae?ae(oe):new X.constructor(oe);return X.copy(Oe),Oe}},9376:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(3116);const re=function J(q,z){var ae=z?(0,j.Z)(q.buffer):q.buffer;return new q.constructor(ae,q.byteOffset,q.length)}},8297:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re,q){var z=-1,ae=re.length;for(q||(q=Array(ae));++z{"use strict";M.d(de,{Z:()=>q});var j=M(1481),J=M(3496);const q=function re(z,ae,me,_e){var X=!me;me||(me={});for(var S=-1,oe=ae.length;++S{"use strict";M.d(de,{Z:()=>re});var j=M(3858);const re=function(){try{var q=(0,j.Z)(Object,"defineProperty");return q({},"",{}),q}catch{}}()},8346:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J="object"==typeof global&&global&&global.Object===Object&&global},3858:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>cn});var Fe,j=M(2089),re=M(5946).Z["__core-js_shared__"],z=(Fe=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+Fe:"";var _e=M(1999),X=M(4407),oe=/^\[object .+?Constructor\]$/,pe=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ue=function he(Fe){return!(!(0,_e.Z)(Fe)||function ae(Fe){return!!z&&z in Fe}(Fe))&&((0,j.Z)(Fe)?pe:oe).test((0,X.Z)(Fe))},cn=function Tt(Fe,dn){var Qn=function Xe(Fe,dn){return Fe?.[dn]}(Fe,dn);return Ue(Qn)?Qn:void 0}},5650:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=(0,M(5820).Z)(Object.getPrototypeOf,Object)},7183:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Qn});var j=M(3858),J=M(5946);const q=(0,j.Z)(J.Z,"DataView");var z=M(9329);const me=(0,j.Z)(J.Z,"Promise");var _e=M(7863);const S=(0,j.Z)(J.Z,"WeakMap");var oe=M(7079),Oe=M(4407),Ne="[object Map]",Y="[object Promise]",pe="[object Set]",he="[object WeakMap]",Ue="[object DataView]",Xe=(0,Oe.Z)(q),pt=(0,Oe.Z)(z.Z),Tt=(0,Oe.Z)(me),cn=(0,Oe.Z)(_e.Z),Fe=(0,Oe.Z)(S),dn=oe.Z;(q&&dn(new q(new ArrayBuffer(1)))!=Ue||z.Z&&dn(new z.Z)!=Ne||me&&dn(me.resolve())!=Y||_e.Z&&dn(new _e.Z)!=pe||S&&dn(new S)!=he)&&(dn=function(Et){var We=(0,oe.Z)(Et),De="[object Object]"==We?Et.constructor:void 0,xt=De?(0,Oe.Z)(De):"";if(xt)switch(xt){case Xe:return Ue;case pt:return Ne;case Tt:return Y;case cn:return pe;case Fe:return he}return We});const Qn=dn},3121:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(1999),J=Object.create;const q=function(){function X(){}return function(S){if(!(0,j.Z)(S))return{};if(J)return J(S);X.prototype=S;var oe=new X;return X.prototype=void 0,oe}}();var z=M(5650),ae=M(1986);const _e=function me(X){return"function"!=typeof X.constructor||(0,ae.Z)(X)?{}:q((0,z.Z)(X))}},6667:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var J=/^(?:0|[1-9]\d*)$/;const q=function re(z,ae){var me=typeof z;return!!(ae=ae??9007199254740991)&&("number"==me||"symbol"!=me&&J.test(z))&&z>-1&&z%1==0&&z{"use strict";M.d(de,{Z:()=>ae});var j=M(3093),J=M(8706),re=M(6667),q=M(1999);const ae=function z(me,_e,X){if(!(0,q.Z)(X))return!1;var S=typeof _e;return!!("number"==S?(0,J.Z)(X)&&(0,re.Z)(_e,X.length):"string"==S&&_e in X)&&(0,j.Z)(X[_e],me)}},1986:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=Object.prototype;const re=function J(q){var z=q&&q.constructor;return q===("function"==typeof z&&z.prototype||j)}},6594:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>me});var j=M(8346),J="object"==typeof exports&&exports&&!exports.nodeType&&exports,re=J&&"object"==typeof module&&module&&!module.nodeType&&module,z=re&&re.exports===J&&j.Z.process;const me=function(){try{return re&&re.require&&re.require("util").types||z&&z.binding&&z.binding("util")}catch{}}()},5820:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re,q){return function(z){return re(q(z))}}},5604:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>z});const J=function j(ae,me,_e){switch(_e.length){case 0:return ae.call(me);case 1:return ae.call(me,_e[0]);case 2:return ae.call(me,_e[0],_e[1]);case 3:return ae.call(me,_e[0],_e[1],_e[2])}return ae.apply(me,_e)};var re=Math.max;const z=function q(ae,me,_e){return me=re(void 0===me?ae.length-1:me,0),function(){for(var X=arguments,S=-1,oe=re(X.length-me,0),Oe=Array(oe);++S{"use strict";M.d(de,{Z:()=>q});var j=M(8346),J="object"==typeof self&&self&&self.Object===Object&&self;const q=j.Z||J||Function("return this")()},8959:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Oe});var j=M(145),J=M(2370),re=M(9940),ae=800,me=16,_e=Date.now;const Oe=function X(Ne){var be=0,Y=0;return function(){var pe=_e(),he=me-(pe-Y);if(Y=pe,he>0){if(++be>=ae)return arguments[0]}else be=0;return Ne.apply(void 0,arguments)}}(J.Z?function(Ne,be){return(0,J.Z)(Ne,"toString",{configurable:!0,enumerable:!1,value:(0,j.Z)(be),writable:!0})}:re.Z)},4407:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var J=Function.prototype.toString;const q=function re(z){if(null!=z){try{return J.call(z)}catch{}try{return z+""}catch{}}return""}},145:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return function(){return re}}},3093:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re,q){return re===q||re!=re&&q!=q}},9940:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return re}},4825:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>S});var j=M(7079),J=M(214);const z=function q(oe){return(0,J.Z)(oe)&&"[object Arguments]"==(0,j.Z)(oe)};var ae=Object.prototype,me=ae.hasOwnProperty,_e=ae.propertyIsEnumerable;const S=z(function(){return arguments}())?z:function(oe){return(0,J.Z)(oe)&&me.call(oe,"callee")&&!_e.call(oe,"callee")}},4177:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=Array.isArray},8706:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(2089),J=M(8696);const q=function re(z){return null!=z&&(0,J.Z)(z.length)&&!(0,j.Z)(z)}},7118:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(8706),J=M(214);const q=function re(z){return(0,J.Z)(z)&&(0,j.Z)(z)}},5202:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>S});var j=M(5946),q="object"==typeof exports&&exports&&!exports.nodeType&&exports,z=q&&"object"==typeof module&&module&&!module.nodeType&&module,me=z&&z.exports===q?j.Z.Buffer:void 0;const S=(me?me.isBuffer:void 0)||function J(){return!1}},9378:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>be});var j=M(4884),J=M(7183),re=M(4825),q=M(4177),z=M(8706),ae=M(5202),me=M(1986),_e=M(7583),Oe=Object.prototype.hasOwnProperty;const be=function Ne(Y){if(null==Y)return!0;if((0,z.Z)(Y)&&((0,q.Z)(Y)||"string"==typeof Y||"function"==typeof Y.splice||(0,ae.Z)(Y)||(0,_e.Z)(Y)||(0,re.Z)(Y)))return!Y.length;var pe=(0,J.Z)(Y);if("[object Map]"==pe||"[object Set]"==pe)return!Y.size;if((0,me.Z)(Y))return!(0,j.Z)(Y).length;for(var he in Y)if(Oe.call(Y,he))return!1;return!0}},2089:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(7079),J=M(1999);const _e=function me(X){if(!(0,J.Z)(X))return!1;var S=(0,j.Z)(X);return"[object Function]"==S||"[object GeneratorFunction]"==S||"[object AsyncFunction]"==S||"[object Proxy]"==S}},8696:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=function J(q){return"number"==typeof q&&q>-1&&q%1==0&&q<=9007199254740991}},1999:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){var q=typeof re;return null!=re&&("object"==q||"function"==q)}},214:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return null!=re&&"object"==typeof re}},2031:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>oe});var j=M(7079),J=M(5650),re=M(214),me=Function.prototype.toString,_e=Object.prototype.hasOwnProperty,X=me.call(Object);const oe=function S(Oe){if(!(0,re.Z)(Oe)||"[object Object]"!=(0,j.Z)(Oe))return!1;var Ne=(0,J.Z)(Oe);if(null===Ne)return!0;var be=_e.call(Ne,"constructor")&&Ne.constructor;return"function"==typeof be&&be instanceof be&&me.call(be)==X}},7583:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>It});var j=M(7079),J=M(8696),re=M(214),De={};De["[object Float32Array]"]=De["[object Float64Array]"]=De["[object Int8Array]"]=De["[object Int16Array]"]=De["[object Int32Array]"]=De["[object Uint8Array]"]=De["[object Uint8ClampedArray]"]=De["[object Uint16Array]"]=De["[object Uint32Array]"]=!0,De["[object Arguments]"]=De["[object Array]"]=De["[object ArrayBuffer]"]=De["[object Boolean]"]=De["[object DataView]"]=De["[object Date]"]=De["[object Error]"]=De["[object Function]"]=De["[object Map]"]=De["[object Number]"]=De["[object Object]"]=De["[object RegExp]"]=De["[object Set]"]=De["[object String]"]=De["[object WeakMap]"]=!1;var jt=M(6932),zt=M(6594),at=zt.Z&&zt.Z.isTypedArray;const It=at?(0,jt.Z)(at):function xt(Ut){return(0,re.Z)(Ut)&&(0,J.Z)(Ut.length)&&!!De[(0,j.Z)(Ut)]}},571:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Oe});var j=M(3487),J=M(1999),re=M(1986);var me=Object.prototype.hasOwnProperty;const X=function _e(Ne){if(!(0,J.Z)(Ne))return function q(Ne){var be=[];if(null!=Ne)for(var Y in Object(Ne))be.push(Y);return be}(Ne);var be=(0,re.Z)(Ne),Y=[];for(var pe in Ne)"constructor"==pe&&(be||!me.call(Ne,pe))||Y.push(pe);return Y};var S=M(8706);const Oe=function oe(Ne){return(0,S.Z)(Ne)?(0,j.Z)(Ne,!0):X(Ne)}},2572:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(3639),J="Expected a function";function re(z,ae){if("function"!=typeof z||null!=ae&&"function"!=typeof ae)throw new TypeError(J);var me=function(){var _e=arguments,X=ae?ae.apply(this,_e):_e[0],S=me.cache;if(S.has(X))return S.get(X);var oe=z.apply(this,_e);return me.cache=S.set(X,oe)||S,oe};return me.cache=new(re.Cache||j.Z),me}re.Cache=j.Z;const q=re},2986:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Pn});var j=M(5343),J=M(3496),re=M(3093);const z=function q(It,Ut,yn){(void 0!==yn&&!(0,re.Z)(It[Ut],yn)||void 0===yn&&!(Ut in It))&&(0,J.Z)(It,Ut,yn)};var ae=M(139),me=M(634),_e=M(9376),X=M(8297),S=M(3121),oe=M(4825),Oe=M(4177),Ne=M(7118),be=M(5202),Y=M(2089),pe=M(1999),he=M(2031),Ue=M(7583);const pt=function Xe(It,Ut){if(("constructor"!==Ut||"function"!=typeof It[Ut])&&"__proto__"!=Ut)return It[Ut]};var Tt=M(3276),cn=M(571);const Et=function Qn(It,Ut,yn,Ae,Jn,ut,it){var lt=pt(It,yn),Cn=pt(Ut,yn),Vn=it.get(Cn);if(Vn)z(It,yn,Vn);else{var ni=ut?ut(lt,Cn,yn+"",It,Ut,it):void 0,Cs=void 0===ni;if(Cs){var nr=(0,Oe.Z)(Cn),Ao=!nr&&(0,be.Z)(Cn),dr=!nr&&!Ao&&(0,Ue.Z)(Cn);ni=Cn,nr||Ao||dr?(0,Oe.Z)(lt)?ni=lt:(0,Ne.Z)(lt)?ni=(0,X.Z)(lt):Ao?(Cs=!1,ni=(0,me.Z)(Cn,!0)):dr?(Cs=!1,ni=(0,_e.Z)(Cn,!0)):ni=[]:(0,he.Z)(Cn)||(0,oe.Z)(Cn)?(ni=lt,(0,oe.Z)(lt)?ni=function Fe(It){return(0,Tt.Z)(It,(0,cn.Z)(It))}(lt):(!(0,pe.Z)(lt)||(0,Y.Z)(lt))&&(ni=(0,S.Z)(Cn))):Cs=!1}Cs&&(it.set(Cn,ni),Jn(ni,Cn,Ae,ut,it),it.delete(Cn)),z(It,yn,ni)}},De=function We(It,Ut,yn,Ae,Jn){It!==Ut&&(0,ae.Z)(Ut,function(ut,it){if(Jn||(Jn=new j.Z),(0,pe.Z)(ut))Et(It,Ut,it,yn,We,Ae,Jn);else{var lt=Ae?Ae(pt(It,it),ut,it+"",It,Ut,Jn):void 0;void 0===lt&&(lt=ut),z(It,it,lt)}},cn.Z)};var xt=M(7965),Ge=M(4810);const Pn=function jt(It){return(0,xt.Z)(function(Ut,yn){var Ae=-1,Jn=yn.length,ut=Jn>1?yn[Jn-1]:void 0,it=Jn>2?yn[2]:void 0;for(ut=It.length>3&&"function"==typeof ut?(Jn--,ut):void 0,it&&(0,Ge.Z)(yn[0],yn[1],it)&&(ut=Jn<3?void 0:ut,Jn=1),Ut=Object(Ut);++Ae{"use strict";M.d(de,{A:()=>je,B:()=>Es,C:()=>Pu,D:()=>Md,E:()=>Wt,F:()=>Li,G:()=>xl,H:()=>mc,I:()=>gr,J:()=>ws,K:()=>Ld,L:()=>Vi,M:()=>Ss,N:()=>Do,Z:()=>gc,a:()=>Ha,b:()=>Va,c:()=>Mc,d:()=>ir,e:()=>hr,f:()=>fi,g:()=>Uu,h:()=>Fn,i:()=>$u,j:()=>dm,k:()=>pi,l:()=>Lt,m:()=>ia,n:()=>Ft,o:()=>fo,p:()=>Rd,q:()=>Qr,r:()=>ra,s:()=>Xr,t:()=>Pd,u:()=>sa,v:()=>Ba,w:()=>Wr,x:()=>bl,y:()=>Kt,z:()=>Vo});var j=M(5861),J=M(458),re=M(1764),q=M(6780),z=M(8586),ae=M(2735),me=M(486),_e=M(2961);const S=(l,f)=>{const _=me.Z.parse(l),x={};for(const k in f)f[k]&&(x[k]=_[k]+f[k]);return(0,_e.Z)(l,x)};var oe=M(3396);const Y=(l,f=100)=>{const _=me.Z.parse(l);return _.r=255-_.r,_.g=255-_.g,_.b=255-_.b,((l,f,_=50)=>{const{r:x,g:k,b:L,a:H}=me.Z.parse(l),{r:ne,g:se,b:Ee,a:Qe}=me.Z.parse(f),Me=_/100,Q=2*Me-1,ke=H-Qe,rn=((Q*ke==-1?Q:(Q+ke)/(1+Q*ke))+1)/2,pn=1-rn;return(0,oe.Z)(x*rn+ne*pn,k*rn+se*pn,L*rn+Ee*pn,H*Me+Qe*(1-Me))})(_,l,f)};var pe=M(8674),he=M(1223),Ue=M(5847),Xe=M(2572),pt=M(2986),dn="comm",Qn="rule",Et="decl",xt="@import",It="@keyframes",Jn=Math.abs,ut=String.fromCharCode;function Cn(l){return l.trim()}function ni(l,f,_){return l.replace(f,_)}function Cs(l,f){return l.indexOf(f)}function nr(l,f){return 0|l.charCodeAt(f)}function Ao(l,f,_){return l.slice(f,_)}function dr(l){return l.length}function Au(l){return l.length}function cc(l,f){return f.push(l),l}function pd(l,f){for(var _="",x=Au(l),k=0;k2||cl(Mn)>3?"":" "}function Aa(l,f){for(;--f&&Ii()&&!(Mn<48||Mn>102||Mn>57&&Mn<65||Mn>70&&Mn<97););return Jo(l,ea()+(f<6&&32==xs()&&32==Ii()))}function ul(l){for(;Ii();)switch(Mn){case l:return Rn;case 34:case 39:34!==l&&39!==l&&ul(Mn);break;case 40:41===l&&ul(l);break;case 92:Ii()}return Rn}function bd(l,f){for(;Ii()&&l+Mn!==57&&(l+Mn!==84||47!==xs()););return"/*"+Jo(f,Rn-1)+"*"+ut(47===l?l:Ii())}function hl(l){for(;!cl(xs());)Ii();return Jo(l,Rn)}function ml(l){return function Iu(l){return kr="",l}(ur("",null,null,null,[""],l=function gd(l){return Mt=_n=1,xn=dr(kr=l),Rn=0,[]}(l),0,[0],l))}function ur(l,f,_,x,k,L,H,ne,se){for(var Ee=0,Qe=0,Me=H,Q=0,ke=0,qt=0,rn=1,pn=1,an=1,St=0,Pr="",$s=k,Ei=L,sr=x,oi=Pr;pn;)switch(qt=St,St=Ii()){case 40:if(108!=qt&&58==nr(oi,Me-1)){-1!=Cs(oi+=ni(dc(St),"&","&\f"),"&\f")&&(an=-1);break}case 34:case 39:case 91:oi+=dc(St);break;case 9:case 10:case 13:case 32:oi+=wi(qt);break;case 92:oi+=Aa(ea()-1,7);continue;case 47:switch(xs()){case 42:case 47:cc(Ia(bd(Ii(),ea()),f,_),se);break;default:oi+="/"}break;case 123*rn:ne[Ee++]=dr(oi)*an;case 125*rn:case 59:case 0:switch(St){case 0:case 125:pn=0;case 59+Qe:ke>0&&dr(oi)-Me&&cc(ke>32?Fa(oi+";",x,_,Me-1):Fa(ni(oi," ","")+";",x,_,Me-2),se);break;case 59:oi+=";";default:if(cc(sr=ta(oi,f,_,Ee,Qe,k,ne,Pr,$s=[],Ei=[],Me),L),123===St)if(0===Qe)ur(oi,f,sr,sr,$s,L,Me,ne,Ei);else switch(99===Q&&110===nr(oi,3)?100:Q){case 100:case 109:case 115:ur(l,sr,sr,x&&cc(ta(l,sr,sr,0,0,k,ne,Pr,k,$s=[],Me),Ei),k,Ei,Me,ne,x?$s:Ei);break;default:ur(oi,sr,sr,sr,[""],Ei,0,ne,Ei)}}Ee=Qe=ke=0,rn=an=1,Pr=oi="",Me=H;break;case 58:Me=1+dr(oi),ke=qt;default:if(rn<1)if(123==St)--rn;else if(125==St&&0==rn++&&125==(Mn=Rn>0?nr(kr,--Rn):0,_n--,10===Mn&&(_n=1,Mt--),Mn))continue;switch(oi+=ut(St),St*rn){case 38:an=Qe>0?1:(oi+="\f",-1);break;case 44:ne[Ee++]=(dr(oi)-1)*an,an=1;break;case 64:45===xs()&&(oi+=dc(Ii())),Q=xs(),Qe=Me=dr(Pr=oi+=hl(ea())),St++;break;case 45:45===qt&&2==dr(oi)&&(rn=0)}}return L}function ta(l,f,_,x,k,L,H,ne,se,Ee,Qe){for(var Me=k-1,Q=0===k?L:[""],ke=Au(Q),qt=0,rn=0,pn=0;qt0?Q[an]+" "+St:ni(St,/&\f/g,Q[an])))&&(se[pn++]=Pr);return Io(l,f,_,0===k?Qn:ne,se,Ee,Qe)}function Ia(l,f,_){return Io(l,f,_,dn,ut(function ll(){return Mn}()),Ao(l,2,-2),0)}function Fa(l,f,_,x){return Io(l,f,_,Et,Ao(l,0,x),Ao(l,x+1,-1),x)}var fl=M(9378);const ii={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Lt={trace:(...l)=>{},debug:(...l)=>{},info:(...l)=>{},warn:(...l)=>{},error:(...l)=>{},fatal:(...l)=>{}},pl=function(l="fatal"){let f=ii.fatal;"string"==typeof l?(l=l.toLowerCase())in ii&&(f=ii[l]):"number"==typeof l&&(f=l),Lt.trace=()=>{},Lt.debug=()=>{},Lt.info=()=>{},Lt.warn=()=>{},Lt.error=()=>{},Lt.fatal=()=>{},f<=ii.fatal&&(Lt.fatal=console.error?console.error.bind(console,jr("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",jr("FATAL"))),f<=ii.error&&(Lt.error=console.error?console.error.bind(console,jr("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",jr("ERROR"))),f<=ii.warn&&(Lt.warn=console.warn?console.warn.bind(console,jr("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",jr("WARN"))),f<=ii.info&&(Lt.info=console.info?console.info.bind(console,jr("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",jr("INFO"))),f<=ii.debug&&(Lt.debug=console.debug?console.debug.bind(console,jr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",jr("DEBUG"))),f<=ii.trace&&(Lt.trace=console.debug?console.debug.bind(console,jr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",jr("TRACE")))},jr=l=>`%c${re().format("ss.SSS")} : ${l} : `,ws=//gi,yd=(()=>{let l=!1;return()=>{l||(function Fi(){const l="data-temp-href-target";ae.addHook("beforeSanitizeAttributes",f=>{"A"===f.tagName&&f.hasAttribute("target")&&f.setAttribute(l,f.getAttribute("target")||"")}),ae.addHook("afterSanitizeAttributes",f=>{"A"===f.tagName&&f.hasAttribute(l)&&(f.setAttribute("target",f.getAttribute(l)||""),f.removeAttribute(l),"_blank"===f.getAttribute("target")&&f.setAttribute("rel","noopener"))})}(),l=!0)}})(),lo=l=>(yd(),ae.sanitize(l)),di=(l,f)=>{var _;if(!1!==(null==(_=f.flowchart)?void 0:_.htmlLabels)){const x=f.securityLevel;"antiscript"===x||"strict"===x?l=lo(l):"loose"!==x&&(l=(l=(l=_l(l)).replace(//g,">")).replace(/=/g,"="),l=Cd(l))}return l},ir=(l,f)=>l&&(f.dompurifyConfig?ae.sanitize(di(l,f),f.dompurifyConfig).toString():ae.sanitize(di(l,f),{FORBID_TAGS:["style"]}).toString()),Cd=l=>l.replace(/#br#/g,"
"),_l=l=>l.replace(ws,"#br#"),ia=l=>!(!1===l||["false","null","0"].includes(String(l).trim().toLowerCase())),bl=function(l){const f=l.split(/(,)/),_=[];for(let x=0;x0&&x+1Math.max(0,l.split(f).length-1),yl=(l,f)=>{const _=Oo(l,"~"),x=Oo(f,"~");return 1===_&&1===x},vl=l=>{const f=Oo(l,"~");let _=!1;if(f<=1)return l;f%2!=0&&l.startsWith("~")&&(l=l.substring(1),_=!0);const x=[...l];let k=x.indexOf("~"),L=x.lastIndexOf("~");for(;-1!==k&&-1!==L&&k!==L;)x[k]="<",x[L]=">",k=x.indexOf("~"),L=x.lastIndexOf("~");return _&&x.unshift("~"),x.join("")},hc=()=>void 0!==window.MathMLElement,Cl=/\$\$(.*)\$\$/g,xl=l=>{var f;return((null==(f=l.match(Cl))?void 0:f.length)??0)>0},mc=function(){var l=(0,j.Z)(function*(f,_){f=yield ra(f,_);const x=document.createElement("div");x.innerHTML=f,x.id="katex-temp",x.style.visibility="hidden",x.style.position="absolute",x.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",x);const L={width:x.clientWidth,height:x.clientHeight};return x.remove(),L});return function(_,x){return l.apply(this,arguments)}}(),ra=function(){var l=(0,j.Z)(function*(f,_){if(!xl(f))return f;if(!hc()&&!_.legacyMathML)return f.replace(Cl,"MathML is unsupported in this environment.");const{default:x}=yield M.e(751).then(M.bind(M,2751));return f.split(ws).map(k=>xl(k)?`\n
\n ${k}\n
\n `:`
${k}
`).join("").replace(Cl,(k,L)=>x.renderToString(L,{throwOnError:!0,displayMode:!0,output:hc()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))});return function(_,x){return l.apply(this,arguments)}}(),hr={getRows:l=>l?_l(l).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:ir,sanitizeTextOrArray:(l,f)=>"string"==typeof l?ir(l,f):l.flat().map(_=>ir(_,f)),hasBreaks:l=>ws.test(l),splitBreaks:l=>l.split(ws),lineBreakRegex:ws,removeScript:lo,getUrl:l=>{let f="";return l&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replaceAll(/\(/g,"\\("),f=f.replaceAll(/\)/g,"\\)")),f},evaluate:ia,getMax:function(...l){const f=l.filter(_=>!isNaN(_));return Math.max(...f)},getMin:function(...l){const f=l.filter(_=>!isNaN(_));return Math.min(...f)}},on=(l,f)=>S(l,f?{s:-40,l:10}:{s:-40,l:-10}),Ds="#ffffff",Ts="#f2f2f2",Wt=l=>{const f=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=S(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=on(this.primaryColor,this.darkMode),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,oe.Z)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,pe.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,pe.Z)(this.tertiaryColor,40);for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f};class Pa{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,he.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=on(this.primaryColor,this.darkMode),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.secondBkg=(0,he.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,he.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}}const Ti={base:{getThemeVariables:l=>{const f=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||S(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||S(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||on(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||on(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||on(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Y(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Y(this.tertiaryColor),this.lineColor=this.lineColor||Y(this.background),this.arrowheadColor=this.arrowheadColor||Y(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,pe.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,pe.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Y(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,he.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.darkMode)for(let ke=0;ke{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f}},dark:{getThemeVariables:l=>{const f=new class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,he.Z)(this.primaryColor,16),this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=Y(this.background),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,he.Z)(Y("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,oe.Z)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,pe.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,pe.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,oe.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,oe.Z)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.secondBkg=(0,he.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,he.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,he.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330});for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f}},default:{getThemeVariables:Wt},forest:{getThemeVariables:l=>{const f=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,he.Z)("#cde498",10),this.primaryBorderColor=on(this.primaryColor,this.darkMode),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.primaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.actorBorder=(0,pe.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,pe.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,pe.Z)(this.tertiaryColor,40);for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f}},neutral:{getThemeVariables:l=>{const f=new Pa;return f.calculate(l),f}}},Ce={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ra={...Ce,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Ti.default.getThemeVariables(),sequence:{...Ce.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Ce.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ce.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Ce.pie,useWidth:984},xyChart:{...Ce.xyChart,useWidth:void 0},requirement:{...Ce.requirement,useWidth:void 0},gitGraph:{...Ce.gitGraph,useMaxWidth:!1},sankey:{...Ce.sankey,useMaxWidth:!1}},_t=(l,f="")=>Object.keys(l).reduce((_,x)=>Array.isArray(l[x])?_:"object"==typeof l[x]&&null!==l[x]?[..._,f+x,..._t(l[x],"")]:[..._,f+x],[]),wn=new Set(_t(Ra,"")),Es=Ra,ts=l=>{if(Lt.debug("sanitizeDirective called with",l),"object"==typeof l&&null!=l){if(Array.isArray(l))return void l.forEach(f=>ts(f));for(const f of Object.keys(l)){if(Lt.debug("Checking key",f),f.startsWith("__")||f.includes("proto")||f.includes("constr")||!wn.has(f)||null==l[f]){Lt.debug("sanitize deleting key: ",f),delete l[f];continue}if("object"==typeof l[f]){Lt.debug("sanitizing object",f),ts(l[f]);continue}const _=["themeCSS","fontFamily","altFontFamily"];for(const x of _)f.includes(x)&&(Lt.debug("sanitizing css option",f),l[f]=Ms(l[f]))}if(l.themeVariables)for(const f of Object.keys(l.themeVariables)){const _=l.themeVariables[f];_?.match&&!_.match(/^[\d "#%(),.;A-Za-z]+$/)&&(l.themeVariables[f]="")}Lt.debug("After sanitization",l)}},Ms=l=>{let f=0,_=0;for(const x of l){if(f<_)return"{ /* ERROR: Unbalanced CSS */ }";"{"===x?f++:"}"===x&&_++}return f!==_?"{ /* ERROR: Unbalanced CSS */ }":l},ks=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,mi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wl=/\s*%%.*\n/gm;class oa extends Error{constructor(f){super(f),this.name="UnknownDiagramError"}}const Ur={},mr=function(l,f){l=l.replace(ks,"").replace(mi,"").replace(wl,"\n");for(const[_,{detector:x}]of Object.entries(Ur))if(x(l,f))return _;throw new oa(`No diagram type detected matching given configuration for text: ${l}`)},fr=(...l)=>{for(const{id:f,detector:_,loader:x}of l)La(f,_,x)},La=(l,f,_)=>{Ur[l]?Lt.error(`Detector with key ${l} already exists`):Ur[l]={detector:f,loader:_},Lt.debug(`Detector with key ${l} added${_?" with loader":""}`)},pc=(l,f,{depth:_=2,clobber:x=!1}={})=>{const k={depth:_,clobber:x};return Array.isArray(f)&&!Array.isArray(l)?(f.forEach(L=>pc(l,L,k)),l):Array.isArray(f)&&Array.isArray(l)?(f.forEach(L=>{l.includes(L)||l.push(L)}),l):void 0===l||_<=0?null!=l&&"object"==typeof l&&"object"==typeof f?Object.assign(l,f):f:(void 0!==f&&"object"==typeof l&&"object"==typeof f&&Object.keys(f).forEach(L=>{"object"!=typeof f[L]||void 0!==l[L]&&"object"!=typeof l[L]?(x||"object"!=typeof l[L]&&"object"!=typeof f[L])&&(l[L]=f[L]):(void 0===l[L]&&(l[L]=Array.isArray(f[L])?[]:{}),l[L]=pc(l[L],f[L],{depth:_-1,clobber:x}))}),l)},fi=pc,gc="\u200b",Ro={curveBasis:z.$0Z,curveBasisClosed:z.Dts,curveBasisOpen:z.WQY,curveBumpX:z.qpX,curveBumpY:z.u93,curveBundle:z.tFB,curveCardinalClosed:z.OvA,curveCardinalOpen:z.dCK,curveCardinal:z.YY7,curveCatmullRomClosed:z.fGX,curveCatmullRomOpen:z.$m7,curveCatmullRom:z.zgE,curveLinear:z.c_6,curveLinearClosed:z.fxm,curveMonotoneX:z.FdL,curveMonotoneY:z.ak_,curveNatural:z.SxZ,curveStep:z.eA_,curveStepAfter:z.jsv,curveStepBefore:z.iJ},xd=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,kn=function(l,f=null){try{const _=new RegExp(`[%]{2}(?![{]${xd.source})(?=[}][%]{2}).*\n`,"ig");let x;l=l.trim().replace(_,"").replace(/'/gm,'"'),Lt.debug(`Detecting diagram directive${null!==f?" type:"+f:""} based on the text:${l}`);const k=[];for(;null!==(x=mi.exec(l));)if(x.index===mi.lastIndex&&mi.lastIndex++,x&&!f||f&&x[1]&&x[1].match(f)||f&&x[2]&&x[2].match(f)){const L=x[1]?x[1]:x[2],H=x[3]?x[3].trim():x[4]?JSON.parse(x[4].trim()):null;k.push({type:L,args:H})}return 0===k.length?{type:l,args:null}:1===k.length?k[0]:k}catch(_){return Lt.error(`ERROR: ${_.message} - Unable to parse directive type: '${f}' based on the text: '${l}'`),{type:void 0,args:null}}},_c=function(l){return l.replace(mi,"")};function Ft(l,f){if(!l)return f;const _=`curve${l.charAt(0).toUpperCase()+l.slice(1)}`;return Ro[_]??f}function Se(l,f){return l&&f?Math.sqrt(Math.pow(f.x-l.x,2)+Math.pow(f.y-l.y,2)):0}const yi=(l,f=2)=>{const _=Math.pow(10,f);return Math.round(l*_)/_},Ri=(l,f)=>{let _,x=f;for(const k of l){if(_){const L=Se(k,_);if(L=1)return{x:k.x,y:k.y};if(H>0&&H<1)return{x:yi((1-H)*_.x+H*k.x,5),y:yi((1-H)*_.y+H*k.y,5)}}}_=k}throw new Error("Could not find a suitable point for the given distance")};function pi(l){let f="",_="";for(const x of l)void 0!==x&&(x.startsWith("color:")||x.startsWith("text-align:")?_=_+x+";":f=f+x+";");return{style:f,labelStyle:_}}let pr=0;const gr=()=>(pr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+pr),Kt=l=>function Qf(l){let f="";const _="0123456789abcdef",x=_.length;for(let k=0;k{if(!l||(_=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},_),hr.lineBreakRegex.test(l)))return l;const x=l.split(" "),k=[];let L="";return x.forEach((H,ne)=>{const se=Fn(`${H} `,_),Ee=Fn(L,_);if(se>f){const{hyphenatedStrings:Q,remainingWord:ke}=wd(H,f,"-",_);k.push(L,...Q),L=ke}else Ee+se>=f?(k.push(L),L=H):L=[L,H].filter(Boolean).join(" ");ne+1===x.length&&k.push(L)}),k.filter(H=>""!==H).join(_.joinWith)},(l,f,_)=>`${l}${f}${_.fontSize}${_.fontWeight}${_.fontFamily}${_.joinWith}`),wd=(0,Xe.Z)((l,f,_="-",x)=>{x=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},x);const k=[...l],L=[];let H="";return k.forEach((ne,se)=>{const Ee=`${H}${ne}`;Fn(Ee,x)>=f?(L.push(k.length===se+1?Ee:`${Ee}${_}`),H=""):H=Ee}),{hyphenatedStrings:L,remainingWord:H}},(l,f,_="-",x)=>`${l}${f}${_}${x.fontSize}${x.fontWeight}${x.fontFamily}`);function dm(l,f){return um(l,f).height}function Fn(l,f){return um(l,f).width}const um=(0,Xe.Z)((l,f)=>{const{fontSize:_=12,fontFamily:x="Arial",fontWeight:k=400}=f;if(!l)return{width:0,height:0};const[,L]=Md(_),H=["sans-serif",x],ne=l.split(hr.lineBreakRegex),se=[],Ee=(0,z.Ys)("body");if(!Ee.remove)return{width:0,height:0,lineHeight:0};const Qe=Ee.append("svg");for(const Q of H){let ke=0;const qt={width:0,height:0,lineHeight:0};for(const rn of ne){const pn={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""};pn.text=rn||gc;const an=No(Qe,pn).style("font-size",L).style("font-weight",k).style("font-family",Q),St=(an._groups||an)[0][0].getBBox();if(0===St.width&&0===St.height)throw new Error("svg element not in render tree");qt.width=Math.round(Math.max(qt.width,St.width)),ke=Math.round(St.height),qt.height+=ke,qt.lineHeight=Math.round(Math.max(qt.lineHeight,ke))}se.push(qt)}return Qe.remove(),se[isNaN(se[1].height)||isNaN(se[1].width)||isNaN(se[1].lineHeight)||se[0].height>se[1].height&&se[0].width>se[1].width&&se[0].lineHeight>se[1].lineHeight?0:1]},(l,f)=>`${l}${f.fontSize}${f.fontWeight}${f.fontFamily}`);let Dd;function Td(l){return"str"in l}const Md=l=>{if("number"==typeof l)return[l,l+"px"];const f=parseInt(l??"",10);return Number.isNaN(f)?[void 0,void 0]:l===String(f)?[f,l+"px"]:[f,l]};function Pu(l,f){return(0,pt.Z)({},l,f)}const sa={assignWithDepth:fi,wrapLabel:Wr,calculateTextHeight:dm,calculateTextWidth:Fn,calculateTextDimensions:um,cleanAndMerge:Pu,detectInit:function(l,f){const _=kn(l,/(?:init\b)|(?:initialize\b)/);let x={};if(Array.isArray(_)){const H=_.map(ne=>ne.args);ts(H),x=fi(x,[...H])}else x=_.args;if(!x)return;let k=mr(l,f);const L="config";return void 0!==x[L]&&("flowchart-v2"===k&&(k="flowchart"),x[k]=x[L],delete x[L]),x},detectDirective:kn,isSubstringInArray:function(l,f){for(const[_,x]of f.entries())if(x.match(l))return _;return-1},interpolateToCurve:Ft,calcLabelPosition:function Pi(l){return 1===l.length?l[0]:function An(l){let f,_=0;return l.forEach(k=>{_+=Se(k,f),f=k}),Ri(l,_/2)}(l)},calcCardinalityPosition:(l,f,_)=>{Lt.info(`our points ${JSON.stringify(f)}`),f[0]!==_&&(f=f.reverse());const k=Ri(f,25),L=l?10:5,H=Math.atan2(f[0].y-k.y,f[0].x-k.x),ne={x:0,y:0};return ne.x=Math.sin(H)*L+(f[0].x+k.x)/2,ne.y=-Math.cos(H)*L+(f[0].y+k.y)/2,ne},calcTerminalLabelPosition:function Lo(l,f,_){const x=structuredClone(_);Lt.info("our points",x),"start_left"!==f&&"start_right"!==f&&x.reverse();const L=Ri(x,25+l),H=10+.5*l,ne=Math.atan2(x[0].y-L.y,x[0].x-L.x),se={x:0,y:0};return"start_left"===f?(se.x=Math.sin(ne+Math.PI)*H+(x[0].x+L.x)/2,se.y=-Math.cos(ne+Math.PI)*H+(x[0].y+L.y)/2):"end_right"===f?(se.x=Math.sin(ne-Math.PI)*H+(x[0].x+L.x)/2-5,se.y=-Math.cos(ne-Math.PI)*H+(x[0].y+L.y)/2-5):"end_left"===f?(se.x=Math.sin(ne)*H+(x[0].x+L.x)/2-5,se.y=-Math.cos(ne)*H+(x[0].y+L.y)/2-5):(se.x=Math.sin(ne)*H+(x[0].x+L.x)/2,se.y=-Math.cos(ne)*H+(x[0].y+L.y)/2),se},formatUrl:function B(l,f){const _=l.trim();if(_)return"loose"!==f.securityLevel?(0,q.N)(_):_},getStylesFromArray:pi,generateId:gr,random:Kt,runFunc:(l,...f)=>{const _=l.split("."),x=_.length-1,k=_[x];let L=window;for(let H=0;H{var k;if(!x)return;const L=null==(k=l.node())?void 0:k.getBBox();L&&l.append("text").text(x).attr("x",L.x+L.width/2).attr("y",-_).attr("class",f)},parseFontSize:Md,InitIDGenerator:class y_{constructor(f=!1,_){this.count=0,this.count=_?_.length:0,this.next=f?()=>this.count++:()=>Date.now()}}},Ss=function(l){return l.replace(/\ufb02\xb0\xb0/g,"&#").replace(/\ufb02\xb0/g,"&").replace(/\xb6\xdf/g,";")},ns=Object.freeze(Es);let aa,te=fi({},ns),qn=[],rr=fi({},ns);const Tl=(l,f)=>{let _=fi({},l),x={};for(const k of f)ho(k),x=fi(x,k);if(_=fi(_,x),x.theme&&x.theme in Ti){const k=fi({},aa),L=fi(k.themeVariables||{},x.themeVariables);_.theme&&_.theme in Ti&&(_.themeVariables=Ti[_.theme].getThemeVariables(L))}return rr=_,Sd(rr),rr},hm=()=>fi({},te),As=l=>(Sd(l),fi(rr,l),Li()),Li=()=>fi({},rr),ho=l=>{l&&(["secure",...te.secure??[]].forEach(f=>{Object.hasOwn(l,f)&&(Lt.debug(`Denied attempt to modify a secure key ${f}`,l[f]),delete l[f])}),Object.keys(l).forEach(f=>{f.startsWith("__")&&delete l[f]}),Object.keys(l).forEach(f=>{"string"==typeof l[f]&&(l[f].includes("<")||l[f].includes(">")||l[f].includes("url(data:"))&&delete l[f],"object"==typeof l[f]&&ho(l[f])}))},is=l=>{ts(l),l.fontFamily&&(!l.themeVariables||!l.themeVariables.fontFamily)&&(l.themeVariables={fontFamily:l.fontFamily}),qn.push(l),Tl(te,qn)},Sn=(l=te)=>{qn=[],Tl(l,qn)},kd={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},vc={},Sd=l=>{l&&(l.lazyLoadedDiagrams||l.loadExternalDiagramsAtStartup)&&(l=>{vc[l]||(Lt.warn(kd[l]),vc[l]=!0)})("LAZY_LOAD_DEPRECATED")},mm={id:"c4",detector:l=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(592),M.e(167)]).then(M.bind(M,8167));return{id:"c4",diagram:f}});return function(){return l.apply(this,arguments)}}()},Lu="flowchart",la={id:Lu,detector:(l,f)=>{var _,x;return"dagre-wrapper"!==(null==(_=f?.flowchart)?void 0:_.defaultRenderer)&&"elk"!==(null==(x=f?.flowchart)?void 0:x.defaultRenderer)&&/^\s*graph/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(627),M.e(65),M.e(38),M.e(547),M.e(903),M.e(592),M.e(270)]).then(M.bind(M,1270));return{id:Lu,diagram:f}});return function(){return l.apply(this,arguments)}}()},xe="flowchart-v2",_r={id:xe,detector:(l,f)=>{var _,x,k;return"dagre-d3"!==(null==(_=f?.flowchart)?void 0:_.defaultRenderer)&&"elk"!==(null==(x=f?.flowchart)?void 0:x.defaultRenderer)&&(!(!/^\s*graph/.test(l)||"dagre-wrapper"!==(null==(k=f?.flowchart)?void 0:k.defaultRenderer))||/^\s*flowchart/.test(l))},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(627),M.e(65),M.e(38),M.e(547),M.e(903),M.e(592),M.e(730)]).then(M.bind(M,4730));return{id:xe,diagram:f}});return function(){return l.apply(this,arguments)}}()},un={id:"er",detector:l=>/^\s*erDiagram/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(770)]).then(M.bind(M,8770));return{id:"er",diagram:f}});return function(){return l.apply(this,arguments)}}()},ri="gitGraph",kl={id:ri,detector:l=>/^\s*gitGraph/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(44).then(M.bind(M,8044));return{id:ri,diagram:f}});return function(){return l.apply(this,arguments)}}()},pm={id:"gantt",detector:l=>/^\s*gantt/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(831).then(M.bind(M,6831));return{id:"gantt",diagram:f}});return function(){return l.apply(this,arguments)}}()},br={id:"info",detector:l=>/^\s*info/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(919).then(M.bind(M,6919));return{id:"info",diagram:f}});return function(){return l.apply(this,arguments)}}()},wc={id:"pie",detector:l=>/^\s*pie/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(633).then(M.bind(M,4633));return{id:"pie",diagram:f}});return function(){return l.apply(this,arguments)}}()},Bu="quadrantChart",_m={id:Bu,detector:l=>/^\s*quadrantChart/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(463).then(M.bind(M,463));return{id:Bu,diagram:f}});return function(){return l.apply(this,arguments)}}()},Dc="xychart",v_={id:Dc,detector:l=>/^\s*xychart-beta/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(627),M.e(474)]).then(M.bind(M,474));return{id:Dc,diagram:f}});return function(){return l.apply(this,arguments)}}()},Yr="requirement",Fd={id:Yr,detector:l=>/^\s*requirement(Diagram)?/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(499)]).then(M.bind(M,2179));return{id:Yr,diagram:f}});return function(){return l.apply(this,arguments)}}()},Co="sequence",tp={id:Co,detector:l=>/^\s*sequenceDiagram/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(592),M.e(594)]).then(M.bind(M,7594));return{id:Co,diagram:f}});return function(){return l.apply(this,arguments)}}()},w_={id:"class",detector:(l,f)=>{var _;return"dagre-wrapper"!==(null==(_=f?.class)?void 0:_.defaultRenderer)&&/^\s*classDiagram/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(880),M.e(233)]).then(M.bind(M,2233));return{id:"class",diagram:f}});return function(){return l.apply(this,arguments)}}()},ip="classDiagram",D_={id:ip,detector:(l,f)=>{var _;return!(!/^\s*classDiagram/.test(l)||"dagre-wrapper"!==(null==(_=f?.class)?void 0:_.defaultRenderer))||/^\s*classDiagram-v2/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(627),M.e(65),M.e(38),M.e(547),M.e(880),M.e(165)]).then(M.bind(M,3165));return{id:ip,diagram:f}});return function(){return l.apply(this,arguments)}}()},T_={id:"state",detector:(l,f)=>{var _;return"dagre-wrapper"!==(null==(_=f?.state)?void 0:_.defaultRenderer)&&/^\s*stateDiagram/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(839),M.e(325)]).then(M.bind(M,9325));return{id:"state",diagram:f}});return function(){return l.apply(this,arguments)}}()},sp="stateDiagram",ci={id:sp,detector:(l,f)=>{var _;return!!(/^\s*stateDiagram-v2/.test(l)||/^\s*stateDiagram/.test(l)&&"dagre-wrapper"===(null==(_=f?.state)?void 0:_.defaultRenderer))},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(627),M.e(65),M.e(38),M.e(547),M.e(839),M.e(400)]).then(M.bind(M,8400));return{id:sp,diagram:f}});return function(){return l.apply(this,arguments)}}()},Hu="journey",vm={id:Hu,detector:l=>/^\s*journey/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(592),M.e(820)]).then(M.bind(M,6881));return{id:Hu,diagram:f}});return function(){return l.apply(this,arguments)}}()},$u=function(l,f,_,x){const k=function(l,f,_){let x=new Map;return _?(x.set("width","100%"),x.set("style",`max-width: ${f}px;`)):(x.set("height",l),x.set("width",f)),x}(f,_,x);!function(l,f){for(let _ of f)l.attr(_[0],_[1])}(l,k)},fo=function(l,f,_,x){const k=f.node().getBBox(),L=k.width,H=k.height;Lt.info(`SVG bounds: ${L}x${H}`,k);let ne=0,se=0;Lt.info(`Graph bounds: ${ne}x${se}`,l),ne=L+2*_,se=H+2*_,Lt.info(`Calculated bounds: ${ne}x${se}`),$u(f,se,ne,x),f.attr("viewBox",`${k.x-_} ${k.y-_} ${k.width+2*_} ${k.height+2*_}`)},po={};let Ec="",Kr="",ju="";const Od=l=>ir(l,Li()),Ba=()=>{Ec="",ju="",Kr=""},Xr=l=>{Ec=Od(l).replace(/^\s+/g,"")},Uu=()=>Ec,Va=l=>{ju=Od(l).replace(/\n\s+/g,"\n")},Ha=()=>ju,Qr=l=>{Kr=Od(l)},Pd=()=>Kr,Vi=Object.freeze(Object.defineProperty({__proto__:null,clear:Ba,getAccDescription:Ha,getAccTitle:Uu,getDiagramTitle:Pd,setAccDescription:Va,setAccTitle:Xr,setDiagramTitle:Qr},Symbol.toStringTag,{value:"Module"})),kt=Lt,Wu=pl,Mc=Li,Rd=As,Ld=ns,cp=l=>ir(l,Mc()),Vo=fo,kc={},Te=(l,f,_)=>{var x;if(kc[l])throw new Error(`Diagram ${l} already registered.`);kc[l]=f,_&&La(l,_),((l,f)=>{void 0!==f&&(po[l]=f)})(l,f.styles),null==(x=f.injectUtils)||x.call(f,kt,Wu,Mc,cp,Vo,Vi,()=>{})},Tn=l=>{if(l in kc)return kc[l];throw new He(l)};class He extends Error{constructor(f){super(`Diagram ${f} not found.`)}}const je=l=>{var f;const{securityLevel:_}=Mc();let x=(0,z.Ys)("body");if("sandbox"===_){const H=(null==(f=(0,z.Ys)(`#i${l}`).node())?void 0:f.contentDocument)??document;x=(0,z.Ys)(H.body)}return x.select(`#${l}`)},Gu={draw:(l,f,_)=>{Lt.debug("rendering svg for syntax error\n");const x=je(f),k=x.append("g");x.attr("viewBox","0 0 2412 512"),$u(x,100,512,!0),k.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),k.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),k.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),k.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),k.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),k.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),k.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),k.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${_}`)}},za=Gu,wm={db:{},renderer:Gu,parser:{parser:{yy:{}},parse:()=>{}}},Zu="flowchart-elk",Fr={id:Zu,detector:(l,f)=>{var _;return!!(/^\s*flowchart-elk/.test(l)||/^\s*flowchart|graph/.test(l)&&"elk"===(null==(_=f?.flowchart)?void 0:_.defaultRenderer))},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(627),M.e(38),M.e(903),M.e(690)]).then(M.bind(M,5690));return{id:Zu,diagram:f}});return function(){return l.apply(this,arguments)}}()},os="timeline",dp={id:os,detector:l=>/^\s*timeline/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(609).then(M.bind(M,2609));return{id:os,diagram:f}});return function(){return l.apply(this,arguments)}}()},Ku="mindmap",Bd={id:Ku,detector:l=>/^\s*mindmap/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(627),M.e(728)]).then(M.bind(M,9728));return{id:Ku,diagram:f}});return function(){return l.apply(this,arguments)}}()},eh={id:"sankey",detector:l=>/^\s*sankey-beta/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(917).then(M.bind(M,7917));return{id:"sankey",diagram:f}});return function(){return l.apply(this,arguments)}}()},Ac={id:"block",detector:l=>/^\s*block-beta/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(627),M.e(38),M.e(592),M.e(407)]).then(M.bind(M,7772));return{id:"block",diagram:f}});return function(){return l.apply(this,arguments)}}()};let zd=!1;const Ic=()=>{zd||(zd=!0,Te("error",wm,l=>"error"===l.toLowerCase().trim()),Te("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},l=>l.toLowerCase().trimStart().startsWith("---")),fr(mm,D_,w_,un,pm,br,wc,Fd,tp,Fr,_r,la,Bd,dp,kl,ci,T_,vm,_m,eh,v_,Ac))};class qi{constructor(f,_={}){this.text=f,this.metadata=_,this.type="graph",this.text=function(l){let f=l;return f=f.replace(/style.*:\S*#.*;/g,function(_){return _.substring(0,_.length-1)}),f=f.replace(/classDef.*:\S*#.*;/g,function(_){return _.substring(0,_.length-1)}),f=f.replace(/#\w+;/g,function(_){const x=_.substring(1,_.length-1);return/^\+?\d+$/.test(x)?"\ufb02\xb0\xb0"+x+"\xb6\xdf":"\ufb02\xb0"+x+"\xb6\xdf"}),f}(f),this.text+="\n";const x=Li();try{this.type=mr(f,x)}catch(L){this.type="error",this.detectError=L}const k=Tn(this.type);Lt.debug("Type "+this.type),this.db=k.db,this.renderer=k.renderer,this.parser=k.parser,this.parser.parser.yy=this.db,this.init=k.init,this.parse()}parse(){var f,_,x,k,L;if(this.detectError)throw this.detectError;null==(_=(f=this.db).clear)||_.call(f);const H=Li();null==(x=this.init)||x.call(this,H),this.metadata.title&&(null==(L=(k=this.db).setDiagramTitle)||L.call(k,this.metadata.title)),this.parser.parse(this.text)}render(f,_){var x=this;return(0,j.Z)(function*(){yield x.renderer.draw(x.text,f,_,x)})()}getParser(){return this.parser}getType(){return this.type}}const da=function(){var l=(0,j.Z)(function*(f,_={}){const x=mr(f,Li());try{Tn(x)}catch{const L=(l=>Ur[l].loader)(x);if(!L)throw new oa(`Diagram ${x} not found.`);const{id:H,diagram:ne}=yield L();Te(H,ne)}return new qi(f,_)});return function(_){return l.apply(this,arguments)}}();let gi=[];const hp=l=>l.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function mp(l){return typeof l>"u"||null===l}var vr={isNothing:mp,isObject:function jd(l){return"object"==typeof l&&null!==l},toArray:function ja(l){return Array.isArray(l)?l:mp(l)?[]:[l]},repeat:function Ud(l,f){var x,_="";for(x=0;xne&&(f=x-ne+(L=" ... ").length),_-x>ne&&(_=x+ne-(H=" ...").length),{str:L+l.slice(f,_).replace(/\t/g,"\u2192")+H,pos:x-f+L.length}}function Oc(l,f){return vr.repeat(" ",f-l.length)+l}var km=function Pc(l,f){if(f=Object.create(f||null),!l.buffer)return null;f.maxLength||(f.maxLength=79),"number"!=typeof f.indent&&(f.indent=1),"number"!=typeof f.linesBefore&&(f.linesBefore=3),"number"!=typeof f.linesAfter&&(f.linesAfter=2);for(var L,_=/\r?\n|\r|\0/g,x=[0],k=[],H=-1;L=_.exec(l.buffer);)k.push(L.index),x.push(L.index+L[0].length),l.position<=L.index&&H<0&&(H=x.length-2);H<0&&(H=x.length-1);var se,Ee,ne="",Qe=Math.min(l.line+f.linesAfter,k.length).toString().length,Me=f.maxLength-(f.indent+Qe+3);for(se=1;se<=f.linesBefore&&!(H-se<0);se++)Ee=Mm(l.buffer,x[H-se],k[H-se],l.position-(x[H]-x[H-se]),Me),ne=vr.repeat(" ",f.indent)+Oc((l.line-se+1).toString(),Qe)+" | "+Ee.str+"\n"+ne;for(Ee=Mm(l.buffer,x[H],k[H],l.position,Me),ne+=vr.repeat(" ",f.indent)+Oc((l.line+1).toString(),Qe)+" | "+Ee.str+"\n",ne+=vr.repeat("-",f.indent+Qe+3+Ee.pos)+"^\n",se=1;se<=f.linesAfter&&!(H+se>=k.length);se++)Ee=Mm(l.buffer,x[H+se],k[H+se],l.position-(x[H]-x[H+se]),Me),ne+=vr.repeat(" ",f.indent)+Oc((l.line+se+1).toString(),Qe)+" | "+Ee.str+"\n";return ne.replace(/\n$/,"")},Wa=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Gd=["scalar","sequence","mapping"],Yi=function Zd(l,f){if(f=f||{},Object.keys(f).forEach(function(_){if(-1===Wa.indexOf(_))throw new ha('Unknown option "'+_+'" is met in definition of "'+l+'" YAML type.')}),this.options=f,this.tag=l,this.kind=f.kind||null,this.resolve=f.resolve||function(){return!0},this.construct=f.construct||function(_){return _},this.instanceOf=f.instanceOf||null,this.predicate=f.predicate||null,this.represent=f.represent||null,this.representName=f.representName||null,this.defaultStyle=f.defaultStyle||null,this.multi=f.multi||!1,this.styleAliases=function Rc(l){var f={};return null!==l&&Object.keys(l).forEach(function(_){l[_].forEach(function(x){f[String(x)]=_})}),f}(f.styleAliases||null),-1===Gd.indexOf(this.kind))throw new ha('Unknown kind "'+this.kind+'" is specified for "'+l+'" YAML type.')};function Lc(l,f){var _=[];return l[f].forEach(function(x){var k=_.length;_.forEach(function(L,H){L.tag===x.tag&&L.kind===x.kind&&L.multi===x.multi&&(k=H)}),_[k]=x}),_}function Nc(l){return this.extend(l)}Nc.prototype.extend=function(f){var _=[],x=[];if(f instanceof Yi)x.push(f);else if(Array.isArray(f))x=x.concat(f);else{if(!f||!Array.isArray(f.implicit)&&!Array.isArray(f.explicit))throw new ha("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.implicit&&(_=_.concat(f.implicit)),f.explicit&&(x=x.concat(f.explicit))}_.forEach(function(L){if(!(L instanceof Yi))throw new ha("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(L.loadKind&&"scalar"!==L.loadKind)throw new ha("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(L.multi)throw new ha("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),x.forEach(function(L){if(!(L instanceof Yi))throw new ha("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var k=Object.create(Nc.prototype);return k.implicit=(this.implicit||[]).concat(_),k.explicit=(this.explicit||[]).concat(x),k.compiledImplicit=Lc(k,"implicit"),k.compiledExplicit=Lc(k,"explicit"),k.compiledTypeMap=function rh(){var f,_,l={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function x(k){k.multi?(l.multi[k.kind].push(k),l.multi.fallback.push(k)):l[k.kind][k.tag]=l.fallback[k.tag]=k}for(f=0,_=arguments.length;f<_;f+=1)arguments[f].forEach(x);return l}(k.compiledImplicit,k.compiledExplicit),k};var as=new Nc({explicit:[new Yi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(l){return null!==l?l:""}}),new Yi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(l){return null!==l?l:[]}}),new Yi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(l){return null!==l?l:{}}})]}),Am=new Yi("tag:yaml.org,2002:null",{kind:"scalar",resolve:function F_(l){if(null===l)return!0;var f=l.length;return 1===f&&"~"===l||4===f&&("null"===l||"Null"===l||"NULL"===l)},construct:function Bc(){return null},predicate:function oh(l){return null===l},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),Im=new Yi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function sh(l){if(null===l)return!1;var f=l.length;return 4===f&&("true"===l||"True"===l||"TRUE"===l)||5===f&&("false"===l||"False"===l||"FALSE"===l)},construct:function ah(l){return"true"===l||"True"===l||"TRUE"===l},predicate:function lh(l){return"[object Boolean]"===Object.prototype.toString.call(l)},represent:{lowercase:function(l){return l?"true":"false"},uppercase:function(l){return l?"TRUE":"FALSE"},camelcase:function(l){return l?"True":"False"}},defaultStyle:"lowercase"});function Fm(l){return 48<=l&&l<=57||65<=l&&l<=70||97<=l&&l<=102}function Om(l){return 48<=l&&l<=55}function ch(l){return 48<=l&&l<=57}var bp=new Yi("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Ol(l){if(null===l)return!1;var k,f=l.length,_=0,x=!1;if(!f)return!1;if(("-"===(k=l[_])||"+"===k)&&(k=l[++_]),"0"===k){if(_+1===f)return!0;if("b"===(k=l[++_])){for(_++;_=0?"0b"+l.toString(2):"-0b"+l.toString(2).slice(1)},octal:function(l){return l>=0?"0o"+l.toString(8):"-0o"+l.toString(8).slice(1)},decimal:function(l){return l.toString(10)},hexadecimal:function(l){return l>=0?"0x"+l.toString(16).toUpperCase():"-0x"+l.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Pm=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Rm=/^[-+]?[0-9]+e/,uh=new Yi("tag:yaml.org,2002:float",{kind:"scalar",resolve:function dh(l){return!(null===l||!Pm.test(l)||"_"===l[l.length-1])},construct:function Rl(l){var f,_;return _="-"===(f=l.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(f[0])>=0&&(f=f.slice(1)),".inf"===f?1===_?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===f?NaN:_*parseFloat(f,10)},predicate:function Ll(l){return"[object Number]"===Object.prototype.toString.call(l)&&(l%1!=0||vr.isNegativeZero(l))},represent:function Yn(l,f){var _;if(isNaN(l))switch(f){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===l)switch(f){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===l)switch(f){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(vr.isNegativeZero(l))return"-0.0";return _=l.toString(10),Rm.test(_)?_.replace("e",".e"):_},defaultStyle:"lowercase"}),hh=as.extend({implicit:[Am,Im,bp,uh]}),go=hh,xo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Za=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),qa=new Yi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function Nl(l){return null!==l&&(null!==xo.exec(l)||null!==Za.exec(l))},construct:function Lm(l){var f,_,x,k,L,H,ne,Q,se=0,Ee=null;if(null===(f=xo.exec(l))&&(f=Za.exec(l)),null===f)throw new Error("Date resolve error");if(_=+f[1],x=+f[2]-1,k=+f[3],!f[4])return new Date(Date.UTC(_,x,k));if(L=+f[4],H=+f[5],ne=+f[6],f[7]){for(se=f[7].slice(0,3);se.length<3;)se+="0";se=+se}return f[9]&&(Ee=6e4*(60*+f[10]+ +(f[11]||0)),"-"===f[9]&&(Ee=-Ee)),Q=new Date(Date.UTC(_,x,k,L,H,ne,se)),Ee&&Q.setTime(Q.getTime()-Ee),Q},instanceOf:Date,represent:function mh(l){return l.toISOString()}}),Nm=new Yi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function O_(l){return"<<"===l||null===l}}),ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",fh=new Yi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function yp(l){if(null===l)return!1;var f,_,x=0,k=l.length,L=ye;for(_=0;_64)){if(f<0)return!1;x+=6}return x%8==0},construct:function vp(l){var f,_,x=l.replace(/[\r\n=]/g,""),k=x.length,L=ye,H=0,ne=[];for(f=0;f>16&255),ne.push(H>>8&255),ne.push(255&H)),H=H<<6|L.indexOf(x.charAt(f));return 0==(_=k%4*6)?(ne.push(H>>16&255),ne.push(H>>8&255),ne.push(255&H)):18===_?(ne.push(H>>10&255),ne.push(H>>2&255)):12===_&&ne.push(H>>4&255),new Uint8Array(ne)},predicate:function P_(l){return"[object Uint8Array]"===Object.prototype.toString.call(l)},represent:function Cp(l){var x,k,f="",_=0,L=l.length,H=ye;for(x=0;x>18&63],f+=H[_>>12&63],f+=H[_>>6&63],f+=H[63&_]),_=(_<<8)+l[x];return 0==(k=L%3)?(f+=H[_>>18&63],f+=H[_>>12&63],f+=H[_>>6&63],f+=H[63&_]):2===k?(f+=H[_>>10&63],f+=H[_>>4&63],f+=H[_<<2&63],f+=H[64]):1===k&&(f+=H[_>>2&63],f+=H[_<<4&63],f+=H[64],f+=H[64]),f}}),xp=Object.prototype.hasOwnProperty,wp=Object.prototype.toString,L_=new Yi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function Vc(l){if(null===l)return!0;var _,x,k,L,H,f=[],ne=l;for(_=0,x=ne.length;_>10),56320+(l-65536&1023))}for(var us=new Array(256),Bs=new Array(256),ga=0;ga<256;ga++)us[ga]=Mp(ga)?1:0,Bs[ga]=Mp(ga);function Vm(l,f){this.input=l,this.filename=f.filename||null,this.schema=f.schema||Hl,this.onWarning=f.onWarning||null,this.legacy=f.legacy||!1,this.json=f.json||!1,this.listener=f.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=l.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _a(l,f){var _={name:l.filename,buffer:l.input.slice(0,-1),position:l.position,line:l.line,column:l.position-l.lineStart};return _.snippet=km(_),new ha(f,_)}function wt(l,f){throw _a(l,f)}function Vs(l,f){l.onWarning&&l.onWarning.call(null,_a(l,f))}var kp={YAML:function(f,_,x){var k,L,H;null!==f.version&&wt(f,"duplication of %YAML directive"),1!==x.length&&wt(f,"YAML directive accepts exactly one argument"),null===(k=/^([0-9]+)\.([0-9]+)$/.exec(x[0]))&&wt(f,"ill-formed argument of the YAML directive"),L=parseInt(k[1],10),H=parseInt(k[2],10),1!==L&&wt(f,"unacceptable YAML version of the document"),f.version=x[0],f.checkLineBreaks=H<2,1!==H&&2!==H&&Vs(f,"unsupported YAML version of the document")},TAG:function(f,_,x){var k,L;2!==x.length&&wt(f,"TAG directive accepts exactly two arguments"),L=x[1],Dp.test(k=x[0])||wt(f,"ill-formed tag handle (first argument) of the TAG directive"),cs.call(f.tagMap,k)&&wt(f,'there is a previously declared suffix for "'+k+'" tag handle'),$c.test(L)||wt(f,"ill-formed tag prefix (second argument) of the TAG directive");try{L=decodeURIComponent(L)}catch{wt(f,"tag prefix is malformed: "+L)}f.tagMap[k]=L}};function $l(l,f,_,x){var k,L,H,ne;if(f<_){if(ne=l.input.slice(f,_),x)for(k=0,L=ne.length;k1&&(l.result+=vr.repeat("\n",f-1))}function _h(l,f){var _,se,x=l.tag,k=l.anchor,L=[],ne=!1;if(-1!==l.firstTabInLine)return!1;for(null!==l.anchor&&(l.anchorMap[l.anchor]=L),se=l.input.charCodeAt(l.position);0!==se&&(-1!==l.firstTabInLine&&(l.position=l.firstTabInLine,wt(l,"tab characters must not be used in indentation")),45===se&&vi(l.input.charCodeAt(l.position+1)));)if(ne=!0,l.position++,$i(l,!0,-1)&&l.lineIndent<=f)L.push(null),se=l.input.charCodeAt(l.position);else if(_=l.line,Kd(l,f,zi,!1,!0),L.push(l.result),$i(l,!0,-1),se=l.input.charCodeAt(l.position),(l.line===_||l.lineIndent>f)&&0!==se)wt(l,"bad indentation of a sequence entry");else if(l.lineIndentf?se=1:l.lineIndent===f?se=0:l.lineIndentf?se=1:l.lineIndent===f?se=0:l.lineIndentf)&&(pn&&(H=l.line,ne=l.lineStart,se=l.position),Kd(l,f,Ni,!0,k)&&(pn?qt=l.result:rn=l.result),pn||(jc(l,Me,Q,ke,qt,rn,H,ne,se),ke=qt=rn=null),$i(l,!0,-1),St=l.input.charCodeAt(l.position)),(l.line===L||l.lineIndent>f)&&0!==St)wt(l,"bad indentation of a mapping entry");else if(l.lineIndent=0))break;0===Qe?wt(l,"bad explicit indentation width of a block scalar; it cannot be less than one"):H?wt(l,"repeat of an indentation width identifier"):(ne=f+Qe-1,H=!0)}if(ma(Me)){do{Me=l.input.charCodeAt(++l.position)}while(ma(Me));if(35===Me)do{Me=l.input.charCodeAt(++l.position)}while(!zo(Me)&&0!==Me)}for(;0!==Me;){for(Sp(l),l.lineIndent=0,Me=l.input.charCodeAt(l.position);(!H||l.lineIndentne&&(ne=l.lineIndent),zo(Me))se++;else{if(l.lineIndent0){for(k=H,L=0;k>0;k--)(H=ds(ne=l.input.charCodeAt(++l.position)))>=0?L=(L<<4)+H:wt(l,"expected hexadecimal character");l.result+=pa(L),l.position++}else wt(l,"unknown escape sequence");_=x=l.position}else zo(ne)?($l(l,_,x,!0),Hs(l,$i(l,!1,f)),_=x=l.position):l.position===l.lineStart&&gh(l)?wt(l,"unexpected end of the document within a double quoted scalar"):(l.position++,x=l.position)}wt(l,"unexpected end of the stream within a double quoted scalar")}(l,rn)?Qe=!0:function $m(l){var f,_,x;if(42!==(x=l.input.charCodeAt(l.position)))return!1;for(x=l.input.charCodeAt(++l.position),f=l.position;0!==x&&!vi(x)&&!fa(x);)x=l.input.charCodeAt(++l.position);return l.position===f&&wt(l,"name of an alias node must contain at least one character"),_=l.input.slice(f,l.position),cs.call(l.anchorMap,_)||wt(l,'unidentified alias "'+_+'"'),l.result=l.anchorMap[_],$i(l,!0,-1),!0}(l)?(Qe=!0,(null!==l.tag||null!==l.anchor)&&wt(l,"alias node should not have any properties")):function jl(l,f,_){var k,L,H,ne,se,Ee,Qe,ke,Me=l.kind,Q=l.result;if(vi(ke=l.input.charCodeAt(l.position))||fa(ke)||35===ke||38===ke||42===ke||33===ke||124===ke||62===ke||39===ke||34===ke||37===ke||64===ke||96===ke||(63===ke||45===ke)&&(vi(k=l.input.charCodeAt(l.position+1))||_&&fa(k)))return!1;for(l.kind="scalar",l.result="",L=H=l.position,ne=!1;0!==ke;){if(58===ke){if(vi(k=l.input.charCodeAt(l.position+1))||_&&fa(k))break}else if(35===ke){if(vi(l.input.charCodeAt(l.position-1)))break}else{if(l.position===l.lineStart&&gh(l)||_&&fa(ke))break;if(zo(ke)){if(se=l.line,Ee=l.lineStart,Qe=l.lineIndent,$i(l,!1,-1),l.lineIndent>=f){ne=!0,ke=l.input.charCodeAt(l.position);continue}l.position=H,l.line=se,l.lineStart=Ee,l.lineIndent=Qe;break}}ne&&($l(l,L,H,!1),Hs(l,l.line-se),L=H=l.position,ne=!1),ma(ke)||(H=l.position+1),ke=l.input.charCodeAt(++l.position)}return $l(l,L,H,!1),!!l.result||(l.kind=Me,l.result=Q,!1)}(l,rn,Hc===_)&&(Qe=!0,null===l.tag&&(l.tag="?")),null!==l.anchor&&(l.anchorMap[l.anchor]=l.result)):0===se&&(Qe=ne&&_h(l,pn))),null===l.tag)null!==l.anchor&&(l.anchorMap[l.anchor]=l.result);else if("?"===l.tag){for(null!==l.result&&"scalar"!==l.kind&&wt(l,'unacceptable node kind for ! tag; it should be "scalar", not "'+l.kind+'"'),Me=0,Q=l.implicitTypes.length;Me"),null!==l.result&&qt.kind!==l.kind&&wt(l,"unacceptable node kind for !<"+l.tag+'> tag; it should be "'+qt.kind+'", not "'+l.kind+'"'),qt.resolve(l.result,l.tag)?(l.result=qt.construct(l.result,l.tag),null!==l.anchor&&(l.anchorMap[l.anchor]=l.result)):wt(l,"cannot resolve a node with !<"+l.tag+"> explicit tag")}return null!==l.listener&&l.listener("close",l),null!==l.tag||null!==l.anchor||Qe}function Cv(l){var _,x,k,H,f=l.position,L=!1;for(l.version=null,l.checkLineBreaks=l.legacy,l.tagMap=Object.create(null),l.anchorMap=Object.create(null);0!==(H=l.input.charCodeAt(l.position))&&($i(l,!0,-1),H=l.input.charCodeAt(l.position),!(l.lineIndent>0||37!==H));){for(L=!0,H=l.input.charCodeAt(++l.position),_=l.position;0!==H&&!vi(H);)H=l.input.charCodeAt(++l.position);for(k=[],(x=l.input.slice(_,l.position)).length<1&&wt(l,"directive name must not be less than one character in length");0!==H;){for(;ma(H);)H=l.input.charCodeAt(++l.position);if(35===H){do{H=l.input.charCodeAt(++l.position)}while(0!==H&&!zo(H));break}if(zo(H))break;for(_=l.position;0!==H&&!vi(H);)H=l.input.charCodeAt(++l.position);k.push(l.input.slice(_,l.position))}0!==H&&Sp(l),cs.call(kp,x)?kp[x](l,x,k):Vs(l,'unknown document directive "'+x+'"')}$i(l,!0,-1),0===l.lineIndent&&45===l.input.charCodeAt(l.position)&&45===l.input.charCodeAt(l.position+1)&&45===l.input.charCodeAt(l.position+2)?(l.position+=3,$i(l,!0,-1)):L&&wt(l,"directives end mark is expected"),Kd(l,l.lineIndent-1,Ni,!1,!0),$i(l,!0,-1),l.checkLineBreaks&&B_.test(l.input.slice(f,l.position))&&Vs(l,"non-ASCII line breaks are interpreted as content"),l.documents.push(l.result),l.position===l.lineStart&&gh(l)?46===l.input.charCodeAt(l.position)&&(l.position+=3,$i(l,!0,-1)):l.positionl.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(f,_,x)=>"<"+_+x.replace(/="([^"]*)"/g,"='$1'")+">"),vh=l=>{const{text:f,metadata:_}=function hs(l){const f=l.match(ks);if(!f)return{text:l,metadata:{}};let _=Fp(f[1],{schema:zs})??{};_="object"!=typeof _||Array.isArray(_)?{}:_;const x={};return _.displayMode&&(x.displayMode=_.displayMode.toString()),_.title&&(x.title=_.title.toString()),_.config&&(x.config=_.config),{text:l.slice(f[0].length),metadata:x}}(l),{displayMode:x,title:k,config:L={}}=_;return x&&(L.gantt||(L.gantt={}),L.gantt.displayMode=x),{title:k,config:L,text:f}},Pp=l=>{const f=sa.detectInit(l)??{},_=sa.detectDirective(l,"wrap");return Array.isArray(_)?f.wrap=_.some(({})=>{}):"wrap"===_?.type&&(f.wrap=!0),{text:_c(l),directive:f}};function Jr(l){const f=Op(l),_=vh(f),x=Pp(_.text),k=Pu(_.config,x.directive);return{code:l=hp(x.text),title:_.title,config:k}}const Ul=["foreignobject"],xh=["dominant-baseline"];function or(l){const f=Jr(l);return Sn(),is(f.config??{}),f}function Qd(){return(Qd=(0,j.Z)(function*(l,f){Ic(),l=or(l).code;try{yield Zc(l)}catch(_){if(f?.suppressErrors)return!1;throw _}return!0})).apply(this,arguments)}const wh=(l,f,_=[])=>`\n.${l} ${f} { ${_.join(" !important; ")} !important; }`,Dh=(l,f,_,x)=>{const k=((l,f={})=>{var _;let x="";if(void 0!==l.themeCSS&&(x+=`\n${l.themeCSS}`),void 0!==l.fontFamily&&(x+=`\n:root { --mermaid-font-family: ${l.fontFamily}}`),void 0!==l.altFontFamily&&(x+=`\n:root { --mermaid-alt-font-family: ${l.altFontFamily}}`),!(0,fl.Z)(f)){const ne=l.htmlLabels||(null==(_=l.flowchart)?void 0:_.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const se in f){const Ee=f[se];(0,fl.Z)(Ee.styles)||ne.forEach(Qe=>{x+=wh(Ee.id,Qe,Ee.styles)}),(0,fl.Z)(Ee.textStyles)||(x+=wh(Ee.id,"tspan",Ee.textStyles))}}return x})(l,_);return pd(ml(`${x}{${((l,f,_)=>{let x="";return l in po&&po[l]?x=po[l](_):Lt.warn(`No theme found for ${l}`),` & {\n font-family: ${_.fontFamily};\n font-size: ${_.fontSize};\n fill: ${_.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${_.errorBkgColor};\n }\n & .error-text {\n fill: ${_.errorTextColor};\n stroke: ${_.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${_.lineColor};\n stroke: ${_.lineColor};\n }\n & .marker.cross {\n stroke: ${_.lineColor};\n }\n\n & svg {\n font-family: ${_.fontFamily};\n font-size: ${_.fontSize};\n }\n\n ${x}\n\n ${f}\n`})(f,k,l.themeVariables)}}`),En)},Zm=(l,f,_,x,k)=>{const L=l.append("div");L.attr("id",_),x&&L.attr("style",x);const H=L.append("svg").attr("id",f).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return k&&H.attr("xmlns:xlink",k),H.append("g"),l};function Jd(l,f){return l.append("iframe").attr("id",f).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const qm=function(){var l=(0,j.Z)(function*(f,_,x){var k,L,H,ne,se,Ee;Ic();const Qe=or(_);_=Qe.code;const Me=Li();Lt.debug(Me),_.length>(Me?.maxTextSize??5e4)&&(_="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const Q="#"+f,ke="i"+f,qt="#"+ke,rn="d"+f,pn="#"+rn;let an=(0,z.Ys)("body");const St="sandbox"===Me.securityLevel,Pr="loose"===Me.securityLevel,$s=Me.fontFamily;if(void 0!==x){if(x&&(x.innerHTML=""),St){const jo=Jd((0,z.Ys)(x),ke);an=(0,z.Ys)(jo.nodes()[0].contentDocument.body),an.node().style.margin=0}else an=(0,z.Ys)(x);Zm(an,f,rn,`font-family: ${$s}`,"http://www.w3.org/1999/xlink")}else{if(((l,f,_,x)=>{var k,L,H;null==(k=l.getElementById(f))||k.remove(),null==(L=l.getElementById(_))||L.remove(),null==(H=l.getElementById(x))||H.remove()})(document,f,rn,ke),St){const jo=Jd((0,z.Ys)("body"),ke);an=(0,z.Ys)(jo.nodes()[0].contentDocument.body),an.node().style.margin=0}else an=(0,z.Ys)("body");Zm(an,f,rn)}let Ei,sr;try{Ei=yield Zc(_,{title:Qe.title})}catch(jo){Ei=new qi("error"),sr=jo}const oi=an.select(pn).node(),iu=Ei.type,ru=oi.firstChild,Sh=ru.firstChild,qc=null==(L=(k=Ei.renderer).getClasses)?void 0:L.call(k,_,Ei),Xm=Dh(Me,iu,qc,Q),ou=document.createElement("style");ou.innerHTML=Xm,ru.insertBefore(ou,Sh);try{yield Ei.renderer.draw(_,f,"10.9.1",Ei)}catch(jo){throw za.draw(_,f,"10.9.1"),jo}(function zp(l,f,_,x){(function $d(l,f){l.attr("role","graphics-document document"),""!==f&&l.attr("aria-roledescription",f)})(f,l),function Tm(l,f,_,x){if(void 0!==l.insert){if(_){const k=`chart-desc-${x}`;l.attr("aria-describedby",k),l.insert("desc",":first-child").attr("id",k).text(_)}if(f){const k=`chart-title-${x}`;l.attr("aria-labelledby",k),l.insert("title",":first-child").attr("id",k).text(f)}}}(f,_,x,f.attr("id"))})(iu,an.select(`${pn} svg`),null==(ne=(H=Ei.db).getAccTitle)?void 0:ne.call(H),null==(Ee=(se=Ei.db).getAccDescription)?void 0:Ee.call(se)),an.select(`[id="${f}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let ba=an.select(pn).node().innerHTML;if(Lt.debug("config.arrowMarkerAbsolute",Me.arrowMarkerAbsolute),ba=((l="",f,_)=>{let x=l;return!_&&!f&&(x=x.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),x=Ss(x),x=x.replace(/
/g,"
"),x})(ba,St,ia(Me.arrowMarkerAbsolute)),St?ba=((l="",f)=>{var _,x;return``})(ba,an.select(pn+" svg").node()):Pr||(ba=ae.sanitize(ba,{ADD_TAGS:Ul,ADD_ATTR:xh})),gi.forEach(l=>{l()}),gi=[],sr)throw sr;const ql=(0,z.Ys)(St?qt:pn).node();return ql&&"remove"in ql&&ql.remove(),{svg:ba,bindFunctions:Ei.db.bindFunctions}});return function(_,x,k){return l.apply(this,arguments)}}(),Zc=(l,f={})=>{const{code:_}=Jr(l);return da(_,f)},$o=Object.freeze({render:qm,parse:function Gc(l,f){return Qd.apply(this,arguments)},getDiagramFromText:Zc,initialize:function Th(l={}){var f;l?.fontFamily&&!(null!=(f=l.themeVariables)&&f.fontFamily)&&(l.themeVariables||(l.themeVariables={}),l.themeVariables.fontFamily=l.fontFamily),(l=>{aa=fi({},l)})(l),l?.theme&&l.theme in Ti?l.themeVariables=Ti[l.theme].getThemeVariables(l.themeVariables):l&&(l.themeVariables=Ti.default.getThemeVariables(l.themeVariables));const _="object"==typeof l?(l=>(te=fi({},ns),te=fi(te,l),l.theme&&Ti[l.theme]&&(te.themeVariables=Ti[l.theme].getThemeVariables(l.themeVariables)),Tl(te,qn),te))(l):hm();pl(_.logLevel),Ic()},getConfig:Li,setConfig:As,getSiteConfig:hm,updateSiteConfig:l=>(te=fi(te,l),Tl(te,qn),te),reset:()=>{Sn()},globalReset:()=>{Sn(ns)},defaultConfig:ns});pl(Li().logLevel),Sn(Li());const $p=function(){var l=(0,j.Z)(function*(){Lt.debug("Loading registered diagrams");const _=(yield Promise.allSettled(Object.entries(Ur).map(function(){var x=(0,j.Z)(function*([k,{detector:L,loader:H}]){if(H)try{Tn(k)}catch{try{const{diagram:se,id:Ee}=yield H();Te(Ee,se,L)}catch(se){throw Lt.error(`Failed to load external diagram with key ${k}. Removing from detectors.`),delete Ur[k],se}}});return function(k){return x.apply(this,arguments)}}()))).filter(x=>"rejected"===x.status);if(_.length>0){Lt.error(`Failed to load ${_.length} external diagrams`);for(const x of _)Lt.error(x);throw new Error(`Failed to load ${_.length} external diagrams`)}});return function(){return l.apply(this,arguments)}}(),jp=(l,f,_)=>{Lt.warn(l),Td(l)?(_&&_(l.str,l.hash),f.push({...l,message:l.str,error:l})):(_&&_(l),l instanceof Error&&f.push({str:l.message,message:l.message,hash:l.name,error:l}))},eu=function(){var l=(0,j.Z)(function*(f={querySelector:".mermaid"}){try{yield tu(f)}catch(_){if(Td(_)&&Lt.error(_.str),Do.parseError&&Do.parseError(_),!f.suppressErrors)throw Lt.error("Use the suppressErrors option to suppress these errors"),_}});return function(){return l.apply(this,arguments)}}(),tu=function(){var l=(0,j.Z)(function*({postRenderCallback:f,querySelector:_,nodes:x}={querySelector:".mermaid"}){const k=$o.getConfig();let L;if(Lt.debug((f?"":"No ")+"Callback function found"),x)L=x;else{if(!_)throw new Error("Nodes and querySelector are both undefined");L=document.querySelectorAll(_)}Lt.debug(`Found ${L.length} diagrams`),void 0!==k?.startOnLoad&&(Lt.debug("Start On Load: "+k?.startOnLoad),$o.updateSiteConfig({startOnLoad:k?.startOnLoad}));const H=new sa.InitIDGenerator(k.deterministicIds,k.deterministicIDSeed);let ne;const se=[];for(const Ee of Array.from(L)){if(Lt.info("Rendering diagram: "+Ee.id),Ee.getAttribute("data-processed"))continue;Ee.setAttribute("data-processed","true");const Qe=`mermaid-${H.next()}`;ne=Ee.innerHTML,ne=(0,J.Z)(sa.entityDecode(ne)).trim().replace(//gi,"
");const Me=sa.detectInit(ne);Me&&Lt.debug("Detected early reinit: ",Me);try{const{svg:Q,bindFunctions:ke}=yield Km(Qe,ne,Ee);Ee.innerHTML=Q,f&&(yield f(Qe)),ke&&ke(Ee)}catch(Q){jp(Q,se,Do.parseError)}}if(se.length>0)throw se[0]});return function(){return l.apply(this,arguments)}}(),Eh=function(l){$o.initialize(l)},Wl=function(){var l=(0,j.Z)(function*(f,_,x){Lt.warn("mermaid.init is deprecated. Please use run instead."),f&&Eh(f);const k={postRenderCallback:x,querySelector:".mermaid"};"string"==typeof _?k.querySelector=_:_&&(k.nodes=_ instanceof HTMLElement?[_]:_),yield eu(k)});return function(_,x,k){return l.apply(this,arguments)}}(),Mh=function(){var l=(0,j.Z)(function*(f,{lazyLoad:_=!0}={}){fr(...f),!1===_&&(yield $p())});return function(_){return l.apply(this,arguments)}}(),nu=function(){if(Do.startOnLoad){const{startOnLoad:l}=$o.getConfig();l&&Do.run().catch(f=>Lt.error("Mermaid failed to initialize",f))}};typeof document<"u"&&window.addEventListener("load",nu,!1);const Gl=[];let kh=!1;const Ym=function(){var l=(0,j.Z)(function*(){if(!kh){for(kh=!0;Gl.length>0;){const f=Gl.shift();if(f)try{yield f()}catch(_){Lt.error("Error executing queue",_)}}kh=!1}});return function(){return l.apply(this,arguments)}}(),Wp=function(){var l=(0,j.Z)(function*(f,_){return new Promise((x,k)=>{Gl.push(()=>new Promise((H,ne)=>{$o.parse(f,_).then(se=>{H(se),x(se)},se=>{var Ee;Lt.error("Error parsing",se),null==(Ee=Do.parseError)||Ee.call(Do,se),ne(se),k(se)})})),Ym().catch(k)})});return function(_,x){return l.apply(this,arguments)}}(),Km=(l,f,_)=>new Promise((x,k)=>{Gl.push(()=>new Promise((H,ne)=>{$o.render(l,f,_).then(se=>{H(se),x(se)},se=>{var Ee;Lt.error("Error parsing",se),null==(Ee=Do.parseError)||Ee.call(Do,se),ne(se),k(se)})})),Ym().catch(k)}),Do={startOnLoad:!0,mermaidAPI:$o,parse:Wp,render:Km,init:Wl,run:eu,registerExternalDiagrams:Mh,initialize:Eh,parseError:void 0,contentLoaded:nu,setParseErrorHandler:function(l){Do.parseError=l},detectType:mr}},5861:(rt,de,M)=>{"use strict";function j(re,q,z,ae,me,_e,X){try{var S=re[_e](X),oe=S.value}catch(Oe){return void z(Oe)}S.done?q(oe):Promise.resolve(oe).then(ae,me)}function J(re){return function(){var q=this,z=arguments;return new Promise(function(ae,me){var _e=re.apply(q,z);function X(oe){j(_e,ae,me,X,S,"next",oe)}function S(oe){j(_e,ae,me,X,S,"throw",oe)}X(void 0)})}}M.d(de,{Z:()=>J})}},rt=>{rt(rt.s=300)}]); \ No newline at end of file +(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[179],{6780:(rt,de)=>{"use strict";de.N=void 0;var j=/^([^\w]*)(javascript|data|vbscript)/im,J=/&#(\w+)(^\w|;)?/g,re=/&(newline|tab);/gi,q=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,z=/^.+(:|:)/gim,ae=[".","/"];de.N=function X(S){var oe=function _e(S){return S.replace(J,function(oe,Oe){return String.fromCharCode(Oe)})}(S||"").replace(re,"").replace(q,"").trim();if(!oe)return"about:blank";if(function me(S){return ae.indexOf(S[0])>-1}(oe))return oe;var Oe=oe.match(z);return Oe&&j.test(Oe[0])?"about:blank":oe}},300:(rt,de,M)=>{"use strict";function j(n){return"function"==typeof n}function J(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const re=J(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function q(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class z{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(j(i))try{i()}catch(o){t=o instanceof re?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{_e(o)}catch(a){t=t??[],a instanceof re?t=[...t,...a.errors]:t.push(a)}}if(t)throw new re(t)}}add(t){var e;if(t&&t!==this)if(this.closed)_e(t);else{if(t instanceof z){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&q(e,t)}remove(t){const{_finalizers:e}=this;e&&q(e,t),t instanceof z&&t._removeParent(this)}}z.EMPTY=(()=>{const n=new z;return n.closed=!0,n})();const ae=z.EMPTY;function me(n){return n instanceof z||n&&"closed"in n&&j(n.remove)&&j(n.add)&&j(n.unsubscribe)}function _e(n){j(n)?n():n.unsubscribe()}const X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},S={setTimeout(n,t,...e){const{delegate:i}=S;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=S;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function oe(n){S.setTimeout(()=>{const{onUnhandledError:t}=X;if(!t)throw n;t(n)})}function Oe(){}const Ne=pe("C",void 0,void 0);function pe(n,t,e){return{kind:n,value:t,error:e}}let he=null;function Ue(n){if(X.useDeprecatedSynchronousErrorHandling){const t=!he;if(t&&(he={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=he;if(he=null,e)throw i}}else n()}class pt extends z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,me(t)&&t.add(this)):this.destination=De}static create(t,e,i){return new dn(t,e,i)}next(t){this.isStopped?We(function Y(n){return pe("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?We(function be(n){return pe("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?We(Ne,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Tt=Function.prototype.bind;function cn(n,t){return Tt.call(n,t)}class Fe{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Qn(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Qn(i)}else Qn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Qn(e)}}}class dn extends pt{constructor(t,e,i){let r;if(super(),j(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&X.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&cn(t.next,o),error:t.error&&cn(t.error,o),complete:t.complete&&cn(t.complete,o)}):r=t}this.destination=new Fe(r)}}function Qn(n){X.useDeprecatedSynchronousErrorHandling?function Xe(n){X.useDeprecatedSynchronousErrorHandling&&he&&(he.errorThrown=!0,he.error=n)}(n):oe(n)}function We(n,t){const{onStoppedNotification:e}=X;e&&S.setTimeout(()=>e(n,t))}const De={closed:!0,next:Oe,error:function Et(n){throw n},complete:Oe},xt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ge(n){return n}let at=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function Ut(n){return n&&n instanceof pt||function It(n){return n&&j(n.next)&&j(n.error)&&j(n.complete)}(n)&&me(n)}(e)?e:new dn(e,i,r);return Ue(()=>{const{operator:a,source:c}=this;o.add(a?a.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Pn(i))((r,o)=>{const a=new dn({next:c=>{try{e(c)}catch(u){o(u),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[xt](){return this}pipe(...e){return function zt(n){return 0===n.length?Ge:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Pn(e))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return n.create=t=>new n(t),n})();function Pn(n){var t;return null!==(t=n??X.Promise)&&void 0!==t?t:Promise}const yn=J(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ae=(()=>{class n extends at{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Jn(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new yn}next(e){Ue(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ue(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ue(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?ae:(this.currentObservers=null,o.push(e),new z(()=>{this.currentObservers=null,q(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new at;return e.source=this,e}}return n.create=(t,e)=>new Jn(t,e),n})();class Jn extends Ae{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:ae}}function it(n){return t=>{if(function ut(n){return j(n?.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function lt(n,t,e,i,r){return new Cn(n,t,e,i,r)}class Cn extends pt{constructor(t,e,i,r,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(c){try{e(c)}catch(u){t.error(u)}}:super._next,this._error=r?function(c){try{r(c)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Vn(n,t){return it((e,i)=>{let r=0;e.subscribe(lt(i,o=>{i.next(n.call(t,o,r++))}))})}function Ii(n){return this instanceof Ii?(this.v=n,this):new Ii(n)}function Jo(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function kr(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(a){return new Promise(function(c,u){!function r(o,a,c,u){Promise.resolve(u).then(function(m){o({value:m,done:c})},a)}(c,u,(a=n[o](a)).done,a.value)})}}}const Aa=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function ul(n){return j(n?.then)}function bd(n){return j(n[xt])}function hl(n){return Symbol.asyncIterator&&j(n?.[Symbol.asyncIterator])}function ml(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ta=function ur(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ia(n){return j(n?.[ta])}function Fa(n){return function xs(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(F){i[F]&&(r[F]=function(O){return new Promise(function(V,U){o.push([F,O,V,U])>1||c(F,O)})})}function c(F,O){try{!function u(F){F.value instanceof Ii?Promise.resolve(F.value.v).then(m,g):C(o[0][2],F)}(i[F](O))}catch(V){C(o[0][3],V)}}function m(F){c("next",F)}function g(F){c("throw",F)}function C(F,O){F(O),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield Ii(e.read());if(r)return yield Ii(void 0);yield yield Ii(i)}}finally{e.releaseLock()}})}function fl(n){return j(n?.getReader)}function ii(n){if(n instanceof at)return n;if(null!=n){if(bd(n))return function Lt(n){return new at(t=>{const e=n[xt]();if(j(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Aa(n))return function pl(n){return new at(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,oe)})}(n);if(hl(n))return Di(n);if(Ia(n))return function ws(n){return new at(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(fl(n))return function yd(n){return Di(Fa(n))}(n)}throw ml(n)}function Di(n){return new at(t=>{(function Fi(n,t){var e,i,r,o;return function _n(n,t,e,i){return new(e||(e=Promise))(function(o,a){function c(g){try{m(i.next(g))}catch(C){a(C)}}function u(g){try{m(i.throw(g))}catch(C){a(C)}}function m(g){g.done?o(g.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(g.value).then(c,u)}m((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Jo(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function lo(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function ir(n,t,e=1/0){return j(t)?ir((i,r)=>Vn((o,a)=>t(i,o,r,a))(ii(n(i,r))),e):("number"==typeof t&&(e=t),it((i,r)=>function di(n,t,e,i,r,o,a,c){const u=[];let m=0,g=0,C=!1;const F=()=>{C&&!u.length&&!m&&t.complete()},O=U=>m{o&&t.next(U),m++;let ie=!1;ii(e(U,g++)).subscribe(lt(t,ue=>{r?.(ue),o?O(ue):t.next(ue)},()=>{ie=!0},void 0,()=>{if(ie)try{for(m--;u.length&&mV(ue)):V(ue)}F()}catch(ue){t.error(ue)}}))};return n.subscribe(lt(t,O,()=>{C=!0,F()})),()=>{c?.()}}(i,r,n,e)))}function gl(n=1/0){return ir(Ge,n)}const na=new at(n=>n.complete());function _l(n){return n&&j(n.schedule)}function Fo(n){return n[n.length-1]}function ia(n){return j(Fo(n))?n.pop():void 0}function co(n){return _l(Fo(n))?n.pop():void 0}function bl(n,t=0){return it((e,i)=>{e.subscribe(lt(i,r=>lo(i,n,()=>i.next(r),t),()=>lo(i,n,()=>i.complete(),t),r=>lo(i,n,()=>i.error(r),t)))})}function Oo(n,t=0){return it((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function xl(n,t){if(!n)throw new Error("Iterable cannot be null");return new at(e=>{lo(e,t,()=>{const i=n[Symbol.asyncIterator]();lo(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function hr(n,t){return t?function ra(n,t){if(null!=n){if(bd(n))return function yl(n,t){return ii(n).pipe(Oo(t),bl(t))}(n,t);if(Aa(n))return function hc(n,t){return new at(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(ul(n))return function vl(n,t){return ii(n).pipe(Oo(t),bl(t))}(n,t);if(hl(n))return xl(n,t);if(Ia(n))return function Cl(n,t){return new at(e=>{let i;return lo(e,t,()=>{i=n[ta](),lo(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>j(i?.return)&&i.return()})}(n,t);if(fl(n))return function mc(n,t){return xl(Fa(n),t)}(n,t)}throw ml(n)}(n,t):ii(n)}function on(...n){const t=co(n),e=function uc(n,t){return"number"==typeof Fo(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?ii(i[0]):gl(e)(hr(i,t)):na}function Ds(n={}){const{connector:t=(()=>new Ae),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let a,c,u,m=0,g=!1,C=!1;const F=()=>{c?.unsubscribe(),c=void 0},O=()=>{F(),a=u=void 0,g=C=!1},V=()=>{const U=a;O(),U?.unsubscribe()};return it((U,ie)=>{m++,!C&&!g&&F();const ue=u=u??t();ie.add(()=>{m--,0===m&&!C&&!g&&(c=Ts(V,r))}),ue.subscribe(ie),!a&&m>0&&(a=new dn({next:Le=>ue.next(Le),error:Le=>{C=!0,F(),c=Ts(O,e,Le),ue.error(Le)},complete:()=>{g=!0,F(),c=Ts(O,i),ue.complete()}}),ii(U).subscribe(a))})(o)}}function Ts(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new dn({next:()=>{i.unsubscribe(),n()}});return ii(t(...e)).subscribe(i)}function Hn(n){for(let t in n)if(n[t]===Hn)return t;throw Error("Could not find renamed property on target object.")}function Oa(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Un(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Un).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function es(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Oi=Hn({__forward_ref__:Hn});function Wt(n){return n.__forward_ref__=Wt,n.toString=function(){return Un(this())},n}function Pt(n){return Po(n)?n():n}function Po(n){return"function"==typeof n&&n.hasOwnProperty(Oi)&&n.__forward_ref__===Wt}function Pa(n){return n&&!!n.\u0275providers}const Ti="https://g.co/ng/security#xss";class Ce extends Error{constructor(t,e){super(Ra(t,e)),this.code=t}}function Ra(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function _t(n){return"string"==typeof n?n:null==n?"":String(n)}function ks(n,t){throw new Ce(-201,!1)}function Sr(n,t){null==n&&function kn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function B(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Se(n){return{providers:n.providers||[],imports:n.imports||[]}}function An(n){return yi(n,pi)||yi(n,gr)}function yi(n,t){return n.hasOwnProperty(t)?n[t]:null}function Lo(n){return n&&(n.hasOwnProperty(pr)||n.hasOwnProperty(Qf))?n[pr]:null}const pi=Hn({\u0275prov:Hn}),pr=Hn({\u0275inj:Hn}),gr=Hn({ngInjectableDef:Hn}),Qf=Hn({ngInjectorDef:Hn});var Kt=(()=>((Kt=Kt||{})[Kt.Default=0]="Default",Kt[Kt.Host=1]="Host",Kt[Kt.Self=2]="Self",Kt[Kt.SkipSelf=4]="SkipSelf",Kt[Kt.Optional=8]="Optional",Kt))();let Ou;function Wr(n){const t=Ou;return Ou=n,t}function wd(n,t,e){const i=An(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Kt.Optional?null:void 0!==t?t:void ks(Un(n))}const Fn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),bc={},Td="__NG_DI_FLAG__",Ed="ngTempTokenPath",Md="ngTokenPath",Pu=/\n/gm,sa="\u0275",Dl="__source";let Ss;function uo(n){const t=Ss;return Ss=n,t}function ns(n,t=Kt.Default){if(void 0===Ss)throw new Ce(-203,!1);return null===Ss?wd(n,void 0,t):Ss.get(n,t&Kt.Optional?null:void 0,t)}function te(n,t=Kt.Default){return(function No(){return Ou}()||ns)(Pt(n),t)}function qn(n,t=Kt.Default){return te(n,rr(t))}function rr(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Tl(n){const t=[];for(let e=0;e((Li=Li||{})[Li.OnPush=0]="OnPush",Li[Li.Default=1]="Default",Li))(),ho=(()=>{return(n=ho||(ho={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",ho;var n})();const is={},Sn=[],kd=Hn({\u0275cmp:Hn}),vc=Hn({\u0275dir:Hn}),Is=Hn({\u0275pipe:Hn}),Sd=Hn({\u0275mod:Hn}),mo=Hn({\u0275fac:Hn}),Cc=Hn({__NG_ELEMENT_ID__:Hn});let Ru=0;function et(n){return As(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Li.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Sn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ho.Emulated,id:"c"+Ru++,styles:n.styles||Sn,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,a=n.features;return r.inputs=la(n.inputs,i),r.outputs=la(n.outputs),a&&a.forEach(c=>c(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Lu).filter(fm):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(_r).filter(fm):null,r})}function Lu(n){return Wn(n)||li(n)}function fm(n){return null!==n}function sn(n){return As(()=>({type:n.type,bootstrap:n.bootstrap||Sn,declarations:n.declarations||Sn,imports:n.imports||Sn,exports:n.exports||Sn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function la(n,t){if(null==n)return is;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const xe=et;function Gr(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Wn(n){return n[kd]||null}function li(n){return n[vc]||null}function _r(n){return n[Is]||null}const Os=0,gt=1,un=2,ri=3,Bo=4,Ml=5,Ir=6,kl=7,ei=8,Sl=9,Ad=10,vn=11,pm=12,ca=13,Nu=14,xc=15,br=16,Na=17,Al=18,Ps=19,wc=20,Bu=21,ui=22,gm=1,_m=2,Dc=7,Vu=8,Tc=9,qr=10;function Yr(n){return Array.isArray(n)&&"object"==typeof n[gm]}function rs(n){return Array.isArray(n)&&!0===n[gm]}function bm(n){return 0!=(4&n.flags)}function Id(n){return n.componentOffset>-1}function Fd(n){return 1==(1&n.flags)}function Co(n){return null!==n.template}function C_(n){return 0!=(256&n[un])}function Il(n,t){return n.hasOwnProperty(mo)?n[mo]:null}class E_{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ci(){return Hu}function Hu(n){return n.type.prototype.ngOnChanges&&(n.setInput=k_),M_}function M_(){const n=vm(this),t=n?.current;if(t){const e=n.previous;if(e===is)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function k_(n,t,e,i){const r=this.declaredInputs[e],o=vm(n)||function lp(n,t){return n[ap]=t}(n,{previous:is,current:null}),a=o.current||(o.current={}),c=o.previous,u=c[r];a[r]=new E_(u&&u.currentValue,t,c===is),n[i]=t}ci.ngInherit=!0;const ap="__ngSimpleChanges__";function vm(n){return n[ap]||null}const fo=function(n,t,e){},po="svg";function Zi(n){for(;Array.isArray(n);)n=n[Os];return n}function Ec(n,t){return Zi(t[n])}function Kr(n,t){return Zi(t[n.index])}function Od(n,t){return n.data[t]}function Ba(n,t){return n[t]}function Xr(n,t){const e=t[n];return Yr(e)?e:e[Os]}function Va(n){return 64==(64&n[un])}function Qr(n,t){return null==t?null:n[t]}function Pd(n){n[Al]=0}function Vi(n,t){n[Ml]+=t;let e=n,i=n[ri];for(;null!==i&&(1===t&&1===e[Ml]||-1===t&&0===e[Ml]);)i[Ml]+=t,e=i,i=i[ri]}const kt={lFrame:A_(null),bindingsEnabled:!0};function Vo(){return kt.bindingsEnabled}function Te(){return kt.lFrame.lView}function Tn(){return kt.lFrame.tView}function He(n){return kt.lFrame.contextLView=n,n[ei]}function je(n){return kt.lFrame.contextLView=null,n}function yr(){let n=Gu();for(;null!==n&&64===n.type;)n=n.parent;return n}function Gu(){return kt.lFrame.currentTNode}function Ls(n,t){const e=kt.lFrame;e.currentTNode=n,e.isParent=t}function wm(){return kt.lFrame.isParent}function Zu(){kt.lFrame.isParent=!1}function Fr(){const n=kt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Nd(){return kt.lFrame.bindingIndex++}function $a(n){const t=kt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function S_(n,t){const e=kt.lFrame;e.bindingIndex=e.bindingRootIndex=n,Qu(t)}function Qu(n){kt.lFrame.currentDirectiveIndex=n}function Bd(n){const t=kt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Vd(){return kt.lFrame.currentQueryIndex}function Ju(n){kt.lFrame.currentQueryIndex=n}function Sc(n){const t=n[gt];return 2===t.type?t.declTNode:1===t.type?n[Ir]:null}function Dm(n,t,e){if(e&Kt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&Kt.Host||(r=Sc(o),null===r||(o=o[xc],10&r.type))););if(null===r)return!1;t=r,n=o}const i=kt.lFrame=Hd();return i.currentTNode=t,i.lView=n,!0}function eh(n){const t=Hd(),e=n[gt];kt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Hd(){const n=kt.lFrame,t=null===n?null:n.child;return null===t?A_(n):t}function A_(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function up(){const n=kt.lFrame;return kt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Ho=up;function Ac(){const n=up();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function qi(){return kt.lFrame.selectedIndex}function da(n){kt.lFrame.selectedIndex=n}function gi(){const n=kt.lFrame;return Od(n.tView,n.selectedIndex)}function ua(){kt.lFrame.currentNamespace=po}function $d(){!function Tm(){kt.lFrame.currentNamespace=null}()}function jd(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[u]<0&&(n[Al]+=65536),(c>11>16&&(3&n[un])===t){n[un]+=2048,fo(4,c,o);try{o.call(c)}finally{fo(5,c,o)}}}else{fo(4,c,o);try{o.call(c)}finally{fo(5,c,o)}}}const Ua=-1;class Fl{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Oc(n,t,e){let i=0;for(;it){a=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[xc],e--;return i}let rh=!0;function Nc(n){const t=rh;return rh=n,t}const Sm=255,_p=5;let I_=0;const as={};function Bc(n,t){const e=Am(n,t);if(-1!==e)return e;const i=t[gt];i.firstCreatePass&&(n.injectorIndex=t.length,oh(i.data,n),oh(t,null),oh(i.blueprint,null));const r=sh(n,t),o=n.injectorIndex;if(Rc(r)){const a=Zd(r),c=Lc(r,t),u=c[gt].data;for(let m=0;m<8;m++)t[o+m]=c[a+m]|u[a+m]}return t[o+8]=r,o}function oh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Am(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function sh(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=hh(r),null===i)return Ua;if(e++,r=r[xc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Ua}function ah(n,t,e){!function F_(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Cc)&&(i=e[Cc]),null==i&&(i=e[Cc]=I_++);const r=i&Sm;t.data[n+(r>>_p)]|=1<=0?t&Sm:Rm:t}(e);if("function"==typeof o){if(!Dm(t,n,i))return i&Kt.Host?Im(r,0,i):Fm(t,e,i,r);try{const a=o(i);if(null!=a||i&Kt.Optional)return a;ks()}finally{Ho()}}else if("number"==typeof o){let a=null,c=Am(n,t),u=Ua,m=i&Kt.Host?t[br][Ir]:null;for((-1===c||i&Kt.SkipSelf)&&(u=-1===c?sh(n,t):t[c+8],u!==Ua&&dh(i,!1)?(a=t[gt],c=Zd(u),t=Lc(u,t)):c=-1);-1!==c;){const g=t[gt];if(Pm(o,c,g.data)){const C=Ol(c,t,e,a,i,m);if(C!==as)return C}u=t[c+8],u!==Ua&&dh(i,t[gt].data[c+8]===m)&&Pm(o,c,t)?(a=g,c=Zd(u),t=Lc(u,t)):c=-1}}return r}function Ol(n,t,e,i,r,o){const a=t[gt],c=a.data[n+8],g=Pl(c,a,e,null==i?Id(c)&&rh:i!=a&&0!=(3&c.type),r&Kt.Host&&o===c);return null!==g?Ga(t,a,g,c):as}function Pl(n,t,e,i,r){const o=n.providerIndexes,a=t.data,c=1048575&o,u=n.directiveStart,g=o>>20,F=r?c+g:n.directiveEnd;for(let O=i?c:c+g;O=u&&V.type===e)return O}if(r){const O=a[u];if(O&&Co(O)&&O.type===e)return u}return null}function Ga(n,t,e,i){let r=n[e];const o=t.data;if(function Em(n){return n instanceof Fl}(r)){const a=r;a.resolving&&function Es(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Ce(-200,`Circular dependency in DI detected for ${n}${e}`)}(function wn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():_t(n)}(o[e]));const c=Nc(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?Wr(a.injectImpl):null;Dm(n,i,Kt.Default);try{r=n[e]=a.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function mp(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const a=Hu(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==u&&Wr(u),Nc(c),a.resolving=!1,Ho()}}return r}function Pm(n,t,e){return!!(e[t+(n>>_p)]&1<{const t=n.prototype.constructor,e=t[mo]||Ll(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[mo]||Ll(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Ll(n){return Po(n)?()=>{const t=Ll(Pt(n));return t&&t()}:Il(n)}function hh(n){const t=n[gt],e=t.type;return 2===e?t.declTNode:1===e?n[Ir]:null}function go(n){return function lh(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function mh(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return c.annotation=a,c;function c(u,m,g){const C=u.hasOwnProperty(Za)?u[Za]:Object.defineProperty(u,Za,{value:[]})[Za];for(;C.length<=g;)C.push(null);return(C[g]=C[g]||[]).push(a),u}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ye{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=B({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Or(n,t){n.forEach(e=>Array.isArray(e)?Or(e,t):t(e))}function ls(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Vl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Hl(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function qd(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Yd(n,t){const e=wo(n,t);if(e>=0)return n[1|e]}function wo(n,t){return function zc(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),a=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),ds=yc(qa("Optional"),8),zl=yc(qa("SkipSelf"),4);var Jr=(()=>((Jr=Jr||{})[Jr.Important=1]="Important",Jr[Jr.DashCase=2]="DashCase",Jr))();const Ya=new Map;let Np=0;const xh="__ngContext__";function or(n,t){Yr(t)?(n[xh]=t[wc],function Ki(n){Ya.set(n[wc],n)}(t)):n[xh]=t}let Th;function Zc(n,t){return Th(n,t)}function $o(n){const t=n[ri];return rs(t)?t[ri]:t}function eu(n){return Eh(n[ca])}function tu(n){return Eh(n[Bo])}function Eh(n){for(;null!==n&&!rs(n);)n=n[Bo];return n}function Wl(n,t,e,i,r){if(null!=i){let o,a=!1;rs(i)?o=i:Yr(i)&&(a=!0,i=i[Os]);const c=Zi(i);0===n&&null!==e?null==r?Qe(t,e,c):Ee(t,e,c,r||null,!0):1===n&&null!==e?Ee(t,e,c,r||null,!0):2===n?function ru(n,t,e){const i=qt(n,t);i&&function Q(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,c,a):3===n&&t.destroyNode(c),null!=o&&function Qm(n,t,e,i,r){const o=e[Dc];o!==Zi(e)&&Wl(t,n,i,o,r);for(let c=qr;c0&&(n[e-1][Bo]=i[Bo]);const o=Vl(n,qr+t);!function kh(n,t){qc(n,t,t[vn],2,null,null),t[Os]=null,t[Ir]=null}(i[gt],i);const a=o[Ps];null!==a&&a.detachView(o[gt]),i[ri]=null,i[Bo]=null,i[un]&=-65}return i}function x(n,t){if(!(128&t[un])){const e=t[vn];e.destroyNode&&qc(n,t,e,3,null,null),function Km(n){let t=n[ca];if(!t)return k(n[gt],n);for(;t;){let e=null;if(Yr(t))e=t[ca];else{const i=t[qr];i&&(e=i)}if(!e){for(;t&&!t[Bo]&&t!==n;)Yr(t)&&k(t[gt],t),t=t[ri];null===t&&(t=n),Yr(t)&&k(t[gt],t),e=t&&t[Bo]}t=e}}(t)}}function k(n,t){if(!(128&t[un])){t[un]&=-65,t[un]|=128,function H(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=a]():i[r=-a].unsubscribe(),o+=2}else{const a=i[r=e[o+1]];e[o].call(a)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=n.data[i.directiveStart+r];if(o===ho.None||o===ho.Emulated)return null}return Kr(i,e)}}(n,t.parent,e)}function Ee(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Qe(n,t,e){n.appendChild(t,e)}function Me(n,t,e,i,r){null!==i?Ee(n,t,e,i,r):Qe(n,t,e)}function qt(n,t){return n.parentNode(t)}function pn(n,t,e){return St(n,t,e)}let Pr,ql,Gp,ef,St=function an(n,t,e){return 40&n.type?Kr(n,e):null};function Ei(n,t,e,i){const r=ne(n,i,t),o=t[vn],c=pn(i.parent||t[Ir],i,t);if(null!=r)if(Array.isArray(e))for(let u=0;un,createScript:n=>n,createScriptURL:n=>n})}catch{}return ql}()?.createHTML(n)||n}function Zp(n){return function Mi(){if(void 0===ef&&(ef=null,Fn.trustedTypes))try{ef=Fn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return ef}()?.createHTML(n)||n}class Yc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ti})`}}class qp extends Yc{getTypeName(){return"HTML"}}class ya extends Yc{getTypeName(){return"Style"}}class au extends Yc{getTypeName(){return"Script"}}class to extends Yc{getTypeName(){return"URL"}}class Ih extends Yc{getTypeName(){return"ResourceURL"}}function no(n){return n instanceof Yc?n.changingThisBreaksApplicationSecurity:n}function Uo(n,t){const e=function Av(n){return n instanceof Yc&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Ti})`)}return e===t}class Fv{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(su(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class tf{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=su(t),e}}const Iw=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Fh(n){return(n=String(n)).match(Iw)?n:"unsafe:"+n}function Xa(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Oh(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const U_=Xa("area,br,col,hr,img,wbr"),W_=Xa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),G_=Xa("rp,rt"),Z_=Oh(U_,Oh(W_,Xa("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Oh(G_,Xa("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Oh(G_,W_)),nf=Xa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),q_=Oh(nf,Xa("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xa("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Lv=Xa("script,style,template");class Nv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Z_.hasOwnProperty(e))return this.sanitizedSomething=!0,!Lv.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Z_.hasOwnProperty(e)&&!U_.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Y_(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Bv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vv=/([^\#-~ |!])/g;function Y_(n){return n.replace(/&/g,"&").replace(Bv,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let js;function Ph(n,t){let e=null;try{js=js||function Xp(n){const t=new tf(n);return function Ov(){try{return!!(new window.DOMParser).parseFromString(su(""),"text/html")}catch{return!1}}()?new Fv(t):t}(n);let i=t?String(t):"";e=js.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=js.getInertBodyElement(i)}while(i!==o);return su((new Nv).sanitizeChildren(lu(e)||e))}finally{if(e){const i=lu(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function lu(n){return"content"in n&&function Hv(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var zn=(()=>((zn=zn||{})[zn.NONE=0]="NONE",zn[zn.HTML=1]="HTML",zn[zn.STYLE=2]="STYLE",zn[zn.SCRIPT=3]="SCRIPT",zn[zn.URL=4]="URL",zn[zn.RESOURCE_URL=5]="RESOURCE_URL",zn))();function K_(n){const t=Xc();return t?Zp(t.sanitize(zn.HTML,n)||""):Uo(n,"HTML")?Zp(no(n)):Ph(function $_(){return void 0!==Gp?Gp:typeof document<"u"?document:void 0}(),_t(n))}function Jp(n){const t=Xc();return t?t.sanitize(zn.URL,n)||"":Uo(n,"URL")?no(n):Fh(_t(n))}function Xc(){const n=Te();return n&&n[pm]}const J_=new ye("ENVIRONMENT_INITIALIZER"),rf=new ye("INJECTOR",-1),eb=new ye("INJECTOR_DEF_TYPES");class sf{get(t,e=bc){if(e===bc){const i=new Error(`NullInjectorError: No provider for ${Un(t)}!`);throw i.name="NullInjectorError",i}return e}}function ng(...n){return{\u0275providers:ig(0,n),\u0275fromNgModule:!0}}function ig(n,...t){const e=[],i=new Set;let r;return Or(t,o=>{const a=o;af(a,e,[],i)&&(r||(r=[]),r.push(a))}),void 0!==r&&tb(r,e),e}function tb(n,t){for(let e=0;e{t.push(o)})}}function af(n,t,e,i){if(!(n=Pt(n)))return!1;let r=null,o=Lo(n);const a=!o&&Wn(n);if(o||a){if(a&&!a.standalone)return!1;r=n}else{const u=n.ngModule;if(o=Lo(u),!o)return!1;r=u}const c=i.has(r);if(a){if(c)return!1;if(i.add(r),a.dependencies){const u="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const m of u)af(m,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!c){let m;i.add(r);try{Or(o.imports,g=>{af(g,t,e,i)&&(m||(m=[]),m.push(g))})}finally{}void 0!==m&&tb(m,t)}if(!c){const m=Il(r)||(()=>new r);t.push({provide:r,useFactory:m,deps:Sn},{provide:eb,useValue:r,multi:!0},{provide:J_,useValue:()=>te(r),multi:!0})}const u=o.providers;null==u||c||lf(u,g=>{t.push(g)})}}return r!==n&&void 0!==n.providers}function lf(n,t){for(let e of n)Pa(e)&&(e=e.\u0275providers),Array.isArray(e)?lf(e,t):t(e)}const Wv=Hn({provide:String,useValue:Hn});function cf(n){return null!==n&&"object"==typeof n&&Wv in n}function Kl(n){return"function"==typeof n}const Rh=new ye("Set Injector scope."),Qc={},rb={};let df;function uf(){return void 0===df&&(df=new sf),df}class Jc{}class og extends Jc{get destroyed(){return this._destroyed}constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sg(t,a=>this.processProvider(a)),this.records.set(rf,cu(void 0,this)),r.has("environment")&&this.records.set(Jc,cu(void 0,this));const o=this.records.get(Rh);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(eb.multi,Sn,Kt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=uo(this),i=Wr(void 0);try{return t()}finally{uo(e),Wr(i)}}get(t,e=bc,i=Kt.Default){this.assertNotDestroyed(),i=rr(i);const r=uo(this),o=Wr(void 0);try{if(!(i&Kt.SkipSelf)){let c=this.records.get(t);if(void 0===c){const u=function qv(n){return"function"==typeof n||"object"==typeof n&&n instanceof ye}(t)&&An(t);c=u&&this.injectableDefInScope(u)?cu(hf(t),Qc):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(i&Kt.Self?uf():this.parent).get(t,e=i&Kt.Optional&&e===bc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Ed]=a[Ed]||[]).unshift(Un(t)),r)throw a;return function ep(n,t,e,i){const r=n[Ed];throw t[Dl]&&r.unshift(t[Dl]),n.message=function hm(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==sa?n.slice(2):n;let r=Un(t);if(Array.isArray(t))r=t.map(Un).join(" -> ");else if("object"==typeof t){let o=[];for(let a in t)if(t.hasOwnProperty(a)){let c=t[a];o.push(a+":"+("string"==typeof c?JSON.stringify(c):Un(c)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(Pu,"\n ")}`}("\n"+n.message,r,e,i),n[Md]=r,n[Ed]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{Wr(o),uo(r)}}resolveInjectorInitializers(){const t=uo(this),e=Wr(void 0);try{const i=this.get(J_.multi,Sn,Kt.Self);for(const r of i)r()}finally{uo(t),Wr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(Un(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ce(205,!1)}processProvider(t){let e=Kl(t=Pt(t))?t:Pt(t&&t.provide);const i=function mf(n){return cf(n)?cu(void 0,n.useValue):cu(ob(n),Qc)}(t);if(Kl(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=cu(void 0,Qc,!0),r.factory=()=>Tl(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Qc&&(e.value=rb,e.value=e.factory()),"object"==typeof e.value&&e.value&&function du(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Pt(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function hf(n){const t=An(n),e=null!==t?t.factory:Il(n);if(null!==e)return e;if(n instanceof ye)throw new Ce(204,!1);if(n instanceof Function)return function Gv(n){const t=n.length;if(t>0)throw Hl(t,"?"),new Ce(204,!1);const e=function Ri(n){const t=n&&(n[pi]||n[gr]);return t?(function Ar(n){if(n.hasOwnProperty("name"))return n.name;(""+n).match(/^function\s*([^\s(]+)/)}(n),t):null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Ce(204,!1)}function ob(n,t,e){let i;if(Kl(n)){const r=Pt(n);return Il(r)||hf(r)}if(cf(n))i=()=>Pt(n.useValue);else if(function rg(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Tl(n.deps||[]));else if(function nb(n){return!(!n||!n.useExisting)}(n))i=()=>te(Pt(n.useExisting));else{const r=Pt(n&&(n.useClass||n.provide));if(!function Zv(n){return!!n.deps}(n))return Il(r)||hf(r);i=()=>new r(...Tl(n.deps))}return i}function cu(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function sg(n,t){for(const e of n)Array.isArray(e)?sg(e,t):e&&Pa(e)?sg(e.\u0275providers,t):t(e)}class Yv{}class sb{}class Kv{resolveComponentFactory(t){throw function ab(n){const t=Error(`No component factory found for ${Un(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let uu=(()=>{class n{}return n.NULL=new Kv,n})();function s(){return d(yr(),Te())}function d(n,t){return new h(Kr(n,t))}let h=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=s,n})();function p(n){return n instanceof h?n.nativeElement:n}class b{}let w=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function D(){const n=Te(),e=Xr(yr().index,n);return(Yr(e)?e:n)[vn]}(),n})(),I=(()=>{class n{}return n.\u0275prov=B({token:n,providedIn:"root",factory:()=>null}),n})();class P{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const R=new P("15.2.2"),$={},ee="ngOriginalError";function le(n){return n[ee]}class ze{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&le(t);for(;e&&le(e);)e=le(e);return e||null}}function G(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const Ke="ng-template";function ve(n,t,e){let i=0;for(;io?"":r[C+1].toLowerCase();const O=8&i?F:null;if(O&&-1!==G(O,m,0)||2&i&&m!==F){if(ht(i))return!1;a=!0}}}}else{if(!a&&!ht(i)&&!ht(u))return!1;if(a&&ht(u))continue;a=!1,i=u|1&i}}return ht(i)||a}function ht(n){return 0==(1&n)}function $t(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+c+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!ht(a)&&(t+=Ln(o,r),r=""),i=a,o=o||!ht(i);e++}return""!==r&&(t+=Ln(o,r)),t}const qe={};function T(n){ki(Tn(),Te(),qi()+n,!1)}function ki(n,t,e,i){if(!i)if(3==(3&t[un])){const o=n.preOrderCheckHooks;null!==o&&ja(t,o,e)}else{const o=n.preOrderHooks;null!==o&&th(t,o,0,e)}da(e)}function Bw(n,t=null,e=null,i){const r=Vw(n,t,e,i);return r.resolveInjectorInitializers(),r}function Vw(n,t=null,e=null,i,r=new Set){const o=[e||Sn,ng(n)];return i=i||("object"==typeof n?void 0:Un(n)),new og(o,t||uf(),i||null,r)}let Wo=(()=>{class n{static create(e,i){if(Array.isArray(e))return Bw({name:""},i,e,"");{const r=e.name??"";return Bw({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=bc,n.NULL=new sf,n.\u0275prov=B({token:n,providedIn:"any",factory:()=>te(rf)}),n.__NG_ELEMENT_ID__=-1,n})();function E(n,t=Kt.Default){const e=Te();return null===e?te(n,t):Om(yr(),e,Pt(n),t)}function ag(){throw new Error("invalid")}function Gw(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;iui&&ki(n,t,ui,!1),fo(a?2:0,r),e(i,r)}finally{da(o),fo(a?3:1,r)}}function r0(n,t,e){if(bm(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=c&&a.push(c),a.push(e,i,o)}}(n,t,i,lg(n,e,r.hostVars,qe),r)}function Ql(n,t,e,i,r,o){const a=Kr(n,t);!function d0(n,t,e,i,r,o,a){if(null==o)n.removeAttribute(t,r,e);else{const c=null==a?_t(o):a(o,i||"",r);n.setAttribute(t,r,c,e)}}(t[vn],a,o,n.value,e,i,r)}function _F(n,t,e,i,r,o){const a=o[t];if(null!==a){const c=i.setInput;for(let u=0;u0&&u0(e)}}function u0(n){for(let i=eu(n);null!==i;i=tu(i))for(let r=qr;r0&&u0(o)}const e=n[gt].components;if(null!==e)for(let i=0;i0&&u0(r)}}function xF(n,t){const e=Xr(t,n),i=e[gt];(function wF(n,t){for(let e=t.length;e-1&&(_(t,i),Vl(e,i))}this._attachedToViewContainer=!1}x(this._lView[gt],this._lView)}onDestroy(t){Yw(this._lView[gt],this._lView,null,t)}markForCheck(){h0(this._cdRefInjectingView||this._lView)}detach(){this._lView[un]&=-65}reattach(){this._lView[un]|=64}detectChanges(){mb(this._lView[gt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Wp(n,t){qc(n,t,t[vn],2,null,null)}(this._lView[gt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ce(902,!1);this._appRef=t}}class DF extends cg{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;mb(t[gt],t,t[ei],!1)}checkNoChanges(){}get context(){return null}}class a1 extends uu{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Wn(t);return new dg(e,this.ngModule)}}function l1(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class EF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=rr(i);const r=this.injector.get(t,$,i);return r!==$||e===$?r:this.parentInjector.get(t,e,i)}}class dg extends sb{get inputs(){return l1(this.componentDef.inputs)}get outputs(){return l1(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function ot(n){return n.map(ji).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Jc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new EF(t,o):t,c=a.get(b,null);if(null===c)throw new Ce(407,!1);const u=a.get(I,null),m=c.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",C=i?function nF(n,t,e){return n.selectRootElement(t,e===ho.ShadowDom)}(m,i,this.componentDef.encapsulation):Gl(m,g,function TF(n){const t=n.toLowerCase();return"svg"===t?po:"math"===t?"math":null}(g)),F=this.componentDef.onPush?288:272,O=a0(0,null,null,1,0,null,null,null,null,null),V=db(null,O,null,F,null,null,c,m,u,a,null);let U,ie;eh(V);try{const ue=this.componentDef;let Le,ge=null;ue.findHostDirectiveDefs?(Le=[],ge=new Map,ue.findHostDirectiveDefs(ue,Le,ge),Le.push(ue)):Le=[ue];const ft=function kF(n,t){const e=n[gt],i=ui;return n[i]=t,pf(e,i,2,"#host",null)}(V,C),jn=function SF(n,t,e,i,r,o,a,c){const u=r[gt];!function AF(n,t,e,i){for(const r of n)t.mergedAttrs=Wa(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(fb(t,t.mergedAttrs,!0),null!==e&&Jm(i,e,t))}(i,n,t,a);const m=o.createRenderer(t,e),g=db(r,qw(e),null,e.onPush?32:16,r[n.index],n,o,m,c||null,null,null);return u.firstCreatePass&&c0(u,n,i.length-1),hb(r,g),r[n.index]=g}(ft,C,ue,Le,V,c,m);ie=Od(O,ui),C&&function FF(n,t,e,i){if(i)Oc(n,e,["ng-version",R.full]);else{const{attrs:r,classes:o}=function ln(n){const t=[],e=[];let i=1,r=2;for(;i0&&ba(n,e,o.join(" "))}}(m,ue,C,i),void 0!==e&&function OF(n,t,e){const i=n.projection=[];for(let r=0;r=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Wa(r.hostAttrs,e=Wa(e,r.hostAttrs))}}(i)}function p0(n){return n===is?{}:n===Sn?[]:n}function LF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function NF(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function BF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}function gb(n){return!!g0(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function g0(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Jl(n,t,e){return n[t]=e}function To(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function Lh(n,t,e,i){const r=To(n,t,e);return To(n,t+1,i)||r}function bt(n,t,e,i){const r=Te();return To(r,Nd(),t)&&(Tn(),Ql(gi(),r,n,t,e,i)),bt}function _f(n,t,e,i){return To(n,Nd(),e)?t+_t(e)+i:qe}function bf(n,t,e,i,r,o){const c=Lh(n,function os(){return kt.lFrame.bindingIndex}(),e,r);return $a(2),c?t+_t(e)+i+_t(r)+o:qe}function K(n,t,e,i,r,o,a,c){const u=Te(),m=Tn(),g=n+ui,C=m.firstCreatePass?function qF(n,t,e,i,r,o,a,c,u){const m=t.consts,g=pf(t,n,4,a||null,Qr(m,c));l0(t,e,g,Qr(m,u)),jd(t,g);const C=g.tView=a0(2,g,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,m);return null!==t.queries&&(t.queries.template(t,g),C.queries=t.queries.embeddedTView(g)),g}(g,m,u,t,e,i,r,o,a):m.data[g];Ls(C,!1);const F=u[vn].createComment("");Ei(m,u,F,C),or(F,u),hb(u,u[g]=t1(F,u,F,C)),Fd(C)&&o0(m,u,C),null!=a&&s0(u,C,c)}function Go(n){return Ba(function vv(){return kt.lFrame.contextLView}(),ui+n)}function N(n,t,e){const i=Te();return To(i,Nd(),t)&&Us(Tn(),gi(),i,n,t,i[vn],e,!1),N}function _0(n,t,e,i,r){const a=r?"class":"style";f0(n,e,t.inputs[a],a,i)}function y(n,t,e,i){const r=Te(),o=Tn(),a=ui+n,c=r[vn],u=o.firstCreatePass?function KF(n,t,e,i,r,o){const a=t.consts,u=pf(t,n,2,i,Qr(a,r));return l0(t,e,u,Qr(a,o)),null!==u.attrs&&fb(u,u.attrs,!1),null!==u.mergedAttrs&&fb(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,t,e,i):o.data[a],m=r[a]=Gl(c,t,function hp(){return kt.lFrame.currentNamespace}()),g=Fd(u);return Ls(u,!0),Jm(c,m,u),32!=(32&u.flags)&&Ei(o,r,m,u),0===function Rd(){return kt.lFrame.elementDepthCount}()&&or(m,r),function Ld(){kt.lFrame.elementDepthCount++}(),g&&(o0(o,r,u),r0(o,u,r)),null!==i&&s0(r,u),y}function v(){let n=yr();wm()?Zu():(n=n.parent,Ls(n,!1));const t=n;!function cp(){kt.lFrame.elementDepthCount--}();const e=Tn();return e.firstCreatePass&&(jd(e,n),bm(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function ih(n){return 0!=(8&n.flags)}(t)&&_0(e,t,Te(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Wd(n){return 0!=(16&n.flags)}(t)&&_0(e,t,Te(),t.stylesWithoutHost,!1),v}function Pe(n,t,e,i){return y(n,t,e,i),v(),Pe}function io(n,t,e){const i=Te(),r=Tn(),o=n+ui,a=r.firstCreatePass?function XF(n,t,e,i,r){const o=t.consts,a=Qr(o,i),c=pf(t,n,8,"ng-container",a);return null!==a&&fb(c,a,!0),l0(t,e,c,Qr(o,r)),null!==t.queries&&t.queries.elementStart(t,c),c}(o,r,i,t,e):r.data[o];Ls(a,!0);const c=i[o]=i[vn].createComment("");return Ei(r,i,c,a),or(c,i),Fd(a)&&(o0(r,i,a),r0(r,a,i)),null!=e&&s0(i,a),io}function ro(){let n=yr();const t=Tn();return wm()?Zu():(n=n.parent,Ls(n,!1)),t.firstCreatePass&&(jd(t,n),bm(n)&&t.queries.elementEnd(n)),ro}function Nt(){return Te()}function bb(n){return!!n&&"function"==typeof n.then}function w1(n){return!!n&&"function"==typeof n.subscribe}const D1=w1;function ce(n,t,e,i){const r=Te(),o=Tn(),a=yr();return T1(o,r,r[vn],a,n,t,i),ce}function b0(n,t){const e=yr(),i=Te(),r=Tn();return T1(r,i,o1(Bd(r.data),e,i),e,n,t),b0}function T1(n,t,e,i,r,o,a){const c=Fd(i),m=n.firstCreatePass&&r1(n),g=t[ei],C=n1(t);let F=!0;if(3&i.type||a){const U=Kr(i,t),ie=a?a(U):U,ue=C.length,Le=a?ft=>a(Zi(ft[i.index])):i.index;let ge=null;if(!a&&c&&(ge=function QF(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ou?c[u]:null}"string"==typeof a&&(o+=2)}return null}(n,t,r,i.index)),null!==ge)(ge.__ngLastListenerFn__||ge).__ngNextListenerFn__=o,ge.__ngLastListenerFn__=o,F=!1;else{o=M1(i,t,g,o,!1);const ft=e.listen(ie,r,o);C.push(o,ft),m&&m.push(r,Le,ue,ue+1)}}else o=M1(i,t,g,o,!1);const O=i.outputs;let V;if(F&&null!==O&&(V=O[r])){const U=V.length;if(U)for(let ie=0;ie-1?Xr(n.index,t):t);let u=E1(t,e,i,a),m=o.__ngNextListenerFn__;for(;m;)u=E1(t,e,m,a)&&u,m=m.__ngNextListenerFn__;return r&&!1===u&&(a.preventDefault(),a.returnValue=!1),u}}function Z(n=1){return function zd(n){return(kt.lFrame.contextLView=function Ic(n,t){for(;n>0;)t=t[xc],n--;return t}(n,kt.lFrame.contextLView))[ei]}(n)}function JF(n,t){let e=null;const i=function Xi(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function v0(n){return 2|n}function Nh(n){return(131068&n)>>2}function C0(n,t){return-131069&n|t<<2}function x0(n){return 1|n}function L1(n,t,e,i,r){const o=n[e+1],a=null===t;let c=i?mu(o):Nh(o),u=!1;for(;0!==c&&(!1===u||a);){const g=n[c+1];oO(n[c],t)&&(u=!0,n[c+1]=i?x0(g):v0(g)),c=i?mu(g):Nh(g)}u&&(n[e+1]=i?v0(o):x0(o))}function oO(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&wo(n,t)>=0}const Lr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function N1(n){return n.substring(Lr.key,Lr.keyEnd)}function B1(n,t){const e=Lr.textEnd;return e===t?-1:(t=Lr.keyEnd=function cO(n,t,e){for(;t32;)t++;return t}(n,Lr.key=t,e),Tf(n,t,e))}function Tf(n,t,e){for(;t=0;e=B1(t,e))Ni(n,N1(t),!0)}function Qa(n,t,e,i){const r=Te(),o=Tn(),a=$a(2);o.firstUpdatePass&&U1(o,n,a,i),t!==qe&&To(r,a,t)&&G1(o,o.data[qi()],r,r[vn],n,r[a+1]=function vO(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Un(no(n)))),n}(t,e),i,a)}function j1(n,t){return t>=n.expandoStartIndex}function U1(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[qi()],a=j1(n,e);q1(o,i)&&null===t&&!a&&(t=!1),t=function fO(n,t,e,i){const r=Bd(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=fg(e=w0(null,n,t,e,i),t.attrs,i),o=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==r)if(e=w0(r,n,t,e,i),null===o){let u=function pO(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Nh(i))return n[mu(i)]}(n,t,i);void 0!==u&&Array.isArray(u)&&(u=w0(null,n,t,u[1],i),u=fg(u,t.attrs,i),function gO(n,t,e,i){n[mu(e?t.classBindings:t.styleBindings)]=i}(n,t,i,u))}else o=function _O(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(m=!0)):g=e,r)if(0!==u){const F=mu(n[c+1]);n[i+1]=yb(F,c),0!==F&&(n[F+1]=C0(n[F+1],i)),n[c+1]=function tO(n,t){return 131071&n|t<<17}(n[c+1],i)}else n[i+1]=yb(c,0),0!==c&&(n[c+1]=C0(n[c+1],i)),c=i;else n[i+1]=yb(u,0),0===c?c=i:n[u+1]=C0(n[u+1],i),u=i;m&&(n[i+1]=v0(n[i+1])),L1(n,g,i,!0),L1(n,g,i,!1),function rO(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&wo(o,t)>=0&&(e[i+1]=x0(e[i+1]))}(t,g,n,i,o),a=yb(c,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,e,a,i)}}function w0(n,t,e,i,r){let o=null;const a=e.directiveEnd;let c=e.directiveStylingLast;for(-1===c?c=e.directiveStart:c++;c0;){const u=n[r],m=Array.isArray(u),g=m?u[1]:u,C=null===g;let F=e[r+1];F===qe&&(F=C?Sn:void 0);let O=C?Yd(F,i):g===i?F:void 0;if(m&&!vb(O)&&(O=Yd(u,i)),vb(O)&&(c=O,a))return c;const V=n[r+1];r=a?mu(V):Nh(V)}if(null!==t){let u=o?t.residualClasses:t.residualStyles;null!=u&&(c=Yd(u,i))}return c}function vb(n){return void 0!==n}function q1(n,t){return 0!=(n.flags&(t?8:16))}function A(n,t=""){const e=Te(),i=Tn(),r=n+ui,o=i.firstCreatePass?pf(i,r,1,t,null):i.data[r],a=e[r]=function Mh(n,t){return n.createText(t)}(e[vn],t);Ei(i,e,a,o),Ls(o,!1)}function Rt(n){return hi("",n,""),Rt}function hi(n,t,e){const i=Te(),r=_f(i,n,t,e);return r!==qe&&ed(i,qi(),r),hi}function pg(n,t,e,i,r){const o=Te(),a=bf(o,n,t,e,i,r);return a!==qe&&ed(o,qi(),a),pg}function nD(n,t,e){!function Ja(n,t,e,i){const r=Tn(),o=$a(2);r.firstUpdatePass&&U1(r,null,o,i);const a=Te();if(e!==qe&&To(a,o,e)){const c=r.data[qi()];if(q1(c,i)&&!j1(r,o)){let u=i?c.classesWithoutHost:c.stylesWithoutHost;null!==u&&(e=es(u,e||"")),_0(r,c,a,e,i)}else!function yO(n,t,e,i,r,o,a,c){r===qe&&(r=Sn);let u=0,m=0,g=0>20;if(Kl(n)||!n.multi){const O=new Fl(u,r,E),V=S0(c,t,r?g:g+F,C);-1===V?(ah(Bc(m,a),o,c),k0(o,n,t.length),t.push(c),m.directiveStart++,m.directiveEnd++,r&&(m.providerIndexes+=1048576),e.push(O),a.push(O)):(e[V]=O,a[V]=O)}else{const O=S0(c,t,g+F,C),V=S0(c,t,g,g+F),ie=V>=0&&e[V];if(r&&!ie||!r&&!(O>=0&&e[O])){ah(Bc(m,a),o,c);const ue=function NP(n,t,e,i,r){const o=new Fl(n,e,E);return o.multi=[],o.index=t,o.componentProviders=0,VD(o,r,i&&!e),o}(r?LP:RP,e.length,r,i,u);!r&&ie&&(e[V].providerFactory=ue),k0(o,n,t.length,0),t.push(c),m.directiveStart++,m.directiveEnd++,r&&(m.providerIndexes+=1048576),e.push(ue),a.push(ue)}else k0(o,n,O>-1?O:V,VD(e[r?V:O],u,!r&&i));!r&&i&&ie&&e[V].componentProviders++}}}function k0(n,t,e,i){const r=Kl(t),o=function ib(n){return!!n.useClass}(t);if(r||o){const u=(o?Pt(t.useClass):t).prototype.ngOnDestroy;if(u){const m=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const g=m.indexOf(e);-1===g?m.push(e,[i,u]):m[g+1].push(i,u)}else m.push(e,u)}}}function VD(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function S0(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function PP(n,t,e){const i=Tn();if(i.firstCreatePass){const r=Co(n);M0(e,i.data,i.blueprint,r,!0),M0(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class kf{}class BP{}class HD extends kf{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new a1(this);const i=function Zr(n,t){const e=n[Sd]||null;if(!e&&!0===t)throw new Error(`Type ${Un(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Bt(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=Vw(t,e,[{provide:kf,useValue:this},{provide:uu,useValue:this.componentFactoryResolver}],Un(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class I0 extends BP{constructor(t){super(),this.moduleType=t}create(t){return new HD(this.moduleType,t)}}class HP extends kf{constructor(t,e,i){super(),this.componentFactoryResolver=new a1(this),this.instance=null;const r=new og([...t,{provide:kf,useValue:this},{provide:uu,useValue:this.componentFactoryResolver}],e||uf(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let zP=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=ig(0,e.type),r=i.length>0?function zD(n,t,e=null){return new HP(n,t,e).injector}([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=B({token:n,providedIn:"environment",factory:()=>new n(te(Jc))}),n})();function $D(n){n.getStandaloneInjector=t=>t.get(zP).getOrCreateStandaloneInjector(n)}function el(n,t,e){const i=Fr()+n,r=Te();return r[i]===qe?Jl(r,i,e?t.call(e):t()):function ug(n,t){return n[t]}(r,i)}function KD(n,t,e,i,r){return function QD(n,t,e,i,r,o,a){const c=t+e;return Lh(n,c,r,o)?Jl(n,c+2,a?i.call(a,r,o):i(r,o)):Cg(n,c+2)}(Te(),Fr(),n,t,e,i,r)}function Cg(n,t){const e=n[t];return e===qe?void 0:e}function XD(n,t,e,i,r,o){const a=t+e;return To(n,a,r)?Jl(n,a+1,o?i.call(o,r):i(r)):Cg(n,a+1)}function xg(n,t){const e=Tn();let i;const r=n+ui;e.firstCreatePass?(i=function iR(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Il(i.type)),a=Wr(E);try{const c=Nc(!1),u=o();return Nc(c),function YF(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,Te(),r,u),u}finally{Wr(a)}}function wg(n,t,e){const i=n+ui,r=Te(),o=Ba(r,i);return function Dg(n,t){return n[gt].data[t].pure}(r,i)?XD(r,Fr(),t,o.transform,e,o):o.transform(e)}function O0(n){return t=>{setTimeout(n,void 0,t)}}const Ve=class lR extends Ae{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),a=i;if(t&&"object"==typeof t){const u=t;r=u.next?.bind(u),o=u.error?.bind(u),a=u.complete?.bind(u)}this.__isAsync&&(o=O0(o),r&&(r=O0(r)),a&&(a=O0(a)));const c=super.subscribe({next:r,error:o,complete:a});return t instanceof z&&t.add(c),c}};function cR(){return this._results[Symbol.iterator]()}class fu{get changes(){return this._changes||(this._changes=new Ve)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=fu.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=cR)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=function _i(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Ns(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=hR,n})();const dR=Cr,uR=class extends dR{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tView,r=db(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[Na]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Ps];return null!==a&&(r[Ps]=a.createEmbeddedView(i)),n0(i,r,t),new cg(r)}};function hR(){return Tb(yr(),Te())}function Tb(n,t){return 4&n.type?new uR(t,n,d(n,t)):null}let xr=(()=>{class n{}return n.__NG_ELEMENT_ID__=mR,n})();function mR(){return rT(yr(),Te())}const fR=xr,nT=class extends fR{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return d(this._hostTNode,this._hostLView)}get injector(){return new Rl(this._hostTNode,this._hostLView)}get parentInjector(){const t=sh(this._hostTNode,this._hostLView);if(Rc(t)){const e=Lc(t,this._hostLView),i=Zd(t);return new Rl(e[gt].data[i+8],e)}return new Rl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=iT(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-qr}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=t.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(t,e,i,r,o){const a=t&&!function Bl(n){return"function"==typeof n}(t);let c;if(a)c=e;else{const C=e||{};c=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}const u=a?t:new dg(Wn(t)),m=i||this.parentInjector;if(!o&&null==u.ngModule){const F=(a?m:this.parentInjector).get(Jc,null);F&&(o=F)}const g=u.create(m,r,void 0,o);return this.insert(g.hostView,c),g}insert(t,e){const i=t._lView,r=i[gt];if(function Ha(n){return rs(n[ri])}(i)){const g=this.indexOf(t);if(-1!==g)this.detach(g);else{const C=i[ri],F=new nT(C,C[Ir],C[ri]);F.detach(F.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;!function Do(n,t,e,i){const r=qr+i,o=e.length;i>0&&(e[r-1][Bo]=t),i0)i.push(a[c/2]);else{const m=o[c+1],g=t[-u];for(let C=qr;C{class n{constructor(e){this.appInits=e,this.resolve=kb,this.reject=kb,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:c,error:u})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(te(kT,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const If=new ye("AppId",{providedIn:"root",factory:function ST(){return`${U0()}${U0()}${U0()}`}});function U0(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const AT=new ye("Platform Initializer"),Eg=new ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Nr=new ye("AnimationModuleType"),nc=new ye("LocaleId",{providedIn:"root",factory:()=>qn(nc,Kt.Optional|Kt.SkipSelf)||function HR(){return typeof $localize<"u"&&$localize.locale||Mf}()}),WR=(()=>Promise.resolve(0))();function W0(n){typeof Zone>"u"?WR.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Ht{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!1),typeof Zone>"u")throw new Ce(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function GR(){let n=Fn.requestAnimationFrame,t=Fn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function YR(n){const t=()=>{!function qR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Fn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Z0(n),n.isCheckStableRunning=!0,G0(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Z0(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,c)=>{try{return OT(n),e.invokeTask(r,o,a,c)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),PT(n)}},onInvoke:(e,i,r,o,a,c,u)=>{try{return OT(n),e.invoke(r,o,a,c,u)}finally{n.shouldCoalesceRunChangeDetection&&t(),PT(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Z0(n),G0(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ht.isInAngularZone())throw new Ce(909,!1)}static assertNotInAngularZone(){if(Ht.isInAngularZone())throw new Ce(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,t,ZR,kb,kb);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const ZR={};function G0(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Z0(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function OT(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function PT(n){n._nesting--,G0(n)}class KR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ve,this.onMicrotaskEmpty=new Ve,this.onStable=new Ve,this.onError=new Ve}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const RT=new ye(""),Ab=new ye("");let K0,q0=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,K0||(function XR(n){K0=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ht.assertNotInAngularZone(),W0(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())W0(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(Y0),te(Ab))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Y0=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return K0?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const td=!1;let pu=null;const LT=new ye("AllowMultipleToken"),X0=new ye("PlatformDestroyListeners"),QR=new ye("appBootstrapListener");function BT(n,t,e=[]){const i=`Platform: ${t}`,r=new ye(i);return(o=[])=>{let a=Q0();if(!a||a.injector.get(LT,!1)){const c=[...e,...o,{provide:r,useValue:!0}];n?n(c):function tL(n){if(pu&&!pu.get(LT,!1))throw new Ce(400,!1);pu=n;const t=n.get(HT);(function NT(n){const t=n.get(AT,null);t&&t.forEach(e=>e())})(n)}(function VT(n=[],t){return Wo.create({name:t,providers:[{provide:Rh,useValue:"platform"},{provide:X0,useValue:new Set([()=>pu=null])},...n]})}(c,i))}return function iL(n){const t=Q0();if(!t)throw new Ce(401,!1);return t}()}}function Q0(){return pu?.get(HT)??null}let HT=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function $T(n,t){let e;return e="noop"===n?new KR:("zone.js"===n?void 0:n)||new Ht(t),e}(i?.ngZone,function zT(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ht,useValue:r}];return r.run(()=>{const a=Wo.create({providers:o,parent:this.injector,name:e.moduleType.name}),c=e.create(a),u=c.injector.get(ze,null);if(!u)throw new Ce(402,!1);return r.runOutsideAngular(()=>{const m=r.onError.subscribe({next:g=>{u.handleError(g)}});c.onDestroy(()=>{Ib(this._modules,c),m.unsubscribe()})}),function jT(n,t,e){try{const i=e();return bb(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(u,r,()=>{const m=c.injector.get(Sb);return m.runInitializers(),m.donePromise.then(()=>(function pD(n){Sr(n,"Expected localeId to be defined"),"string"==typeof n&&(fD=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(nc,Mf)||Mf),this._moduleDoBootstrap(c),c))})})}bootstrapModule(e,i=[]){const r=UT({},i);return function JR(n,t,e){const i=new I0(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Mg);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ce(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(X0,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(te(Wo))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function UT(n,t){return Array.isArray(t)?t.reduce(UT,n):{...n,...t}}let Mg=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new at(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),a=new at(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Ht.assertNotInAngularZone(),W0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const m=this._zone.onUnstable.subscribe(()=>{Ht.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),m.unsubscribe()}});this.isStable=on(o,a.pipe(Ds()))}bootstrap(e,i){const r=e instanceof sb;if(!this._injector.get(Sb).done){!r&&function Fs(n){const t=Wn(n)||li(n)||_r(n);return null!==t&&t.standalone}(e);throw new Ce(405,td)}let a;a=r?e:this._injector.get(uu).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const c=function eL(n){return n.isBoundToModule}(a)?void 0:this._injector.get(kf),m=a.create(Wo.NULL,[],i||a.selector,c),g=m.location.nativeElement,C=m.injector.get(RT,null);return C?.registerApplication(g),m.onDestroy(()=>{this.detachView(m.hostView),Ib(this.components,m),C?.unregisterApplication(g)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new Ce(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Ib(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(QR,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ib(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ce(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(Jc),te(ze))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ib(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let ti=(()=>{class n{}return n.__NG_ELEMENT_ID__=oL,n})();function oL(n){return function sL(n,t,e){if(Id(n)&&!e){const i=Xr(n.index,t);return new cg(i,i)}return 47&n.type?new cg(t[br],t):null}(yr(),Te(),16==(16&n))}class YT{constructor(){}supports(t){return gb(t)}create(t){return new hL(t)}}const uL=(n,t)=>t;class hL{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||uL}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(r,c),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,c,a,r)),Object.is(e.item,c)||this._addIdentityChange(e,c)):(e=this._mismatch(e,c,a,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new mL(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new KT),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new KT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class mL{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class fL{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class KT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new fL,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function XT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const i=new gL(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class gL{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function JT(){return new Pb([new YT])}let Pb=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||JT()),deps:[[n,new zl,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ce(901,!1)}}return n.\u0275prov=B({token:n,providedIn:"root",factory:JT}),n})();function eE(){return new kg([new QT])}let kg=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||eE()),deps:[[n,new zl,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ce(901,!1)}}return n.\u0275prov=B({token:n,providedIn:"root",factory:eE}),n})();const yL=BT(null,"core",[]);let vL=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(te(Mg))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();let rC=null;function nd(){return rC}class wL{}const en=new ye("DocumentToken");let tE=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:function(){return function DL(){return te(nE)}()},providedIn:"platform"}),n})(),nE=(()=>{class n extends tE{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nd().getBaseHref(this._doc)}onPopState(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){iE()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){iE()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:function(){return function TL(){return new nE(te(en))}()},providedIn:"platform"}),n})();function iE(){return!!window.history.pushState}function rE(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function oE(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Hh(n){return n&&"?"!==n[0]?"?"+n:n}let oC=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:function(){return qn(ML)},providedIn:"root"}),n})();const EL=new ye("appBaseHref");let ML=(()=>{class n extends oC{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??qn(en).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return rE(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Hh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const a=this.prepareExternalUrl(r+Hh(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){const a=this.prepareExternalUrl(r+Hh(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(te(tE),te(EL,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sE=(()=>{class n{constructor(e){this._subject=new Ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function AL(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(oE(aE(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Hh(i))}normalize(e){return n.stripTrailingSlash(function SL(n,t){if(!n||!t.startsWith(n))return t;const e=t.substring(n.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,aE(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Hh,n.joinWithSlash=rE,n.stripTrailingSlash=oE,n.\u0275fac=function(e){return new(e||n)(te(oC))},n.\u0275prov=B({token:n,factory:function(){return function kL(){return new sE(te(oC))}()},providedIn:"root"}),n})();function aE(n){return n.replace(/\/index.html$/,"")}function gE(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const pC=/\s+/,_E=[];let Ff=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=_E,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(pC):_E}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(pC):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(pC).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(E(Pb),E(kg),E(h),E(w))},n.\u0275dir=xe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class p2{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let fs=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new p2(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const c=i.get(o);i.move(c,a),vE(c,r)}});for(let r=0,o=i.length;r{vE(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr),E(Pb))},n.\u0275dir=xe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function vE(n,t){n.context.$implicit=t.item}let Si=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new _2,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){CE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){CE("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr))},n.\u0275dir=xe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class _2{constructor(){this.$implicit=null,this.ngIf=null}}function CE(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Un(t)}'.`)}class gC{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Of=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),Ub=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new gC(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr),E(Of,9))},n.\u0275dir=xe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),xE=(()=>{class n{constructor(e,i,r){r._addDefault(new gC(e,i))}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(Cr),E(Of,9))},n.\u0275dir=xe({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),DE=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(E(xr))},n.\u0275dir=xe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ci]}),n})();class v2{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class C2{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const x2=new C2,w2=new v2;let _C=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(bb(e))return x2;if(w1(e))return w2;throw function il(n,t){return new Ce(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(E(ti,16))},n.\u0275pipe=Gr({name:"async",type:n,pure:!1,standalone:!0}),n})(),TE=(()=>{class n{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=EE}transform(e,i=EE){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const r=this.differ.diff(e),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(a=>{this.keyValues.push(function L2(n,t){return{key:n,value:t}}(a.key,a.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}}return n.\u0275fac=function(e){return new(e||n)(E(kg,16))},n.\u0275pipe=Gr({name:"keyvalue",type:n,pure:!1,standalone:!0}),n})();function EE(n,t){const e=n.key,i=t.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const ME="browser";function kE(n){return n===ME}class AE{}class gN extends wL{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class xC extends gN{static makeCurrent(){!function xL(n){rC||(rC=n)}(new xC)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function _N(){return Fg=Fg||document.querySelector("base"),Fg?Fg.getAttribute("href"):null}();return null==e?null:function bN(n){Zb=Zb||document.createElement("a"),Zb.setAttribute("href",n);const t=Zb.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Fg=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return gE(document.cookie,t)}}let Zb,Fg=null;const RE=new ye("TRANSITION_ID"),vN=[{provide:kT,useFactory:function yN(n,t,e){return()=>{e.get(Sb).donePromise.then(()=>{const i=nd(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const qb=new ye("EventManagerPlugins");let Yb=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Og=(()=>{class n extends NE{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const wC={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},DC=/%COMP%/g,HE=new ye("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function zE(n,t){return t.flat(100).map(e=>e.replace(DC,n))}function $E(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Kb=(()=>{class n{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new TC(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof WE?r.applyToHost(e):r instanceof EC&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestory;switch(i.encapsulation){case ho.Emulated:o=new WE(a,c,i,this.appId,u);break;case ho.ShadowDom:return new SN(a,c,e,i);default:o=new EC(a,c,i,u)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(te(Yb),te(Og),te(If),te(HE))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class TC{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(wC[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(UE(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(UE(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=wC[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=wC[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Jr.DashCase|Jr.Important)?t.style.setProperty(e,i,r&Jr.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Jr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,$E(i)):this.eventManager.addEventListener(t,e,$E(i))}}function UE(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class SN extends TC{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=zE(r.id,r.styles);for(const a of o){const c=document.createElement("style");c.textContent=a,this.shadowRoot.appendChild(c)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class EC extends TC{constructor(t,e,i,r,o=i.id){super(t),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=zE(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class WE extends EC{constructor(t,e,i,r,o){const a=r+"-"+i.id;super(t,e,i,o,a),this.contentAttr=function EN(n){return"_ngcontent-%COMP%".replace(DC,n)}(a),this.hostAttr=function MN(n){return"_nghost-%COMP%".replace(DC,n)}(a)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}let AN=(()=>{class n extends LE{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const GE=["alt","control","meta","shift"],IN={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},FN={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let ON=(()=>{class n extends LE{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),a=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nd().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),GE.forEach(m=>{const g=i.indexOf(m);g>-1&&(i.splice(g,1),a+=m+".")}),a+=o,0!=i.length||0===o.length)return null;const u={};return u.domEventName=r,u.fullKey=a,u}static matchEventFullKeyCode(e,i){let r=IN[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),GE.forEach(a=>{a!==r&&(0,FN[a])(e)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const NN=BT(yL,"browser",[{provide:Eg,useValue:ME},{provide:AT,useValue:function PN(){xC.makeCurrent()},multi:!0},{provide:en,useFactory:function LN(){return function Sv(n){Gp=n}(document),document},deps:[]}]),YE=new ye(""),KE=[{provide:Ab,useClass:class CN{addToWindow(t){Fn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Fn.getAllAngularTestabilities=()=>t.getAllTestabilities(),Fn.getAllAngularRootElements=()=>t.getAllRootElements(),Fn.frameworkStabilizers||(Fn.frameworkStabilizers=[]),Fn.frameworkStabilizers.push(i=>{const r=Fn.getAllAngularTestabilities();let o=r.length,a=!1;const c=function(u){a=a||u,o--,0==o&&i(a)};r.forEach(function(u){u.whenStable(c)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?nd().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:RT,useClass:q0,deps:[Ht,Y0,Ab]},{provide:q0,useClass:q0,deps:[Ht,Y0,Ab]}],XE=[{provide:Rh,useValue:"root"},{provide:ze,useFactory:function RN(){return new ze},deps:[]},{provide:qb,useClass:AN,multi:!0,deps:[en,Ht,Eg]},{provide:qb,useClass:ON,multi:!0,deps:[en]},{provide:Kb,useClass:Kb,deps:[Yb,Og,If,HE]},{provide:b,useExisting:Kb},{provide:NE,useExisting:Og},{provide:Og,useClass:Og,deps:[en]},{provide:Yb,useClass:Yb,deps:[qb,Ht]},{provide:AE,useClass:xN,deps:[]},[]];let QE=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:If,useValue:e.appId},{provide:RE,useExisting:If},vN]}}}return n.\u0275fac=function(e){return new(e||n)(te(YE,12))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[...XE,...KE],imports:[wa,vL]}),n})();typeof window<"u"&&window;let Xb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:function(e){let i=null;return i=e?new(e||n):te(tM),i},providedIn:"root"}),n})(),tM=(()=>{class n extends Xb{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case zn.NONE:return i;case zn.HTML:return Uo(i,"HTML")?no(i):Ph(this._doc,String(i)).toString();case zn.STYLE:return Uo(i,"Style")?no(i):i;case zn.SCRIPT:if(Uo(i,"Script"))return no(i);throw new Error("unsafe value used in a script context");case zn.URL:return Uo(i,"URL")?no(i):Fh(String(i));case zn.RESOURCE_URL:if(Uo(i,"ResourceURL"))return no(i);throw new Error(`unsafe value used in a resource URL context (see ${Ti})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Ti})`)}}bypassSecurityTrustHtml(e){return function j_(n){return new qp(n)}(e)}bypassSecurityTrustStyle(e){return function Yp(n){return new ya(n)}(e)}bypassSecurityTrustScript(e){return function Kp(n){return new au(n)}(e)}bypassSecurityTrustUrl(e){return function Kc(n){return new to(n)}(e)}bypassSecurityTrustResourceUrl(e){return function Iv(n){return new Ih(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:function(e){let i=null;return i=e?new e:function UN(n){return new tM(n.get(en))}(te(Wo)),i},providedIn:"root"}),n})();class nM{}class WN{}const rd="*";function od(n,t){return{type:7,name:n,definitions:t,options:{}}}function Eo(n,t=null){return{type:4,styles:t,timings:n}}function GN(n,t=null){return{type:3,steps:n,options:t}}function iM(n,t=null){return{type:2,steps:n,options:t}}function xi(n){return{type:6,styles:n,offset:null}}function Da(n,t,e){return{type:0,name:n,styles:t,options:e}}function Mo(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function ZN(n=null){return{type:9,options:n}}function qN(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function rM(n){Promise.resolve().then(n)}class Pg{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){rM(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class oM{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?rM(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,c)=>Math.max(a,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const SC="!";function sM(n){return new Ce(3e3,!1)}function SB(){return typeof window<"u"&&typeof window.document<"u"}function AC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function _u(n){switch(n.length){case 0:return new Pg;case 1:return n[0];default:return new oM(n)}}function aM(n,t,e,i,r=new Map,o=new Map){const a=[],c=[];let u=-1,m=null;if(i.forEach(g=>{const C=g.get("offset"),F=C==u,O=F&&m||new Map;g.forEach((V,U)=>{let ie=U,ue=V;if("offset"!==U)switch(ie=t.normalizePropertyName(ie,a),ue){case SC:ue=r.get(U);break;case rd:ue=o.get(U);break;default:ue=t.normalizeStyleValue(U,ie,ue,a)}O.set(ie,ue)}),F||c.push(O),m=O,u=C}),a.length)throw function _B(n){return new Ce(3502,!1)}();return c}function IC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&FC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&FC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&FC(e,"destroy",n)))}}function FC(n,t,e){const o=OC(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),a=n._data;return null!=a&&(o._data=a),o}function OC(n,t,e,i,r="",o=0,a){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Gs(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function lM(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let PC=(n,t)=>!1,cM=(n,t,e)=>[],dM=null;function RC(n){const t=n.parentNode||n.host;return t===dM?null:t}(AC()||typeof Element<"u")&&(SB()?(dM=(()=>document.documentElement)(),PC=(n,t)=>{for(;t;){if(t===n)return!0;t=RC(t)}return!1}):PC=(n,t)=>n.contains(t),cM=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let zh=null,uM=!1;const hM=PC,mM=cM;let fM=(()=>{class n{validateStyleProperty(e){return function IB(n){zh||(zh=function FB(){return typeof document<"u"?document.body:null}()||{},uM=!!zh.style&&"WebkitAppearance"in zh.style);let t=!0;return zh.style&&!function AB(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in zh.style,!t&&uM&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in zh.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return hM(e,i)}getParentElement(e){return RC(e)}query(e,i,r){return mM(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,c=[],u){return new Pg(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),LC=(()=>{class n{}return n.NOOP=new fM,n})();const OB=1e3,NC="ng-enter",Qb="ng-leave",Jb="ng-trigger",ey=".ng-trigger",gM="ng-animating",BC=".ng-animating";function sd(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:VC(parseFloat(t[1]),t[2])}function VC(n,t){return"s"===t?n*OB:n}function ty(n,t,e){return n.hasOwnProperty("duration")?n:function RB(n,t,e){let r,o=0,a="";if("string"==typeof n){const c=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return t.push(sM()),{duration:0,delay:0,easing:""};r=VC(parseFloat(c[1]),c[2]);const u=c[3];null!=u&&(o=VC(parseFloat(u),c[4]));const m=c[5];m&&(a=m)}else r=n;if(!e){let c=!1,u=t.length;r<0&&(t.push(function YN(){return new Ce(3100,!1)}()),c=!0),o<0&&(t.push(function KN(){return new Ce(3101,!1)}()),c=!0),c&&t.splice(u,0,sM())}return{duration:r,delay:o,easing:a}}(n,t,e)}function Rg(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function _M(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function bu(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function yM(n,t,e){return e?t+":"+e+";":""}function vM(n){let t="";for(let e=0;e{const o=zC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),AC()&&vM(n))}function $h(n,t){n.style&&(t.forEach((e,i)=>{const r=zC(i);n.style[r]=""}),AC()&&vM(n))}function Lg(n){return Array.isArray(n)?1==n.length?n[0]:iM(n):n}const HC=new RegExp("{{\\s*(.+?)\\s*}}","g");function CM(n){let t=[];if("string"==typeof n){let e;for(;e=HC.exec(n);)t.push(e[1]);HC.lastIndex=0}return t}function Ng(n,t,e){const i=n.toString(),r=i.replace(HC,(o,a)=>{let c=t[a];return null==c&&(e.push(function QN(n){return new Ce(3003,!1)}()),c=""),c.toString()});return r==i?n:r}function ny(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const BB=/-+([a-z0-9])/g;function zC(n){return n.replace(BB,(...t)=>t[1].toUpperCase())}function VB(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Zs(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function JN(n){return new Ce(3004,!1)}()}}function xM(n,t){return window.getComputedStyle(n)[t]}const oy="*";function WB(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function GB(n,t,e){if(":"==n[0]){const u=function ZB(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof u)return void t.push(u);n=u}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function hB(n){return new Ce(3015,!1)}()),t;const r=i[1],o=i[2],a=i[3];t.push(wM(r,a));"<"==o[0]&&!(r==oy&&a==oy)&&t.push(wM(a,r))}(i,e,t)):e.push(n),e}const sy=new Set(["true","1"]),ay=new Set(["false","0"]);function wM(n,t){const e=sy.has(n)||ay.has(n),i=sy.has(t)||ay.has(t);return(r,o)=>{let a=n==oy||n==r,c=t==oy||t==o;return!a&&e&&"boolean"==typeof r&&(a=r?sy.has(n):ay.has(n)),!c&&i&&"boolean"==typeof o&&(c=o?sy.has(t):ay.has(t)),a&&c}}const qB=new RegExp("s*:selfs*,?","g");function $C(n,t,e,i){return new YB(n).build(t,e,i)}class YB{constructor(t){this._driver=t}build(t,e,i){const r=new QB(e);return this._resetContextStyleTimingState(r),Zs(this,Lg(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push(function tB(){return new Ce(3006,!1)}()),t.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const u=c,m=u.name;m.toString().split(/\s*,\s*/).forEach(g=>{u.name=g,o.push(this.visitState(u,e))}),u.name=m}else if(1==c.type){const u=this.visitTransition(c,e);i+=u.queryCount,r+=u.depCount,a.push(u)}else e.errors.push(function nB(){return new Ce(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(c=>{c instanceof Map&&c.forEach(u=>{CM(u).forEach(m=>{a.hasOwnProperty(m)||o.add(m)})})}),o.size&&(ny(o.values()),e.errors.push(function iB(n,t){return new Ce(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Zs(this,Lg(t.animation),e);return{type:1,matchers:WB(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:jh(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Zs(this,i,e)),options:jh(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(a=>{e.currentTime=i;const c=Zs(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:o,options:jh(t.options)}}visitAnimate(t,e){const i=function e3(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return jC(ty(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=jC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=ty(e,t);return jC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:xi({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=t.styles,c=!1;if(!a){c=!0;const m={};i.easing&&(m.easing=i.easing),a=xi(m)}e.currentTime+=i.duration+i.delay;const u=this.visitStyle(a,e);u.isEmptyStep=c,r=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let c of r)"string"==typeof c?c===rd?i.push(c):e.errors.push(new Ce(3002,!1)):i.push(_M(c));let o=!1,a=null;return i.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(a=c.get("easing"),c.delete("easing")),!o))for(let u of c.values())if(u.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(a=>{"string"!=typeof a&&a.forEach((c,u)=>{const m=e.collectedStyles.get(e.currentQuerySelector),g=m.get(u);let C=!0;g&&(o!=r&&o>=g.startTime&&r<=g.endTime&&(e.errors.push(function oB(n,t,e,i,r){return new Ce(3010,!1)}()),C=!1),o=g.startTime),C&&m.set(u,{startTime:o,endTime:r}),e.options&&function NB(n,t,e){const i=t.params||{},r=CM(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function XN(n){return new Ce(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function sB(){return new Ce(3011,!1)}()),i;let o=0;const a=[];let c=!1,u=!1,m=0;const g=t.steps.map(ue=>{const Le=this._makeStyleAst(ue,e);let ge=null!=Le.offset?Le.offset:function JB(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(Le.styles),ft=0;return null!=ge&&(o++,ft=Le.offset=ge),u=u||ft<0||ft>1,c=c||ft0&&o{const ge=F>0?Le==O?1:F*Le:a[Le],ft=ge*ie;e.currentTime=V+U.delay+ft,U.duration=ft,this._validateStyleAst(ue,e),ue.offset=ge,i.styles.push(ue)}),i}visitReference(t,e){return{type:8,animation:Zs(this,Lg(t.animation),e),options:jh(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:jh(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:jh(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,a]=function KB(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(qB,"")),n=n.replace(/@\*/g,ey).replace(/@\w+/g,e=>ey+"-"+e.slice(1)).replace(/:animating/g,BC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Gs(e.collectedStyles,e.currentQuerySelector,new Map);const c=Zs(this,Lg(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:jh(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function dB(){return new Ce(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:ty(t.timings,e.errors,!0);return{type:12,animation:Zs(this,Lg(t.animation),e),timings:i,options:null}}}class QB{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function jh(n){return n?(n=Rg(n)).params&&(n.params=function XB(n){return n?Rg(n):null}(n.params)):n={},n}function jC(n,t,e){return{duration:n,delay:t,easing:e}}function UC(n,t,e,i,r,o,a=null,c=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:c}}class ly{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const r3=new RegExp(":enter","g"),s3=new RegExp(":leave","g");function WC(n,t,e,i,r,o=new Map,a=new Map,c,u,m=[]){return(new a3).buildKeyframes(n,t,e,i,r,o,a,c,u,m)}class a3{buildKeyframes(t,e,i,r,o,a,c,u,m,g=[]){m=m||new ly;const C=new GC(t,e,m,r,o,g,[]);C.options=u;const F=u.delay?sd(u.delay):0;C.currentTimeline.delayNextStep(F),C.currentTimeline.setStyles([a],null,C.errors,u),Zs(this,i,C);const O=C.timelines.filter(V=>V.containsAnimation());if(O.length&&c.size){let V;for(let U=O.length-1;U>=0;U--){const ie=O[U];if(ie.element===e){V=ie;break}}V&&!V.allowOnlyTimelineStyles()&&V.setStyles([c],null,C.errors,u)}return O.length?O.map(V=>V.buildKeyframes()):[UC(e,[],[],[],0,F,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const a="number"==typeof o?o:sd(Ng(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const a=null!=i.duration?sd(i.duration):null,c=null!=i.delay?sd(i.delay):null;return 0!==a&&t.forEach(u=>{const m=e.appendInstructionToTimeline(u,a,c);o=Math.max(o,m.duration+m.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Zs(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=cy);const a=sd(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>Zs(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?sd(t.options.delay):0;t.steps.forEach(a=>{const c=e.createSubContext(t.options);o&&c.delayNextStep(o),Zs(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return ty(e.params?Ng(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,c=e.createSubContext().currentTimeline;c.easing=i.easing,t.styles.forEach(u=>{c.forwardTime((u.offset||0)*o),c.setStyles(u.styles,u.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?sd(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cy);let a=i;const c=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let u=null;c.forEach((m,g)=>{e.currentQueryIndex=g;const C=e.createSubContext(t.options,m);o&&C.delayNextStep(o),m===e.element&&(u=C.currentTimeline),Zs(this,t.animation,C),C.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,C.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,a=Math.abs(o.duration),c=a*(e.currentQueryTotal-1);let u=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=c-u;break;case"full":u=i.currentStaggerTime}const g=e.currentTimeline;u&&g.delayNextStep(u);const C=g.currentTime;Zs(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-C+(r.startTime-i.currentTimeline.startTime)}}const cy={};class GC{constructor(t,e,i,r,o,a,c,u){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new dy(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=sd(i.duration)),null!=i.delay&&(r.delay=sd(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=Ng(o[c],a,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new GC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=cy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new l3(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,a){let c=[];if(r&&c.push(this.element),t.length>0){t=(t=t.replace(r3,"."+this._enterClassName)).replace(s3,"."+this._leaveClassName);let m=this._driver.query(this.element,t,1!=i);0!==i&&(m=i<0?m.slice(m.length+i,m.length):m.slice(0,i)),c.push(...m)}return!o&&0==c.length&&a.push(function uB(n){return new Ce(3014,!1)}()),c}}class dy{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dy(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||rd),this._currentKeyframe.set(e,rd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function c3(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,rd)}else bu(r,e)}),e}(t,this._globalTimelineStyles);for(let[c,u]of a){const m=Ng(u,o,i);this._pendingStyles.set(c,m),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??rd),this._updateStyle(c,m)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,u)=>{const m=bu(c,new Map,this._backFill);m.forEach((g,C)=>{g===SC?t.add(C):g===rd&&e.add(C)}),i||m.set("offset",u/this.duration),r.push(m)});const o=t.size?ny(t.values()):[],a=e.size?ny(e.values()):[];if(i){const c=r[0],u=new Map(c);c.set("offset",0),u.set("offset",1),r=[c,u]}return UC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class l3 extends dy{constructor(t,e,i,r,o,a,c=!1){super(t,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=i+e,c=e/a,u=bu(t[0]);u.set("offset",0),o.push(u);const m=bu(t[0]);m.set("offset",EM(c)),o.push(m);const g=t.length-1;for(let C=1;C<=g;C++){let F=bu(t[C]);const O=F.get("offset");F.set("offset",EM((e+O*i)/a)),o.push(F)}i=a,e=0,r="",t=o}return UC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function EM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class ZC{}const d3=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class u3 extends ZC{normalizePropertyName(t,e){return zC(t)}normalizeStyleValue(t,e,i,r){let o="";const a=i.toString().trim();if(d3.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function eB(n,t){return new Ce(3005,!1)}())}return a+o}}function MM(n,t,e,i,r,o,a,c,u,m,g,C,F){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:c,queriedElements:u,preStyleProps:m,postStyleProps:g,totalTime:C,errors:F}}const qC={};class kM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function h3(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,a,c,u,m,g){const C=[],F=this.ast.options&&this.ast.options.params||qC,V=this.buildStyles(i,c&&c.params||qC,C),U=u&&u.params||qC,ie=this.buildStyles(r,U,C),ue=new Set,Le=new Map,ge=new Map,ft="void"===r,jn={params:m3(U,F),delay:this.ast.options?.delay},Xn=g?[]:WC(t,e,this.ast.animation,o,a,V,ie,jn,m,C);let ko=0;if(Xn.forEach(md=>{ko=Math.max(md.duration+md.delay,ko)}),C.length)return MM(e,this._triggerName,i,r,ft,V,ie,[],[],Le,ge,ko,C);Xn.forEach(md=>{const fd=md.element,PI=Gs(Le,fd,new Set);md.preStyleProps.forEach(rm=>PI.add(rm));const b_=Gs(ge,fd,new Set);md.postStyleProps.forEach(rm=>b_.add(rm)),fd!==e&&ue.add(fd)});const hd=ny(ue.values());return MM(e,this._triggerName,i,r,ft,V,ie,Xn,hd,Le,ge,ko)}}function m3(n,t){const e=Rg(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class f3{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Rg(this.defaultParams);return Object.keys(t).forEach(o=>{const a=t[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{a&&(a=Ng(a,r,e));const u=this.normalizer.normalizePropertyName(c,e);a=this.normalizer.normalizeStyleValue(c,u,a,e),i.set(c,a)})}),i}}class g3{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new f3(r.style,r.options&&r.options.params||{},i))}),SM(this.states,"true","1"),SM(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new kM(t,r,this.states))}),this.fallbackTransition=function _3(n,t,e){return new kM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,c)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(a=>a.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function SM(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const b3=new ly;class y3{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],r=[],o=$C(this._driver,e,i,r);if(i.length)throw function bB(n){return new Ce(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=aM(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let a;const c=new Map;if(o?(a=WC(this._driver,e,o,NC,Qb,new Map,new Map,i,b3,r),a.forEach(g=>{const C=Gs(c,g.element,new Map);g.postStyleProps.forEach(F=>C.set(F,null))})):(r.push(function yB(){return new Ce(3300,!1)}()),a=[]),r.length)throw function vB(n){return new Ce(3504,!1)}();c.forEach((g,C)=>{g.forEach((F,O)=>{g.set(O,this._driver.computeStyle(C,O,rd))})});const m=_u(a.map(g=>{const C=c.get(g.element);return this._buildPlayer(g,new Map,C)}));return this._playersById.set(t,m),m.onDestroy(()=>this.destroy(t)),this.players.push(m),m}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function CB(n){return new Ce(3301,!1)}();return e}listen(t,e,i,r){const o=OC(e,"","","");return IC(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const AM="ng-animate-queued",YC="ng-animate-disabled",D3=[],IM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},T3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ta="__ng_removed";class KC{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function S3(n){return n??null}(i?t.value:t),i){const o=Rg(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Bg="void",XC=new KC(Bg);class E3{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ea(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function xB(n,t){return new Ce(3302,!1)}();if(null==i||0==i.length)throw function wB(n){return new Ce(3303,!1)}();if(!function A3(n){return"start"==n||"done"==n}(i))throw function DB(n,t){return new Ce(3400,!1)}();const o=Gs(this._elementListeners,t,[]),a={name:e,phase:i,callback:r};o.push(a);const c=Gs(this._engine.statesByElement,t,new Map);return c.has(e)||(Ea(t,Jb),Ea(t,Jb+"-"+e),c.set(e,XC)),()=>{this._engine.afterFlush(()=>{const u=o.indexOf(a);u>=0&&o.splice(u,1),this._triggers.has(e)||c.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function TB(n){return new Ce(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),a=new QC(this.id,e,t);let c=this._engine.statesByElement.get(t);c||(Ea(t,Jb),Ea(t,Jb+"-"+e),this._engine.statesByElement.set(t,c=new Map));let u=c.get(e);const m=new KC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&m.absorbOptions(u.options),c.set(e,m),u||(u=XC),m.value!==Bg&&u.value===m.value){if(!function O3(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{$h(t,ie),ic(t,ue)})}return}const F=Gs(this._engine.playersByElement,t,[]);F.forEach(U=>{U.namespaceId==this.id&&U.triggerName==e&&U.queued&&U.destroy()});let O=o.matchTransition(u.value,m.value,t,m.params),V=!1;if(!O){if(!r)return;O=o.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:O,fromState:u,toState:m,player:a,isFallbackTransition:V}),V||(Ea(t,AM),a.onStart(()=>{Pf(t,AM)})),a.onDone(()=>{let U=this.players.indexOf(a);U>=0&&this.players.splice(U,1);const ie=this._engine.playersByElement.get(t);if(ie){let ue=ie.indexOf(a);ue>=0&&ie.splice(ue,1)}}),this.players.push(a),F.push(a),a}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,ey,!0);i.forEach(r=>{if(r[Ta])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),a=new Map;if(o){const c=[];if(o.forEach((u,m)=>{if(a.set(m,u.value),this._triggers.has(m)){const g=this.trigger(t,m,Bg,r);g&&c.push(g)}}),c.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),i&&_u(c).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const u=this._triggers.get(a).fallbackTransition,m=i.get(a)||XC,g=new KC(Bg),C=new QC(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:u,fromState:m,toState:g,player:C,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let a=t;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Ta];(!o||o===IM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Ea(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(c=>{if(c.name==i.triggerName){const u=OC(o,i.triggerName,i.fromState.value,i.toState.value);u._data=t,IC(i.player,c.phase,u,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class M3{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new E3(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,c=this.driver.getParentElement(e);for(;c;){const u=r.get(c);if(u){const m=i.indexOf(u);i.splice(m+1,0,t),a=!0;break}c=this.driver.getParentElement(c)}a||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(uy(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!uy(e))return;const o=e[Ta];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){const a=this._fetchNamespace(t);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ea(t,YC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Pf(t,YC))}removeNode(t,e,i,r){if(uy(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[Ta]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return uy(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,ey,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,BC,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return _u(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Ta];if(e&&e.setForRemoval){if(t[Ta]=IM,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(YC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?_u(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function EB(n){return new Ce(3402,!1)}()}_flushAnimations(t,e){const i=new ly,r=[],o=new Map,a=[],c=new Map,u=new Map,m=new Map,g=new Set;this.disabledNodes.forEach(Ot=>{g.add(Ot);const Zt=this.driver.query(Ot,".ng-animate-queued",!0);for(let nn=0;nn{const nn=NC+U++;V.set(Zt,nn),Ot.forEach(Zn=>Ea(Zn,nn))});const ie=[],ue=new Set,Le=new Set;for(let Ot=0;Otue.add(Zn)):Le.add(Zt))}const ge=new Map,ft=PM(F,Array.from(ue));ft.forEach((Ot,Zt)=>{const nn=Qb+U++;ge.set(Zt,nn),Ot.forEach(Zn=>Ea(Zn,nn))}),t.push(()=>{O.forEach((Ot,Zt)=>{const nn=V.get(Zt);Ot.forEach(Zn=>Pf(Zn,nn))}),ft.forEach((Ot,Zt)=>{const nn=ge.get(Zt);Ot.forEach(Zn=>Pf(Zn,nn))}),ie.forEach(Ot=>{this.processLeaveNode(Ot)})});const jn=[],Xn=[];for(let Ot=this._namespaceList.length-1;Ot>=0;Ot--)this._namespaceList[Ot].drainQueuedTransitions(e).forEach(nn=>{const Zn=nn.player,ao=nn.element;if(jn.push(Zn),this.collectedEnterElements.length){const So=ao[Ta];if(So&&So.setForMove){if(So.previousTriggersValues&&So.previousTriggersValues.has(nn.triggerName)){const om=So.previousTriggersValues.get(nn.triggerName),Sa=this.statesByElement.get(nn.element);if(Sa&&Sa.has(nn.triggerName)){const cv=Sa.get(nn.triggerName);cv.value=om,Sa.set(nn.triggerName,cv)}}return void Zn.destroy()}}const lc=!C||!this.driver.containsElement(C,ao),Js=ge.get(ao),Su=V.get(ao),Gi=this._buildInstruction(nn,i,Su,Js,lc);if(Gi.errors&&Gi.errors.length)return void Xn.push(Gi);if(lc)return Zn.onStart(()=>$h(ao,Gi.fromStyles)),Zn.onDestroy(()=>ic(ao,Gi.toStyles)),void r.push(Zn);if(nn.isFallbackTransition)return Zn.onStart(()=>$h(ao,Gi.fromStyles)),Zn.onDestroy(()=>ic(ao,Gi.toStyles)),void r.push(Zn);const NI=[];Gi.timelines.forEach(So=>{So.stretchStartingKeyframe=!0,this.disabledNodes.has(So.element)||NI.push(So)}),Gi.timelines=NI,i.append(ao,Gi.timelines),a.push({instruction:Gi,player:Zn,element:ao}),Gi.queriedElements.forEach(So=>Gs(c,So,[]).push(Zn)),Gi.preStyleProps.forEach((So,om)=>{if(So.size){let Sa=u.get(om);Sa||u.set(om,Sa=new Set),So.forEach((cv,Sw)=>Sa.add(Sw))}}),Gi.postStyleProps.forEach((So,om)=>{let Sa=m.get(om);Sa||m.set(om,Sa=new Set),So.forEach((cv,Sw)=>Sa.add(Sw))})});if(Xn.length){const Ot=[];Xn.forEach(Zt=>{Ot.push(function MB(n,t){return new Ce(3505,!1)}())}),jn.forEach(Zt=>Zt.destroy()),this.reportError(Ot)}const ko=new Map,hd=new Map;a.forEach(Ot=>{const Zt=Ot.element;i.has(Zt)&&(hd.set(Zt,Zt),this._beforeAnimationBuild(Ot.player.namespaceId,Ot.instruction,ko))}),r.forEach(Ot=>{const Zt=Ot.element;this._getPreviousPlayers(Zt,!1,Ot.namespaceId,Ot.triggerName,null).forEach(Zn=>{Gs(ko,Zt,[]).push(Zn),Zn.destroy()})});const md=ie.filter(Ot=>LM(Ot,u,m)),fd=new Map;OM(fd,this.driver,Le,m,rd).forEach(Ot=>{LM(Ot,u,m)&&md.push(Ot)});const b_=new Map;O.forEach((Ot,Zt)=>{OM(b_,this.driver,new Set(Ot),u,SC)}),md.forEach(Ot=>{const Zt=fd.get(Ot),nn=b_.get(Ot);fd.set(Ot,new Map([...Array.from(Zt?.entries()??[]),...Array.from(nn?.entries()??[])]))});const rm=[],RI=[],LI={};a.forEach(Ot=>{const{element:Zt,player:nn,instruction:Zn}=Ot;if(i.has(Zt)){if(g.has(Zt))return nn.onDestroy(()=>ic(Zt,Zn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(Zn.totalTime),void r.push(nn);let ao=LI;if(hd.size>1){let Js=Zt;const Su=[];for(;Js=Js.parentNode;){const Gi=hd.get(Js);if(Gi){ao=Gi;break}Su.push(Js)}Su.forEach(Gi=>hd.set(Gi,ao))}const lc=this._buildAnimation(nn.namespaceId,Zn,ko,o,b_,fd);if(nn.setRealPlayer(lc),ao===LI)rm.push(nn);else{const Js=this.playersByElement.get(ao);Js&&Js.length&&(nn.parentPlayer=_u(Js)),r.push(nn)}}else $h(Zt,Zn.fromStyles),nn.onDestroy(()=>ic(Zt,Zn.toStyles)),RI.push(nn),g.has(Zt)&&r.push(nn)}),RI.forEach(Ot=>{const Zt=o.get(Ot.element);if(Zt&&Zt.length){const nn=_u(Zt);Ot.setRealPlayer(nn)}}),r.forEach(Ot=>{Ot.parentPlayer?Ot.syncPlayerEvents(Ot.parentPlayer):Ot.destroy()});for(let Ot=0;Ot!lc.destroyed);ao.length?I3(this,Zt,ao):this.processLeaveNode(Zt)}return ie.length=0,rm.forEach(Ot=>{this.players.push(Ot),Ot.onDone(()=>{Ot.destroy();const Zt=this.players.indexOf(Ot);this.players.splice(Zt,1)}),Ot.play()}),rm}elementContainsData(t,e){let i=!1;const r=e[Ta];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let a=[];if(e){const c=this.playersByQueriedElement.get(t);c&&(a=c)}else{const c=this.playersByElement.get(t);if(c){const u=!o||o==Bg;c.forEach(m=>{m.queued||!u&&m.triggerName!=r||a.push(m)})}}return(i||r)&&(a=a.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(t,e,i){const o=e.element,a=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:e.triggerName;for(const u of e.timelines){const m=u.element,g=m!==o,C=Gs(i,m,[]);this._getPreviousPlayers(m,g,a,c,e.toState).forEach(O=>{const V=O.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),O.destroy(),C.push(O)})}$h(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,a){const c=e.triggerName,u=e.element,m=[],g=new Set,C=new Set,F=e.timelines.map(V=>{const U=V.element;g.add(U);const ie=U[Ta];if(ie&&ie.removedBeforeQueried)return new Pg(V.duration,V.delay);const ue=U!==u,Le=function F3(n){const t=[];return RM(n,t),t}((i.get(U)||D3).map(ko=>ko.getRealPlayer())).filter(ko=>!!ko.element&&ko.element===U),ge=o.get(U),ft=a.get(U),jn=aM(0,this._normalizer,0,V.keyframes,ge,ft),Xn=this._buildPlayer(V,jn,Le);if(V.subTimeline&&r&&C.add(U),ue){const ko=new QC(t,c,U);ko.setRealPlayer(Xn),m.push(ko)}return Xn});m.forEach(V=>{Gs(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function k3(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,V.element,V))}),g.forEach(V=>Ea(V,gM));const O=_u(F);return O.onDestroy(()=>{g.forEach(V=>Pf(V,gM)),ic(u,e.toStyles)}),C.forEach(V=>{Gs(r,V,[]).push(O)}),O}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Pg(t.duration,t.delay)}}class QC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Pg,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>IC(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Gs(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uy(n){return n&&1===n.nodeType}function FM(n,t){const e=n.style.display;return n.style.display=t??"none",e}function OM(n,t,e,i,r){const o=[];e.forEach(u=>o.push(FM(u)));const a=[];i.forEach((u,m)=>{const g=new Map;u.forEach(C=>{const F=t.computeStyle(m,C,r);g.set(C,F),(!F||0==F.length)&&(m[Ta]=T3,a.push(m))}),n.set(m,g)});let c=0;return e.forEach(u=>FM(u,o[c++])),a}function PM(n,t){const e=new Map;if(n.forEach(c=>e.set(c,[])),0==t.length)return e;const i=1,r=new Set(t),o=new Map;function a(c){if(!c)return i;let u=o.get(c);if(u)return u;const m=c.parentNode;return u=e.has(m)?m:r.has(m)?i:a(m),o.set(c,u),u}return t.forEach(c=>{const u=a(c);u!==i&&e.get(u).push(c)}),e}function Ea(n,t){n.classList?.add(t)}function Pf(n,t){n.classList?.remove(t)}function I3(n,t,e){_u(e).onDone(()=>n.processLeaveNode(t))}function RM(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class hy{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new M3(t,e,i),this._timelineEngine=new y3(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const a=t+"-"+r;let c=this._triggerCache[a];if(!c){const u=[],m=[],g=$C(this._driver,o,u,m);if(u.length)throw function gB(n,t){return new Ce(3404,!1)}();c=function p3(n,t,e){return new g3(n,t,e)}(r,g,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,a]=lM(i);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[a,c]=lM(i);return this._timelineEngine.listen(a,e,c,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let R3=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ic(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ic(this._element,this._initialStyles),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&($h(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($h(this._element,this._endStyles),this._endStyles=null),ic(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function JC(n){let t=null;return n.forEach((e,i)=>{(function L3(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class NM{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:xM(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class N3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return hM(t,e)}getParentElement(t){return RC(t)}query(t,e,i){return mM(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,a=[]){const u={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(u.easing=o);const m=new Map,g=a.filter(O=>O instanceof NM);(function HB(n,t){return 0===n||0===t})(i,r)&&g.forEach(O=>{O.currentSnapshot.forEach((V,U)=>m.set(U,V))});let C=function LB(n){return n.length?n[0]instanceof Map?n:n.map(t=>_M(t)):[]}(e).map(O=>bu(O));C=function zB(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;oa.set(c,xM(n,c)))}}return t}(t,C,m);const F=function P3(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=JC(t[0]),t.length>1&&(i=JC(t[t.length-1]))):t instanceof Map&&(e=JC(t)),e||i?new R3(n,e,i):null}(t,C);return new NM(t,C,u,F)}}let B3=(()=>{class n extends nM{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ho.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?iM(e):e;return BM(this._renderer,null,i,"register",[r]),new V3(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(te(b),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class V3 extends WN{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new H3(this._id,t,e||{},this._renderer)}}class H3{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return BM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function BM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const VM="@.disabled";let z3=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,a)=>{const c=a?.parentNode(o);c&&a.removeChild(c,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let g=this._rendererCache.get(o);return g||(g=new HM("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,g)),g}const a=i.id,c=i.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const u=g=>{Array.isArray(g)?g.forEach(u):this.engine.registerTrigger(a,c,e,g.name,g)};return i.data.animation.forEach(u),new $3(this,c,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,c]=o;a(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(te(b),te(hy),te(Ht))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class HM{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==VM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class $3 extends HM{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==VM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function j3(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function U3(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,c=>{this.factory.scheduleListenerCallback(c._data||-1,i,c)})}return this.delegate.listen(t,e,i)}}const zM=[{provide:nM,useClass:B3},{provide:ZC,useFactory:function G3(){return new u3}},{provide:hy,useClass:(()=>{class n extends hy{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(LC),te(ZC),te(Mg))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})()},{provide:b,useFactory:function Z3(n,t,e){return new z3(n,t,e)},deps:[Kb,hy,Ht]}],ex=[{provide:LC,useFactory:()=>new N3},{provide:Nr,useValue:"BrowserAnimations"},...zM],$M=[{provide:LC,useClass:fM},{provide:Nr,useValue:"NoopAnimations"},...zM];let q3=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?$M:ex}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:ex,imports:[QE]}),n})();const{isArray:Y3}=Array,{getPrototypeOf:K3,prototype:X3,keys:Q3}=Object;function jM(n){if(1===n.length){const t=n[0];if(Y3(t))return{args:t,keys:null};if(function J3(n){return n&&"object"==typeof n&&K3(n)===X3}(t)){const e=Q3(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:e5}=Array;function tx(n){return Vn(t=>function t5(n,t){return e5(t)?n(...t):n(t)}(n,t))}function UM(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function WM(...n){const t=ia(n),{args:e,keys:i}=jM(n),r=new at(o=>{const{length:a}=e;if(!a)return void o.complete();const c=new Array(a);let u=a,m=a;for(let g=0;g{C||(C=!0,m--),c[g]=F},()=>u--,void 0,()=>{(!u||!C)&&(m||o.next(i?UM(i,c):c),o.complete())}))}});return t?r.pipe(tx(t)):r}let GM=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(E(w),E(h))},n.\u0275dir=xe({type:n}),n})(),Uh=(()=>{class n extends GM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,features:[nt]}),n})();const Tr=new ye("NgValueAccessor"),r5={provide:Tr,useExisting:Wt(()=>yo),multi:!0},s5=new ye("CompositionEventMode");let yo=(()=>{class n extends GM{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function o5(){const n=nd()?nd().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(E(w),E(h),E(s5,8))},n.\u0275dir=xe({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ce("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Vt([r5]),nt]}),n})();const a5=!1;function yu(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function qM(n){return null!=n&&"number"==typeof n.length}const Wi=new ye("NgValidators"),vu=new ye("NgAsyncValidators"),l5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class bn{static min(t){return function YM(n){return t=>{if(yu(t.value)||yu(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(yu(t.value)||yu(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function XM(n){return yu(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function QM(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function JM(n){return yu(n.value)||l5.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function ek(n){return t=>yu(t.value)||!qM(t.value)?null:t.value.lengthqM(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function nk(n){if(!n)return fy;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(yu(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return lk(t)}static composeAsync(t){return ck(t)}}function fy(n){return null}function ik(n){return null!=n}function rk(n){const t=bb(n)?hr(n):n;if(a5&&!D1(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new Ce(-1101,e)}return t}function ok(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function sk(n,t){return t.map(e=>e(n))}function ak(n){return n.map(t=>function c5(n){return!n.validate}(t)?t:e=>t.validate(e))}function lk(n){if(!n)return null;const t=n.filter(ik);return 0==t.length?null:function(e){return ok(sk(e,t))}}function nx(n){return null!=n?lk(ak(n)):null}function ck(n){if(!n)return null;const t=n.filter(ik);return 0==t.length?null:function(e){return WM(sk(e,t).map(rk)).pipe(Vn(ok))}}function ix(n){return null!=n?ck(ak(n)):null}function dk(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function uk(n){return n._rawValidators}function hk(n){return n._rawAsyncValidators}function rx(n){return n?Array.isArray(n)?n:[n]:[]}function py(n,t){return Array.isArray(n)?n.includes(t):n===t}function mk(n,t){const e=rx(t);return rx(n).forEach(r=>{py(e,r)||e.push(r)}),e}function fk(n,t){return rx(t).filter(e=>!py(n,e))}class pk{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=nx(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ix(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Yo extends pk{get formDirective(){return null}get path(){return null}}class rl extends pk{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class gk{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let oo=(()=>{class n extends gk{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(E(rl,2))},n.\u0275dir=xe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Jt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[nt]}),n})(),qs=(()=>{class n extends gk{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(E(Yo,10))},n.\u0275dir=xe({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Jt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[nt]}),n})();function _k(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const ax=!1,Vg="VALID",_y="INVALID",Rf="PENDING",Hg="DISABLED";function lx(n){return(by(n)?n.validators:n)||null}function cx(n,t){return(by(t)?t.asyncValidators:n)||null}function by(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function bk(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Ce(1e3,ax?function m5(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!i[e])throw new Ce(1001,ax?function f5(n,t){return`Cannot find form control ${_k(n,t)}`}(t,e):"")}function yk(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Ce(1002,ax?function p5(n,t){return`Must supply a value for form control ${_k(n,t)}`}(t,r):"")})}class dx{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Vg}get invalid(){return this.status===_y}get pending(){return this.status==Rf}get disabled(){return this.status===Hg}get enabled(){return this.status!==Hg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(mk(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(mk(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(fk(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(fk(t,this._rawAsyncValidators))}hasValidator(t){return py(this._rawValidators,t)}hasAsyncValidator(t){return py(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Rf,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Hg,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Vg,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Vg||this.status===Rf)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hg:Vg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Rf,this._hasOwnPendingAsyncValidator=!0;const e=rk(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?Hg:this.errors?_y:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rf)?Rf:this._anyControlsHaveStatus(_y)?_y:Vg}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){by(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function g5(n){return Array.isArray(n)?nx(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function _5(n){return Array.isArray(n)?ix(n):n||null}(this._rawAsyncValidators)}}class Ko extends dx{constructor(t,e,i){super(lx(e),cx(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){yk(this,!0,t),Object.keys(t).forEach(i=>{bk(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Wh=new ye("CallSetDisabledState",{providedIn:"root",factory:()=>zg}),zg="always";function yy(n,t){return[...t.path,n]}function $g(n,t,e=zg){ux(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function v5(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&vk(n,t)})}(n,t),function x5(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function C5(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&vk(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function y5(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function vy(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),xy(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Cy(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ux(n,t){const e=uk(n);null!==t.validator?n.setValidators(dk(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=hk(n);null!==t.asyncValidator?n.setAsyncValidators(dk(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Cy(t._rawValidators,r),Cy(t._rawAsyncValidators,r)}function xy(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=uk(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=hk(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return Cy(t._rawValidators,i),Cy(t._rawAsyncValidators,i),e}function vk(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ck(n,t){ux(n,t)}function mx(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function xk(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function fx(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===yo?e=o:function T5(n){return Object.getPrototypeOf(n.constructor)===Uh}(o)?i=o:r=o}),r||i||e||null}const M5={provide:Yo,useExisting:Wt(()=>Lf)},jg=(()=>Promise.resolve())();let Lf=(()=>{class n extends Yo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ve,this.form=new Ko({},nx(e),ix(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){jg.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),$g(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){jg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){jg.then(()=>{const i=this._findContainer(e.path),r=new Ko({});Ck(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){jg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){jg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,xk(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(E(Wi,10),E(vu,10),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&ce("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vt([M5]),nt]}),n})();function wk(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Dk(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const dt=class extends dx{constructor(t=null,e,i){super(lx(e),cx(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),by(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Dk(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){wk(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wk(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){Dk(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},A5={provide:rl,useExisting:Wt(()=>px)},Mk=(()=>Promise.resolve())();let px=(()=>{class n extends rl{constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new dt,this._registered=!1,this.update=new Ve,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=fx(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),mx(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$g(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Mk.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function iC(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Mk.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?yy(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(E(Yo,9),E(Wi,10),E(vu,10),E(Tr,10),E(ti,8),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Vt([A5]),nt,ci]}),n})(),rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const I5={provide:Tr,useExisting:Wt(()=>gx),multi:!0};let gx=(()=>{class n extends Uh{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ce("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Vt([I5]),nt]}),n})(),kk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const _x=new ye("NgModelWithFormControlWarning"),R5={provide:rl,useExisting:Wt(()=>Nf)};let Nf=(()=>{class n extends rl{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Ve,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=fx(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&vy(i,this,!1),$g(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}mx(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vy(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(E(Wi,10),E(vu,10),E(Tr,10),E(_x,8),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Vt([R5]),nt,ci]}),n})();const L5={provide:Yo,useExisting:Wt(()=>so)};let so=(()=>{class n extends Yo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ve,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xy(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return $g(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){vy(e.control||null,e,!1),function E5(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,xk(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(vy(i||null,e),(n=>n instanceof dt)(r)&&($g(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Ck(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function w5(n,t){return xy(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ux(this.form,this),this._oldForm&&xy(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(E(Wi,10),E(vu,10),E(Wh,8))},n.\u0275dir=xe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ce("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Vt([L5]),nt,ci]}),n})();const V5={provide:rl,useExisting:Wt(()=>ps)};let ps=(()=>{class n extends rl{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Ve,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=fx(0,o)}ngOnChanges(e){this._added||this._setUpControl(),mx(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return yy(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(E(Yo,13),E(Wi,10),E(vu,10),E(Tr,10),E(_x,8))},n.\u0275dir=xe({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Vt([V5]),nt,ci]}),n})(),$k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[kk]}),n})();class Bf extends dx{constructor(t,e,i){super(lx(e),cx(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){yk(this,!1,t),t.forEach((i,r)=>{bk(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}let e4=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Wh,useValue:e.callSetDisabledState??zg}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$k]}),n})(),t4=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:_x,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Wh,useValue:e.callSetDisabledState??zg}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$k]}),n})();function gs(...n){return hr(n,co(n))}function _s(n,t){return it((e,i)=>{let r=0;e.subscribe(lt(i,o=>n.call(t,o,r++)&&i.next(o)))})}class wy{}class Dx{}class ad{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ad?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ad;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ad?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(c=>-1===o.indexOf(c)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class r4{encodeKey(t){return jk(t)}encodeValue(t){return jk(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const s4=/%(\d[a-f0-9])/gi,a4={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function jk(n){return encodeURIComponent(n).replace(s4,(t,e)=>a4[e]??t)}function Dy(n){return`${n}`}class Cu{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new r4,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function o4(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,c]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],u=e.get(a)||[];u.push(c),e.set(a,u)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Dy):[Dy(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Cu({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Dy(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Dy(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class l4{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Uk(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Wk(n){return typeof Blob<"u"&&n instanceof Blob}function Gk(n){return typeof FormData<"u"&&n instanceof FormData}class Ug{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function c4(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new ad),this.context||(this.context=new l4),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const c=e.indexOf("?");this.urlWithParams=e+(-1===c?"?":cC.set(F,t.setHeaders[F]),u)),t.setParams&&(m=Object.keys(t.setParams).reduce((C,F)=>C.set(F,t.setParams[F]),m)),new Ug(e,i,o,{params:m,headers:u,context:g,reportProgress:c,responseType:r,withCredentials:a})}}var Er=(()=>((Er=Er||{})[Er.Sent=0]="Sent",Er[Er.UploadProgress=1]="UploadProgress",Er[Er.ResponseHeader=2]="ResponseHeader",Er[Er.DownloadProgress=3]="DownloadProgress",Er[Er.Response=4]="Response",Er[Er.User=5]="User",Er))();class Tx{constructor(t,e=200,i="OK"){this.headers=t.headers||new ad,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ex extends Tx{constructor(t={}){super(t),this.type=Er.ResponseHeader}clone(t={}){return new Ex({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ty extends Tx{constructor(t={}){super(t),this.type=Er.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ty({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Zk extends Tx{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Mx(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Wg=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Ug)o=e;else{let u,m;u=r.headers instanceof ad?r.headers:new ad(r.headers),r.params&&(m=r.params instanceof Cu?r.params:new Cu({fromObject:r.params})),o=new Ug(e,i,void 0!==r.body?r.body:null,{headers:u,context:r.context,params:m,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=gs(o).pipe(function n4(n,t){return j(t)?ir(n,t,1):ir(n,1)}(u=>this.handler.handle(u)));if(e instanceof Ug||"events"===r.observe)return a;const c=a.pipe(_s(u=>u instanceof Ty));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Vn(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(Vn(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(Vn(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return c.pipe(Vn(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Cu).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Mx(r,i))}post(e,i,r={}){return this.request("POST",e,Mx(r,i))}put(e,i,r={}){return this.request("PUT",e,Mx(r,i))}}return n.\u0275fac=function(e){return new(e||n)(te(wy))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function qk(n,t){return t(n)}function u4(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const m4=new ye("HTTP_INTERCEPTORS"),Gg=new ye("HTTP_INTERCEPTOR_FNS");function f4(){let n=null;return(t,e)=>(null===n&&(n=(qn(m4,{optional:!0})??[]).reduceRight(u4,qk)),n(t,e))}let Yk=(()=>{class n extends wy{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Gg)));this.chain=i.reduceRight((r,o)=>function h4(n,t,e){return(i,r)=>e.runInContext(()=>t(i,o=>n(o,r)))}(r,o,this.injector),qk)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(te(Dx),te(Jc))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const b4=/^\)\]\}',?\n/;let Xk=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new at(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((O,V)=>r.setRequestHeader(O,V.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const O=e.detectContentTypeHeader();null!==O&&r.setRequestHeader("Content-Type",O)}if(e.responseType){const O=e.responseType.toLowerCase();r.responseType="json"!==O?O:"text"}const o=e.serializeBody();let a=null;const c=()=>{if(null!==a)return a;const O=r.statusText||"OK",V=new ad(r.getAllResponseHeaders()),U=function y4(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new Ex({headers:V,status:r.status,statusText:O,url:U}),a},u=()=>{let{headers:O,status:V,statusText:U,url:ie}=c(),ue=null;204!==V&&(ue=typeof r.response>"u"?r.responseText:r.response),0===V&&(V=ue?200:0);let Le=V>=200&&V<300;if("json"===e.responseType&&"string"==typeof ue){const ge=ue;ue=ue.replace(b4,"");try{ue=""!==ue?JSON.parse(ue):null}catch(ft){ue=ge,Le&&(Le=!1,ue={error:ft,text:ue})}}Le?(i.next(new Ty({body:ue,headers:O,status:V,statusText:U,url:ie||void 0})),i.complete()):i.error(new Zk({error:ue,headers:O,status:V,statusText:U,url:ie||void 0}))},m=O=>{const{url:V}=c(),U=new Zk({error:O,status:r.status||0,statusText:r.statusText||"Unknown Error",url:V||void 0});i.error(U)};let g=!1;const C=O=>{g||(i.next(c()),g=!0);let V={type:Er.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(V.total=O.total),"text"===e.responseType&&r.responseText&&(V.partialText=r.responseText),i.next(V)},F=O=>{let V={type:Er.UploadProgress,loaded:O.loaded};O.lengthComputable&&(V.total=O.total),i.next(V)};return r.addEventListener("load",u),r.addEventListener("error",m),r.addEventListener("timeout",m),r.addEventListener("abort",m),e.reportProgress&&(r.addEventListener("progress",C),null!==o&&r.upload&&r.upload.addEventListener("progress",F)),r.send(o),i.next({type:Er.Sent}),()=>{r.removeEventListener("error",m),r.removeEventListener("abort",m),r.removeEventListener("load",u),r.removeEventListener("timeout",m),e.reportProgress&&(r.removeEventListener("progress",C),null!==o&&r.upload&&r.upload.removeEventListener("progress",F)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(te(AE))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const kx=new ye("XSRF_ENABLED"),Qk=new ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Jk=new ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class eS{}let x4=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gE(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Eg),te(Qk))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function w4(n,t){const e=n.url.toLowerCase();if(!qn(kx)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=qn(eS).getToken(),r=qn(Jk);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var cr=(()=>((cr=cr||{})[cr.Interceptors=0]="Interceptors",cr[cr.LegacyInterceptors=1]="LegacyInterceptors",cr[cr.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",cr[cr.NoXsrfProtection=3]="NoXsrfProtection",cr[cr.JsonpSupport=4]="JsonpSupport",cr[cr.RequestsMadeViaParent=5]="RequestsMadeViaParent",cr))();function Vf(n,t){return{\u0275kind:n,\u0275providers:t}}function D4(...n){const t=[Wg,Xk,Yk,{provide:wy,useExisting:Yk},{provide:Dx,useExisting:Xk},{provide:Gg,useValue:w4,multi:!0},{provide:kx,useValue:!0},{provide:eS,useClass:x4}];for(const e of n)t.push(...e.\u0275providers);return function Uv(n){return{\u0275providers:n}}(t)}const tS=new ye("LEGACY_INTERCEPTOR_FN");let E4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[D4(Vf(cr.LegacyInterceptors,[{provide:tS,useFactory:f4},{provide:Gg,useExisting:tS,multi:!0}]))]}),n})();function Ct(n){return null!=n&&"false"!=`${n}`}function oc(n,t=0){return function M4(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Zg(n){return Array.isArray(n)?n:[n]}function Mr(n){return null==n?"":"string"==typeof n?n:`${n}px`}function er(n){return n instanceof h?n.nativeElement:n}const S4=["addListener","removeListener"],A4=["addEventListener","removeEventListener"],I4=["on","off"];function sc(n,t,e,i){if(j(e)&&(i=e,e=void 0),i)return sc(n,t,e).pipe(tx(i));const[r,o]=function P4(n){return j(n.addEventListener)&&j(n.removeEventListener)}(n)?A4.map(a=>c=>n[a](t,c,e)):function F4(n){return j(n.addListener)&&j(n.removeListener)}(n)?S4.map(nS(n,t)):function O4(n){return j(n.on)&&j(n.off)}(n)?I4.map(nS(n,t)):[];if(!r&&Aa(n))return ir(a=>sc(a,t,e))(ii(n));if(!r)throw new TypeError("Invalid event target");return new at(a=>{const c=(...u)=>a.next(1o(c)})}function nS(n,t){return e=>i=>n[e](t,i)}class R4 extends z{constructor(t,e){super()}schedule(t,e=0){return this}}const Ey={setInterval(n,t,...e){const{delegate:i}=Ey;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Ey;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class Sx extends R4{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return Ey.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Ey.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,q(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const qg={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=qg;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new z(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=qg;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=qg;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0},iS={now:()=>(iS.delegate||Date).now(),delegate:void 0};class Yg{constructor(t,e=Yg.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Yg.now=iS.now;class Ax extends Yg{constructor(t,e=Yg.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const rS=new class N4 extends Ax{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class L4 extends Sx{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=qg.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(qg.cancelAnimationFrame(e),t._scheduled=void 0)}});let Ix,B4=1;const My={};function oS(n){return n in My&&(delete My[n],!0)}const V4={setImmediate(n){const t=B4++;return My[t]=!0,Ix||(Ix=Promise.resolve()),Ix.then(()=>oS(t)&&n()),t},clearImmediate(n){oS(n)}},{setImmediate:H4,clearImmediate:z4}=V4,ky={setImmediate(...n){const{delegate:t}=ky;return(t?.setImmediate||H4)(...n)},clearImmediate(n){const{delegate:t}=ky;return(t?.clearImmediate||z4)(n)},delegate:void 0},Fx=new class j4 extends Ax{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class $4 extends Sx{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=ky.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(ky.clearImmediate(e),t._scheduled=void 0)}}),Kg=new Ax(Sx),U4=Kg;function Sy(n=0,t,e=U4){let i=-1;return null!=t&&(_l(t)?e=t:i=t),new at(r=>{let o=function G4(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Ox(n,t=Kg){return function W4(n){return it((t,e)=>{let i=!1,r=null,o=null,a=!1;const c=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const m=r;r=null,e.next(m)}a&&e.complete()},u=()=>{o=null,a&&e.complete()};t.subscribe(lt(e,m=>{i=!0,r=m,o||ii(n(m)).subscribe(o=lt(e,c,u))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>Sy(n,t))}function fn(n){return it((t,e)=>{ii(n).subscribe(lt(e,()=>e.complete(),Oe)),!e.closed&&t.subscribe(e)})}function Ay(...n){return function Z4(){return gl(1)}()(hr(n,co(n)))}function Vr(...n){const t=co(n);return it((e,i)=>{(t?Ay(n,e,t):Ay(n,e)).subscribe(i)})}let Px;try{Px=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Px=!1}let Hf,Ai=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?kE(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Px)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(te(Eg))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function aS(){if(Hf)return Hf;if("object"!=typeof document||!document)return Hf=new Set(sS),Hf;let n=document.createElement("input");return Hf=new Set(sS.filter(t=>(n.setAttribute("type",t),n.type===t))),Hf}let Xg,Iy,Zh,Rx;function ol(n){return function q4(){if(null==Xg&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xg=!0}))}finally{Xg=Xg||!1}return Xg}()?n:!!n.capture}function lS(){if(null==Zh){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zh=!1,Zh;if("scrollBehavior"in document.documentElement.style)Zh=!0;else{const n=Element.prototype.scrollTo;Zh=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Zh}function Qg(){if("object"!=typeof document||!document)return 0;if(null==Iy){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),Iy=0,0===n.scrollLeft&&(n.scrollLeft=1,Iy=0===n.scrollLeft?1:2),n.remove()}return Iy}function Lx(n){if(function Y4(){if(null==Rx){const n=typeof document<"u"?document.head:null;Rx=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Rx}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Ys(n){return n.composedPath?n.composedPath()[0]:n.target}function Nx(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const K4=new ye("cdk-dir-doc",{providedIn:"root",factory:function X4(){return qn(en)}}),Q4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Hr=(()=>{class n{constructor(e){this.value="ltr",this.change=new Ve,e&&(this.value=function J4(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?Q4.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(te(K4,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const eV=["contentWrapper"],tV=["*"],nV=new ye("VIRTUAL_SCROLL_STRATEGY");let zf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Ae,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new at(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Ox(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):gs()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(_s(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=er(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>sc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(Ai),te(en,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cS=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Ae,this._elementScrolled=new at(a=>this.ngZone.runOutsideAngular(()=>sc(this.elementRef.nativeElement,"scroll").pipe(fn(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Qg()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Qg()?e.left=e.right:1==Qg()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;lS()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:i:"end"==e&&(e=a?i:r),a&&2==Qg()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Qg()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(zf),E(Ht),E(Hr,8))},n.\u0275dir=xe({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),n})(),ld=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Ae,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Ox(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(Ht),te(en,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dS=new ye("VIRTUAL_SCROLLABLE");let oV=(()=>{class n extends cS{constructor(e,i,r,o){super(e,i,r,o)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(zf),E(Ht),E(Hr,8))},n.\u0275dir=xe({type:n,features:[nt]}),n})();const aV=typeof requestAnimationFrame<"u"?rS:Fx;let lV=(()=>{class n extends oV{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ct(e)}constructor(e,i,r,o,a,c,u,m){super(e,c,r,a),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=o,this.scrollable=m,this._platform=qn(Ai),this._detachedSubject=new Ae,this._renderedRangeSubject=new Ae,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new at(g=>this._scrollStrategy.scrolledIndexChange.subscribe(C=>Promise.resolve().then(()=>this.ngZone.run(()=>g.next(C))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=z.EMPTY,this._viewportChanges=u.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Vr(null),Ox(0,aV)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(fn(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function sV(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let u=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(u+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=u&&(this._renderedContentTransform=u,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let i;const r="left",o="right",a="rtl"==this.dir?.value;i="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Ht),E(nV,8),E(Hr,8),E(zf),E(ld),E(dS,8))},n.\u0275cmp=et({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Nn(eV,7),2&e){let r;yt(r=vt())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[Vt([{provide:cS,useFactory:(t,e)=>t||e,deps:[[new ds,new fa(dS)],n]}]),nt,$D],ngContentSelectors:tV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(bi(),y(0,"div",0,1),Gt(2),v(),Pe(3,"div",2)),2&e&&(T(3),mg("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),qh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})(),uS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[Jg,qh,lV,Jg,qh]}),n})();class Bx extends Ae{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function Ks(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function jf(n,t,e){const i=j(n)||t||e?{next:n,error:t,complete:e}:n;return i?it((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let c=!0;r.subscribe(lt(o,u=>{var m;null===(m=i.next)||void 0===m||m.call(i,u),o.next(u)},()=>{var u;c=!1,null===(u=i.complete)||void 0===u||u.call(i),o.complete()},u=>{var m;c=!1,null===(m=i.error)||void 0===m||m.call(i,u),o.error(u)},()=>{var u,m;c&&(null===(u=i.unsubscribe)||void 0===u||u.call(i)),null===(m=i.finalize)||void 0===m||m.call(i)}))}):Ge}function Hx(n,t=Kg){return it((e,i)=>{let r=null,o=null,a=null;const c=()=>{if(r){r.unsubscribe(),r=null;const m=o;o=null,i.next(m)}};function u(){const m=a+n,g=t.now();if(g{o=m,a=t.now(),r||(r=t.schedule(u,n),i.add(r))},()=>{c(),i.complete()},void 0,()=>{o=r=null}))})}function zx(n){return _s((t,e)=>n<=e)}function $x(n,t=Ge){return n=n??wV,it((e,i)=>{let r,o=!0;e.subscribe(lt(i,a=>{const c=t(a);(o||!n(r,c))&&(o=!1,r=c,i.next(a))}))})}function wV(n,t){return n===t}let mS=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DV=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=er(e);return new at(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Ae,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(te(mS))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fS=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=oc(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ve,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Hx(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(DV),E(h),E(Ht))},n.\u0275dir=xe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[mS]}),n})();function pS(n,t,e){n?lo(e,n,t):t()}function zr(n){return n<=0?()=>na:it((t,e)=>{let i=0;t.subscribe(lt(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}const gS=new Set;let Uf,MV=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):SV}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function kV(n){if(!gS.has(n))try{Uf||(Uf=document.createElement("style"),Uf.setAttribute("type","text/css"),document.head.appendChild(Uf)),Uf.sheet&&(Uf.sheet.insertRule(`@media ${n} {body{ }}`,0),gS.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(te(Ai))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function SV(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Ux=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Ae}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return _S(Zg(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=function TV(...n){const t=co(n),e=ia(n),{args:i,keys:r}=jM(n);if(0===i.length)return hr([],t);const o=new at(function EV(n,t,e=Ge){return i=>{pS(t,()=>{const{length:r}=n,o=new Array(r);let a=r,c=r;for(let u=0;u{const m=hr(n[u],t);let g=!1;m.subscribe(lt(i,C=>{o[u]=C,g||(g=!0,c--),c||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,t,r?a=>UM(r,a):Ge));return e?o.pipe(tx(e)):o}(_S(Zg(e)).map(a=>this._registerQuery(a).observable));return o=Ay(o.pipe(zr(1)),o.pipe(zx(1),Hx(0))),o.pipe(Vn(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:m})=>{c.matches=c.matches||u,c.breakpoints[m]=u}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new at(a=>{const c=u=>this._zone.run(()=>a.next(u));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(Vr(i),Vn(({matches:a})=>({query:e,matches:a})),fn(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(te(MV),te(Ht))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _S(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Ry(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const yS="cdk-describedby-message",Ly="cdk-describedby-host";let Wx=0,OV=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Wx++,this._document=e,this._id=qn(If)+"-"+Wx++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=Gx(i,r);"string"!=typeof i?(vS(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=Gx(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Ly}="${this._id}"]`);for(let i=0;i0!=r.indexOf(yS));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function IV(n,t,e){const i=Ry(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ly,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function FV(n,t,e){const r=Ry(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ly)}_isElementDescribedByMessage(e,i){const r=Ry(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ai))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Gx(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function vS(n,t){n.id||(n.id=`${yS}-${t}-${Wx++}`)}class CS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ae,this._typeaheadSubscription=z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ae,this.change=new Ae,t instanceof fu&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(jf(e=>this._pressedLetters.push(e)),Hx(t),_s(()=>this._pressedLetters.length>0),Vn(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof fu?this._items.toArray():this._items}}class xS extends CS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Zx extends CS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function Ny(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function By(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const VV=new ye("cdk-input-modality-detector-options"),HV={ignoreKeys:[18,17,224,91,16]},Wf=ol({passive:!0,capture:!0});let zV=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Bx(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ys(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ny(a)?"keyboard":"mouse"),this._mostRecentTarget=Ys(a))},this._onTouchstart=a=>{By(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ys(a))},this._options={...HV,...o},this.modalityDetected=this._modality.pipe(zx(1)),this.modalityChanged=this.modalityDetected.pipe($x()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wf),r.addEventListener("mousedown",this._onMousedown,Wf),r.addEventListener("touchstart",this._onTouchstart,Wf)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wf),document.removeEventListener("mousedown",this._onMousedown,Wf),document.removeEventListener("touchstart",this._onTouchstart,Wf))}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(Ht),te(en),te(VV,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $V=new ye("liveAnnouncerElement",{providedIn:"root",factory:function jV(){return null}}),UV=new ye("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let WV=0,qx=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{constructor(e,i,r,o,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ae,this._rootNodeFocusAndBlurListener=c=>{for(let m=Ys(c);m;m=m.parentElement)"focus"===c.type?this._onFocus(c,m):this._onBlur(c,m)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const r=er(e);if(!this._platform.isBrowser||1!==r.nodeType)return gs(null);const o=Lx(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const c={checkChildren:i,subject:new Ae,rootNode:o};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const i=er(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=er(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([c,u])=>this._originChanged(c,i,u)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Ys(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vy),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vy)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(fn(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vy),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vy),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Ve}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(xu))},n.\u0275dir=xe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const TS="cdk-high-contrast-black-on-white",ES="cdk-high-contrast-white-on-black",Yx="cdk-high-contrast-active";let MS=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=qn(Ux).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Yx,TS,ES),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(Yx,TS):2===i&&e.add(Yx,ES)}}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kS=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(te(MS))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[jx]}),n})();function ac(n,t){return it((e,i)=>{let r=null,o=0,a=!1;const c=()=>a&&!r&&i.complete();e.subscribe(lt(i,u=>{r?.unsubscribe();let m=0;const g=o++;ii(n(u,g)).subscribe(r=lt(i,C=>i.next(t?t(u,C,g,m++):C),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function Kx(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function Gf(n,t){const e=t?"":"none";Kx(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function SS(n,t,e){Kx(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Hy(n,t){return t&&"none"!=t?n+" "+t:n}function AS(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function Xx(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function Qx(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Jx(n,t,e){const{top:i,bottom:r,left:o,right:a}=n;return e>=i&&e<=r&&t>=o&&t<=a}function n_(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function IS(n,t,e,i){const{top:r,right:o,bottom:a,left:c,width:u,height:m}=n,g=u*t,C=m*t;return i>r-C&&ic-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Qx(e)})})}handleScroll(t){const e=Ys(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,a;if(e===this._document){const m=this.getViewportScrollPosition();o=m.top,a=m.left}else o=e.scrollTop,a=e.scrollLeft;const c=r.top-o,u=r.left-a;return this.positions.forEach((m,g)=>{m.clientRect&&e!==g&&e.contains(g)&&n_(m.clientRect,c,u)}),r.top=o,r.left=a,{top:c,left:u}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function OS(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;rGf(i,e)))}constructor(t,e,i,r,o,a){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Ae,this._pointerMoveSubscription=z.EMPTY,this._pointerUpSubscription=z.EMPTY,this._scrollSubscription=z.EMPTY,this._resizeSubscription=z.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Ae,this.started=new Ae,this.released=new Ae,this.ended=new Ae,this.entered=new Ae,this.exited=new Ae,this.dropped=new Ae,this.moved=this._moveEvents,this._pointerDown=c=>{if(this.beforeStarted.next(),this._handles.length){const u=this._getTargetHandle(c);u&&!this._disabledHandles.has(u)&&!this.disabled&&this._initializeDragSequence(u,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const u=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(u.x-this._pickupPositionOnPage.x)+Math.abs(u.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const O=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),V=this._dropContainer;if(!O)return void this._endDragSequence(c);(!V||!V.isDragging()&&!V.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const m=this._getConstrainedPointerPosition(u);if(this._hasMoved=!0,this._lastKnownPointerPosition=u,this._updatePointerDirectionDelta(m),this._dropContainer)this._updateActiveDropContainer(m,u);else{const g=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,C=this._activeTransform;C.x=m.x-g.x+this._passiveTransform.x,C.y=m.y-g.y+this._passiveTransform.y,this._applyRootElementTransform(C.x,C.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:m,event:c,distance:this._getDragDistance(m),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const u=this._getTargetHandle(c);u&&!this._disabledHandles.has(u)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new FS(i),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>er(i)),this._handles.forEach(i=>Gf(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=er(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,zy),e.addEventListener("touchstart",this._pointerDown,NS),e.addEventListener("dragstart",this._nativeDragStart,zy)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?er(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Gf(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Gf(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){i_(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),SS(i,!1,ew),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=i_(e),o=!r&&0!==e.button,a=this._rootElement,c=Ys(e),u=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),m=r?By(e):Ny(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||u||m)return;if(this._handles.length){const F=a.style;this._rootElementTapHighlight=F.webkitTapHighlightColor||"",F.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(F=>this._updateOnScroll(F)),this._boundaryElement&&(this._boundaryRect=Qx(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const C=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:C.x,y:C.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){SS(this._rootElement,!0,ew),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,a,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),r=VS(a,this._document),this._previewRef=a,t.matchSize?HS(r,o):r.style.transform=$y(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=OS(this._rootElement),HS(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Kx(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ew),Gf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function YV(n){const t=getComputedStyle(n),e=Xx(t,"transition-property"),i=e.find(c=>"transform"===c||"all"===c);if(!i)return 0;const r=e.indexOf(i),o=Xx(t,"transition-duration"),a=Xx(t,"transition-delay");return AS(o[r])+AS(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=a=>{(!a||Ys(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=VS(this._placeholderRef,this._document)):i=OS(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,a=i_(i)?i.targetTouches[0]:i,c=this._getViewportScrollPosition();return{x:o.left-t.left+(a.pageX-o.left-c.left),y:o.top-t.top+(a.pageY-o.top-c.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=i_(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=o,c.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,c=this._boundaryRect,{width:u,height:m}=this._getPreviewRect(),g=c.top+a,C=c.bottom-(m-a);i=BS(i,c.left+o,c.right-(u-o)),r=BS(r,g,C)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),c=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Gf(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,zy),t.removeEventListener("touchstart",this._pointerDown,NS),t.removeEventListener("dragstart",this._nativeDragStart,zy)}_applyRootElementTransform(t,e){const i=$y(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Hy(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=$y(t,e);this._preview.style.transform=Hy(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,a=i.right-r.right,c=r.top-i.top,u=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,r.height>i.height?(c>0&&(e+=c),u>0&&(e-=u)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:i_(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Ys(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&n_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Lx(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return er(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function $y(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function BS(n,t,e){return Math.max(t,Math.min(e,n))}function i_(n){return"t"===n.type[0]}function VS(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function HS(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=$y(t.left,t.top)}function r_(n,t){return Math.max(0,Math.min(t,n))}class e8{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===a&&o.length>0)return null;const c="horizontal"===this.orientation,u=o.findIndex(ie=>ie.drag===t),m=o[a],C=m.clientRect,F=u>a?1:-1,O=this._getItemOffsetPx(o[u].clientRect,C,F),V=this._getSiblingOffsetPx(u,o,F),U=o.slice();return function JV(n,t,e){const i=r_(t,n.length-1),r=r_(e,n.length-1);if(i===r)return;const o=n[i],a=r{if(U[ue]===ie)return;const Le=ie.drag===t,ge=Le?O:V,ft=Le?t.getPlaceholderElement():ie.drag.getRootElement();ie.offset+=ge,c?(ft.style.transform=Hy(`translate3d(${Math.round(ie.offset)}px, 0, 0)`,ie.initialTransform),n_(ie.clientRect,0,ge)):(ft.style.transform=Hy(`translate3d(0, ${Math.round(ie.offset)}px, 0)`,ie.initialTransform),n_(ie.clientRect,ge,0))}),this._previousSwap.overlaps=Jx(C,e,i),this._previousSwap.drag=m.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:u,currentIndex:a}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,a=this._activeDraggables,c=a.indexOf(t),u=t.getPlaceholderElement();let m=a[o];if(m===t&&(m=a[o+1]),!m&&(null==o||-1===o||o-1&&a.splice(c,1),m&&!this._dragDropRegistry.isDragging(m)){const g=m.getRootElement();g.parentElement.insertBefore(u,g),a.splice(o,0,t)}else er(this._element).appendChild(u),a.push(t);u.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{n_(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Qx(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,a=e[t+-1*i];let c=o[r?"width":"height"]*i;if(a){const u=r?"left":"top",m=r?"right":"bottom";-1===i?c-=a.clientRect[u]-o[m]:c+=o[u]-a.clientRect[m]}return c}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return r?t>=a.right:e>=a.bottom}{const a=i[0].clientRect;return r?t<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:u})=>c!==t&&((!r||c!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(u.left)&&e=Math.floor(u.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ae,this.entered=new Ae,this.exited=new Ae,this.dropped=new Ae,this.sorted=new Ae,this.receivingStarted=new Ae,this.receivingStopped=new Ae,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=z.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ae,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function qV(n=0,t=Kg){return n<0&&(n=0),Sy(n,n,t)}(0,rS).pipe(fn(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=er(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new FS(i),this._sortStrategy=new e8(this.element,e),this._sortStrategy.withSortPredicate((a,c)=>this.sortPredicate(a,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,a,c,u={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:c,event:u})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=er(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!IS(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||i||IS(a.clientRect,.05,t,e)&&([r,o]=function n8(n,t,e,i){const r=jS(t,i),o=US(t,e);let a=0,c=0;if(r){const u=n.scrollTop;1===r?u>0&&(a=1):n.scrollHeight-u>n.clientHeight&&(a=2)}if(o){const u=n.scrollLeft;1===o?u>0&&(c=1):n.scrollWidth-u>n.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,t,e),(r||o)&&(i=c))}),!r&&!o){const{width:a,height:c}=this._viewportRuler.getViewportSize(),u={width:a,height:c,top:0,right:a,bottom:c,left:0};r=jS(u,e),o=US(u,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=er(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=er(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=er(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&Jx(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!Jx(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=er(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Lx(er(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function jS(n,t){const{top:e,bottom:i,height:r}=n,o=r*$S;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function US(n,t){const{left:e,right:i,width:r}=n,o=r*$S;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const jy=ol({passive:!1,capture:!0});let i8=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ae,this.pointerUp=new Ae,this.scroll=new Ae,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,jy)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,jy)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:jy}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:jy}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new at(r=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),on(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(te(Ht),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const r8={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let tw=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=r8){return new QV(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new t8(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ht),te(ld),te(i8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nw=new ye("CDK_DRAG_PARENT"),iw=new ye("CdkDropListGroup");let WS=(()=>{class n{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e)}ngOnDestroy(){this._items.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],standalone:!0,features:[Vt([{provide:iw,useExisting:n}])]}),n})();const GS=new ye("CDK_DRAG_CONFIG");let o8=0;const ZS=new ye("CdkDropList");let qS=(()=>{class n{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ct(e)}constructor(e,i,r,o,a,c,u){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=c,this._destroyed=new Ae,this.connectedTo=[],this.id="cdk-drop-list-"+o8++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ve,this.entered=new Ve,this.exited=new Ve,this.sorted=new Ve,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=(m,g)=>this.enterPredicate(m.data,g.data),this._dropListRef.sortPredicate=(m,g,C)=>this.sortPredicate(m,g.data,C.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),c&&c._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Vr(this._dir.value),fn(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=Zg(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Ct(this.sortingDisabled),e.autoScrollDisabled=Ct(this.autoScrollDisabled),e.autoScrollStep=oc(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),on(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=c||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(E(h),E(tw),E(ti),E(zf),E(Hr,8),E(iw,12),E(GS,8))},n.\u0275dir=xe({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&(bt("id",i.id),Jt("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[Vt([{provide:iw,useValue:void 0},{provide:ZS,useExisting:n}])]}),n})();const rw=new ye("CdkDragHandle"),YS=new ye("CdkDragPlaceholder"),KS=new ye("CdkDragPreview");let XS=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ct(e),this._dragRef.disabled=this._disabled}constructor(e,i,r,o,a,c,u,m,g,C,F){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=u,this._changeDetectorRef=g,this._selfHandle=C,this._parentDrag=F,this._destroyed=new Ae,this.started=new Ve,this.released=new Ve,this.ended=new Ve,this.entered=new Ve,this.exited=new Ve,this.dropped=new Ve,this.moved=new at(O=>{const V=this._dragRef.moved.pipe(Vn(U=>({source:this,pointerPosition:U.pointerPosition,event:U.event,delta:U.delta,distance:U.distance}))).subscribe(O);return()=>{V.unsubscribe()}}),this._dragRef=m.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),c&&this._assignDefaults(c),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(zr(1),fn(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):er(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:oc(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(zr(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:c,draggingDisabled:u,rootElementSelector:m,previewContainer:g}=e;this.disabled=u??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),c&&(this.boundaryElement=c),m&&(this.rootElementSelector=m),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.changes.pipe(Vr(this._handles),jf(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),ac(e=>on(...e.map(i=>i._stateChanges.pipe(Vr(i))))),fn(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(E(h),E(ZS,12),E(en),E(Ht),E(xr),E(GS,8),E(Hr,8),E(tw),E(ti),E(rw,10),E(nw,12))},n.\u0275dir=xe({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,KS,5),Bn(r,YS,5),Bn(r,rw,5)),2&e){let o;yt(o=vt())&&(i._previewTemplate=o.first),yt(o=vt())&&(i._placeholderTemplate=o.first),yt(o=vt())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[Vt([{provide:nw,useExisting:n}]),ci]}),n})(),d8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[tw],imports:[qh]}),n})();const u8=["text"];function h8(n,t){if(1&n&&Pe(0,"mat-pseudo-checkbox",6),2&n){const e=Z();N("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function m8(n,t){1&n&&Pe(0,"mat-pseudo-checkbox",7),2&n&&N("disabled",Z().disabled)}function f8(n,t){if(1&n&&(y(0,"span",8),A(1),v()),2&n){const e=Z();T(1),hi("(",e.group.label,")")}}const p8=[[["mat-icon"]],"*"],g8=["mat-icon","*"],b8=new ye("mat-sanity-checks",{providedIn:"root",factory:function _8(){return!0}});let $n=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Nx()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(te(MS),te(b8,8),te(en))},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[Jg,Jg]}),n})();function Kh(n){return class extends n{get disabled(){return this._disabled}set disabled(t){this._disabled=Ct(t)}constructor(...t){super(...t),this._disabled=!1}}}function Zf(n,t){return class extends n{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=t,this.color=t}}}function wu(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ct(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function o_(n,t=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?oc(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function ow(n){return class extends n{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let Uy=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class v8{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const eA=ol({passive:!0,capture:!0});class C8{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=Ys(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,i,r){const o=this._events.get(e);if(o){const a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,eA)})}removeHandler(t,e,i){const r=this._events.get(t);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,eA)))}}const tA={enterDuration:225,exitDuration:150},nA=ol({passive:!0,capture:!0}),iA=["mousedown","touchstart"],rA=["mouseup","mouseleave","touchend","touchcancel"];class a_{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=er(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...tA,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const a=i.radius||function w8(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),c=t-r.left,u=e-r.top,m=o.enterDuration,g=document.createElement("div");g.classList.add("mat-ripple-element"),g.style.left=c-a+"px",g.style.top=u-a+"px",g.style.height=2*a+"px",g.style.width=2*a+"px",null!=i.color&&(g.style.backgroundColor=i.color),g.style.transitionDuration=`${m}ms`,this._containerElement.appendChild(g);const C=window.getComputedStyle(g),O=C.transitionDuration,V="none"===C.transitionProperty||"0s"===O||"0s, 0s"===O||0===r.width&&0===r.height,U=new v8(this,g,i,V);g.style.transform="scale3d(1, 1, 1)",U.state=0,i.persistent||(this._mostRecentTransientRipple=U);let ie=null;return!V&&(m||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ue=()=>this._finishRippleTransition(U),Le=()=>this._destroyRipple(U);g.addEventListener("transitionend",ue),g.addEventListener("transitioncancel",Le),ie={onTransitionEnd:ue,onTransitionCancel:Le}}),this._activeRipples.set(U,ie),(V||!m)&&this._finishRippleTransition(U),U}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...tA,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=er(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,iA.forEach(i=>{a_._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{rA.forEach(e=>{this._triggerElement.addEventListener(e,this,nA)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=Ny(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(iA.forEach(e=>a_._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&rA.forEach(e=>t.removeEventListener(e,this,nA)))}}a_._eventManager=new C8;const sw=new ye("mat-ripple-global-options");let Xo=(()=>{class n{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new a_(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht),E(Ai),E(sw,8),E(Nr,8))},n.\u0275dir=xe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Xh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,$n]}),n})(),D8=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return n.\u0275fac=function(e){return new(e||n)(E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&Jt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal","minimal"===i.appearance)("mat-pseudo-checkbox-full","full"===i.appearance)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),n})(),T8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n]}),n})();const aw=new ye("MAT_OPTION_PARENT_COMPONENT"),lw=new ye("MatOptgroup");let E8=0;class oA{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let M8=(()=>{class n{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Ct(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+E8++,this.onSelectionChange=new Ve,this._stateChanges=new Ae}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ks(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new oA(this,e))}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(u8,7),2&e){let r;yt(r=vt())&&(i._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Qh=(()=>{class n extends M8{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(aw,8),E(lw,8))},n.\u0275cmp=et({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(e,i){1&e&&ce("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Ws("id",i.id),bt("tabindex",i._getTabIndex())("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),Jt("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},exportAs:["matOption"],features:[nt],ngContentSelectors:g8,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(bi(p8),K(0,h8,1,2,"mat-pseudo-checkbox",0),Gt(1),y(2,"span",1,2),Gt(4,1),v(),K(5,m8,1,1,"mat-pseudo-checkbox",3),K(6,f8,2,1,"span",4),Pe(7,"div",5)),2&e&&(N("ngIf",i.multiple),T(5),N("ngIf",!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator),T(1),N("ngIf",i.group&&i.group._inert),T(1),N("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[Xo,Si,D8],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),n})();function sA(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,n-i+t):e}let Wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[Xh,wa,$n,T8]}),n})();class cw{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Gy extends cw{constructor(t,e,i,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Jh extends cw{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class k8 extends cw{constructor(t){super(),this.element=t instanceof h?t.nativeElement:t}}class dw{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Gy?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Jh?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof k8?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class S8 extends dw{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const c=a.element,u=this._document.createComment("dom-portal");c.parentNode.insertBefore(u,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(c,u)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Wo.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let A8=(()=>{class n extends Jh{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(E(Cr),E(xr))},n.\u0275dir=xe({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[nt]}),n})(),l_=(()=>{class n extends dw{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ve,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(E(uu),E(xr),E(en))},n.\u0275dir=xe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[nt]}),n})(),uw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const lA=lS();class F8{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Mr(-this._previousScrollPosition.left),t.style.top=Mr(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),lA&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),lA&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class O8{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class cA{enable(){}disable(){}attach(){}}function hw(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function dA(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class P8{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();hw(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let R8=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new cA,this.close=a=>new O8(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new F8(this._viewportRuler,this._document),this.reposition=a=>new P8(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(te(zf),te(ld),te(Ht),te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class c_{constructor(t){if(this.scrollStrategy=new cA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class L8{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let uA=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(te(en))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N8=(()=>{class n extends uA{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const c=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ht,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),B8=(()=>{class n extends uA{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ys(o)},this._clickListener=o=>{const a=Ys(o),c="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const u=this._attachedOverlays.slice();for(let m=u.length-1;m>-1;m--){const g=u[m];if(g._outsidePointerEvents.observers.length<1||!g.hasAttached())continue;if(g.overlayElement.contains(a)||g.overlayElement.contains(c))break;const C=g._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>C.next(o)):C.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(te(en),te(Ai),te(Ht,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hA=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Nx()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(C),this._backdropTransitionendHandler=C=>{this._disposeBackdrop(C.target)},this._keydownEvents=new Ae,this._outsidePointerEvents=new Ae,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(zr(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Mr(this._config.width),t.height=Mr(this._config.height),t.minWidth=Mr(this._config.minWidth),t.minHeight=Mr(this._config.minHeight),t.maxWidth=Mr(this._config.maxWidth),t.maxHeight=Mr(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=Zg(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(fn(on(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const mA="cdk-overlay-connected-position-bounding-box",H8=/([A-Za-z%]+)$/;class z8{get positions(){return this._preferredPositions}constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ae,this._resizeSubscription=z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(mA),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let a;for(let c of this._preferredPositions){let u=this._getOriginPoint(t,r,c),m=this._getOverlayPoint(u,e,c),g=this._getOverlayFit(m,e,i,c);if(g.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,u);this._canFitWithFlexibleDimensions(g,m,i)?o.push({position:c,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,c)}):(!a||a.overlayFit.visibleAreau&&(u=g,c=m)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&em(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const a=this._isRtl()?t.right:t.left,c=this._isRtl()?t.left:t.right;r="start"==i.originX?a:c}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=pA(e);let{x:a,y:c}=t,u=this._getOffset(r,"x"),m=this._getOffset(r,"y");u&&(a+=u),m&&(c+=m);let F=0-c,O=c+o.height-i.height,V=this._subtractOverflows(o.width,0-a,a+o.width-i.width),U=this._subtractOverflows(o.height,F,O),ie=V*U;return{visibleArea:ie,isCompletelyWithinViewport:o.width*o.height===ie,fitsInViewportVertically:U===o.height,fitsInViewportHorizontally:V==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,a=fA(this._overlayRef.getConfig().minHeight),c=fA(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=r)&&(t.fitsInViewportHorizontally||null!=c&&c<=o)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=pA(e),o=this._viewportRect,a=Math.max(t.x+r.width-o.width,0),c=Math.max(t.y+r.height-o.height,0),u=Math.max(o.top-i.top-t.y,0),m=Math.max(o.left-i.left-t.x,0);let g=0,C=0;return g=r.width<=o.width?m||-a:t.xV&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)F=i.width-t.x+this._viewportMargin,g=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)C=t.x,g=i.right-t.x;else{const O=Math.min(i.right-t.x+i.left,t.x),V=this._lastBoundingBoxSize.width;g=2*O,C=t.x-O,g>V&&!this._isInitialRender&&!this._growAfterOpen&&(C=t.x-V/2)}return{top:a,left:C,bottom:c,right:F,width:g,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=Mr(i.height),r.top=Mr(i.top),r.bottom=Mr(i.bottom),r.width=Mr(i.width),r.left=Mr(i.left),r.right=Mr(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Mr(o)),a&&(r.maxWidth=Mr(a))}this._lastBoundingBoxSize=i,em(this._boundingBox.style,r)}_resetBoundingBoxStyles(){em(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){em(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const g=this._viewportRuler.getViewportScrollPosition();em(i,this._getExactOverlayY(e,t,g)),em(i,this._getExactOverlayX(e,t,g))}else i.position="static";let c="",u=this._getOffset(e,"x"),m=this._getOffset(e,"y");u&&(c+=`translateX(${u}px) `),m&&(c+=`translateY(${m}px)`),i.transform=c.trim(),a.maxHeight&&(r?i.maxHeight=Mr(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=Mr(a.maxWidth):o&&(i.maxWidth="")),em(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Mr(o.y),r}_getExactOverlayX(t,e,i){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Mr(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:dA(t,i),isOriginOutsideView:hw(t,i),isOverlayClipped:dA(e,i),isOverlayOutsideView:hw(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Zg(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof h)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function em(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function fA(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(H8);return e&&"px"!==e?null:parseFloat(t)}return n||null}function pA(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const gA="cdk-global-overlay-wrapper";class $8{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(gA),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:c}=i,u=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),m=!("100%"!==o&&"100vh"!==o||c&&"100%"!==c&&"100vh"!==c),g=this._xPosition,C=this._xOffset,F="rtl"===this._overlayRef.getConfig().direction;let O="",V="",U="";u?U="flex-start":"center"===g?(U="center",F?V=C:O=C):F?"left"===g||"end"===g?(U="flex-end",O=C):("right"===g||"start"===g)&&(U="flex-start",V=C):"left"===g||"start"===g?(U="flex-start",O=C):("right"===g||"end"===g)&&(U="flex-end",V=C),t.position=this._cssPosition,t.marginLeft=u?"0":O,t.marginTop=m?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=u?"0":V,e.justifyContent=U,e.alignItems=m?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(gA),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let j8=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new $8}flexibleConnectedTo(e){return new z8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(te(ld),te(en),te(Ai),te(hA))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),U8=0,Ma=(()=>{class n{constructor(e,i,r,o,a,c,u,m,g,C,F,O){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=c,this._ngZone=u,this._document=m,this._directionality=g,this._location=C,this._outsideClickDispatcher=F,this._animationsModuleType=O}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new c_(e);return a.direction=a.direction||this._directionality.value,new V8(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+U8++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Mg)),new S8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(te(R8),te(hA),te(uu),te(j8),te(N8),te(Wo),te(Ht),te(en),te(Hr),te(sE),te(B8),te(Nr,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const W8=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_A=new ye("cdk-connected-overlay-scroll-strategy");let mw=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275dir=xe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),n})(),bA=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ct(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ct(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ct(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ct(e)}get push(){return this._push}set push(e){this._push=Ct(e)}constructor(e,i,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=z.EMPTY,this._attachSubscription=z.EMPTY,this._detachSubscription=z.EMPTY,this._positionSubscription=z.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ve,this.positionChange=new Ve,this.attach=new Ve,this.detach=new Ve,this.overlayKeydown=new Ve,this.overlayOutsideClick=new Ve,this._templatePortal=new Jh(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=W8);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Ks(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new c_({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof mw?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function I8(n,t=!1){return it((e,i)=>{let r=0;e.subscribe(lt(i,o=>{const a=n(o,r++);(a||t)&&i.next(o),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(Ma),E(Cr),E(xr),E(_A),E(Hr,8))},n.\u0275dir=xe({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ci]}),n})();const Z8={provide:_A,deps:[Ma],useFactory:function G8(n){return()=>n.scrollStrategies.reposition()}};let d_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Ma,Z8],imports:[Jg,uw,uS,uS]}),n})();function yA(n){return new at(t=>{ii(n()).subscribe(t)})}const q8=["matFormFieldNotchedOutline",""],Y8=["*"],K8=["textField"],X8=["iconPrefixContainer"],Q8=["textPrefixContainer"];function J8(n,t){1&n&&Pe(0,"span",19)}function e6(n,t){if(1&n){const e=Nt();y(0,"label",17),ce("cdkObserveContent",function(){return He(e),je(Z(2)._refreshOutlineNotchWidth())}),Gt(1,1),K(2,J8,1,0,"span",18),v()}if(2&n){const e=Z(2);N("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),bt("for",e._control.id)("aria-owns",e._control.id),T(2),N("ngIf",!e.hideRequiredMarker&&e._control.required)}}function t6(n,t){1&n&&K(0,e6,3,6,"label",16),2&n&&N("ngIf",Z()._hasFloatingLabel())}function n6(n,t){1&n&&Pe(0,"div",20)}function i6(n,t){}function r6(n,t){1&n&&K(0,i6,0,0,"ng-template",22),2&n&&(Z(2),N("ngTemplateOutlet",Go(1)))}function o6(n,t){if(1&n&&(y(0,"div",21),K(1,r6,1,1,"ng-template",9),v()),2&n){const e=Z();N("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),T(1),N("ngIf",!e._forceDisplayInfixLabel())}}function s6(n,t){1&n&&(y(0,"div",23,24),Gt(2,2),v())}function a6(n,t){1&n&&(y(0,"div",25,26),Gt(2,3),v())}function l6(n,t){}function c6(n,t){1&n&&K(0,l6,0,0,"ng-template",22),2&n&&(Z(),N("ngTemplateOutlet",Go(1)))}function d6(n,t){1&n&&(y(0,"div",27),Gt(1,4),v())}function u6(n,t){1&n&&(y(0,"div",28),Gt(1,5),v())}function h6(n,t){1&n&&Pe(0,"div",29)}function m6(n,t){1&n&&(y(0,"div",30),Gt(1,6),v()),2&n&&N("@transitionMessages",Z()._subscriptAnimationState)}function f6(n,t){if(1&n&&(y(0,"mat-hint",34),A(1),v()),2&n){const e=Z(2);N("id",e._hintLabelId),T(1),Rt(e.hintLabel)}}function p6(n,t){if(1&n&&(y(0,"div",31),K(1,f6,2,2,"mat-hint",32),Gt(2,7),Pe(3,"div",33),Gt(4,8),v()),2&n){const e=Z();N("@transitionMessages",e._subscriptAnimationState),T(1),N("ngIf",e.hintLabel)}}const g6=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_6=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let $r=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-label"]]}),n})(),b6=0;const vA=new ye("MatError");let cd=(()=>{class n{constructor(e,i){this.id="mat-mdc-error-"+b6++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(go("aria-live"),E(h))},n.\u0275dir=xe({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,i){2&e&&Ws("id",i.id)},inputs:{id:"id"},features:[Vt([{provide:vA,useExisting:n}])]}),n})(),y6=0,CA=(()=>{class n{constructor(){this.align="start",this.id="mat-mdc-hint-"+y6++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,i){2&e&&(Ws("id",i.id),bt("align",null),Jt("mat-mdc-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"}}),n})();const v6=new ye("MatPrefix"),C6=new ye("MatSuffix");let xA=(()=>{class n{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function x6(n){if(null!==n.offsetParent)return n.scrollWidth;const e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275dir=xe({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating"}}),n})();const wA="mdc-line-ripple--active",Zy="mdc-line-ripple--deactivating";let DA=(()=>{class n{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(Zy);"opacity"===r.propertyName&&a&&o.remove(wA,Zy)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Zy),e.add(wA)}deactivate(){this._elementRef.nativeElement.classList.add(Zy)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht))},n.\u0275dir=xe({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),n})(),TA=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht))},n.\u0275cmp=et({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mdc-notched-outline--notched",i.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:q8,ngContentSelectors:Y8,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,i){1&e&&(bi(),Pe(0,"div",0),y(1,"div",1),Gt(2),v(),Pe(3,"div",2)),2&e&&(T(1),mg("width",i._getNotchWidth()))},encapsulation:2,changeDetection:0}),n})();const w6={transitionMessages:od("transitionMessages",[Da("enter",xi({opacity:1,transform:"translateY(0%)"})),Mo("void => enter",[xi({opacity:0,transform:"translateY(-5px)"}),Eo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n}),n})();const u_=new ye("MatFormField"),D6=new ye("MAT_FORM_FIELD_DEFAULT_OPTIONS");let EA=0,vo=(()=>{class n{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ct(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,a,c,u,m){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=c,this._animationMode=u,this._document=m,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+EA++,this._hintLabelId="mat-mdc-hint-"+EA++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Ae,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=Boolean(c?.hideRequiredMarker),c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(fn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),on(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(fn(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(fn(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Ht),E(Hr),E(Ai),E(D6,8),E(Nr,8),E(en))},n.\u0275cmp=et({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,$r,5),Bn(r,$r,7),Bn(r,qy,5),Bn(r,v6,5),Bn(r,C6,5),Bn(r,vA,5),Bn(r,CA,5)),2&e){let o;yt(o=vt())&&(i._labelChildNonStatic=o.first),yt(o=vt())&&(i._labelChildStatic=o.first),yt(o=vt())&&(i._formFieldControl=o.first),yt(o=vt())&&(i._prefixChildren=o),yt(o=vt())&&(i._suffixChildren=o),yt(o=vt())&&(i._errorChildren=o),yt(o=vt())&&(i._hintChildren=o)}},viewQuery:function(e,i){if(1&e&&(Nn(K8,5),Nn(X8,5),Nn(Q8,5),Nn(xA,5),Nn(TA,5),Nn(DA,5)),2&e){let r;yt(r=vt())&&(i._textField=r.first),yt(r=vt())&&(i._iconPrefixContainer=r.first),yt(r=vt())&&(i._textPrefixContainer=r.first),yt(r=vt())&&(i._floatingLabel=r.first),yt(r=vt())&&(i._notchedOutline=r.first),yt(r=vt())&&(i._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,i){2&e&&Jt("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===i._animationMode)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary","accent"!==i.color&&"warn"!==i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Vt([{provide:u_,useExisting:n}])],ngContentSelectors:_6,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,i){1&e&&(bi(g6),K(0,t6,1,1,"ng-template",null,0,Eb),y(2,"div",1,2),ce("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),K(4,n6,1,0,"div",3),y(5,"div",4),K(6,o6,2,3,"div",5),K(7,s6,3,0,"div",6),K(8,a6,3,0,"div",7),y(9,"div",8),K(10,c6,1,1,"ng-template",9),Gt(11),v(),K(12,d6,2,0,"div",10),K(13,u6,2,0,"div",11),v(),K(14,h6,1,0,"div",12),v(),y(15,"div",13),K(16,m6,2,1,"div",14),K(17,p6,5,2,"div",15),v()),2&e&&(T(2),Jt("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),T(2),N("ngIf",!i._hasOutline()&&!i._control.disabled),T(2),N("ngIf",i._hasOutline()),T(1),N("ngIf",i._hasIconPrefix),T(1),N("ngIf",i._hasTextPrefix),T(2),N("ngIf",!i._hasOutline()||i._forceDisplayInfixLabel()),T(2),N("ngIf",i._hasTextSuffix),T(1),N("ngIf",i._hasIconSuffix),T(1),N("ngIf",!i._hasOutline()),T(1),Jt("mat-mdc-form-field-subscript-dynamic-size","dynamic"===i.subscriptSizing),N("ngSwitch",i._getDisplayedMessages()),T(1),N("ngSwitchCase","error"),T(1),N("ngSwitchCase","hint"))},dependencies:[Si,DE,Of,Ub,fS,CA,xA,TA,DA],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[w6.transitionMessages]},changeDetection:0}),n})(),Yy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,wa,jx,$n]}),n})();function SA(n,t){return t?e=>Ay(t.pipe(zr(1),function M6(){return it((n,t)=>{n.subscribe(lt(t,Oe))})}()),e.pipe(SA(n))):ir((e,i)=>ii(n(e,i)).pipe(zr(1),function k6(n){return Vn(()=>n)}(e)))}function fw(n,t=Kg){const e=Sy(n,t);return SA(()=>e)}const S6=["panel"];function A6(n,t){if(1&n&&(y(0,"div",0,1),Gt(2),v()),2&n){const e=t.id,i=Z();N("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),bt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const I6=["*"],F6=od("panelAnimation",[Da("void, hidden",xi({opacity:0,transform:"scaleY(0.8)"})),Mo(":enter, hidden => visible",[GN([Eo("0.03s linear",xi({opacity:1})),Eo("0.12s cubic-bezier(0, 0, 0.2, 1)",xi({transform:"scaleY(1)"}))])]),Mo(":leave, visible => hidden",[Eo("0.075s linear",xi({opacity:0}))])]);let O6=0;class P6{constructor(t,e){this.source=t,this.option=e}}const R6=wu(class{}),AA=new ye("mat-autocomplete-default-options",{providedIn:"root",factory:function L6(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let N6=(()=>{class n extends R6{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ct(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ct(e)}set classList(e){this._classList=e&&e.length?function k4(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=z.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new Ve,this.opened=new Ve,this.closed=new Ve,this.optionActivated=new Ve,this._classList={},this.id="mat-autocomplete-"+O6++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new xS(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new P6(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(AA),E(Ai))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&(Nn(Cr,7),Nn(S6,5)),2&e){let r;yt(r=vt())&&(i.template=r.first),yt(r=vt())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[nt]}),n})(),B6=(()=>{class n extends N6{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ct(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,lw,5),Bn(r,Qh,5)),2&e){let o;yt(o=vt())&&(i.optionGroups=o),yt(o=vt())&&(i.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Vt([{provide:aw,useExisting:n}]),nt],ngContentSelectors:I6,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(bi(),K(0,A6,3,5,"ng-template"))},dependencies:[Ff],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[F6]},changeDetection:0}),n})();const V6={provide:Tr,useExisting:Wt(()=>FA),multi:!0},IA=new ye("mat-autocomplete-scroll-strategy"),z6={provide:IA,deps:[Ma],useFactory:function H6(n){return()=>n.scrollStrategies.reposition()}};let $6=(()=>{class n{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ct(e)}constructor(e,i,r,o,a,c,u,m,g,C,F){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=u,this._formField=m,this._document=g,this._viewportRuler=C,this._defaults=F,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=z.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ae,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=yA(()=>{const O=this.autocomplete?this.autocomplete.options:null;return O?O.changes.pipe(Vr(O),ac(()=>on(...O.map(V=>V.onSelectionChange)))):this._zone.onStable.pipe(zr(1),ac(()=>this.optionSelections))}),this._scrollStrategy=c}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return on(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(_s(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(_s(()=>this._overlayAttached)):gs()).pipe(Vn(e=>e instanceof oA?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return on(sc(this._document,"click"),sc(this._document,"auxclick"),sc(this._document,"touchend")).pipe(_s(e=>{const i=Ys(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=Ks(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return on(this._zone.onStable.pipe(zr(1)),this.autocomplete.options.changes.pipe(jf(()=>this._positionStrategy.reapplyLastPosition()),fw(0))).pipe(ac(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),zr(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Jh(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new c_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=sA(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const a=o._getHostElement(),c=aA(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Ks(i)||38===i.keyCode&&Ks(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ma),E(xr),E(Ht),E(ti),E(IA),E(Hr,8),E(u_,9),E(en,8),E(ld),E(AA,8))},n.\u0275dir=xe({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[ci]}),n})(),FA=(()=>{class n extends $6{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&ce("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&bt("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Vt([V6]),nt]}),n})(),j6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[z6],imports:[d_,Wy,$n,wa,qh,Wy,$n]}),n})();const U6=["mat-button",""],OA=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],PA=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],G6=["mat-fab",""],Z6=["mat-icon-button",""],q6=["*"],Y6=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],K6=Zf(Kh(wu(class{constructor(n){this._elementRef=n}})));let pw=(()=>{class n extends K6{constructor(e,i,r,o){super(e),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=qn(xu),this._isFab=!1;const a=e.nativeElement.classList;for(const c of Y6)this._hasHostAttributes(c.selector)&&c.mdcClasses.forEach(u=>{a.add(u)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(Xo,5),2&e){let r;yt(r=vt())&&(i.ripple=r.first)}},features:[nt]}),n})(),tr=(()=>{class n extends pw{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(Ht),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(bt("disabled",i.disabled||null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[nt],attrs:U6,ngContentSelectors:PA,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(bi(OA),Pe(0,"span",0),Gt(1),y(2,"span",1),Gt(3,1),v(),Gt(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Jt("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),T(6),N("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[Xo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})();const Q6=new ye("mat-mdc-fab-default-options",{providedIn:"root",factory:RA});function RA(){return{color:"accent"}}const LA=RA();let h_=(()=>{class n extends pw{get extended(){return this._extended}set extended(e){this._extended=Ct(e)}constructor(e,i,r,o,a){super(e,i,r,o),this._options=a,this._isFab=!0,this._options=this._options||LA,this.color=this.defaultColor=this._options.color||LA.color}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(Ht),E(Nr,8),E(Q6,8))},n.\u0275cmp=et({type:n,selectors:[["button","mat-fab",""]],hostVars:11,hostBindings:function(e,i){2&e&&(bt("disabled",i.disabled||null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0)("mdc-fab--extended",i.extended)("mat-mdc-extended-fab",i.extended))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",extended:"extended"},exportAs:["matButton"],features:[nt],attrs:G6,ngContentSelectors:PA,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(bi(OA),Pe(0,"span",0),Gt(1),y(2,"span",1),Gt(3,1),v(),Gt(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Jt("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),T(6),N("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[Xo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),n})(),m_=(()=>{class n extends pw{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(Ht),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(bt("disabled",i.disabled||null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[nt],attrs:Z6,ngContentSelectors:q6,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(bi(),Pe(0,"span",0),Gt(1),Pe(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(T(3),N("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[Xo],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),NA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Xh,$n]}),n})();class BA{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ae,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}const J6=["button"],eH=["*"],VA=new ye("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),HA=new ye("MatButtonToggleGroup"),tH={provide:Tr,useExisting:Wt(()=>gw),multi:!0};let zA=0;class $A{constructor(t,e){this.source=t,this.value=e}}let gw=(()=>{class n{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(e){this._vertical=Ct(e)}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=Ct(e),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._markButtonsForCheck()}constructor(e,i){this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+zA++,this.valueChange=new Ve,this.change=new Ve,this.appearance=i&&i.appearance?i.appearance:"standard"}ngOnInit(){this._selectionModel=new BA(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const i=new $A(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>null!=e.value&&i===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const i=this._buttonToggles.find(r=>null!=r.value&&r.value===e);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(VA,8))},n.\u0275dir=xe({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,_w,5),2&e){let o;yt(o=vt())&&(i._buttonToggles=o)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,i){2&e&&(bt("aria-disabled",i.disabled),Jt("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard","standard"===i.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Vt([tH,{provide:HA,useExisting:n}])]}),n})();const nH=wu(class{});let _w=(()=>{class n extends nH{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){const i=Ct(e);i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=Ct(e)}constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Ve;const u=Number(a);this.tabIndex=u||0===u?u:null,this.buttonToggleGroup=e,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+zA++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new $A(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return n.\u0275fac=function(e){return new(e||n)(E(HA,8),E(ti),E(h),E(xu),go("tabindex"),E(VA,8))},n.\u0275cmp=et({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(e,i){if(1&e&&Nn(J6,5),2&e){let r;yt(r=vt())&&(i._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,i){1&e&&ce("focus",function(){return i.focus()}),2&e&&(bt("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),Jt("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-appearance-standard","standard"===i.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[nt],ngContentSelectors:eH,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,i){if(1&e&&(bi(),y(0,"button",0,1),ce("click",function(){return i._onButtonClick()}),y(2,"span",2),Gt(3),v()(),Pe(4,"span",3)(5,"span",4)),2&e){const r=Go(1);N("id",i.buttonId)("disabled",i.disabled||null),bt("tabindex",i.disabled?-1:i.tabIndex)("aria-pressed",i.checked)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby),T(5),N("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)}},dependencies:[Xo],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),n})(),iH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Xh,$n]}),n})();const rH=["*"],aH=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],lH=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],cH=new ye("MAT_CARD_CONFIG");let Du=(()=>{class n{constructor(e){this.appearance=e?.appearance||"raised"}}return n.\u0275fac=function(e){return new(e||n)(E(cH,8))},n.\u0275cmp=et({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("mat-mdc-card-outlined","outlined"===i.appearance)("mdc-card--outlined","outlined"===i.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:rH,decls:1,vars:0,template:function(e,i){1&e&&(bi(),Gt(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),n})(),qf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),n})(),Tu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),n})(),Yf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),n})(),Eu=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(e,i){2&e&&Jt("mat-mdc-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n})(),Kf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:lH,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(e,i){1&e&&(bi(aH),Gt(0),y(1,"div",0),Gt(2,1),v(),Gt(3,2))},encapsulation:2,changeDetection:0}),n})(),bH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,wa,$n]}),n})();const yH=["input"],vH=["label"],CH=["*"],xH=new ye("mat-checkbox-default-options",{providedIn:"root",factory:jA});function jA(){return{color:"accent",clickAction:"check-indeterminate"}}const wH={provide:Tr,useExisting:Wt(()=>dd),multi:!0};class DH{}let TH=0;const UA=jA(),EH=o_(Zf(wu(Kh(class{constructor(n){this._elementRef=n}}))));let MH=(()=>{class n extends EH{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ct(e)}constructor(e,i,r,o,a,c,u){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=c,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Ve,this.indeterminateChange=new Ve,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||UA,this.color=this.defaultColor=this._options.color||UA.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++TH}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=Ct(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Ct(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Ct(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&(Nn(yH,5),Nn(vH,5),Nn(Xo,5)),2&e){let r;yt(r=vt())&&(i._inputElement=r.first),yt(r=vt())&&(i._labelElement=r.first),yt(r=vt())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[nt]}),n})(),dd=(()=>{class n extends MH{constructor(e,i,r,o,a,c){super("mat-mdc-checkbox-",e,i,r,o,a,c),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new DH;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Ht),go("tabindex"),E(Nr,8),E(xH,8))},n.\u0275cmp=et({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(Ws("id",i.id),bt("tabindex",null)("aria-label",null)("aria-labelledby",null),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mdc-checkbox--disabled",i.disabled)("mat-mdc-checkbox-disabled",i.disabled)("mat-mdc-checkbox-checked",i.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Vt([wH]),nt],ngContentSelectors:CH,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(e,i){if(1&e&&(bi(),y(0,"div",0),ce("click",function(o){return i._preventBubblingFromLabel(o)}),y(1,"div",1,2)(3,"div",3),ce("click",function(){return i._onTouchTargetClick()}),v(),y(4,"input",4,5),ce("blur",function(){return i._onBlur()})("click",function(){return i._onInputClick()})("change",function(o){return i._onInteractionEvent(o)}),v(),Pe(6,"div",6),y(7,"div",7),ua(),y(8,"svg",8),Pe(9,"path",9),v(),$d(),Pe(10,"div",10),v(),Pe(11,"div",11),v(),y(12,"label",12,13),Gt(14),v()()),2&e){const r=Go(2);Jt("mdc-form-field--align-end","before"==i.labelPosition),T(4),Jt("mdc-checkbox--selected",i.checked),N("checked",i.checked)("disabled",i.disabled)("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex),bt("aria-checked",i._getAriaChecked())("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("name",i.name)("value",i.value),T(7),N("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),T(1),N("for",i.inputId)}},dependencies:[Xo],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),WA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})(),AH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Xh,WA,$n,WA]}),n})();function IH(n,t){1&n&&(y(0,"span",8),Gt(1,1),v())}function FH(n,t){1&n&&(y(0,"span",9),Gt(1,2),v())}const GA=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ZA=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function RH(n,t){if(1&n&&(io(0),Pe(1,"span",9)(2,"span",10),ro()),2&n){const e=Z();T(1),N("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e._isRippleCentered)("matRippleTrigger",e._elementRef.nativeElement)}}function LH(n,t){1&n&&(y(0,"span",11),Gt(1),v())}function NH(n,t){1&n&&(io(0),Gt(1,1),ro())}function BH(n,t){1&n&&Gt(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function VH(n,t){1&n&&Pe(0,"span",14)}function HH(n,t){if(1&n&&(io(0),K(1,BH,1,0,"ng-content",12),K(2,VH,1,0,"ng-template",null,13,Eb),ro()),2&n){const e=Go(3),i=Z();T(1),N("ngIf",i.contentEditInput)("ngIfElse",e)}}function zH(n,t){1&n&&(y(0,"span",15),Gt(1,3),v())}const $H=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],jH=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],bw=["*"],Ky=new ye("mat-chips-default-options"),yw=new ye("MatChipAvatar"),vw=new ye("MatChipTrailingIcon"),Cw=new ye("MatChipRemove"),Xy=new ye("MatChip");class UH{}const WH=o_(UH,-1);let Xf=(()=>{class n extends WH{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=Ct(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Xy))},n.\u0275dir=xe({type:n,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(e,i){1&e&&ce("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(bt("tabindex",i._getTabindex())("disabled",i._getDisabledAttribute())("aria-disabled",i.disabled),Jt("mdc-evolution-chip__action--primary",i._isPrimary)("mdc-evolution-chip__action--presentational",!i.isInteractive)("mdc-evolution-chip__action--trailing",!i._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[nt]}),n})(),xw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Vt([{provide:yw,useExisting:n}])]}),n})(),KA=(()=>{class n extends Xf{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(e,i){2&e&&bt("aria-hidden",null)},features:[Vt([{provide:Cw,useExisting:n}]),nt]}),n})(),ZH=0;const qH=o_(Zf(wu(Kh(class{constructor(n){this._elementRef=n}})),"primary"),-1);let Mu=(()=>{class n extends qH{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=Ct(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=Ct(e)}constructor(e,i,r,o,a,c,u,m){super(i),this._changeDetectorRef=e,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=u,this._isRippleCentered=!1,this._onFocus=new Ae,this._onBlur=new Ae,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ZH++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Ve,this.destroyed=new Ve,this.basicChipAttrName="mat-basic-chip";const g=i.nativeElement;this._document=a,this._animationsDisabled="NoopAnimations"===c,this._isBasicChip=g.hasAttribute(this.basicChipAttrName)||g.tagName.toLowerCase()===this.basicChipAttrName,null!=m&&(this.tabIndex=parseInt(m)??this.defaultTabIndex),this._monitorFocus()}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=on(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(zr(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(Ht),E(xu),E(en),E(Nr,8),E(sw,8),go("tabindex"))},n.\u0275cmp=et({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,yw,5),Bn(r,vw,5),Bn(r,Cw,5),Bn(r,yw,5),Bn(r,vw,5),Bn(r,Cw,5)),2&e){let o;yt(o=vt())&&(i.leadingIcon=o.first),yt(o=vt())&&(i.trailingIcon=o.first),yt(o=vt())&&(i.removeIcon=o.first),yt(o=vt())&&(i._allLeadingIcons=o),yt(o=vt())&&(i._allTrailingIcons=o),yt(o=vt())&&(i._allRemoveIcons=o)}},viewQuery:function(e,i){if(1&e&&(Nn(Xo,5),Nn(Xf,5)),2&e){let r;yt(r=vt())&&(i.ripple=r.first),yt(r=vt())&&(i.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Ws("id",i.id),bt("role",i.role)("tabindex",i.role?i.tabIndex:null)("aria-label",i.ariaLabel),Jt("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-basic-chip",i._isBasicChip)("mat-mdc-standard-chip",!i._isBasicChip)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon())("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Vt([{provide:Xy,useExisting:n}]),nt],ngContentSelectors:ZA,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(bi(GA),Pe(0,"span",0)(1,"span",1),y(2,"span",2)(3,"span",3),K(4,IH,2,0,"span",4),y(5,"span",5),Gt(6),Pe(7,"span",6),v()()(),K(8,FH,2,0,"span",7)),2&e&&(N("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i._isRippleCentered)("matRippleTrigger",i._elementRef.nativeElement),T(3),N("isInteractive",!1),T(1),N("ngIf",i.leadingIcon),T(4),N("ngIf",i._hasTrailingIcon()))},dependencies:[Si,Xo,Xf],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),Qy=(()=>{class n{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(en))},n.\u0275dir=xe({type:n,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),n})(),ww=(()=>{class n extends Mu{constructor(e,i,r,o,a,c,u,m){super(e,i,r,o,a,c,u,m),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Ve,this._isEditing=!1,this.role="row",this._onBlur.pipe(fn(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_mousedown(e){this._isEditing||(this.disabled||this.focus(),e.preventDefault())}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_doubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=!0,this._editStartPending=!0,setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=!1,this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(Ht),E(xu),E(en),E(Nr,8),E(sw,8),go("tabindex"))},n.\u0275cmp=et({type:n,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(e,i,r){if(1&e&&Bn(r,Qy,5),2&e){let o;yt(o=vt())&&(i.contentEditInput=o.first)}},viewQuery:function(e,i){if(1&e&&Nn(Qy,5),2&e){let r;yt(r=vt())&&(i.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(e,i){1&e&&ce("mousedown",function(o){return i._mousedown(o)})("dblclick",function(o){return i._doubleclick(o)}),2&e&&(Ws("id",i.id),bt("tabindex",null)("aria-label",null)("aria-description",null)("role",i.role),Jt("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-chip-editing",i._isEditing)("mat-mdc-chip-editable",i.editable)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Vt([{provide:Mu,useExisting:n},{provide:Xy,useExisting:n}]),nt],ngContentSelectors:jH,decls:11,vars:13,consts:[[4,"ngIf"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(bi($H),K(0,RH,3,3,"ng-container",0),y(1,"span",1)(2,"span",2),K(3,LH,2,0,"span",3),y(4,"span",4),K(5,NH,2,0,"ng-container",5),K(6,HH,4,2,"ng-container",5),Pe(7,"span",6),v()()(),K(8,zH,2,0,"span",7),y(9,"span",8),A(10),v()),2&e&&(N("ngIf",!i._isEditing),T(2),N("tabIndex",i.tabIndex)("disabled",i.disabled),bt("role",i.editable?"button":null)("aria-label",i.ariaLabel)("aria-describedby",i._ariaDescriptionId),T(1),N("ngIf",i.leadingIcon),T(1),N("ngSwitch",i._isEditing),T(1),N("ngSwitchCase",!1),T(1),N("ngSwitchCase",!0),T(2),N("ngIf",i._hasTrailingIcon()),T(1),N("id",i._ariaDescriptionId),T(1),Rt(i.ariaDescription))},dependencies:[Si,Of,Ub,Xo,Xf,Qy],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();class YH{constructor(t){}}const KH=o_(YH);let Jy=(()=>{class n extends KH{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._syncChipsState()}get empty(){return 0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,r){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Ae,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new fu}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(Vr(null),ac(()=>on(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList&&i.classList.contains("mdc-evolution-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Vr(this._chips)).subscribe(e=>{const i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Zx(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(fn(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(fn(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Vr(null),fn(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(fn(this._destroyed)).subscribe(e=>{const r=this._chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Hr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-chip-set"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,Mu,5),2&e){let o;yt(o=vt())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)}),2&e&&bt("role",i.role)},inputs:{disabled:"disabled",role:"role"},features:[nt],ngContentSelectors:bw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(bi(),y(0,"div",0),Gt(1),v())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})();class JH{constructor(t,e){this.source=t,this.value=e}}class ez extends Jy{constructor(t,e,i,r,o,a,c){super(t,e,i),this._defaultErrorStateMatcher=r,this._parentForm=o,this._parentFormGroup=a,this.ngControl=c,this.stateChanges=new Ae}}const tz=ow(ez);let JA=(()=>{class n extends tz{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ct(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(bn.required)??!1}set required(e){this._required=Ct(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,r,o,a,c,u){super(e,i,r,c,o,a,u),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Ve,this.valueChange=new Ve,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(fn(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),on(this.chipFocusChanges,this._chips.changes).pipe(fn(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&Ks(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new JH(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(Hr,8),E(Lf,8),E(so,8),E(Uy),E(rl,10))},n.\u0275cmp=et({type:n,selectors:[["mat-chip-grid"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,ww,5),2&e){let o;yt(o=vt())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(e,i){1&e&&ce("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Ws("tabIndex",i._chips&&0===i._chips.length?-1:i.tabIndex),bt("role",i.role)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState),Jt("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-invalid",i.errorState)("mat-mdc-chip-list-required",i.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Vt([{provide:qy,useExisting:n}]),nt],ngContentSelectors:bw,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(bi(),y(0,"div",0),Gt(1),v())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})(),nz=0,eI=(()=>{class n{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ct(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=Ct(e)}get empty(){return!this.inputElement.value}constructor(e,i,r){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Ve,this.placeholder="",this.id="mat-mdc-chip-list-input-"+nz++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,r&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Ks(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ky),E(u_,8))},n.\u0275dir=xe({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Ws("id",i.id),bt("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipGrid&&i._chipGrid.ngControl?i._chipGrid.ngControl.invalid:null)("aria-required",i._chipGrid&&i._chipGrid.required||null)("required",i._chipGrid&&i._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[ci]}),n})(),iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Uy,{provide:Ky,useValue:{separatorKeyCodes:[13]}}],imports:[$n,wa,Xh,$n]}),n})();function Dw(n){return it((t,e)=>{let o,i=null,r=!1;i=t.subscribe(lt(e,void 0,void 0,a=>{o=ii(n(a,Dw(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}const sz=["*"];let ev;function f_(n){return function az(){if(void 0===ev&&(ev=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(ev=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ev}()?.createHTML(n)||n}function tI(n){return Error(`Unable to find icon with the name "${n}"`)}function nI(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function iI(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class tm{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let p_=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new tm(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const a=this._sanitizer.sanitize(zn.HTML,r);if(!a)throw iI(r);const c=f_(a);return this._addSvgIconConfig(e,i,new tm("",c,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new tm(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(zn.HTML,i);if(!o)throw iI(i);const a=f_(o);return this._addSvgIconSetConfig(e,new tm("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(zn.RESOURCE_URL,e);if(!i)throw nI(e);const r=this._cachedIconsByUrl.get(i);return r?gs(tv(r)):this._loadSvgIconFromConfig(new tm(e,null)).pipe(jf(o=>this._cachedIconsByUrl.set(i,o)),Vn(o=>tv(o)))}getNamedSvgIcon(e,i=""){const r=rI(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):function rz(n,t){const e=j(n)?n:()=>n,i=r=>r.error(e());return new at(t?r=>t.schedule(i,0,r):i)}(tI(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?gs(tv(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Vn(i=>tv(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?gs(r):WM(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Dw(c=>{const m=`Loading icon set URL: ${this._sanitizer.sanitize(zn.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(m)),gs(null)})))).pipe(Vn(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw tI(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(a,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(jf(i=>e.svgText=i),Vn(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?gs(null):this._fetchIcon(e).pipe(jf(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const c=this._svgElementFromString(f_(""));return c.appendChild(a),this._setSvgAttributes(c,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(f_("")),r=e.attributes;for(let o=0;of_(m)),function oz(n){return it((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(a)),Ds());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(rI(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),oI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pz=oI.map(n=>`[${n}]`).join(", "),gz=/^url\(['"]?#(.*?)['"]?\)$/;let Xs=(()=>{class n extends uz{get inline(){return this._inline}set inline(e){this._inline=Ct(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,a,c){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=z.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(pz),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const c=i[o],u=c.getAttribute(a),m=u?u.match(gz):null;if(m){let g=r.get(c);g||(g=[],r.set(c,g)),g.push({name:a,value:m[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(zr(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(p_),go("aria-hidden"),E(mz),E(ze),E(hz,8))},n.\u0275cmp=et({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(bt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Jt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[nt],ngContentSelectors:sz,decls:1,vars:0,template:function(e,i){1&e&&(bi(),Gt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),_z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,$n]}),n})();const sI=ol({passive:!0});let bz=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return na;const i=er(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Ae,a="cdk-text-field-autofilled",c=u=>{"cdk-text-field-autofill-start"!==u.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===u.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",c,sI),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",c,sI)}}),o}stopMonitoring(e){const i=er(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(te(Ai),te(Ht))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({}),n})();const vz=new ye("MAT_INPUT_VALUE_ACCESSOR"),Cz=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let xz=0;const wz=ow(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new Ae}});let bs=(()=>{class n extends wz{get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(bn.required)??!1}set required(e){this._required=Ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&aS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ct(e)}constructor(e,i,r,o,a,c,u,m,g,C){super(c,o,a,r),this._elementRef=e,this._platform=i,this._autofillMonitor=m,this._formField=C,this._uid="mat-input-"+xz++,this.focused=!1,this.stateChanges=new Ae,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(V=>aS().has(V)),this._iOSKeyupListener=V=>{const U=V.target;!U.value&&0===U.selectionStart&&0===U.selectionEnd&&(U.setSelectionRange(1,1),U.setSelectionRange(0,0))};const F=this._elementRef.nativeElement,O=F.nodeName.toLowerCase();this._inputValueAccessor=u||F,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&g.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===O,this._isTextarea="textarea"===O,this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=F.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Cz.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(rl,10),E(Lf,8),E(so,8),E(Uy),E(vz,10),E(bz),E(Ht),E(u_,8))},n.\u0275dir=xe({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,i){1&e&&ce("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ws("id",i.id)("disabled",i.disabled)("required",i.required),bt("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),Jt("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Vt([{provide:qy,useExisting:n}]),nt,ci]}),n})(),Dz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,Yy,Yy,yz,$n]}),n})();const Tz=["mat-menu-item",""];function Ez(n,t){1&n&&(ua(),y(0,"svg",3),Pe(1,"polygon",4),v())}const Mz=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],kz=["mat-icon, [matMenuItemIcon]","*"];function Sz(n,t){if(1&n){const e=Nt();y(0,"div",0),ce("keydown",function(r){return He(e),je(Z()._handleKeydown(r))})("click",function(){return He(e),je(Z().closed.emit("click"))})("@transformMenu.start",function(r){return He(e),je(Z()._onAnimationStart(r))})("@transformMenu.done",function(r){return He(e),je(Z()._onAnimationDone(r))}),y(1,"div",1),Gt(2),v()()}if(2&n){const e=Z();N("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),bt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Az=["*"],Tw=new ye("MAT_MENU_PANEL"),Iz=wu(Kh(class{}));let nv=(()=>{class n extends Iz{constructor(e,i,r,o,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Ae,this._focused=new Ae,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",Eo("120ms cubic-bezier(0, 0, 0.2, 1)",xi({opacity:1,transform:"scale(1)"}))),Mo("* => void",Eo("100ms 25ms linear",xi({opacity:0})))]),fadeInItems:od("fadeInItems",[Da("showing",xi({opacity:1})),Mo("void => *",[xi({opacity:0}),Eo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Oz=0;const aI=new ye("mat-menu-default-options",{providedIn:"root",factory:function Pz(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let g_=(()=>{class n{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ct(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ct(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new fu,this._classList={},this._panelAnimationState="void",this._animationDone=new Ae,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ve,this.close=this.closed,this.panelId="mat-menu-panel-"+Oz++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Zx(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vr(this._directDescendantItems),ac(e=>on(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Vr(this._directDescendantItems),ac(i=>on(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Ks(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(zr(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht),E(aI),E(ti))},n.\u0275dir=xe({type:n,contentQueries:function(e,i,r){if(1&e&&(Bn(r,Fz,5),Bn(r,nv,5),Bn(r,nv,4)),2&e){let o;yt(o=vt())&&(i.lazyContent=o.first),yt(o=vt())&&(i._allItems=o),yt(o=vt())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Nn(Cr,5),2&e){let r;yt(r=vt())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Rz=(()=>{class n extends g_{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ht),E(aI),E(ti))},n.\u0275cmp=et({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&bt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Vt([{provide:Tw,useExisting:n}]),nt],ngContentSelectors:Az,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,i){1&e&&(bi(),K(0,Sz,3,6,"ng-template"))},dependencies:[Ff],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[iv.transformMenu,iv.fadeInItems]},changeDetection:0}),n})();const lI=new ye("mat-menu-scroll-strategy"),Nz={provide:lI,deps:[Ma],useFactory:function Lz(n){return()=>n.scrollStrategies.reposition()}},cI=ol({passive:!0});let Bz=(()=>{class n{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,a,c,u,m,g){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=u,this._focusMonitor=m,this._ngZone=g,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=z.EMPTY,this._hoverSubscription=z.EMPTY,this._menuCloseSubscription=z.EMPTY,this._changeDetectorRef=qn(ti),this._handleTouchStart=C=>{By(C)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ve,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ve,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof g_?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,cI)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,cI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof g_&&(e._startAnimation(),e._directDescendantItems.changes.pipe(fn(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof g_?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(_s(r=>"void"===r.toState),zr(1),fn(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new c_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[u,m]=[a,c],[g,C]=[r,o],F=0;if(this.triggersSubmenu()){if(C=r="before"===e.xPosition?"start":"end",o=g="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const O=this._parentMaterialMenu.items.first;this._parentInnerPadding=O?O._getHostElement().offsetTop:0}F="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(u="top"===a?"bottom":"top",m="top"===c?"bottom":"top");i.withPositions([{originX:r,originY:u,overlayX:g,overlayY:a,offsetY:F},{originX:o,originY:u,overlayX:C,overlayY:a,offsetY:F},{originX:r,originY:m,overlayX:g,overlayY:c,offsetY:-F},{originX:o,originY:m,overlayX:C,overlayY:c,offsetY:-F}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return on(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:gs(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(_s(a=>a!==this._menuItemInstance),_s(()=>this._menuOpen)):gs(),i)}_handleMousedown(e){Ny(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(_s(e=>e===this._menuItemInstance&&!e.disabled),fw(0,Fx)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof g_&&this.menu._isAnimating?this.menu._animationDone.pipe(zr(1),fw(0,Fx),fn(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Jh(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(E(Ma),E(h),E(xr),E(lI),E(Tw,8),E(nv,10),E(Hr,8),E(xu),E(Ht))},n.\u0275dir=xe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&ce("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&bt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Vz=(()=>{class n extends Bz{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[nt]}),n})(),Hz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Nz],imports:[wa,Xh,$n,d_,qh,$n]}),n})();const zz=["trigger"],$z=["panel"];function jz(n,t){if(1&n&&(y(0,"span",10),A(1),v()),2&n){const e=Z();T(1),Rt(e.placeholder)}}function Uz(n,t){if(1&n&&(y(0,"span",14),A(1),v()),2&n){const e=Z(2);T(1),Rt(e.triggerValue)}}function Wz(n,t){1&n&&Gt(0,0,["*ngSwitchCase","true"])}function Gz(n,t){1&n&&(y(0,"span",11),K(1,Uz,2,1,"span",12),K(2,Wz,1,0,"ng-content",13),v()),2&n&&(N("ngSwitch",!!Z().customTrigger),T(2),N("ngSwitchCase",!0))}function Zz(n,t){if(1&n){const e=Nt();ua(),$d(),y(0,"div",15,16),ce("@transformPanel.done",function(r){return He(e),je(Z()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return He(e),je(Z()._handleKeydown(r))}),Gt(2,1),v()}if(2&n){const e=Z();nD("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),N("ngClass",e.panelClass)("@transformPanel","showing"),bt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const qz=[[["mat-select-trigger"]],"*"],Yz=["mat-select-trigger","*"],Kz={transformPanelWrap:od("transformPanelWrap",[Mo("* => void",qN("@transformPanel",[ZN()],{optional:!0}))]),transformPanel:od("transformPanel",[Da("void",xi({opacity:0,transform:"scale(1, 0.8)"})),Mo("void => showing",Eo("120ms cubic-bezier(0, 0, 0.2, 1)",xi({opacity:1,transform:"scale(1, 1)"}))),Mo("* => void",Eo("100ms linear",xi({opacity:0})))])};let dI=0;const uI=new ye("mat-select-scroll-strategy"),Qz=new ye("MAT_SELECT_CONFIG"),Jz={provide:uI,deps:[Ma],useFactory:function Xz(n){return()=>n.scrollStrategies.reposition()}},e$=new ye("MatSelectTrigger");class t${constructor(t,e){this.source=t,this.value=e}}const n$=wu(o_(Kh(ow(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new Ae}}))));let i$=(()=>{class n extends n${get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(bn.required)??!1}set required(e){this._required=Ct(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ct(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ct(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=oc(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,o,a,c,u,m,g,C,F,O,V,U){super(a,o,u,m,C),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=c,this._parentFormField=g,this._liveAnnouncer=V,this._defaultOptions=U,this._panelOpen=!1,this._compareWith=(ie,ue)=>ie===ue,this._uid="mat-select-"+dI++,this._triggerAriaLabelledBy=null,this._destroy=new Ae,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+dI++,this._panelDoneAnimatingStream=new Ae,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=yA(()=>{const ie=this.options;return ie?ie.changes.pipe(Vr(ie),ac(()=>on(...ie.map(ue=>ue.onSelectionChange)))):this._ngZone.onStable.pipe(zr(1),ac(()=>this.optionSelectionChanges))}),this.openedChange=new Ve,this._openedStream=this.openedChange.pipe(_s(ie=>ie),Vn(()=>{})),this._closedStream=this.openedChange.pipe(_s(ie=>!ie),Vn(()=>{})),this.selectionChange=new Ve,this.valueChange=new Ve,this.ngControl&&(this.ngControl.valueAccessor=this),null!=U?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=U.typeaheadDebounceInterval),this._scrollStrategyFactory=O,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(F)||0,this.id=this.id}ngOnInit(){this._selectionModel=new BA(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($x(),fn(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(fn(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Vr(null),fn(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&o&&!Ks(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(e);const u=this.selected;u&&c!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!i.activeItem||Ks(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(c?u.select():u.deselect())})}else{const c=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==c&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(zr(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new xS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=on(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(fn(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),on(...this.options.map(i=>i._stateChanges)).pipe(fn(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(E(ld),E(ti),E(Ht),E(Uy),E(h),E(Hr,8),E(Lf,8),E(so,8),E(u_,8),E(rl,10),go("tabindex"),E(uI),E(qx),E(Qz,8))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&(Nn(zz,5),Nn($z,5),Nn(bA,5)),2&e){let r;yt(r=vt())&&(i.trigger=r.first),yt(r=vt())&&(i.panel=r.first),yt(r=vt())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[nt,ci]}),n})(),rv=(()=>{class n extends i${constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(fn(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=sA(e,this.options,this.optionGroups),a=i._getHostElement();r.scrollTop=0===e&&1===o?0:aA(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new t$(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof mw?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ct(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,e$,5),Bn(r,Qh,5),Bn(r,lw,5)),2&e){let o;yt(o=vt())&&(i.customTrigger=o.first),yt(o=vt())&&(i.options=o),yt(o=vt())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,i){1&e&&ce("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(bt("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),Jt("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Vt([{provide:qy,useExisting:n},{provide:aw,useExisting:n}]),nt],ngContentSelectors:Yz,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(bi(qz),y(0,"div",0,1),ce("click",function(){return i.toggle()}),y(3,"div",2),K(4,jz,2,1,"span",3),K(5,Gz,3,2,"span",4),v(),y(6,"div",5)(7,"div",6),ua(),y(8,"svg",7),Pe(9,"path",8),v()()()(),K(10,Zz,3,9,"ng-template",9),ce("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Go(1);bt("aria-owns",i.panelOpen?i.id+"-panel":null),T(3),N("ngSwitch",i.empty),bt("id",i._valueId),T(1),N("ngSwitchCase",!0),T(1),N("ngSwitchCase",!1),T(5),N("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[Ff,Of,Ub,xE,bA,mw],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Kz.transformPanel]},changeDetection:0}),n})(),r$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[Jz],imports:[wa,d_,Wy,$n,qh,Yy,Wy,$n]}),n})();function o$(n,t){if(1&n){const e=Nt();y(0,"div",2)(1,"button",3),ce("click",function(){return He(e),je(Z().action())}),A(2),v()()}if(2&n){const e=Z();T(2),hi(" ",e.data.action," ")}}const s$=["label"];function a$(n,t){}const l$=Math.pow(2,31)-1;class ov{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Ae,this._afterOpened=new Ae,this._onAction=new Ae,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,l$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Ew=new ye("MatSnackBarData");class sv{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let c$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),n})(),d$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),n})(),u$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),n})(),h$=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(E(ov),E(Ew))},n.\u0275cmp=et({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),A(1),v(),K(2,o$,3,1,"div",1)),2&e&&(T(1),hi(" ",i.data.message,"\n"),T(1),N("ngIf",i.hasAction))},dependencies:[Si,tr,c$,d$,u$],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),n})();const m$={snackBarState:od("state",[Da("void, hidden",xi({transform:"scale(0.8)",opacity:0})),Da("visible",xi({transform:"scale(1)",opacity:1})),Mo("* => visible",Eo("150ms cubic-bezier(0, 0, 0.2, 1)")),Mo("* => void, * => hidden",Eo("75ms cubic-bezier(0.4, 0.0, 1, 1)",xi({opacity:0})))])};let f$=0,p$=(()=>{class n extends dw{constructor(e,i,r,o,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=qn(en),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ae,this._onExit=new Ae,this._onEnter=new Ae,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+f$++,this.attachDomPortal=c=>{this._assertNotAttached();const u=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),u},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(zr(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=e.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(E(Ht),E(h),E(ti),E(Ai),E(sv))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(l_,7),2&e){let r;yt(r=vt())&&(i._portalOutlet=r.first)}},features:[nt]}),n})(),g$=(()=>{class n extends p${_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,i){if(1&e&&Nn(s$,7),2&e){let r;yt(r=vt())&&(i._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,i){1&e&&b0("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&D0("@state",i._animationState)},features:[nt],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(y(0,"div",0)(1,"div",1,2)(3,"div",3),K(4,a$,0,0,"ng-template",4),v(),Pe(5,"div"),v()()),2&e&&(T(5),bt("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[l_],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[m$.snackBarState]}}),n})(),hI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[d_,uw,wa,NA,$n,$n]}),n})();const mI=new ye("mat-snack-bar-default-options",{providedIn:"root",factory:function _$(){return new sv}});let b$=(()=>{class n{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,a,c){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Wo.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:sv,useValue:i}]}),a=new Gy(this.snackBarContainerComponent,i.viewContainerRef,o),c=e.attach(a);return c.instance.snackBarConfig=i,c.instance}_attach(e,i){const r={...new sv,...this._defaultConfig,...i},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),c=new ov(a,o);if(e instanceof Cr){const u=new Jh(e,null,{$implicit:r.data,snackBarRef:c});c.instance=a.attachTemplatePortal(u)}else{const u=this._createInjector(r,c),m=new Gy(e,void 0,u),g=a.attachComponentPortal(m);c.instance=g.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(fn(o.detachments())).subscribe(u=>{o.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(c,r),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new c_;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,c=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):c?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Wo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ov,useValue:i},{provide:Ew,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(te(Ma),te(qx),te(Wo),te(Ux),te(n,12),te(mI))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),y$=(()=>{class n extends b${constructor(e,i,r,o,a,c){super(e,i,r,o,a,c),this.simpleSnackBarComponent=h$,this.snackBarContainerComponent=g$,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(te(Ma),te(qx),te(Wo),te(Ux),te(n,12),te(mI))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:hI}),n})();function v$(n,t){}const C$=function(n){return{animationDuration:n}},x$=function(n,t){return{value:n,params:t}};function w$(n,t){1&n&&Gt(0)}const fI=["*"],D$=["tabListContainer"],T$=["tabList"],E$=["tabListInner"],M$=["nextPaginator"],k$=["previousPaginator"],S$=["tabBodyWrapper"],A$=["tabHeader"];function I$(n,t){}function F$(n,t){1&n&&K(0,I$,0,0,"ng-template",14),2&n&&N("cdkPortalOutlet",Z().$implicit.templateLabel)}function O$(n,t){1&n&&A(0),2&n&&Rt(Z().$implicit.textLabel)}function P$(n,t){if(1&n){const e=Nt();y(0,"div",6,7),ce("click",function(){const r=He(e),o=r.$implicit,a=r.index,c=Z(),u=Go(1);return je(c._handleClick(o,u,a))})("cdkFocusChange",function(r){const a=He(e).index;return je(Z()._tabFocusChanged(r,a))}),Pe(2,"span",8)(3,"div",9),y(4,"span",10)(5,"span",11),K(6,F$,1,1,"ng-template",12),K(7,O$,1,1,"ng-template",null,13,Eb),v()()()}if(2&n){const e=t.$implicit,i=t.index,r=Go(1),o=Go(8),a=Z();Jt("mdc-tab--active",a.selectedIndex===i),N("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),bt("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),T(3),N("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),T(3),N("ngIf",e.templateLabel)("ngIfElse",o)}}function R$(n,t){if(1&n){const e=Nt();y(0,"mat-tab-body",15),ce("_onCentered",function(){return He(e),je(Z()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return He(e),je(Z()._setTabBodyWrapperHeight(r))}),v()}if(2&n){const e=t.$implicit,i=t.index,r=Z();Jt("mat-mdc-tab-body-active",r.selectedIndex===i),N("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),bt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const L$={translateTab:od("translateTab",[Da("center, void, left-origin-center, right-origin-center",xi({transform:"none"})),Da("left",xi({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Da("right",xi({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Mo("* => left, * => right, left => center, right => center",Eo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Mo("void => left-origin-center",[xi({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Eo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Mo("void => right-origin-center",[xi({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Eo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let N$=(()=>{class n extends l_{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=z.EMPTY,this._leavingSub=z.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Vr(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(uu),E(xr),E(Wt(()=>pI)),E(en))},n.\u0275dir=xe({type:n,selectors:[["","matTabBodyHost",""]],features:[nt]}),n})(),B$=(()=>{class n{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=z.EMPTY,this._translateTabComplete=new Ae,this._onCentering=new Ve,this._beforeCentering=new Ve,this._afterLeavingCenter=new Ve,this._onCentered=new Ve(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe($x((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Hr,8),E(ti))},n.\u0275dir=xe({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),pI=(()=>{class n extends B${constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Hr,8),E(ti))},n.\u0275cmp=et({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Nn(l_,5),2&e){let r;yt(r=vt())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[nt],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(y(0,"div",0,1),ce("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),K(2,v$,0,0,"ng-template",2),v()),2&e&&N("@translateTab",KD(3,x$,i._position,function YD(n,t,e,i){return XD(Te(),Fr(),n,t,e,i)}(1,C$,i.animationDuration)))},dependencies:[N$],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[L$.translateTab]}}),n})();const V$=new ye("MatTabContent");let H$=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(E(Cr))},n.\u0275dir=xe({type:n,selectors:[["","matTabContent",""]],features:[Vt([{provide:V$,useExisting:n}])]}),n})();const z$=new ye("MatTabLabel"),gI=new ye("MAT_TAB");let _I=(()=>{class n extends A8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(E(Cr),E(xr),E(gI,8))},n.\u0275dir=xe({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Vt([{provide:z$,useExisting:n}]),nt]}),n})();const Mw="mdc-tab-indicator--active",bI="mdc-tab-indicator--no-transition";class $${constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){const e=this._items.find(r=>r.elementRef.nativeElement===t),i=this._currentItem;if(i?.deactivateInkBar(),e){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function j$(n){return class extends n{constructor(...t){super(...t),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){const e=Ct(t);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const e=this.elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(Mw);const i=e.getBoundingClientRect(),r=t.width/i.width,o=t.left-i.left;e.classList.add(bI),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(bI),e.classList.add(Mw),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Mw)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=t.createElement("span"),this._inkBarContentElement=t.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const W$=Kh(class{}),G$=j$((()=>{class n extends W${constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275dir=xe({type:n,features:[nt]}),n})());let yI=(()=>{class n extends G${}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275dir=xe({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(bt("aria-disabled",!!i.disabled),Jt("mat-mdc-tab-disabled",i.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[nt]}),n})();const Z$=Kh(class{}),vI=new ye("MAT_TAB_GROUP");let q$=(()=>{class n extends Z${get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ae,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Jh(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(E(xr),E(vI,8))},n.\u0275dir=xe({type:n,viewQuery:function(e,i){if(1&e&&Nn(Cr,7),2&e){let r;yt(r=vt())&&(i._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[nt,ci]}),n})(),CI=(()=>{class n extends q${get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Yn(n)))(i||n)}}(),n.\u0275cmp=et({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(Bn(r,H$,7,Cr),Bn(r,_I,5)),2&e){let o;yt(o=vt())&&(i._explicitContent=o.first),yt(o=vt())&&(i.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Vt([{provide:gI,useExisting:n}]),nt],ngContentSelectors:fI,decls:1,vars:0,template:function(e,i){1&e&&(bi(),K(0,w$,1,0,"ng-template"))},encapsulation:2}),n})();const xI=ol({passive:!0});let X$=(()=>{class n{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=oc(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,r,o,a,c,u){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=c,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ae,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ae,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ve,this.indexFocused=new Ve,a.runOutsideAngular(()=>{sc(e.nativeElement,"mouseleave").pipe(fn(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){sc(this._previousPaginator.nativeElement,"touchstart",xI).pipe(fn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),sc(this._nextPaginator.nativeElement,"touchstart",xI).pipe(fn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:gs("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Zx(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(zr(1)).subscribe(r),on(e,i,this._items.changes,this._itemsResized()).pipe(fn(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?na:this._items.changes.pipe(Vr(this._items),ac(e=>new at(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),zx(1),_s(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ks(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement;let c,u;"ltr"==this._getLayoutDirection()?(c=o,u=c+a):(u=this._tabListInner.nativeElement.offsetWidth-o,c=u-a);const m=this.scrollDistance,g=this.scrollDistance+r;cg&&(this.scrollDistance+=u-g+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Sy(650,100).pipe(fn(on(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(ld),E(Hr,8),E(Ht),E(Ai),E(Nr,8))},n.\u0275dir=xe({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),Q$=(()=>{class n extends X${get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ct(e)}constructor(e,i,r,o,a,c,u){super(e,i,r,o,a,c,u),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(ld),E(Hr,8),E(Ht),E(Ai),E(Nr,8))},n.\u0275dir=xe({type:n,inputs:{disableRipple:"disableRipple"},features:[nt]}),n})(),J$=(()=>{class n extends Q${constructor(e,i,r,o,a,c,u){super(e,i,r,o,a,c,u)}ngAfterContentInit(){this._inkBar=new $$(this._items),super.ngAfterContentInit()}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(ld),E(Hr,8),E(Ht),E(Ai),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,yI,4),2&e){let o;yt(o=vt())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Nn(D$,7),Nn(T$,7),Nn(E$,7),Nn(M$,5),Nn(k$,5)),2&e){let r;yt(r=vt())&&(i._tabListContainer=r.first),yt(r=vt())&&(i._tabList=r.first),yt(r=vt())&&(i._tabListInner=r.first),yt(r=vt())&&(i._nextPaginator=r.first),yt(r=vt())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("mat-mdc-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[nt],ngContentSelectors:fI,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(bi(),y(0,"button",0,1),ce("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),Pe(2,"div",2),v(),y(3,"div",3,4),ce("keydown",function(o){return i._handleKeydown(o)}),y(5,"div",5,6),ce("cdkObserveContent",function(){return i._onContentChanges()}),y(7,"div",7,8),Gt(9),v()()(),y(10,"button",9,10),ce("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),Pe(12,"div",2),v()),2&e&&(Jt("mat-mdc-tab-header-pagination-disabled",i._disableScrollBefore),N("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),T(3),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode),T(7),Jt("mat-mdc-tab-header-pagination-disabled",i._disableScrollAfter),N("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[Xo,fS],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),n})();const DI=new ye("MAT_TABS_CONFIG");let ej=0;const tj=Zf(wu(class{constructor(n){this._elementRef=n}}),"primary");let nj=(()=>{class n extends tj{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=oc(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=oc(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ct(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ct(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new fu,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=z.EMPTY,this._tabLabelSubscription=z.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ve,this.focusChange=new Ve,this.animationDone=new Ve,this.selectedTabChange=new Ve(!0),this._groupId=ej++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Vr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new rj;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=on(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(DI,8),E(Nr,8))},n.\u0275dir=xe({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[nt]}),n})(),ij=(()=>{class n extends nj{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=Ct(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=Ct(e)}constructor(e,i,r,o){super(e,i,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(ti),E(DI,8),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,CI,5),2&e){let o;yt(o=vt())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Nn(S$,5),Nn(A$,5)),2&e){let r;yt(r=vt())&&(i._tabBodyWrapper=r.first),yt(r=vt())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,i){2&e&&Jt("mat-mdc-tab-group-dynamic-height",i.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===i.headerPosition)("mat-mdc-tab-group-stretch-tabs",i.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Vt([{provide:vI,useExisting:n}]),nt],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(y(0,"mat-tab-header",0,1),ce("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),K(2,P$,9,17,"div",2),v(),y(3,"div",3,4),K(5,R$,1,11,"mat-tab-body",5),v()),2&e&&(N("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),T(2),N("ngForOf",i._tabs),T(1),Jt("_mat-animation-noopable","NoopAnimations"===i._animationMode),T(2),N("ngForOf",i._tabs))},dependencies:[Ff,fs,Si,l_,Xo,ZV,pI,yI,J$],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),n})();class rj{}let oj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[wa,$n,uw,Xh,jx,kS,$n]}),n})();const sj=["*",[["mat-toolbar-row"]]],aj=["*","mat-toolbar-row"],lj=Zf(class{constructor(n){this._elementRef=n}});let cj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=xe({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),dj=(()=>{class n extends lj{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(E(h),E(Ai),E(en))},n.\u0275cmp=et({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Bn(r,cj,5),2&e){let o;yt(o=vt())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&Jt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[nt],ngContentSelectors:aj,decls:2,vars:0,template:function(e,i){1&e&&(bi(sj),Gt(0),Gt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),uj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({imports:[$n,$n]}),n})();const hj=["tooltip"],TI=new ye("mat-tooltip-scroll-strategy"),pj={provide:TI,deps:[Ma],useFactory:function fj(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},_j=new ye("mat-tooltip-default-options",{providedIn:"root",factory:function gj(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),EI="tooltip-panel",MI=ol({passive:!0});let wj=(()=>{class n{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Ct(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ct(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=oc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=oc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,a,c,u,m,g,C,F,O){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=c,this._ariaDescriber=u,this._focusMonitor=m,this._dir=C,this._defaultOptions=F,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ae,this._scrollStrategy=g,this._document=O,F&&(F.position&&(this.position=F.position),F.positionAtOrigin&&(this.positionAtOrigin=F.positionAtOrigin),F.touchGestures&&(this.touchGestures=F.touchGestures)),C.change.pipe(fn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(fn(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,MI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Gy(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(fn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof h)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(fn(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${EI}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(fn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(fn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(fn(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Ks(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(zr(1),fn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const u=`${this._cssClassPrefix}-${EI}-`;c.removePanelClass(u+this._currentPosition),c.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,MI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){ag()},n.\u0275dir=xe({type:n,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),ys=(()=>{class n extends wj{constructor(e,i,r,o,a,c,u,m,g,C,F,O){super(e,i,r,o,a,c,u,m,g,C,F,O),this._tooltipComponent=Tj,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return n.\u0275fac=function(e){return new(e||n)(E(Ma),E(h),E(zf),E(xr),E(Ht),E(Ai),E(OV),E(xu),E(TI),E(Hr,8),E(_j,8),E(en))},n.\u0275dir=xe({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[nt]}),n})(),Dj=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ae,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(Nr,8))},n.\u0275dir=xe({type:n}),n})(),Tj=(()=>{class n extends Dj{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return n.\u0275fac=function(e){return new(e||n)(E(ti),E(h),E(Nr,8))},n.\u0275cmp=et({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Nn(hj,7),2&e){let r;yt(r=vt())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&ce("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&mg("zoom",i.isVisible()?1:null)},features:[nt],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,i){1&e&&(y(0,"div",0,1),ce("animationend",function(o){return i._handleAnimationEnd(o)}),y(2,"div",2),A(3),v()()),2&e&&(Jt("mdc-tooltip--multiline",i._isMultiline),N("ngClass",i.tooltipClass),T(3),Rt(i.message))},dependencies:[Ff],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),n})(),Ej=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Se({providers:[pj],imports:[kS,wa,d_,$n,$n,qh]}),n})();function __(n){return(__="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function al(n,t,e){return(t=function kj(n){var t=function Mj(n,t){if("object"!==__(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==__(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"===__(t)?t:String(t)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const kI=new ye("ngx-segment-analytics.config"),Sj={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};class nm{constructor(){al(this,"analytics",void 0)}}al(nm,"\u0275fac",function(t){return new(t||nm)}),al(nm,"\u0275prov",B({token:nm,factory:nm.\u0275fac}));class im{constructor(t,e,i){if(al(this,"_w",void 0),al(this,"_doc",void 0),al(this,"_config",void 0),this._w=t,this._doc=e,this._config={...Sj,...i},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=r=>(...o)=>(o.unshift(r),this._w.analytics.push(o),this._w.analytics),this._w.analytics.methods.forEach(r=>{this._w.analytics[r]=this._w.analytics.factory(r)}),this._w.analytics.load=(r,o)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",r);const c=this._doc.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c),this._w.analytics._loadOptions=o},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(t,e){this._w.analytics.load(t,e),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(t,e,i){return new Promise(r=>{this._w.analytics.identify(t,e,i,o=>r(this))})}track(t,e,i){return new Promise(r=>{this._w.analytics.track(t,e,i,o=>r(this))})}page(t,e,i,r){return new Promise(o=>{this._w.analytics.page(t,e,i,r,a=>o(this))})}group(t,e){return new Promise(i=>{this._w.analytics.group(t,e,r=>i(this))})}alias(t,e,i){return new Promise(r=>{this._w.analytics.alias(t,e,i,o=>r(this))})}ready(){return new Promise(t=>{this._w.analytics.ready(e=>t(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(t){this._w.analytics.setAnonymousId(t)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(t){this._w.analytics.debug(t)}on(t,e){this._w.analytics.on(t,e)}trackLink(t,e,i){this._w.analytics.trackLink(t,e,i)}trackForm(t,e,i){this._w.analytics.trackForm(t,e,i)}timeout(t){this._w.analytics.timeout(t)}addSourceMiddleware(t){this._w.analytics.addSourceMiddleware(t)}addDestinationMiddleware(t,e){this._w.analytics.addDestinationMiddleware(t,e)}register(...t){return this._w.analytics.register(...t)}get plugins(){return this._w.analytics.plugins}}al(im,"\u0275fac",function(t){return new(t||im)(te(nm),te(en),te(kI))}),al(im,"\u0275prov",B({token:im,factory:im.\u0275fac,providedIn:"root"}));class ud{static forRoot(t){return{ngModule:ud,providers:[{provide:kI,useValue:t},im]}}constructor(t){if(t)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}}al(ud,"\u0275fac",function(t){return new(t||ud)(te(ud,12))}),al(ud,"\u0275mod",sn({type:ud})),al(ud,"\u0275inj",Se({providers:[{provide:nm,useFactory:function Aj(n){return kE(n)?window:{}},deps:[Eg]}],imports:[wa]}));var vs=M(5861);let Ij=(()=>{class n{constructor(e,i){this.snackbarRef=e,this.message=i.message,this.noLabel=i.noLabel,this.yesLabel=i.yesLabel}doNo(){this.snackbarRef.dismiss()}doYes(){this.snackbarRef.dismissWithAction()}}return n.\u0275fac=function(e){return new(e||n)(E(ov),E(Ew))},n.\u0275cmp=et({type:n,selectors:[["app-confirm"]],decls:6,vars:3,consts:[["data-cy","confirm-no","mat-raised-button","",3,"click"],["data-cy","confirm-yes","mat-raised-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"p"),A(1),v(),y(2,"button",0),ce("click",function(){return i.doNo()}),A(3),v(),y(4,"button",1),ce("click",function(){return i.doYes()}),A(5),v()),2&e&&(T(1),Rt(i.message),T(2),hi("",i.noLabel," "),T(2),Rt(i.yesLabel))},dependencies:[tr]}),n})(),Qo=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1/devstate"}addContainer(e){return this.http.post(this.base+"/container",{name:e.name,image:e.image,command:e.command,args:e.args,env:e.env,memReq:e.memoryRequest,memLimit:e.memoryLimit,cpuReq:e.cpuRequest,cpuLimit:e.cpuLimit,volumeMounts:e.volumeMounts,configureSources:e.configureSources,mountSources:e.mountSources,sourceMapping:e.sourceMapping,annotation:{deployment:e.annotation.deployment,service:e.annotation.service},endpoints:e.endpoints})}saveContainer(e){return this.http.patch(this.base+"/container/"+e.name,{image:e.image,command:e.command,args:e.args,env:e.env,memReq:e.memoryRequest,memLimit:e.memoryLimit,cpuReq:e.cpuRequest,cpuLimit:e.cpuLimit,volumeMounts:e.volumeMounts,configureSources:e.configureSources,mountSources:e.mountSources,sourceMapping:e.sourceMapping,annotation:{deployment:e.annotation.deployment,service:e.annotation.service},endpoints:e.endpoints})}addImage(e){return this.http.post(this.base+"/image",{name:e.name,imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}saveImage(e){return this.http.patch(this.base+"/image/"+e.name,{imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}addResource(e){return this.http.post(this.base+"/resource",{name:e.name,inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}saveResource(e){return this.http.patch(this.base+"/resource/"+e.name,{inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}addVolume(e){return this.http.post(this.base+"/volume",{name:e.name,ephemeral:e.ephemeral,size:e.size})}saveVolume(e){return this.http.patch(this.base+"/volume/"+e.name,{ephemeral:e.ephemeral,size:e.size})}addExecCommand(e,i){return this.http.post(this.base+"/execCommand",{name:e,component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}updateExecCommand(e,i){return this.http.patch(this.base+"/execCommand/"+e,{component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}addApplyCommand(e,i){return this.http.post(this.base+"/applyCommand",{name:e,component:i.component})}updateApplyCommand(e,i){return this.http.patch(this.base+"/applyCommand/"+e,{component:i.component})}addCompositeCommand(e,i){return this.http.post(this.base+"/compositeCommand",{name:e,parallel:i.parallel,commands:i.commands})}updateCompositeCommand(e,i){return this.http.patch(this.base+"/compositeCommand/"+e,{parallel:i.parallel,commands:i.commands})}getFlowChart(){return this.http.get(this.base+"/chart")}setDevfileContent(e){return this.http.put(this.base+"/devfile",{content:e})}getDevfileContent(){return this.http.get(this.base+"/devfile")}clearDevfileContent(){return this.http.delete(this.base+"/devfile")}setMetadata(e){return this.http.put(this.base+"/metadata",{name:e.name,version:e.version,displayName:e.displayName,description:e.description,tags:e.tags,architectures:e.architectures,icon:e.icon,globalMemoryLimit:e.globalMemoryLimit,projectType:e.projectType,language:e.language,website:e.website,provider:e.provider,supportUrl:e.supportUrl})}moveCommand(e,i,r,o){return this.http.post(this.base+"/command/0/move",{fromGroup:e,fromIndex:r,toGroup:i,toIndex:o})}setDefaultCommand(e,i){return this.http.post(this.base+"/command/"+e+"/setDefault",{group:i})}unsetDefaultCommand(e){return this.http.post(this.base+"/command/"+e+"/unsetDefault",{})}deleteCommand(e){return this.http.delete(this.base+"/command/"+e)}deleteContainer(e){return this.http.delete(this.base+"/container/"+e)}deleteImage(e){return this.http.delete(this.base+"/image/"+e)}deleteResource(e){return this.http.delete(this.base+"/resource/"+e)}deleteVolume(e){return this.http.delete(this.base+"/volume/"+e)}updateEvents(e,i){return this.http.put(this.base+"/events",{eventName:e,commands:i})}isQuantityValid(e){return this.http.post(this.base+"/quantityValid",{quantity:e})}isQuantity(){return e=>{const i=e.value;return""==i?gs(null):this.isQuantityValid(i).pipe(Vn(()=>null),Dw(()=>gs({isQuantity:!1})))}}}return n.\u0275fac=function(e){return new(e||n)(te(Wg))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fj=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1"}getDevfile(){return this.http.get(this.base+"/devfile")}saveDevfile(e){return this.http.put(this.base+"/devfile",{content:e})}telemetry(){return this.http.get(this.base+"/telemetry")}}return n.\u0275fac=function(e){return new(e||n)(te(Wg))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Oj=M(8080);let Pj=(()=>{class n{constructor(){}getMermaidAsSVG(e){return(0,vs.Z)(function*(){const{svg:i}=yield Oj.N.render("rendered",e);return i})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qs=(()=>{class n{constructor(){this.savedDevfile="",this._state=new Bx(null),this.state=this._state.asObservable(),this._modified=new Bx(null),this.modified=this._modified.asObservable()}changeDevfileYaml(e,i=!1){this._state.next(e),i&&(this.savedDevfile=e.content),""==this.savedDevfile&&(this.savedDevfile=e.content),this._modified.next(this.savedDevfile!=e.content)}isUpdated(e){return e!=this.savedDevfile}getDragAndDropEnabled(){return"true"==localStorage.getItem("dragAndDropEnabled")}saveDragAndDropEnabled(e){return localStorage.setItem("dragAndDropEnabled",e?"true":"false")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rj=(()=>{class n{constructor(){this.base="/api/v1",this.evtSource=new EventSource(this.base+"/notifications")}subscribeTo(e){return new at(i=>{e.forEach(r=>{this.evtSource.addEventListener(r,o=>{i.next(o)})}),this.evtSource.onerror=r=>{i.error(r)}})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ka=(()=>{class n{constructor(e){this.segment=e,this.options={context:{ip:"0.0.0.0"}}}init(e,i){this.segment.identify(i,{},this.options),this.segment.load(e),this.segment.setAnonymousId(i)}track(e){this.segment.track(e,{},this.options)}}return n.\u0275fac=function(e){return new(e||n)(te(im))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nj=(()=>{class n{constructor(e,i,r){this.devstate=e,this.state=i,this.telemetry=r,this.form=new Ko({name:new dt(""),version:new dt("",bn.pattern("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$")),displayName:new dt(""),description:new dt(""),tags:new dt(""),architectures:new dt(""),icon:new dt(""),globalMemoryLimit:new dt(""),projectType:new dt(""),language:new dt(""),website:new dt(""),provider:new dt(""),supportUrl:new dt("")})}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,vs.Z)(function*(r){const o=r?.metadata;null!=o&&e.form.patchValue(o)});return function(r){return i.apply(this,arguments)}}())}onSave(){this.telemetry.track("[ui] apply metadata"),this.devstate.setMetadata(this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-metadata"]],decls:60,vars:3,consts:[[1,"main"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["data-cy","metadata-name","placeholder","Unique name to identify the devfile","matInput","","formControlName","name"],["placeholder","Version of the devfile, semver-compatible","matInput","","formControlName","version"],["appearance","outline",1,"full-width"],["placeholder","Name to display instead of the unique name","matInput","","formControlName","displayName"],["matInput","","formControlName","description","rows","4"],["placeholder","Tags to help find the devfile in a registry","matInput","","formControlName","tags"],["placeholder","Ex: amd64,arm64,ppc64le,s390x","matInput","","formControlName","architectures"],["placeholder","Can be a URI or a relative path in the project","matInput","","formControlName","icon"],[1,"icon-display","width-10"],["width","56",3,"src"],["appearance","outline",1,"width-40"],["placeholder","Informative limit of memory used by the devfile. Ex: 1Gi","matInput","","formControlName","globalMemoryLimit"],["placeholder","Ex: Framework of the project","matInput","","formControlName","projectType"],["placeholder","Language of the project","matInput","","formControlName","language"],["placeholder","Official website of the devfile","matInput","","formControlName","website"],["placeholder","Information about the provider of the devfile","matInput","","formControlName","provider"],["placeholder","Link to a page providing support information","matInput","","formControlName","supportUrl"],["mat-flat-button","","color","primary",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),A(4,"Name"),v(),Pe(5,"input",3),v(),y(6,"mat-form-field",2)(7,"mat-label"),A(8,"Version"),v(),y(9,"mat-error"),A(10,"Examples: 1.0.4, 1.4.7-alpha1"),v(),Pe(11,"input",4),v(),y(12,"mat-form-field",5)(13,"mat-label"),A(14,"Display Name"),v(),Pe(15,"input",6),v(),y(16,"mat-form-field",5)(17,"mat-label"),A(18,"Description"),v(),Pe(19,"textarea",7),v(),y(20,"mat-form-field",2)(21,"mat-label"),A(22,"Tags (comma-speparated)"),v(),Pe(23,"input",8),v(),y(24,"mat-form-field",2)(25,"mat-label"),A(26,"Architectures (comma-separated)"),v(),Pe(27,"input",9),v(),y(28,"mat-form-field",2)(29,"mat-label"),A(30,"Icon"),v(),Pe(31,"input",10),v(),y(32,"span",11),Pe(33,"img",12),v(),y(34,"mat-form-field",13)(35,"mat-label"),A(36,"Global Memory Limit"),v(),Pe(37,"input",14),v(),y(38,"mat-form-field",2)(39,"mat-label"),A(40,"Project Type"),v(),Pe(41,"input",15),v(),y(42,"mat-form-field",2)(43,"mat-label"),A(44,"Language"),v(),Pe(45,"input",16),v(),y(46,"mat-form-field",2)(47,"mat-label"),A(48,"Website"),v(),Pe(49,"input",17),v(),y(50,"mat-form-field",2)(51,"mat-label"),A(52,"Provider"),v(),Pe(53,"input",18),v(),y(54,"mat-form-field",5)(55,"mat-label"),A(56,"Support URL"),v(),Pe(57,"input",19),v()(),y(58,"button",20),ce("click",function(){return i.onSave()}),A(59,"Apply"),v()()),2&e&&(T(1),N("formGroup",i.form),T(32),N("src",i.form.controls.icon.value,Jp),T(25),N("disabled",i.form.invalid))},dependencies:[rc,yo,oo,qs,so,ps,tr,vo,$r,cd,bs],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}.quart-width[_ngcontent-%COMP%]{width:25%}.icon-display[_ngcontent-%COMP%]{display:inline-flex;position:relative;left:16px;top:22px}.width-10[_ngcontent-%COMP%]{width:10%}.width-40[_ngcontent-%COMP%]{width:40%}"]}),n})();const av="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",lv="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";function Bj(n,t){if(1&n&&(y(0,"h3"),A(1),v()),2&n){const e=Z();T(1),Rt(e.title)}}function Vj(n,t){if(1&n){const e=Nt();y(0,"span")(1,"mat-form-field",5)(2,"mat-label")(3,"span"),A(4),v()(),Pe(5,"input",6),v(),y(6,"button",7),ce("click",function(){const o=He(e).index;return je(Z(2).removeText(o))}),y(7,"mat-icon",8),A(8,"delete_forever"),v()()()}if(2&n){const e=t.$implicit,i=t.index,r=Z(2);T(4),Rt(r.label),T(1),N("formControl",e),bt("data-cy",r.dataCyPrefix+"-text-"+i),T(1),N("matTooltip",r.deleteLabel),bt("data-cy",r.dataCyPrefix+"-minus-"+i)}}function Hj(n,t){if(1&n){const e=Nt();y(0,"mat-card")(1,"mat-card-content"),K(2,Vj,9,5,"span",3),v(),y(3,"mat-card-actions")(4,"button",4),ce("click",function(){return He(e),je(Z().addText(""))}),A(5),v()()()}if(2&n){const e=Z();T(2),N("ngForOf",e.form.controls),T(2),bt("data-cy","add-text"),T(1),Rt(e.addLabel)}}function zj(n,t){if(1&n){const e=Nt();y(0,"button",4),ce("click",function(){return He(e),je(Z().addText(""))}),A(1),v()}if(2&n){const e=Z();bt("data-cy","add-text"),T(1),Rt(e.addLabel)}}let SI=(()=>{class n{constructor(){this.dataCyPrefix="",this.label="",this.addLabel="",this.deleteLabel="",this.title="",this.onChange=e=>{},this.form=new Bf([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}newText(e){return new dt(e,[bn.required])}writeValue(e){e?.forEach(i=>this.addText(i))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addText(e){this.form.push(this.newText(e))}removeText(e){this.form.removeAt(e)}validate(e){return this.form.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-multi-text"]],inputs:{dataCyPrefix:"dataCyPrefix",label:"label",addLabel:"addLabel",deleteLabel:"deleteLabel",title:"title"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:4,vars:3,consts:[[4,"ngIf"],[1,"group"],["mat-flat-button","",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"],["appearance","outline",1,"inline"],["matInput","",3,"formControl"],["mat-icon-button","",1,"adjust-position",3,"matTooltip","click"],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){1&e&&(K(0,Bj,2,1,"h3",0),y(1,"div",1),K(2,Hj,6,3,"mat-card",0),K(3,zj,2,2,"button",2),v()),2&e&&(N("ngIf",i.title),T(2),N("ngIf",i.form.controls.length>0),T(1),N("ngIf",0==i.form.controls.length))},dependencies:[fs,Si,yo,oo,Nf,tr,m_,Du,Eu,Tu,vo,$r,Xs,bs,ys],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}button.adjust-position[_ngcontent-%COMP%]{right:6px;top:6px}"]}),n})();function $j(n,t){1&n&&(y(0,"h2"),A(1,"Add a new volume"),v())}function jj(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit volume "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.volume.name)}}function Uj(n,t){if(1&n){const e=Nt();y(0,"button",11),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function Wj(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function Gj(n,t){if(1&n){const e=Nt();y(0,"button",13),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let AI=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),size:new dt("",null,[this.devstate.isQuantity()]),ephemeral:new dt(!1)})}create(){this.telemetry.track("[ui] create volume"),this.created.emit(this.form.value)}save(){this.form.value.name=this.volume?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.volume)return;const i=e.volume.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-volume"]],inputs:{cancelable:"cancelable",volume:"volume"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:25,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the volume","data-cy","volume-name","matInput","","formControlName","name"],["placeholder","Minimal size of the volume","data-cy","volume-size","matInput","","formControlName","size"],["data-cy","volume-ephemeral","formControlName","ephemeral"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click",4,"ngIf"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,$j,2,0,"h2",1),K(2,jj,4,1,"h2",1),y(3,"div",2),A(4,"A volume can be mounted and shared by several containers."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-volume"),v(),Pe(12,"input",5),v(),y(13,"mat-form-field",4)(14,"mat-label")(15,"span"),A(16,"Size"),v()(),y(17,"mat-error"),A(18,"Example of valid quantities: 300k (300*1000), 30Mi(30*1024\xb2), 3Gi (3*1024\xb3), 3G (3*1000\xb3)"),v(),Pe(19,"input",6),v(),y(20,"mat-checkbox",7),A(21,"Volume is Ephemeral"),v()(),K(22,Uj,2,1,"button",8),K(23,Wj,2,1,"button",9),K(24,Gj,2,0,"button",10),v()),2&e&&(T(1),N("ngIf",!i.volume),T(1),N("ngIf",i.volume),T(3),N("formGroup",i.form),T(17),N("ngIf",!i.volume),T(1),N("ngIf",i.volume),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function Zj(n,t){if(1&n&&(y(0,"mat-option",12),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),Rt(e)}}function qj(n,t){if(1&n){const e=Nt();y(0,"app-volume",13),ce("created",function(r){He(e);const o=Z().index;return je(Z().onNewVolumeCreated(o,r))}),v()}}function Yj(n,t){if(1&n){const e=Nt();y(0,"div"),io(1,3),y(2,"mat-form-field",4)(3,"mat-label")(4,"span"),A(5,"Volume"),v()(),y(6,"mat-select",5),ce("selectionChange",function(r){const a=He(e).index;return je(Z().onNameChange(a,r.value))}),K(7,Zj,2,2,"mat-option",6),y(8,"mat-option",7),A(9,"(New Volume)"),v()()(),y(10,"mat-form-field",4)(11,"mat-label")(12,"span"),A(13,"Mount Path"),v()(),Pe(14,"input",8),v(),y(15,"button",9),ce("click",function(){const o=He(e).index;return je(Z().remove(o))}),y(16,"mat-icon",10),A(17,"delete_forever"),v()(),K(18,qj,1,0,"app-volume",11),ro(),v()}if(2&n){const e=t.$implicit,i=t.index,r=Z();T(1),N("formGroup",e),T(5),bt("data-cy","volume-mount-name-"+i),T(1),N("ngForOf",r.volumes),T(7),bt("data-cy","volume-mount-path-"+i),T(1),bt("data-cy","volume-mount-minus-"+i),T(3),N("ngIf",r.showNewVolume[i])}}let Kj=(()=>{class n{constructor(){this.volumes=[],this.createNewVolume=new Ve,this.form=new Bf([]),this.showNewVolume=[],this.onChange=e=>{},this.onValidatorChange=()=>{},this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.add(i.name,i.path))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newVolumeMount(e){return new Ko({name:new dt(e.name,[bn.required]),path:new dt(e.path,[bn.required])})}add(e,i){this.form.push(this.newVolumeMount({name:e,path:i}))}remove(e){this.form.removeAt(e)}onNameChange(e,i){this.showNewVolume[e]="!"==i}onNewVolumeCreated(e,i){this.volumes.push(i.name),this.form.at(e).get("name")?.setValue(i.name),this.createNewVolume.next(i),this.showNewVolume[e]=!1,this.onValidatorChange()}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-volume-mounts"]],inputs:{volumes:"volumes"},outputs:{createNewVolume:"createNewVolume"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:4,vars:1,consts:[[1,"group"],[4,"ngFor","ngForOf"],["data-cy","volume-mount-add","mat-flat-button","",3,"click"],[3,"formGroup"],["appearance","outline",1,"inline"],["formControlName","name",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],["formControlName","path","matInput",""],["mat-icon-button","","matTooltip","Delete Volume Mount",1,"adjust-position",3,"click"],[1,"tab-icon","material-icons-outlined"],[3,"created",4,"ngIf"],[3,"value"],[3,"created"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Yj,19,6,"div",1),y(2,"button",2),ce("click",function(){return i.add("","")}),A(3,"Add Volume Mount"),v()()),2&e&&(T(1),N("ngForOf",i.form.controls))},dependencies:[fs,Si,yo,oo,qs,so,ps,Qh,tr,m_,vo,$r,Xs,bs,rv,ys,AI],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}button.adjust-position[_ngcontent-%COMP%]{right:6px;top:6px}"]}),n})();function Xj(n,t){if(1&n){const e=Nt();y(0,"div"),io(1,3),y(2,"mat-form-field",4)(3,"mat-label")(4,"span"),A(5,"Name"),v()(),Pe(6,"input",5),v(),y(7,"mat-form-field",4)(8,"mat-label")(9,"span"),A(10,"Value"),v()(),Pe(11,"input",6),v(),y(12,"button",7),ce("click",function(){const o=He(e).index;return je(Z().removeEntry(o))}),y(13,"mat-icon",8),A(14,"delete_forever"),v()(),ro(),v()}if(2&n){const e=t.$implicit,i=t.index,r=Z();T(1),N("formGroup",e),T(5),bt("data-cy",r.dataCyPrefix+"-name-"+i),T(5),bt("data-cy",r.dataCyPrefix+"-value-"+i),T(1),N("matTooltip",r.deleteLabel),bt("data-cy",r.dataCyPrefix+"-minus-"+i)}}let Qj=(()=>{class n{constructor(){this.dataCyPrefix="",this.addLabel="",this.deleteLabel="",this.form=new Bf([]),this.onChange=e=>{},this.onValidatorChange=()=>{},this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.addEntry(i.name,i.value))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newKeyValueForm(e){return new Ko({name:new dt(e.name,[bn.required]),value:new dt(e.value,[bn.required])})}addEntry(e,i){this.form.push(this.newKeyValueForm({name:e,value:i}))}removeEntry(e){this.form.removeAt(e)}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-multi-key-value"]],inputs:{dataCyPrefix:"dataCyPrefix",addLabel:"addLabel",deleteLabel:"deleteLabel"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:4,vars:3,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"],[3,"formGroup"],["appearance","outline",1,"kv-width"],["matInput","","formControlName","name"],["matInput","","formControlName","value"],["mat-icon-button","",1,"adjust-position",3,"matTooltip","click"],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Xj,15,5,"div",1),y(2,"button",2),ce("click",function(){return i.addEntry("","")}),A(3),v()()),2&e&&(T(1),N("ngForOf",i.form.controls),T(1),bt("data-cy",i.dataCyPrefix+"-add"),T(1),Rt(i.addLabel))},dependencies:[fs,yo,oo,qs,so,ps,tr,m_,vo,$r,Xs,bs,ys],styles:["div.group[_ngcontent-%COMP%]{margin-bottom:16px}.kv-width[_ngcontent-%COMP%]{width:45%}button.adjust-position[_ngcontent-%COMP%]{right:6px;top:6px}"]}),n})();function Jj(n,t){if(1&n){const e=Nt();y(0,"mat-card")(1,"mat-card-content",3)(2,"mat-form-field",4)(3,"mat-label")(4,"span"),A(5,"Name"),v()(),Pe(6,"input",5),v(),y(7,"mat-form-field",6)(8,"mat-label")(9,"span"),A(10,"Target Port"),v()(),Pe(11,"input",7),v(),y(12,"mat-form-field",6)(13,"mat-label"),A(14,"Exposure"),v(),y(15,"mat-select",8)(16,"mat-option",9),A(17,"(default, public)"),v(),y(18,"mat-option",10),A(19,"public"),v(),y(20,"mat-option",11),A(21,"internal"),v(),y(22,"mat-option",12),A(23,"none"),v()()(),y(24,"mat-form-field",4)(25,"mat-label")(26,"span"),A(27,"Path"),v()(),Pe(28,"input",13),v(),y(29,"mat-form-field",6)(30,"mat-label"),A(31,"Protocol"),v(),y(32,"mat-select",14)(33,"mat-option",9),A(34,"(default, http)"),v(),y(35,"mat-option",15),A(36,"http"),v(),y(37,"mat-option",16),A(38,"https"),v(),y(39,"mat-option",17),A(40,"ws"),v(),y(41,"mat-option",18),A(42,"wss"),v(),y(43,"mat-option",19),A(44,"tcp"),v(),y(45,"mat-option",20),A(46,"udp"),v()()(),y(47,"mat-checkbox",21),A(48,"Protocol Is Secure"),v()(),y(49,"mat-card-actions")(50,"button",22),ce("click",function(){const o=He(e).index;return je(Z().removeEndpoint(o))}),y(51,"mat-icon",23),A(52,"delete_forever"),v()()()()}if(2&n){const e=t.$implicit,i=t.index;T(1),N("formGroup",e),T(5),bt("data-cy","endpoint-name-"+i),T(5),bt("data-cy","endpoint-targetPort-"+i),T(4),bt("data-cy","endpoint-exposure-"+i),T(13),bt("data-cy","endpoint-path-"+i),T(4),bt("data-cy","endpoint-protocol-"+i),T(15),bt("data-cy","endpoint-secure-"+i),T(3),bt("data-cy","endpoint-minus-"+i)}}let eU=(()=>{class n{constructor(){this.onChange=e=>{},this.onValidatorChange=()=>{},this.form=new Bf([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}newEndpoint(e){return new Ko({name:new dt(e.name,[bn.required]),targetPort:new dt(e.targetPort,[bn.required,bn.pattern("^[0-9]*$")]),exposure:new dt(e.exposure),path:new dt(e.path),protocol:new dt(e.protocol),secure:new dt(e.secure)})}addEndpoint(){this.form.push(this.newEndpoint({name:"",targetPort:0}))}removeEndpoint(e){this.form.removeAt(e)}writeValue(e){e.forEach(i=>{this.form.push(this.newEndpoint(i))})}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-endpoints"]],features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:5,vars:1,consts:[[1,"group"],[4,"ngFor","ngForOf"],["data-cy","endpoints-add","mat-flat-button","",3,"click"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["matInput","","formControlName","name"],["appearance","outline",1,"quart-width"],["type","number","matInput","","formControlName","targetPort"],["formControlName","exposure"],["value",""],["value","public"],["value","internal"],["value","none"],["matInput","","formControlName","path"],["formControlName","protocol"],["value","http"],["value","https"],["value","ws"],["value","wss"],["value","tcp"],["value","udp"],["formControlName","secure"],["mat-icon-button","","matTooltip","Delete endpoint",1,"adjust-position",3,"click"],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Jj,53,8,"mat-card",1),y(2,"div")(3,"button",2),ce("click",function(){return i.addEndpoint()}),A(4,"Add an Endpoint"),v()()()),2&e&&(T(1),N("ngForOf",i.form.controls))},dependencies:[fs,yo,gx,oo,qs,so,ps,Qh,tr,m_,Du,Eu,Tu,dd,vo,$r,Xs,bs,rv,ys],styles:[".mid-width[_ngcontent-%COMP%]{width:50%}.quart-width[_ngcontent-%COMP%]{width:25%}mat-card[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{flex-grow:1;overflow:auto}button.adjust-position[_ngcontent-%COMP%]{right:6px}"]}),n})();function tU(n,t){1&n&&(y(0,"h2"),A(1,"Add a new container"),v())}function nU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit container "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.container.name)}}function iU(n,t){if(1&n){const e=Nt();y(0,"button",19),ce("click",function(){return He(e),je(Z().more())}),A(1,"More parameters..."),v()}}function rU(n,t){1&n&&(y(0,"div",28)(1,"div",29)(2,"mat-checkbox",30),A(3,"Mount sources into container"),v(),y(4,"mat-checkbox",31),A(5,"Into specific directory"),v()(),y(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Mount sources into"),v()(),Pe(10,"input",32),v()())}function oU(n,t){if(1&n&&(y(0,"div")(1,"h3"),A(2,"Resource Usage"),v(),y(3,"div",2),A(4,"CPU and Memory resources necessary for container's execution"),v(),y(5,"mat-form-field",4)(6,"mat-label")(7,"span"),A(8,"Memory Request"),v()(),y(9,"mat-error"),A(10),v(),Pe(11,"input",20),v(),y(12,"mat-form-field",4)(13,"mat-label")(14,"span"),A(15,"Memory Limit"),v()(),y(16,"mat-error"),A(17),v(),Pe(18,"input",21),v(),y(19,"mat-form-field",4)(20,"mat-label")(21,"span"),A(22,"CPU Request"),v()(),y(23,"mat-error"),A(24),v(),Pe(25,"input",22),v(),y(26,"mat-form-field",4)(27,"mat-label")(28,"span"),A(29,"CPU Limit"),v()(),y(30,"mat-error"),A(31),v(),Pe(32,"input",23),v(),y(33,"h3"),A(34,"Sources"),v(),y(35,"div",2),A(36,"Declare if and how sources are mounted into the container's filesystem. By default, sources are automatically mounted into $PROJECTS_ROOT or /projects directory"),v(),y(37,"div")(38,"mat-checkbox",24),A(39,"Configure Source mount"),v()(),K(40,rU,11,0,"div",25),y(41,"h3"),A(42,"Deployment Annotations"),v(),y(43,"div",2),A(44,"Annotations added to the Kubernetes Deployment created for running this container"),v(),Pe(45,"app-multi-key-value",26),y(46,"h3"),A(47,"Service Annotations"),v(),y(48,"div",2),A(49,"Annotations added to the Kubernetes Service created for accessing this container"),v(),Pe(50,"app-multi-key-value",27),v()),2&n){const e=Z();let i;T(10),Rt(e.quantityErrMsgMemory),T(7),Rt(e.quantityErrMsgMemory),T(7),Rt(e.quantityErrMsgCPU),T(7),Rt(e.quantityErrMsgCPU),T(9),N("ngIf",null==(i=e.form.get("configureSources"))?null:i.value)}}function sU(n,t){if(1&n){const e=Nt();y(0,"button",33),ce("click",function(){return He(e),je(Z().less())}),A(1,"Less parameters..."),v()}}function aU(n,t){if(1&n){const e=Nt();y(0,"button",34),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function lU(n,t){if(1&n){const e=Nt();y(0,"button",35),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function cU(n,t){if(1&n){const e=Nt();y(0,"button",36),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let II=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.volumeNames=[],this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.quantityErrMsgMemory="Numeric value, with optional unit Ki, Mi, Gi, Ti, Pi, Ei",this.quantityErrMsgCPU="Numeric value, with optional unit m, k, M, G, T, P, E",this.volumesToCreate=[],this.seeMore=!1,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),image:new dt("",[bn.required]),command:new dt([]),args:new dt([]),env:new dt([]),volumeMounts:new dt([]),memoryRequest:new dt("",null,[this.devstate.isQuantity()]),memoryLimit:new dt("",null,[this.devstate.isQuantity()]),cpuRequest:new dt("",null,[this.devstate.isQuantity()]),cpuLimit:new dt("",null,[this.devstate.isQuantity()]),configureSources:new dt(!1),mountSources:new dt(!0),_specificDir:new dt(!1),sourceMapping:new dt(""),deployAnnotations:new dt([]),svcAnnotations:new dt([]),endpoints:new dt([])}),this.form.valueChanges.subscribe(r=>{this.updateSourceFields(r)}),this.updateSourceFields(this.form.value)}updateSourceFields(e){const i=e.mountSources&&e._specificDir;!i&&!this.form.get("sourceMapping")?.disabled&&(this.form.get("sourceMapping")?.disable(),this.form.get("sourceMapping")?.setValue(""),this.form.get("_specificDir")?.setValue(!1)),i&&!this.form.get("sourceMapping")?.enabled&&this.form.get("sourceMapping")?.enable();const r=e.mountSources;!r&&!this.form.get("_specificDir")?.disabled&&this.form.get("_specificDir")?.disable(),r&&!this.form.get("_specificDir")?.enabled&&this.form.get("_specificDir")?.enable()}toObject(e){return null==e?{}:e.reduce((i,r)=>(i[r.name]=r.value,i),{})}fromObject(e){return null==e?[]:Object.keys(e).map(i=>({name:i,value:e[i]}))}create(){this.telemetry.track("[ui] create container");const e=this.form.value;e.annotation={deployment:this.toObject(e.deployAnnotations),service:this.toObject(e.svcAnnotations)},this.created.emit({container:this.form.value,volumes:this.volumesToCreate})}save(){this.telemetry.track("[ui] edit container");const e=this.form.value;e.name=this.container?.name,e.annotation={deployment:this.toObject(e.deployAnnotations),service:this.toObject(e.svcAnnotations)},this.saved.emit({container:e,volumes:this.volumesToCreate})}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.container)return;const i=e.container.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable(),""!=this.form.get("sourceMapping")?.value&&this.form.get("_specificDir")?.setValue(!0),this.form.get("deployAnnotations")?.setValue(this.fromObject(i.annotation.deployment)),this.form.get("svcAnnotations")?.setValue(this.fromObject(i.annotation.service)))}onCreateNewVolume(e){this.volumesToCreate.push(e)}more(){this.seeMore=!0}less(){this.seeMore=!1}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-container"]],inputs:{volumeNames:"volumeNames",cancelable:"cancelable",container:"container"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:48,vars:10,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the container","data-cy","container-name","matInput","","formControlName","name"],["placeholder","Image to start the container","data-cy","container-image","matInput","","formControlName","image"],["dataCyPrefix","container-command","formControlName","command","label","Command","addLabel","Add command","deleteLabel","Delete command"],["dataCyPrefix","container-arg","formControlName","args","label","Arg","addLabel","Add arg","deleteLabel","Delete arg"],["dataCyPrefix","container-env","addLabel","Add Environment Variable","deleteLabel","Delete Environment Variable","formControlName","env"],["formControlName","volumeMounts",3,"volumes","createNewVolume"],["formControlName","endpoints"],[1,"outbutton"],["data-cy","container-more-params","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","container-less-params","mat-flat-button","",3,"click",4,"ngIf"],[1,"buttonbar"],["data-cy","container-create","mat-flat-button","","color","primary","matTooltip","create new container",3,"disabled","click",4,"ngIf"],["data-cy","container-save","mat-flat-button","","color","primary","matTooltip","save container",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","container-more-params","mat-flat-button","",3,"click"],["placeholder","memory requested for the container. Ex: 1Gi","data-cy","container-memory-request","matInput","","formControlName","memoryRequest"],["placeholder","memory limit for the container. Ex: 1Gi","data-cy","container-memory-limit","matInput","","formControlName","memoryLimit"],["placeholder","CPU requested for the container. Ex: 500m","data-cy","container-cpu-request","matInput","","formControlName","cpuRequest"],["placeholder","CPU limit for the container. Ex: 1","data-cy","container-cpu-limit","matInput","","formControlName","cpuLimit"],["data-cy","container-sources-configuration","formControlName","configureSources"],["class","source-configuration-details",4,"ngIf"],["dataCyPrefix","container-deploy-anno","addLabel","Add Annotation","deleteLabel","Delete Deployment Annotation","formControlName","deployAnnotations"],["dataCyPrefix","container-svc-anno","addLabel","Add Annotation","deleteLabel","Delete Service Annotation","formControlName","svcAnnotations"],[1,"source-configuration-details"],[1,"mid-width",2,"display","inline-flex"],["data-cy","container-mount-sources","formControlName","mountSources"],["data-cy","container-sources-specific-directory","matTooltip","${PROJECTS_ROOT} or /projects by default","formControlName","_specificDir"],["placeholder","Container's directory on which to mount sources","data-cy","container-source-mapping","matInput","","formControlName","sourceMapping"],["data-cy","container-less-params","mat-flat-button","",3,"click"],["data-cy","container-create","mat-flat-button","","color","primary","matTooltip","create new container",3,"disabled","click"],["data-cy","container-save","mat-flat-button","","color","primary","matTooltip","save container",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,tU,2,0,"h2",1),K(2,nU,4,1,"h2",1),y(3,"div",2),A(4,"A Container is used to execute shell commands into a specific environment. The entrypoint of the container must be a non-terminating command. You can use an image pulled from a registry or an image built by an Image command."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-container"),v(),Pe(12,"input",5),v(),y(13,"mat-form-field",4)(14,"mat-label")(15,"span"),A(16,"Image"),v()(),Pe(17,"input",6),v(),y(18,"h3"),A(19,"Command and Arguments"),v(),y(20,"div",2),A(21,"Command and Arguments can be used to override the entrypoint of the image"),v(),Pe(22,"app-multi-text",7)(23,"app-multi-text",8),y(24,"h3"),A(25,"Environment Variables"),v(),y(26,"div",2),A(27,"Environment Variables to define in the running container"),v(),Pe(28,"app-multi-key-value",9),y(29,"h3"),A(30,"Volume Mounts"),v(),y(31,"div",2),A(32,"Volumes to mount into the container's filesystem"),v(),y(33,"app-volume-mounts",10),ce("createNewVolume",function(o){return i.onCreateNewVolume(o)}),v(),y(34,"h3"),A(35,"Endpoints"),v(),y(36,"div",2),A(37,"Endpoints exposed by the container"),v(),Pe(38,"app-endpoints",11),y(39,"div",12),K(40,iU,2,0,"button",13),v(),K(41,oU,51,5,"div",1),y(42,"div",12),K(43,sU,2,0,"button",14),v()(),y(44,"div",15),K(45,aU,2,1,"button",16),K(46,lU,2,1,"button",17),K(47,cU,2,0,"button",18),v()()),2&e&&(T(1),N("ngIf",!i.container),T(1),N("ngIf",i.container),T(3),N("formGroup",i.form),T(28),N("volumes",i.volumeNames),T(7),N("ngIf",!i.seeMore),T(1),N("ngIf",i.seeMore),T(2),N("ngIf",i.seeMore),T(2),N("ngIf",!i.container),T(1),N("ngIf",i.container),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys,SI,Kj,Qj,eU],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}.mid-width[_ngcontent-%COMP%]{width:50%}.source-configuration-details[_ngcontent-%COMP%]{margin-left:16px}div.buttonbar[_ngcontent-%COMP%]{margin-top:16px}.outbutton[_ngcontent-%COMP%]{text-align:right}"]}),n})();function dU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Command:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.command.join(" "))}}function uU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Args:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.args.join(" "))}}function hU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=t.$implicit;T(1),pg(" ",e.name,": ",e.value," ")}}function mU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Environment variables:"),v(),y(3,"td"),K(4,hU,2,2,"div",9),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",e.env)}}function fU(n,t){if(1&n&&(y(0,"div",11)(1,"mat-chip",12)(2,"mat-icon",13),A(3,"storage"),v(),A(4),v(),y(5,"span",14),A(6," in "),y(7,"code"),A(8),v()()()),2&n){const e=t.$implicit;T(4),hi(" ",e.name," "),T(4),Rt(e.path)}}function pU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Volume Mounts:"),v(),y(3,"td"),K(4,fU,9,2,"div",10),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",e.volumeMounts)}}function gU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Memory Request:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.memoryRequest)}}function _U(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Memory Limit:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.memoryLimit)}}function bU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"CPU Request:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.cpuRequest)}}function yU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"CPU Limit:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.cpuLimit)}}function vU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=t.$implicit;T(1),pg(" ",e.key,": ",e.value," ")}}function CU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Deployment Annotations:"),v(),y(3,"td"),K(4,vU,2,2,"div",9),xg(5,"keyvalue"),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",wg(5,1,e.annotation.deployment))}}function xU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=t.$implicit;T(1),pg(" ",e.key,": ",e.value," ")}}function wU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Service Annotations:"),v(),y(3,"td"),K(4,xU,2,2,"div",9),xg(5,"keyvalue"),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",wg(5,1,e.annotation.service))}}function DU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Mount Sources:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.mountSources?"Yes":"No")}}function TU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Mount Sources Into:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.sourceMapping)}}function EU(n,t){1&n&&(y(0,"div"),A(1,"secure"),v())}function MU(n,t){if(1&n&&(y(0,"div"),A(1),v()),2&n){const e=Z().$implicit;T(1),hi("path: ",e.path,"")}}function kU(n,t){if(1&n&&(y(0,"mat-card",17)(1,"mat-card-header")(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5),v()(),y(6,"mat-card-content")(7,"div"),A(8),v(),y(9,"div"),A(10),v(),K(11,EU,2,0,"div",3),K(12,MU,2,1,"div",3),v()()),2&n){const e=t.$implicit;let i,r;T(3),Rt(e.name),T(2),Rt(e.targetPort),T(3),hi("exposure: ",null!==(i=e.exposure)&&void 0!==i?i:"public",""),T(2),hi("protocol: ",null!==(r=e.protocol)&&void 0!==r?r:"http",""),T(1),N("ngIf",e.secure),T(1),N("ngIf",e.path)}}function SU(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Endpoints:"),v(),y(3,"td",15),K(4,kU,13,6,"mat-card",16),v()()),2&n){const e=Z().$implicit;T(4),N("ngForOf",e.endpoints)}}function AU(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Container"),v()(),y(6,"mat-card-content")(7,"table",6)(8,"tr")(9,"td"),A(10,"Image:"),v(),y(11,"td")(12,"code"),A(13),v()()(),K(14,dU,6,1,"tr",3),K(15,uU,6,1,"tr",3),K(16,mU,5,1,"tr",3),K(17,pU,5,1,"tr",3),K(18,gU,6,1,"tr",3),K(19,_U,6,1,"tr",3),K(20,bU,6,1,"tr",3),K(21,yU,6,1,"tr",3),K(22,CU,6,3,"tr",3),K(23,wU,6,3,"tr",3),K(24,DU,6,1,"tr",3),K(25,TU,6,1,"tr",3),K(26,SU,5,1,"tr",3),v()(),y(27,"mat-card-actions")(28,"button",7),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(29,"Delete"),v(),y(30,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(31,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(10),Rt(e.image),T(1),N("ngIf",null!=e.command&&e.command.length>0),T(1),N("ngIf",null!=e.args&&e.args.length>0),T(1),N("ngIf",e.env.length),T(1),N("ngIf",e.volumeMounts.length>0),T(1),N("ngIf",null!=e.memoryRequest&&e.memoryRequest.length>0),T(1),N("ngIf",null!=e.memoryLimit&&e.memoryLimit.length>0),T(1),N("ngIf",null!=e.cpuRequest&&e.cpuRequest.length>0),T(1),N("ngIf",null!=e.cpuLimit&&e.cpuLimit.length>0),T(1),N("ngIf",e.annotation.deployment),T(1),N("ngIf",e.annotation.service),T(1),N("ngIf",e.configureSources),T(1),N("ngIf",e.configureSources&&e.mountSources&&e.sourceMapping),T(1),N("ngIf",e.endpoints.length)}}const IU=function(){return[]};function FU(n,t){if(1&n){const e=Nt();y(0,"app-container",18),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();let i;N("volumeNames",null!==(i=e.volumeNames)&&void 0!==i?i:el(3,IU))("cancelable",e.forceDisplayForm)("container",e.editingContainer)}}function OU(n,t){if(1&n){const e=Nt();io(0),y(1,"button",19),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",20),A(3,"add"),v()(),ro()}}let PU=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.containers=[],this.volumeNames=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){e.volumeNames=o?.volumes.map(a=>a.name),i.containers=o?.containers,null!=e.containers&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingContainer=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the container "'+e+'". Continue?')&&this.devstate.deleteContainer(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}edit(e){this.editingContainer=e,this.displayForm()}onCreated(e){const i=e.container;this.createVolumes(e.volumes,0,()=>{this.devstate.addContainer(i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})})}onSaved(e){const i=e.container;this.createVolumes(e.volumes,0,()=>{this.devstate.saveContainer(i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-containers"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","container-info",4,"ngFor","ngForOf"],[3,"volumeNames","cancelable","container","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","container-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],["data-cy","container-edit","mat-button","",3,"click"],[4,"ngFor","ngForOf"],["class","volume-mount",4,"ngFor","ngForOf"],[1,"volume-mount"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],[1,"path"],[1,"container-list"],["class","endpoint",4,"ngFor","ngForOf"],[1,"endpoint"],[3,"volumeNames","cancelable","container","canceled","created","saved"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,AU,32,15,"mat-card",1),K(2,FU,1,4,"app-container",2),v(),K(3,OU,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.containers),T(1),N("ngIf",i.forceDisplayForm||null==i.containers||0==i.containers.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.containers&&i.containers.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Mu,xw,Xs,II,TE],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.volume-mount[_ngcontent-%COMP%]{margin-top:4px}.volume-mount[_ngcontent-%COMP%] > mat-chip[_ngcontent-%COMP%]{top:-11px}.volume-mount[_ngcontent-%COMP%] > span.path[_ngcontent-%COMP%]{position:relative;top:-14px}table.aligned[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:top}div.endpoint-list[_ngcontent-%COMP%]{display:float}mat-card.endpoint[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;float:left;margin:0 8px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:8px 8px 0}mat-card.endpoint[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:16px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{font-size:12px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:8px}"]}),n})();function RU(n,t){if(1&n&&(y(0,"mat-option",4),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),Rt(e)}}let kw=(()=>{class n{constructor(){this.containers=[],this.label="",this.createNew=new Ve,this.onChange=e=>{},this.onValidatorChange=()=>{},this.formCtrl=new dt("",[bn.required,this.validatorIsNotNew()])}validatorIsNotNew(){return e=>"!"==e.value?{internal:!0}:null}writeValue(e){this.formCtrl.setValue(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}onSelectChange(e){this.onValidatorChange(),"!"!=e&&this.onChange(e),this.createNew.emit("!"==e)}registerOnValidatorChange(e){this.onValidatorChange=e}validate(e){return this.formCtrl.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-select-container"]],inputs:{containers:"containers",label:"label"},outputs:{createNew:"createNew"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:7,vars:4,consts:[["appearance","fill"],["data-cy","select-container",3,"formControl","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],[3,"value"]],template:function(e,i){1&e&&(y(0,"mat-form-field",0)(1,"mat-label"),A(2),v(),y(3,"mat-select",1),ce("selectionChange",function(o){return i.onSelectChange(o.value)}),K(4,RU,2,2,"mat-option",2),y(5,"mat-option",3),A(6),v()()()),2&e&&(T(2),Rt(i.label),T(1),N("formControl",i.formCtrl),T(1),N("ngForOf",i.containers),T(2),hi("(New ",i.label,")"))},dependencies:[fs,oo,Nf,Qh,vo,$r,rv]}),n})();function LU(n,t){1&n&&(y(0,"h2"),A(1,"Add an Exec Command"),v())}function NU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit exec command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}const BU=function(){return[]};function VU(n,t){if(1&n){const e=Nt();y(0,"app-container",15),ce("created",function(r){return He(e),je(Z().onNewContainerCreated(r))}),v()}if(2&n){let i;N("volumeNames",null!==(i=Z().volumeNames)&&void 0!==i?i:el(1,BU))}}function HU(n,t){if(1&n){const e=Nt();y(0,"button",16),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function zU(n,t){if(1&n){const e=Nt();y(0,"button",17),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let $U=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.containerList=[],this.showNewContainer=!1,this.containerToCreate=null,this.volumesToCreate=[],this.volumeNames=[],this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),component:new dt("",[bn.required]),commandLine:new dt("",[bn.required]),workingDir:new dt("",[bn.required]),hotReloadCapable:new dt(!1)}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){o.volumeNames=c?.volumes.map(m=>m.name);const u=c?.containers;null!=u&&(o.containerList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}create(){this.telemetry.track("[ui] create exec command");const e=()=>{this.devstate.addExecCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}cancel(){this.canceled.emit()}onProjectsRoot(){this.form.controls.workingDir.setValue("${PROJECTS_ROOT}")}onCreateNewContainer(e){this.showNewContainer=e}onNewContainerCreated(e){const i=e.container;this.containerList.push(i.name),this.form.controls.component.setValue(i.name),this.showNewContainer=!1,this.containerToCreate=i,this.volumesToCreate.push(...e.volumes)}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.exec),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update exec command");const e=()=>{null!=this.command&&this.devstate.updateExecCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-exec"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:35,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["formControlName","hotReloadCapable"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-exec-name","matInput","","formControlName","name"],["placeholder","command line passed to the shell","data-cy","command-exec-command-line","matInput","","formControlName","commandLine"],["placeholder","Working directory of the command","data-cy","command-exec-working-dir","matInput","","formControlName","workingDir"],["data-cy","command-exec-projects-root","mat-button","",3,"click"],["formControlName","component","label","Container",3,"containers","createNew"],[3,"volumeNames","created",4,"ngIf"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click",4,"ngIf"],["data-cy","command-exec-save","mat-flat-button","","color","primary","matTooltip","save command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"volumeNames","created"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click"],["data-cy","command-exec-save","mat-flat-button","","color","primary","matTooltip","save command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,LU,2,0,"h2",1),K(2,NU,4,1,"h2",1),y(3,"div",2),A(4,"An Exec command is a shell command executed into a container."),v(),y(5,"form",3)(6,"div")(7,"mat-checkbox",4),A(8,"Hot Reload Capable"),v()(),y(9,"mat-form-field",5)(10,"mat-label")(11,"span"),A(12,"Name"),v()(),y(13,"mat-error"),A(14,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(15,"input",6),v(),y(16,"mat-form-field",5)(17,"mat-label")(18,"span"),A(19,"Command Line"),v()(),Pe(20,"input",7),v(),y(21,"mat-form-field",5)(22,"mat-label")(23,"span"),A(24,"Working Dir"),v()(),Pe(25,"input",8),v(),y(26,"button",9),ce("click",function(){return i.onProjectsRoot()}),A(27,"Work on Project's Root Directory"),v(),y(28,"div")(29,"app-select-container",10),ce("createNew",function(o){return i.onCreateNewContainer(o)}),v()()(),K(30,VU,1,2,"app-container",11),K(31,HU,2,1,"button",12),K(32,zU,2,1,"button",13),y(33,"button",14),ce("click",function(){return i.cancel()}),A(34,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(3),N("formGroup",i.form),T(24),N("containers",i.containerList),T(1),N("ngIf",i.showNewContainer),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys,II,kw],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function jU(n,t){1&n&&(y(0,"h2"),A(1,"Add a new resource"),v())}function UU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit resource "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.resource.name)}}function WU(n,t){1&n&&(y(0,"mat-form-field",19)(1,"mat-label")(2,"span"),A(3,"URI"),v()(),Pe(4,"input",20),v())}function GU(n,t){1&n&&(y(0,"mat-form-field",19)(1,"mat-label"),A(2,"YAML Manifest"),v(),Pe(3,"textarea",21),v())}function ZU(n,t){if(1&n){const e=Nt();y(0,"button",22),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function qU(n,t){if(1&n){const e=Nt();y(0,"button",23),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function YU(n,t){if(1&n){const e=Nt();y(0,"button",24),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let FI=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.uriOrInlined="uri",this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),_choice:new dt("uri"),uri:new dt("",[bn.required]),inlined:new dt("",[]),deployByDefault:new dt("undefined")})}changeUriOrInlined(e){this.uriOrInlined=e,"uri"==this.uriOrInlined?(this.form.controls.inlined.removeValidators(bn.required),this.form.controls.inlined.setValue(""),this.form.controls.uri?.addValidators(bn.required)):"inlined"==this.uriOrInlined&&(this.form.controls.uri?.removeValidators(bn.required),this.form.controls.uri.setValue(""),this.form.controls.inlined?.setValidators(bn.required)),this.form.controls.uri.updateValueAndValidity(),this.form.controls.inlined.updateValueAndValidity()}create(){this.telemetry.track("[ui] create resource"),this.created.emit(this.form.value)}save(){this.form.value.name=this.resource?.name,this.telemetry.track("[ui] edit resource"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.resource)return;const i=e.resource.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),i.inlined?(this.form.get("_choice")?.setValue("inlined"),this.changeUriOrInlined("inlined")):(this.form.get("_choice")?.setValue("uri"),this.changeUriOrInlined("uri")),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-resource"]],inputs:{cancelable:"cancelable",resource:"resource"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:33,vars:8,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","deployByDefault"],["data-cy","resource-auto-deploy-never","matTooltip","Do not deploy the resource at startup","value","never"],["data-cy","resource-auto-deploy-undefined","matTooltip","Deploy at startup only if the resource is not referenced in any command","value","undefined"],["data-cy","resource-auto-deploy-always","matTooltip","Force deploying the resource at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the resource","data-cy","resource-name","matInput","","formControlName","name"],[1,"toggleUriInlined"],["formControlName","_choice",3,"change"],["data-cy","resource-toogle-uri","value","uri"],["data-cy","resource-toggle-inlined","value","inlined"],["appearance","outline","class","full-width",4,"ngIf"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click",4,"ngIf"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"full-width"],["placeholder","Reference to a YAML manifest","data-cy","resource-uri","matInput","","formControlName","uri"],["data-cy","resource-manifest","matInput","","formControlName","inlined","rows","8"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,jU,2,0,"h2",1),K(2,UU,4,1,"h2",1),y(3,"div",2),A(4,"A Resource defines a Kubernetes resource. Its definition can be given either by a URI pointing to a manifest file or by an inlined YAML manifest."),v(),y(5,"form",3)(6,"div",4),A(7," Deploy at Startup: "),y(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),A(10,"Never"),v(),y(11,"mat-button-toggle",7),A(12,"If Orphan"),v(),y(13,"mat-button-toggle",8),A(14,"Always"),v()()(),y(15,"mat-form-field",9)(16,"mat-label")(17,"span"),A(18,"Name"),v()(),y(19,"mat-error"),A(20,"Lowercase words separated by dashes. Ex: my-resource"),v(),Pe(21,"input",10),v(),y(22,"span",11)(23,"mat-button-toggle-group",12),ce("change",function(o){return i.changeUriOrInlined(o.value)}),y(24,"mat-button-toggle",13),A(25,"Specify URI"),v(),y(26,"mat-button-toggle",14),A(27,"Inlined content"),v()()(),K(28,WU,5,0,"mat-form-field",15),K(29,GU,4,0,"mat-form-field",15),v(),K(30,ZU,2,1,"button",16),K(31,qU,2,1,"button",17),K(32,YU,2,0,"button",18),v()),2&e&&(T(1),N("ngIf",!i.resource),T(1),N("ngIf",i.resource),T(3),N("formGroup",i.form),T(23),N("ngIf","uri"==i.uriOrInlined),T(1),N("ngIf","inlined"==i.uriOrInlined),T(1),N("ngIf",!i.resource),T(1),N("ngIf",i.resource),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,gw,_w,vo,$r,cd,bs,ys],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}span.toggleUriInlined[_ngcontent-%COMP%]{margin-left:16px}"]}),n})();function KU(n,t){1&n&&(y(0,"h2"),A(1,"Add an Apply Command"),v())}function XU(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit apply command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}function QU(n,t){if(1&n){const e=Nt();y(0,"app-resource",11),ce("created",function(r){return He(e),je(Z().onNewResourceCreated(r))}),v()}}function JU(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function e7(n,t){if(1&n){const e=Nt();y(0,"button",13),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let t7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.resourceList=[],this.showNewResource=!1,this.resourceToCreate=null,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),component:new dt("",[bn.required])}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){const u=c?.resources;null!=u&&(o.resourceList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create apply command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewContainer(e){this.showNewResource=e}onNewResourceCreated(e){this.resourceList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewResource=!1,this.resourceToCreate=e}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.apply),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update apply command");const e=()=>{null!=this.command&&this.devstate.updateApplyCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-apply"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:22,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-apply-name","matInput","","formControlName","name"],["formControlName","component","label","Resource",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click",4,"ngIf"],["data-cy","command-apply-save","mat-flat-button","","color","primary","matTooltip","save Apply Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"created"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click"],["data-cy","command-apply-save","mat-flat-button","","color","primary","matTooltip","save Apply Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,KU,2,0,"h2",1),K(2,XU,4,1,"h2",1),y(3,"div",2),A(4,'An Apply command "applies" a resource to the cluster. Equivalent to '),y(5,"code"),A(6,"kubectl apply -f ..."),v()(),y(7,"form",3)(8,"mat-form-field",4)(9,"mat-label")(10,"span"),A(11,"Name"),v()(),y(12,"mat-error"),A(13,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(14,"input",5),v(),y(15,"div")(16,"app-select-container",6),ce("createNew",function(o){return i.onCreateNewContainer(o)}),v()()(),K(17,QU,1,0,"app-resource",7),K(18,JU,2,1,"button",8),K(19,e7,2,1,"button",9),y(20,"button",10),ce("click",function(){return i.cancel()}),A(21,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(5),N("formGroup",i.form),T(9),N("containers",i.resourceList),T(1),N("ngIf",i.showNewResource),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,vo,$r,cd,bs,ys,kw,FI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function n7(n,t){if(1&n&&(y(0,"mat-option",8),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),Rt(e)}}function i7(n,t){if(1&n){const e=Nt();y(0,"span")(1,"mat-form-field",3)(2,"mat-label")(3,"span"),A(4,"Command"),v()(),y(5,"mat-select",4),K(6,n7,2,2,"mat-option",5),v()(),y(7,"button",6),ce("click",function(){const o=He(e).index;return je(Z().removeCommand(o))}),y(8,"mat-icon",7),A(9,"delete_forever"),v()()()}if(2&n){const e=t.$implicit,i=t.index,r=Z();T(5),N("formControl",e),bt("data-cy","command-selector-"+i),T(1),N("ngForOf",r.commandList),T(1),bt("data-cy","command-minus-"+i)}}let r7=(()=>{class n{constructor(){this.addLabel="",this.commandList=[],this.title="",this.onChange=e=>{},this.form=new Bf([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}writeValue(e){e.forEach(i=>this.addCommand(i))}registerOnChange(e){this.onChange=e}registerOnTouched(e){}newCommand(e){return new dt(e,[bn.required])}addCommand(e){this.form.push(this.newCommand(e))}removeCommand(e){this.form.removeAt(e)}validate(e){return this.form.valid?null:{internal:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=et({type:n,selectors:[["app-multi-command"]],inputs:{addLabel:"addLabel",commandList:"commandList",title:"title"},features:[Vt([{provide:Tr,multi:!0,useExisting:n},{provide:Wi,useExisting:Wt(()=>n),multi:!0}])],decls:7,vars:4,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"],["appearance","fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","","matTooltip","Delete command",1,"adjust-position",3,"click"],[1,"tab-icon","material-icons-outlined"],[3,"value"]],template:function(e,i){1&e&&(y(0,"h3"),A(1),v(),y(2,"div",0),K(3,i7,10,4,"span",1),y(4,"div")(5,"button",2),ce("click",function(){return i.addCommand("")}),A(6),v()()()),2&e&&(T(1),Rt(i.title),T(2),N("ngForOf",i.form.controls),T(2),bt("data-cy","add-command"),T(1),Rt(i.addLabel))},dependencies:[fs,oo,Nf,Qh,tr,m_,vo,$r,Xs,rv,ys],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}button.adjust-position[_ngcontent-%COMP%]{right:6px}"]}),n})();function o7(n,t){1&n&&(y(0,"h2"),A(1,"Add a Composite Command"),v())}function s7(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit composite command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}function a7(n,t){if(1&n){const e=Nt();y(0,"button",11),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function l7(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let c7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.commandList=[],this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),parallel:new dt(!1),commands:new dt([])}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){const u=c?.commands;null!=u&&(o.commandList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create composite command"),this.devstate.addCompositeCommand(this.form.value.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.composite),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update composite command"),null!=this.command&&this.devstate.updateCompositeCommand(this.command.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-composite"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:21,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-composite-name","matInput","","formControlName","name"],["formControlName","parallel"],["formControlName","commands","title","Commands","addLabel","Add a command",3,"commandList"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click",4,"ngIf"],["data-cy","command-composite-save","mat-flat-button","","color","primary","matTooltip","save Composite Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click"],["data-cy","command-composite-save","mat-flat-button","","color","primary","matTooltip","save Composite Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,o7,2,0,"h2",1),K(2,s7,4,1,"h2",1),y(3,"div",2),A(4,"A Composite command executes several commands, either serially or in parallel."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(12,"input",5),v(),y(13,"div")(14,"mat-checkbox",6),A(15,"Run commands in parallel"),v()(),Pe(16,"app-multi-command",7),v(),K(17,a7,2,1,"button",8),K(18,l7,2,1,"button",9),y(19,"button",10),ce("click",function(){return i.cancel()}),A(20,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(3),N("formGroup",i.form),T(11),N("commandList",i.commandList),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,dd,vo,$r,cd,bs,ys,r7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function d7(n,t){1&n&&(y(0,"h2"),A(1,"Add a new image"),v())}function u7(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit image "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.image.name)}}function h7(n,t){if(1&n){const e=Nt();y(0,"button",19),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function m7(n,t){if(1&n){const e=Nt();y(0,"button",20),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}function f7(n,t){if(1&n){const e=Nt();y(0,"button",21),ce("click",function(){return He(e),je(Z().cancel())}),A(1,"Cancel"),v()}}let OI=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Ve,this.created=new Ve,this.saved=new Ve,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(lv)]),imageName:new dt("",[bn.required]),args:new dt([]),buildContext:new dt(""),rootRequired:new dt(!1),uri:new dt("",[bn.required]),autoBuild:new dt("undefined")})}create(){this.telemetry.track("[ui] create image"),this.created.emit(this.form.value)}save(){this.form.value.name=this.image?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(console.log("changes",e),!e.image)return;const i=e.image.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-image"]],inputs:{cancelable:"cancelable",image:"image"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ci],decls:43,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","autoBuild"],["data-cy","image-auto-build-never","matTooltip","Do not build the image at startup","value","never"],["data-cy","image-auto-build-undefined","matTooltip","Build at startup only if the image is not referenced in any command","value","undefined"],["data-cy","image-auto-build-always","matTooltip","Force building the image at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the image","data-cy","image-name","matInput","","formControlName","name"],["placeholder","Reference to a container image","data-cy","image-image-name","matInput","","formControlName","imageName"],["dataCyPrefix","image-arg","formControlName","args","title","Build Args","label","Arg","addLabel","Add Build Arg","deleteLabel","Delete Build Args"],["placeholder","Directory from which the build will be executed","data-cy","image-build-context","matInput","","formControlName","buildContext"],["placeholder","Dockerfile used to build the image","data-cy","image-dockerfile-uri","matInput","","formControlName","uri"],["formControlName","rootRequired"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click",4,"ngIf"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,d7,2,0,"h2",1),K(2,u7,4,1,"h2",1),y(3,"div",2),A(4,"An Image defines how to build a container image."),v(),y(5,"form",3)(6,"div",4),A(7," Build at Startup: "),y(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),A(10,"Never"),v(),y(11,"mat-button-toggle",7),A(12,"If Orphan"),v(),y(13,"mat-button-toggle",8),A(14,"Always"),v()()(),y(15,"mat-form-field",9)(16,"mat-label")(17,"span"),A(18,"Name"),v()(),y(19,"mat-error"),A(20,"Lowercase words separated by dashes. Ex: my-image"),v(),Pe(21,"input",10),v(),y(22,"mat-form-field",9)(23,"mat-label")(24,"span"),A(25,"Image Name"),v()(),Pe(26,"input",11),v(),Pe(27,"app-multi-text",12),y(28,"mat-form-field",9)(29,"mat-label")(30,"span"),A(31,"Build Context"),v()(),Pe(32,"input",13),v(),y(33,"mat-form-field",9)(34,"mat-label")(35,"span"),A(36,"Dockerfile URI"),v()(),Pe(37,"input",14),v(),y(38,"mat-checkbox",15),A(39,"Root Required"),v()(),K(40,h7,2,1,"button",16),K(41,m7,2,1,"button",17),K(42,f7,2,0,"button",18),v()),2&e&&(T(1),N("ngIf",!i.image),T(1),N("ngIf",i.image),T(3),N("formGroup",i.form),T(35),N("ngIf",!i.image),T(1),N("ngIf",i.image),T(1),N("ngIf",i.cancelable))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,gw,_w,dd,vo,$r,cd,bs,ys,SI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}div.toggle-group-div[_ngcontent-%COMP%]{margin:16px 0}"]}),n})();function p7(n,t){1&n&&(y(0,"h2"),A(1,"Add an Image Command"),v())}function g7(n,t){if(1&n&&(y(0,"h2"),A(1,"Edit image command "),y(2,"i"),A(3),v()()),2&n){const e=Z();T(3),Rt(e.command.name)}}function _7(n,t){if(1&n){const e=Nt();y(0,"app-image",11),ce("created",function(r){return He(e),je(Z().onNewImageCreated(r))}),v()}}function b7(n,t){if(1&n){const e=Nt();y(0,"button",12),ce("click",function(){return He(e),je(Z().create())}),A(1,"Create"),v()}2&n&&N("disabled",Z().form.invalid)}function y7(n,t){if(1&n){const e=Nt();y(0,"button",13),ce("click",function(){return He(e),je(Z().save())}),A(1,"Save"),v()}2&n&&N("disabled",Z().form.invalid)}let v7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Ve,this.imageList=[],this.showNewImage=!1,this.imageToCreate=null,this.form=new Ko({name:new dt("",[bn.required,bn.pattern(av)]),component:new dt("",[bn.required])}),this.state.state.subscribe(function(){var a=(0,vs.Z)(function*(c){const u=c?.images;null!=u&&(o.imageList=u.map(m=>m.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create image command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewImage(e){this.showNewImage=e}onNewImageCreated(e){this.imageList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewImage=!1,this.imageToCreate=e}ngOnChanges(e){if(!e.command)return;const i=e.command.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.patchValue(i.image),this.form.get("name")?.disable())}save(){this.telemetry.track("[ui] update image command");const e=()=>{null!=this.command&&this.devstate.updateApplyCommand(this.command.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-command-image"]],inputs:{command:"command"},outputs:{canceled:"canceled"},features:[ci],decls:20,vars:7,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-image-name","matInput","","formControlName","name"],["formControlName","component","label","Image",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click",4,"ngIf"],["data-cy","command-image-save","mat-flat-button","","color","primary","matTooltip","save Image Command",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click"],[3,"created"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click"],["data-cy","command-image-save","mat-flat-button","","color","primary","matTooltip","save Image Command",3,"disabled","click"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,p7,2,0,"h2",1),K(2,g7,4,1,"h2",1),y(3,"div",2),A(4,"An Image command builds a container image and pushes it to a container registry."),v(),y(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),A(9,"Name"),v()(),y(10,"mat-error"),A(11,"Lowercase words separated by dashes. Ex: my-command"),v(),Pe(12,"input",5),v(),y(13,"div")(14,"app-select-container",6),ce("createNew",function(o){return i.onCreateNewImage(o)}),v()()(),K(15,_7,1,0,"app-image",7),K(16,b7,2,1,"button",8),K(17,y7,2,1,"button",9),y(18,"button",10),ce("click",function(){return i.cancel()}),A(19,"Cancel"),v()()),2&e&&(T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command),T(3),N("formGroup",i.form),T(9),N("containers",i.imageList),T(1),N("ngIf",i.showNewImage),T(1),N("ngIf",!i.command),T(1),N("ngIf",i.command))},dependencies:[Si,rc,yo,oo,qs,so,ps,tr,vo,$r,cd,bs,ys,kw,OI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function C7(n,t){if(1&n&&(y(0,"div",2),A(1),v()),2&n){const e=Z();T(1),hi("No ",e.kind," commands yet. You can create a command then drag&drop it here")}}function x7(n,t){1&n&&(y(0,"div",2),A(1,"No generic commands yet. New commands will appear here"),v())}function w7(n,t){if(1&n){const e=Nt();y(0,"mat-checkbox",11),ce("change",function(r){He(e);const o=Z(2).$implicit;return je(Z().toggleDefault(r,o.name,o.group))}),A(1),v()}if(2&n){const e=Z(2).$implicit,i=Z();N("checked",e.default),T(1),hi("Default ",i.kind," command")}}function D7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Exec Command"),v())}function T7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Apply Command"),v())}function E7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Image Command"),v())}function M7(n,t){1&n&&(y(0,"mat-card-subtitle"),A(1,"Composite Command"),v())}function k7(n,t){1&n&&(y(0,"span"),A(1,"Yes"),v())}function S7(n,t){1&n&&(y(0,"span"),A(1,"No"),v())}function A7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Is Hot Reload Capable:"),v(),y(5,"td"),K(6,k7,2,0,"span",8),K(7,S7,2,0,"span",8),v()(),y(8,"tr")(9,"td"),A(10,"Command Line:"),v(),y(11,"td")(12,"code"),A(13),v()()(),y(14,"tr")(15,"td"),A(16,"Working Directory:"),v(),y(17,"td")(18,"code"),A(19),v()()(),y(20,"tr")(21,"td"),A(22,"Container:"),v(),y(23,"td")(24,"mat-chip",13)(25,"mat-icon",14),A(26,"width_normal"),v(),A(27),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(6),N("ngIf",null==e.exec?null:e.exec.hotReloadCapable),T(1),N("ngIf",!(null!=e.exec&&e.exec.hotReloadCapable)),T(6),Rt(null==e.exec?null:e.exec.commandLine),T(6),Rt(null==e.exec?null:e.exec.workingDir),T(8),hi(" ",null==e.exec?null:e.exec.component," ")}}function I7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Cluster resource:"),v(),y(5,"td")(6,"mat-chip",13)(7,"mat-icon",14),A(8,"description"),v(),A(9),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(9),hi(" ",null==e.apply?null:e.apply.component," ")}}function F7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Image:"),v(),y(5,"td")(6,"mat-chip",13)(7,"mat-icon",14),A(8,"image"),v(),A(9),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(9),hi(" ",null==e.image?null:e.image.component," ")}}function O7(n,t){1&n&&(y(0,"div"),A(1,"Commands executed in parallel"),v())}function P7(n,t){1&n&&(y(0,"div"),A(1,"Commands executed serially"),v())}function R7(n,t){if(1&n&&(y(0,"mat-chip",13)(1,"mat-icon",14),A(2,"code"),v(),A(3),v()),2&n){const e=t.$implicit;T(3),hi(" ",e," ")}}function L7(n,t){if(1&n&&(io(0),y(1,"table",12)(2,"tr")(3,"td"),A(4,"Scheduling:"),v(),y(5,"td"),K(6,O7,2,0,"div",8),K(7,P7,2,0,"div",8),v()(),y(8,"tr")(9,"td"),A(10,"Commands:"),v(),y(11,"td")(12,"mat-chip-set"),K(13,R7,4,1,"mat-chip",15),v()()()(),ro()),2&n){const e=Z(2).$implicit;T(6),N("ngIf",null==e.composite?null:e.composite.parallel),T(1),N("ngIf",!(null!=e.composite&&e.composite.parallel)),T(5),Jt("mat-mdc-chip-set-stacked",null==e.composite?null:e.composite.parallel),T(1),N("ngForOf",null==e.composite?null:e.composite.commands)}}function N7(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"div",6)(3,"mat-card-title"),A(4),v(),K(5,w7,2,2,"mat-checkbox",7),v(),y(6,"div"),K(7,D7,2,0,"mat-card-subtitle",8),K(8,T7,2,0,"mat-card-subtitle",8),K(9,E7,2,0,"mat-card-subtitle",8),K(10,M7,2,0,"mat-card-subtitle",8),v()(),y(11,"mat-card-content"),K(12,A7,28,5,"ng-container",8),K(13,I7,10,1,"ng-container",8),K(14,F7,10,1,"ng-container",8),K(15,L7,14,5,"ng-container",8),v(),y(16,"mat-card-actions")(17,"button",9),ce("click",function(){He(e);const r=Z().$implicit;return je(Z().delete(r.name))}),A(18,"Delete"),v(),y(19,"button",10),ce("click",function(){He(e);const r=Z().$implicit;return je(Z().edit(r))}),A(20,"Edit"),v()()()}if(2&n){const e=Z().$implicit;N("cdkDragDisabled",Z().dragDisabled),T(4),hi(" ",e.name," "),T(1),N("ngIf",""!=e.group),T(2),N("ngIf","exec"==e.type),T(1),N("ngIf","apply"==e.type),T(1),N("ngIf","image"==e.type),T(1),N("ngIf","composite"==e.type),T(2),N("ngIf","exec"==e.type),T(1),N("ngIf","apply"==e.type),T(1),N("ngIf","image"==e.type),T(1),N("ngIf","composite"==e.type)}}function B7(n,t){if(1&n&&(io(0),K(1,N7,21,11,"mat-card",3),ro()),2&n){const e=t.$implicit,i=Z();T(1),N("ngIf",e.group==i.kind)}}let V7=(()=>{class n{constructor(e,i){this.devstate=e,this.state=i,this.kind="",this.dragDisabled=!0,this.onEdit=new Ve}toggleDefault(e,i,r){e.checked?this.setDefault(i,r):this.unsetDefault(i)}setDefault(e,i){this.devstate.setDefaultCommand(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}unsetDefault(e){this.devstate.unsetDefaultCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}getCommandsByKind(e,i){return e?.filter(r=>r.group==i)}delete(e){confirm('You will delete the command "'+e+'". Continue?')&&this.devstate.deleteCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.onEdit.next(e)}}return n.\u0275fac=function(e){return new(e||n)(E(Qo),E(Qs))},n.\u0275cmp=et({type:n,selectors:[["app-commands-list"]],inputs:{commands:"commands",kind:"kind",dragDisabled:"dragDisabled"},outputs:{onEdit:"onEdit"},decls:3,vars:3,consts:[["class","nothing-here",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"nothing-here"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled",4,"ngIf"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled"],[1,"with-right-content","colored-title"],[1,"space-between"],[3,"checked","change",4,"ngIf"],[4,"ngIf"],["mat-button","","color","warn",3,"click"],["data-cy","command-edit","mat-button","",3,"click"],[3,"checked","change"],[1,"aligned"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],["disableRipple","",4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(K(0,C7,2,1,"div",0),K(1,x7,2,0,"div",0),K(2,B7,2,1,"ng-container",1)),2&e){let r,o;N("ngIf",!(null!=(r=i.getCommandsByKind(i.commands,i.kind))&&r.length)&&""!=i.kind),T(1),N("ngIf",!(null!=(o=i.getCommandsByKind(i.commands,i.kind))&&o.length)&&""==i.kind),T(1),N("ngForOf",i.commands)}},dependencies:[fs,Si,XS,tr,Du,Eu,Tu,Kf,Yf,qf,dd,Mu,xw,Jy,Xs],styles:["mat-card-header.with-right-content[_ngcontent-%COMP%]{display:block}.space-between[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}div.nothing-here[_ngcontent-%COMP%]{margin:0 4px 16px;color:#00000054}"]}),n})();function H7(n,t){if(1&n){const e=Nt();y(0,"app-command-exec",26),ce("canceled",function(){return He(e),je(Z().undisplayExecForm())}),v()}2&n&&N("command",Z().editingCommand)}function z7(n,t){if(1&n){const e=Nt();y(0,"app-command-apply",26),ce("canceled",function(){return He(e),je(Z().undisplayApplyForm())}),v()}2&n&&N("command",Z().editingCommand)}function $7(n,t){if(1&n){const e=Nt();y(0,"app-command-image",26),ce("canceled",function(){return He(e),je(Z().undisplayImageForm())}),v()}2&n&&N("command",Z().editingCommand)}function j7(n,t){if(1&n){const e=Nt();y(0,"app-command-composite",26),ce("canceled",function(){return He(e),je(Z().undisplayCompositeForm())}),v()}2&n&&N("command",Z().editingCommand)}function U7(n,t){if(1&n&&(io(0),y(1,"button",27)(2,"mat-icon",28),A(3,"add"),v()(),ro()),2&n){Z();const e=Go(48);T(1),N("matMenuTriggerFor",e)}}let W7=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r,this.forceDisplayExecForm=!1,this.forceDisplayApplyForm=!1,this.forceDisplayImageForm=!1,this.forceDisplayCompositeForm=!1,this.commands=[],this.enableDragAndDrop=this.state.getDragAndDropEnabled()}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,vs.Z)(function*(r){e.commands=r?.commands,null!=e.commands&&(e.forceDisplayExecForm=!1,e.forceDisplayApplyForm=!1,e.forceDisplayImageForm=!1,e.forceDisplayCompositeForm=!1)});return function(r){return i.apply(this,arguments)}}())}displayAddExecForm(){this.telemetry.track("[ui] start create exec command"),this.editingCommand=void 0,this.displayExecForm()}displayExecForm(){this.forceDisplayExecForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddApplyForm(){this.telemetry.track("[ui] start create apply command"),this.editingCommand=void 0,this.displayApplyForm()}displayApplyForm(){this.forceDisplayApplyForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddImageForm(){this.telemetry.track("[ui] start create image command"),this.editingCommand=void 0,this.displayImageForm()}displayImageForm(){this.forceDisplayImageForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayAddCompositeForm(){this.telemetry.track("[ui] start create composite command"),this.editingCommand=void 0,this.displayCompositeForm()}displayCompositeForm(){this.forceDisplayCompositeForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayExecForm(){this.forceDisplayExecForm=!1}undisplayApplyForm(){this.forceDisplayApplyForm=!1}undisplayImageForm(){this.forceDisplayImageForm=!1}undisplayCompositeForm(){this.forceDisplayCompositeForm=!1}drop(e){this.moveCommand(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}moveCommand(e,i,r,o){this.devstate.moveCommand(e,i,r,o).subscribe({next:c=>{this.state.changeDevfileYaml(c)},error:c=>{alert(c.error.message)}})}enableDragAndDropChange(){this.state.saveDragAndDropEnabled(this.enableDragAndDrop)}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}edit(e){switch(this.editingCommand=e,this.undisplayExecForm(),this.undisplayApplyForm(),this.undisplayImageForm(),this.undisplayCompositeForm(),e.type){case"exec":this.displayExecForm();break;case"apply":this.displayApplyForm();break;case"image":this.displayImageForm();break;case"composite":this.displayCompositeForm()}}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-commands"]],decls:67,vars:18,consts:[[1,"main"],[1,"align-right"],[3,"ngModel","ngModelChange"],["cdkDropListGroup",""],["cdkDropList","","cdkDropListData","build",3,"cdkDropListDropped"],[1,"description"],["kind","build",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","run",3,"cdkDropListDropped"],["kind","run",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","test",3,"cdkDropListDropped"],["kind","test",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","debug",3,"cdkDropListDropped"],["kind","debug",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","deploy",3,"cdkDropListDropped"],["kind","deploy",3,"dragDisabled","commands","onEdit"],["cdkDropList","","cdkDropListData","",3,"cdkDropListDropped"],["kind","",3,"dragDisabled","commands","onEdit"],[3,"command","canceled",4,"ngIf"],[4,"ngIf"],["yPosition","above","xPosition","before"],["menu","matMenu"],["data-cy","new-command-exec","mat-menu-item","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","new-command-image","mat-menu-item","",3,"click"],["data-cy","new-command-apply","mat-menu-item","",3,"click"],["data-cy","new-command-composite","mat-menu-item","",3,"click"],[3,"command","canceled"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"matMenuTriggerFor"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),ce("ngModelChange",function(o){return i.enableDragAndDrop=o})("ngModelChange",function(){return i.enableDragAndDropChange()}),A(3,"Enable Drag and Drop"),v()(),y(4,"div",3)(5,"div",4),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(6,"h2"),A(7,"Build Commands"),v(),y(8,"div",5),A(9,"When using odo, a Build command is the first command executed during the inner loop. The command is expected to terminate after the build is completed."),v(),y(10,"app-commands-list",6),ce("onEdit",function(o){return i.edit(o)}),v()(),y(11,"div",7),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(12,"h2"),A(13,"Run Commands"),v(),y(14,"div",5),A(15,"When using odo, a Run command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),v(),y(16,"app-commands-list",8),ce("onEdit",function(o){return i.edit(o)}),v()(),y(17,"div",9),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(18,"h2"),A(19,"Test Commands"),v(),y(20,"app-commands-list",10),ce("onEdit",function(o){return i.edit(o)}),v()(),y(21,"div",11),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(22,"h2"),A(23,"Debug Commands"),v(),y(24,"div",5),A(25,"When using odo, a Debug command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),v(),y(26,"app-commands-list",12),ce("onEdit",function(o){return i.edit(o)}),v()(),y(27,"div",13),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(28,"h2"),A(29,"Deploy Commands"),v(),y(30,"div",5),A(31,"When using odo, a Deploy command is executed with "),y(32,"code"),A(33,"odo deploy"),v(),A(34,"."),v(),y(35,"app-commands-list",14),ce("onEdit",function(o){return i.edit(o)}),v()(),y(36,"div",15),ce("cdkDropListDropped",function(o){return i.drop(o)}),y(37,"h2"),A(38,"Generic Commands"),v(),y(39,"div",5),A(40,"Generic can be executed manually, or be part of composite commands and events."),v(),y(41,"app-commands-list",16),ce("onEdit",function(o){return i.edit(o)}),v()()(),K(42,H7,1,1,"app-command-exec",17),K(43,z7,1,1,"app-command-apply",17),K(44,$7,1,1,"app-command-image",17),K(45,j7,1,1,"app-command-composite",17),v(),K(46,U7,4,1,"ng-container",18),y(47,"mat-menu",19,20)(49,"button",21),ce("click",function(){return i.displayAddExecForm()}),y(50,"mat-icon",22),A(51,"width_normal"),v(),y(52,"span"),A(53,"Exec command"),v()(),y(54,"button",23),ce("click",function(){return i.displayAddImageForm()}),y(55,"mat-icon",22),A(56,"image"),v(),y(57,"span"),A(58,"Image command"),v()(),y(59,"button",24),ce("click",function(){return i.displayAddApplyForm()}),y(60,"mat-icon",22),A(61,"description"),v(),y(62,"span"),A(63,"Apply command"),v()(),y(64,"button",25),ce("click",function(){return i.displayAddCompositeForm()}),y(65,"span"),A(66,"Composite command"),v()()()),2&e&&(T(2),N("ngModel",i.enableDragAndDrop),T(8),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(6),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(4),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(6),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(9),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(6),N("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),T(1),N("ngIf",i.forceDisplayExecForm),T(1),N("ngIf",i.forceDisplayApplyForm),T(1),N("ngIf",i.forceDisplayImageForm),T(1),N("ngIf",i.forceDisplayCompositeForm),T(1),N("ngIf",!(i.forceDisplayExecForm||i.forceDisplayApplyForm||i.forceDisplayImageForm||i.forceDisplayCompositeForm)))},dependencies:[Si,oo,px,qS,WS,h_,dd,Xs,Rz,nv,Vz,$U,t7,c7,v7,V7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}h2[_ngcontent-%COMP%]{color:#3f51b5}div.align-right[_ngcontent-%COMP%]{text-align:right}"]}),n})();function G7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, forced"),v()())}function Z7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, the resource is not referenced by any command"),v()())}function q7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, the resource is referenced by a command"),v()())}function Y7(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, disabled"),v()())}function K7(n,t){if(1&n&&(y(0,"div"),A(1,"URI: "),y(2,"code"),A(3),v()()),2&n){const e=Z().$implicit;T(3),Rt(e.uri)}}function X7(n,t){if(1&n&&(y(0,"div")(1,"pre"),A(2),v()()),2&n){const e=Z().$implicit;T(2),Rt(e.inlined)}}function Q7(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Cluster Resource"),v()(),y(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),A(10,"Deploy at Startup:"),v(),K(11,G7,3,0,"td",3),K(12,Z7,3,0,"td",3),K(13,q7,3,0,"td",3),K(14,Y7,3,0,"td",3),v()(),K(15,K7,4,1,"div",3),K(16,X7,3,1,"div",3),v(),y(17,"mat-card-actions")(18,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(19,"Delete"),v(),y(20,"button",9),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(21,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(8),N("ngIf","always"==e.deployByDefault),T(1),N("ngIf","undefined"==e.deployByDefault&&e.orphan),T(1),N("ngIf","undefined"==e.deployByDefault&&!e.orphan),T(1),N("ngIf","never"==e.deployByDefault),T(1),N("ngIf",e.uri),T(1),N("ngIf",e.inlined)}}function J7(n,t){if(1&n){const e=Nt();y(0,"app-resource",10),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();N("cancelable",e.forceDisplayForm)("resource",e.editingResource)}}function e9(n,t){if(1&n){const e=Nt();io(0),y(1,"button",11),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",12),A(3,"add"),v()(),ro()}}let t9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.resources=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){i.resources=o?.resources,null!=e.resources&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingResource=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the resource "'+e+'". Continue?')&&this.devstate.deleteResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingResource=e,this.displayForm()}onCreated(e){this.devstate.addResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-resources"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","resource-info",4,"ngFor","ngForOf"],[3,"cancelable","resource","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","resource-info"],[1,"colored-title"],[1,"aligned"],["data-cy","resource-deploy-startup"],["mat-button","","color","warn",3,"click"],["data-cy","resource-edit","mat-button","",3,"click"],[3,"cancelable","resource","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,Q7,22,7,"mat-card",1),K(2,J7,1,2,"app-resource",2),v(),K(3,e9,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.resources),T(1),N("ngIf",i.forceDisplayForm||null==i.resources||0==i.resources.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.resources&&i.resources.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Xs,FI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function n9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, forced"),v()())}function i9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"Yes, the image is not referenced by any command"),v()())}function r9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, the image is referenced by a command"),v()())}function o9(n,t){1&n&&(y(0,"td")(1,"code"),A(2,"No, disabled"),v()())}function s9(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Build Args:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.args)}}function a9(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Image"),v()(),y(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),A(10,"Build at Startup:"),v(),K(11,n9,3,0,"td",3),K(12,i9,3,0,"td",3),K(13,r9,3,0,"td",3),K(14,o9,3,0,"td",3),v(),y(15,"tr")(16,"td"),A(17,"Image Name:"),v(),y(18,"td")(19,"code"),A(20),v()()(),y(21,"tr")(22,"td"),A(23,"Dockerfile URI:"),v(),y(24,"td")(25,"code"),A(26),v()()(),K(27,s9,6,1,"tr",3),y(28,"tr")(29,"td"),A(30,"Build Context:"),v(),y(31,"td")(32,"code"),A(33),v()()(),y(34,"tr")(35,"td"),A(36,"Root Required:"),v(),y(37,"td")(38,"code"),A(39),v()()()()(),y(40,"mat-card-actions")(41,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(42,"Delete"),v(),y(43,"button",9),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(44,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(8),N("ngIf","always"==e.autoBuild),T(1),N("ngIf","undefined"==e.autoBuild&&e.orphan),T(1),N("ngIf","undefined"==e.autoBuild&&!e.orphan),T(1),N("ngIf","never"==e.autoBuild),T(6),Rt(e.imageName),T(6),Rt(e.uri),T(1),N("ngIf",null!=e.args&&e.args.length>0),T(6),Rt(e.buildContext),T(6),Rt(e.rootRequired?"Yes":"No")}}function l9(n,t){if(1&n){const e=Nt();y(0,"app-image",10),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();N("cancelable",e.forceDisplayForm)("image",e.editingImage)}}function c9(n,t){if(1&n){const e=Nt();io(0),y(1,"button",11),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",12),A(3,"add"),v()(),ro()}}let d9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.images=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){i.images=o?.images,null!=e.images&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingImage=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the image "'+e+'". Continue?')&&this.devstate.deleteImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingImage=e,this.displayForm()}onCreated(e){this.devstate.addImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-images"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","image-info",4,"ngFor","ngForOf"],[3,"cancelable","image","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","image-info"],[1,"colored-title"],[1,"aligned"],["data-cy","image-build-startup"],["mat-button","","color","warn",3,"click"],["data-cy","image-edit","mat-button","",3,"click"],[3,"cancelable","image","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,a9,45,10,"mat-card",1),K(2,l9,1,2,"app-image",2),v(),K(3,c9,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.images),T(1),N("ngIf",i.forceDisplayForm||null==i.images||0==i.images.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.images&&i.images.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Xs,OI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function u9(n,t){if(1&n){const e=Nt();y(0,"mat-chip-row",8),ce("removed",function(){const o=He(e).$implicit;return je(Z().remove(o))}),A(1),y(2,"button",9)(3,"mat-icon",10),A(4,"cancel"),v()()()}if(2&n){const e=t.$implicit;T(1),hi(" ",e," ")}}function h9(n,t){if(1&n&&(y(0,"mat-option",11),A(1),v()),2&n){const e=t.$implicit;N("value",e),T(1),hi(" ",e," ")}}let m9=(()=>{class n{constructor(e){this.commandInput=e,this.commands=[],this.allCommands=[],this.updated=new Ve,this.separatorKeysCodes=[13,188],this.commandCtrl=new dt(""),this.filteredCommands=new at}ngOnChanges(e){this.filteredCommands=this.commandCtrl.valueChanges.pipe(Vr(null),Vn(i=>i?this._filter(i):this.allCommands.slice()))}add(e){const i=(e.value||"").trim();i&&(this.commands.push(i),this.updated.emit(this.commands)),e.chipInput.clear(),this.commandCtrl.setValue(null)}remove(e){const i=this.commands.indexOf(e);i>=0&&(this.commands.splice(i,1),this.updated.emit(this.commands))}selected(e){this.commands.push(e.option.viewValue),this.updated.emit(this.commands),this.commandInput.nativeElement.value="",this.commandCtrl.setValue(null)}_filter(e){const i=e.toLowerCase();return this.allCommands.filter(r=>r.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(E(h))},n.\u0275cmp=et({type:n,selectors:[["app-chips-events"]],inputs:{commands:"commands",allCommands:"allCommands"},outputs:{updated:"updated"},features:[ci],decls:12,vars:8,consts:[["appearance","fill",1,"chip-list"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["data-cy","input","placeholder","New command...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd"],["commandInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"removed"],["matChipRemove",""],[1,"material-icons-outlined"],[3,"value"]],template:function(e,i){if(1&e&&(y(0,"mat-form-field",0)(1,"mat-label"),A(2,"Commands"),v(),y(3,"mat-chip-grid",null,1),K(5,u9,5,1,"mat-chip-row",2),v(),y(6,"input",3,4),ce("matChipInputTokenEnd",function(o){return i.add(o)}),v(),y(8,"mat-autocomplete",5,6),ce("optionSelected",function(o){return i.selected(o)}),K(10,h9,2,2,"mat-option",7),xg(11,"async"),v()()),2&e){const r=Go(4),o=Go(9);T(5),N("ngForOf",i.commands),T(1),N("formControl",i.commandCtrl)("matChipInputFor",r)("matAutocomplete",o)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes),T(4),N("ngForOf",wg(11,6,i.filteredCommands))}},dependencies:[fs,yo,oo,Nf,B6,Qh,FA,JA,eI,KA,ww,vo,$r,Xs,_C],styles:[".chip-list[_ngcontent-%COMP%]{width:100%}"]}),n})();const ku=function(){return[]};let f9=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,vs.Z)(function*(r){e.events=r?.events,null==e.events&&(e.events={}),null==e.events.preStart&&(e.events.preStart=[]),null==e.events.preStop&&(e.events.preStop=[]),null==e.events.postStart&&(e.events.postStart=[]),null==e.events.postStop&&(e.events.postStop=[]),e.allCommands=r?.commands?.map(o=>o.name)});return function(r){return i.apply(this,arguments)}}())}onUpdate(e,i){this.telemetry.track("[ui] add "+e+" event"),this.devstate.updateEvents(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo),E(ka))},n.\u0275cmp=et({type:n,selectors:[["app-events"]],decls:21,vars:16,consts:[[1,"main"],[1,"description"],["data-cy","prestart",3,"commands","allCommands","updated"],["data-cy","poststart",3,"commands","allCommands","updated"],["data-cy","prestop",3,"commands","allCommands","updated"],["data-cy","poststop",3,"commands","allCommands","updated"]],template:function(e,i){if(1&e&&(y(0,"div",0)(1,"h2"),A(2,"Pre-Start event"),v(),y(3,"div",1),A(4,"Pre-Start commands are executed before the inner loop is started, inside init-containers (not implemented by odo)."),v(),y(5,"app-chips-events",2),ce("updated",function(o){return i.onUpdate("preStart",o)}),v(),y(6,"h2"),A(7,"Post-Start event"),v(),y(8,"div",1),A(9,"Post-Start commands are executed at the beginning of the inner loop, inside pre-fetched containers."),v(),y(10,"app-chips-events",3),ce("updated",function(o){return i.onUpdate("postStart",o)}),v(),y(11,"h2"),A(12,"Pre-Stop event"),v(),y(13,"div",1),A(14,"Pre-Stop commands are executed at the end of the inner loop, inside pre-fetched containers."),v(),y(15,"app-chips-events",4),ce("updated",function(o){return i.onUpdate("preStop",o)}),v(),y(16,"h2"),A(17,"Post-Stop event"),v(),y(18,"div",1),A(19,"Post-Stop commands are executed after the inner loop is finished (not implemented by odo)."),v(),y(20,"app-chips-events",5),ce("updated",function(o){return i.onUpdate("postStop",o)}),v()()),2&e){let r,o,a,c,u,m,g,C;T(5),N("commands",null!==(r=null==i.events?null:i.events.preStart)&&void 0!==r?r:el(8,ku))("allCommands",null!==(o=i.allCommands)&&void 0!==o?o:el(9,ku)),T(5),N("commands",null!==(a=null==i.events?null:i.events.postStart)&&void 0!==a?a:el(10,ku))("allCommands",null!==(c=i.allCommands)&&void 0!==c?c:el(11,ku)),T(5),N("commands",null!==(u=null==i.events?null:i.events.preStop)&&void 0!==u?u:el(12,ku))("allCommands",null!==(m=i.allCommands)&&void 0!==m?m:el(13,ku)),T(5),N("commands",null!==(g=null==i.events?null:i.events.postStop)&&void 0!==g?g:el(14,ku))("allCommands",null!==(C=i.allCommands)&&void 0!==C?C:el(15,ku))}},dependencies:[m9],styles:[".main[_ngcontent-%COMP%]{padding:16px}h2[_ngcontent-%COMP%]{color:#3f51b5}"]}),n})();function p9(n,t){if(1&n&&(y(0,"tr")(1,"td"),A(2,"Size:"),v(),y(3,"td")(4,"code"),A(5),v()()()),2&n){const e=Z().$implicit;T(5),Rt(e.size)}}function g9(n,t){if(1&n){const e=Nt();y(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),A(3),v(),y(4,"mat-card-subtitle"),A(5,"Volume"),v()(),y(6,"mat-card-content")(7,"table",6),K(8,p9,6,1,"tr",3),y(9,"tr")(10,"td"),A(11,"Volume is Ephemeral:"),v(),y(12,"td")(13,"code"),A(14),v()()()()(),y(15,"mat-card-actions")(16,"button",7),ce("click",function(){const o=He(e).$implicit;return je(Z().delete(o.name))}),A(17,"Delete"),v(),y(18,"button",8),ce("click",function(){const o=He(e).$implicit;return je(Z().edit(o))}),A(19,"Edit"),v()()()}if(2&n){const e=t.$implicit;T(3),Rt(e.name),T(5),N("ngIf",e.size),T(6),Rt(e.ephemeral?"Yes":"No")}}function _9(n,t){if(1&n){const e=Nt();y(0,"app-volume",9),ce("canceled",function(){return He(e),je(Z().undisplayAddForm())})("created",function(r){return He(e),je(Z().onCreated(r))})("saved",function(r){return He(e),je(Z().onSaved(r))}),v()}if(2&n){const e=Z();N("cancelable",e.forceDisplayForm)("volume",e.editingVolume)}}function b9(n,t){if(1&n){const e=Nt();io(0),y(1,"button",10),ce("click",function(){return He(e),je(Z().displayAddForm())}),y(2,"mat-icon",11),A(3,"add"),v()(),ro()}}let y9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.volumes=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,vs.Z)(function*(o){i.volumes=o?.volumes,null!=e.volumes&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingVolume=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the volume "'+e+'". Continue?')&&this.devstate.deleteVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingVolume=e,this.displayForm()}onCreated(e){this.devstate.addVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(E(Qs),E(Qo))},n.\u0275cmp=et({type:n,selectors:[["app-volumes"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","volume-info",4,"ngFor","ngForOf"],[3,"cancelable","volume","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","volume-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],["data-cy","volume-edit","mat-button","",3,"click"],[3,"cancelable","volume","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(y(0,"div",0),K(1,g9,20,3,"mat-card",1),K(2,_9,1,2,"app-volume",2),v(),K(3,b9,4,0,"ng-container",3)),2&e&&(T(1),N("ngForOf",i.volumes),T(1),N("ngIf",i.forceDisplayForm||null==i.volumes||0==i.volumes.length),T(1),N("ngIf",!i.forceDisplayForm&&null!=i.volumes&&i.volumes.length>0))},dependencies:[fs,Si,tr,h_,Du,Eu,Tu,Kf,Yf,qf,Xs,AI],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function v9(n,t){1&n&&A(0),2&n&&hi(" ",Z().tabNames[2]," ")}function C9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"code"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[3]," ")}}function x9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"alarm"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[4]," ")}}function w9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"width_normal"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[5]," ")}}function D9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"image"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[6]," ")}}function T9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"description"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[7]," ")}}function E9(n,t){if(1&n&&(y(0,"mat-icon",20),A(1,"storage"),v(),A(2)),2&n){const e=Z();T(2),hi(" ",e.tabNames[8]," ")}}let M9=(()=>{class n{constructor(e,i,r,o,a,c,u,m,g){this.sanitizer=e,this.matIconRegistry=i,this.wasmGo=r,this.odoApi=o,this.mermaid=a,this.state=c,this.sse=u,this.telemetry=m,this.snackbar=g,this.tabNames=["YAML","Chart","Metadata","Commands","Events","Containers","Images","Resources","Volumes"],this.mermaidContent="",this.devfileYaml="",this.snackBarRef=null,this.matIconRegistry.addSvgIcon("github",this.sanitizer.bypassSecurityTrustResourceUrl("../assets/github-24.svg"))}ngOnInit(){var e=this;const i=document.getElementById("loading");null!=i&&(i.style.visibility="hidden"),this.odoApi.getDevfile().subscribe({next:o=>{null!=o.content&&this.propagateChange(o.content,!1,!0)}}),this.state.state.subscribe(function(){var o=(0,vs.Z)(function*(a){var u;null!=a&&(e.devfileYaml=a.content,e.wasmGo.getFlowChart().subscribe({next:(u=(0,vs.Z)(function*(m){const g=yield e.mermaid.getMermaidAsSVG(m.chart);e.mermaidContent=g}),function(g){return u.apply(this,arguments)}),error:u=>{console.log(u)}}),"2.2.0"!=a.version&&e.snackbar.open("The version of the Devfile is "+a.version+".\nOnly version 2.2.0 is supported","ok"))});return function(a){return o.apply(this,arguments)}}()),this.sse.subscribeTo(["DevfileUpdated"]).subscribe(o=>{const a=JSON.parse(o.data);this.state.isUpdated(a.content)&&(null!=this.snackBarRef&&(this.snackBarRef.afterDismissed().subscribe(()=>{}),this.snackBarRef.dismiss()),this.snackBarRef=this.snackbar.openFromComponent(Ij,{data:{message:"The Devfile has changed on disk. Do you want to update it here?",noLabel:"Cancel",yesLabel:"Update"}}),this.snackBarRef.onAction().subscribe(()=>{null!=a.content&&this.propagateChange(a.content,!1,!0),this.snackBarRef=null}),this.snackBarRef.afterDismissed().subscribe(()=>{this.snackBarRef=null}))}),this.odoApi.telemetry().subscribe({next:o=>{if(o.enabled){if(null==o.apikey||null==o.userid)return;this.telemetry.init(o.apikey,o.userid),this.telemetry.track("[ui] start")}},error:()=>{}})}propagateChange(e,i,r){this.wasmGo.setDevfileContent(e).subscribe({next:a=>{this.state.changeDevfileYaml(a,r),i&&this.odoApi.saveDevfile(a.content).subscribe({next:()=>{},error:c=>{this.snackbar.open(c.error.message,"ok")}})},error:a=>{this.snackbar.open(a.error.message,"ok")}})}onSave(e){this.telemetry.track("[ui] save devfile to disk"),this.propagateChange(e,!0,!0)}onApply(e){this.telemetry.track("[ui] change devfile from textarea"),this.propagateChange(e,!1,!1)}clear(){confirm("You will delete the content of the Devfile. Continue?")&&(this.telemetry.track("[ui] clear devfile"),this.wasmGo.clearDevfileContent().subscribe({next:e=>{this.propagateChange(e.content,!1,!1)}}))}onSelectedTabChange(e){this.telemetry.track("[ui] change to tab "+this.tabNames[e.index])}}return n.\u0275fac=function(e){return new(e||n)(E(Xb),E(p_),E(Qo),E(Fj),E(Pj),E(Qs),E(Rj),E(ka),E(y$))},n.\u0275cmp=et({type:n,selectors:[["app-root"]],decls:50,vars:7,consts:[["color","primary"],[1,"spacer"],[1,"topright"],["href","https://odo.dev/docs/user-guides/advanced/using-gui/","target","_blank",1,"toplink"],["data-cy","yaml-send","matTooltip","Save Devfile to disk","mat-flat-button","","color","warn",2,"top","-8px",3,"disabled","click"],[1,"flex-container"],[1,"flex-child"],["animationDuration","0",3,"selectedTabChange"],["data-cy","tab-yaml",3,"label"],[1,"tab-content"],["appearance","outline",1,"full-width"],["data-cy","yaml-input","matInput","","id","input","rows","20",3,"value"],["input",""],["data-cy","yaml-save","matTooltip","Apply changes to other tabs","mat-flat-button","","color","primary",3,"click"],["data-cy","yaml-clear","matTooltip","Clear Devfile content","mat-flat-button","","color","normal",3,"click"],["data-cy","tab-chart",3,"label"],["id","mermaid",1,"mermaid",3,"innerHTML"],["mermaid",""],["data-cy","tab-metadata"],["mat-tab-label",""],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){if(1&e){const r=Nt();y(0,"mat-toolbar",0)(1,"span"),A(2,"Devfile Builder"),v(),Pe(3,"span",1),y(4,"span",2)(5,"a",3),A(6,"Work in progress"),v()(),y(7,"button",4),ce("click",function(){He(r);const a=Go(20);return je(i.onSave(a.value))}),xg(8,"async"),A(9,"Save"),v()(),y(10,"main")(11,"div",5)(12,"div",6)(13,"mat-tab-group",7),ce("selectedTabChange",function(a){return i.onSelectedTabChange(a)}),y(14,"mat-tab",8)(15,"div",9)(16,"mat-form-field",10)(17,"mat-label"),A(18,"Devfile YAML"),v(),Pe(19,"textarea",11,12),v(),y(21,"button",13),ce("click",function(){He(r);const a=Go(20);return je(i.onApply(a.value))}),A(22,"Apply"),v(),y(23,"button",14),ce("click",function(){return i.clear()}),A(24,"Clear"),v()()(),y(25,"mat-tab",15)(26,"div",6),Pe(27,"div",16,17),v()(),y(29,"mat-tab",18),K(30,v9,1,1,"ng-template",19),Pe(31,"app-metadata"),v(),y(32,"mat-tab"),K(33,C9,3,1,"ng-template",19),Pe(34,"app-commands"),v(),y(35,"mat-tab"),K(36,x9,3,1,"ng-template",19),Pe(37,"app-events"),v(),y(38,"mat-tab"),K(39,w9,3,1,"ng-template",19),Pe(40,"app-containers"),v(),y(41,"mat-tab"),K(42,D9,3,1,"ng-template",19),Pe(43,"app-images"),v(),y(44,"mat-tab"),K(45,T9,3,1,"ng-template",19),Pe(46,"app-resources"),v(),y(47,"mat-tab"),K(48,E9,3,1,"ng-template",19),Pe(49,"app-volumes"),v()()()()()}2&e&&(T(7),hg("disabled",!wg(8,5,i.state.modified)),T(7),hg("label",i.tabNames[0]),T(5),N("value",i.devfileYaml),T(6),hg("label",i.tabNames[1]),T(2),N("innerHTML",i.sanitizer.bypassSecurityTrustHtml(i.mermaidContent),K_))},dependencies:[tr,vo,$r,Xs,bs,_I,CI,ij,dj,ys,Nj,PU,W7,t9,d9,f9,y9,_C],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - 100px)}div.mermaid[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace!important}.flex-container[_ngcontent-%COMP%]{display:flex}.flex-child[_ngcontent-%COMP%]{flex:1}.flex-child[_ngcontent-%COMP%]:first-child{margin-right:20px}#input[_ngcontent-%COMP%]{width:99%}button[_ngcontent-%COMP%]{margin-top:20px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}div.tab-content[_ngcontent-%COMP%]{padding:16px}div.error-message[_ngcontent-%COMP%]{font-size:large;margin:16px}.toplink[_ngcontent-%COMP%]{color:#fff}"]}),n})(),k9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=sn({type:n,bootstrap:[M9]}),n.\u0275inj=Se({imports:[QE,q3,t4,e4,E4,d8,j6,NA,iH,bH,AH,iz,Yy,_z,Dz,Hz,r$,hI,oj,uj,Ej,ud.forRoot({loadOnInitialization:!1})]}),n})();NN().bootstrapModule(k9).catch(n=>console.error(n))},1764:function(rt){rt.exports=function(){"use strict";var M=6e4,j=36e5,J="millisecond",re="second",q="minute",z="hour",ae="day",me="week",_e="month",X="quarter",S="year",oe="date",Oe="Invalid Date",Ne=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,be=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Et){var We=["th","st","nd","rd"],De=Et%100;return"["+Et+(We[(De-20)%10]||We[De]||We[0])+"]"}},pe=function(Et,We,De){var xt=String(Et);return!xt||xt.length>=We?Et:""+Array(We+1-xt.length).join(De)+Et},he={s:pe,z:function(Et){var We=-Et.utcOffset(),De=Math.abs(We),xt=Math.floor(De/60),Ge=De%60;return(We<=0?"+":"-")+pe(xt,2,"0")+":"+pe(Ge,2,"0")},m:function Et(We,De){if(We.date()1)return Et(zt[0])}else{var at=We.name;Xe[at]=We,Ge=at}return!xt&&Ge&&(Ue=Ge),Ge||!xt&&Ue},cn=function(Et,We){if(pt(Et))return Et.clone();var De="object"==typeof We?We:{};return De.date=Et,De.args=arguments,new dn(De)},Fe=he;Fe.l=Tt,Fe.i=pt,Fe.w=function(Et,We){return cn(Et,{locale:We.$L,utc:We.$u,x:We.$x,$offset:We.$offset})};var dn=function(){function Et(De){this.$L=Tt(De.locale,null,!0),this.parse(De)}var We=Et.prototype;return We.parse=function(De){this.$d=function(xt){var Ge=xt.date,jt=xt.utc;if(null===Ge)return new Date(NaN);if(Fe.u(Ge))return new Date;if(Ge instanceof Date)return new Date(Ge);if("string"==typeof Ge&&!/Z$/i.test(Ge)){var zt=Ge.match(Ne);if(zt){var at=zt[2]-1||0,Pn=(zt[7]||"0").substring(0,3);return jt?new Date(Date.UTC(zt[1],at,zt[3]||1,zt[4]||0,zt[5]||0,zt[6]||0,Pn)):new Date(zt[1],at,zt[3]||1,zt[4]||0,zt[5]||0,zt[6]||0,Pn)}}return new Date(Ge)}(De),this.$x=De.x||{},this.init()},We.init=function(){var De=this.$d;this.$y=De.getFullYear(),this.$M=De.getMonth(),this.$D=De.getDate(),this.$W=De.getDay(),this.$H=De.getHours(),this.$m=De.getMinutes(),this.$s=De.getSeconds(),this.$ms=De.getMilliseconds()},We.$utils=function(){return Fe},We.isValid=function(){return this.$d.toString()!==Oe},We.isSame=function(De,xt){var Ge=cn(De);return this.startOf(xt)<=Ge&&Ge<=this.endOf(xt)},We.isAfter=function(De,xt){return cn(De)1?_n-1:0),Rn=1;Rn<_n;Rn++)xn[Rn-1]=arguments[Rn];return me(En,Mt,xn)}}function Fe(En,Mt){let _n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe;M&&M(En,null);let xn=Mt.length;for(;xn--;){let Rn=Mt[xn];if("string"==typeof Rn){const Mn=_n(Rn);Mn!==Rn&&(j(Mt)||(Mt[xn]=Mn),Rn=Mn)}En[Rn]=!0}return En}function dn(En){for(let Mt=0;Mt/gm),ut=z(/\${[\w\W]*}/gm),it=z(/^data-[\-\w.\u00B7-\uFFFF]/),lt=z(/^aria-[\-\w]+$/),Cn=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vn=z(/^(?:\w+script|data):/i),ni=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cs=z(/^html$/i),nr=z(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ao=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ae,ERB_EXPR:Jn,TMPLIT_EXPR:ut,DATA_ATTR:it,ARIA_ATTR:lt,IS_ALLOWED_URI:Cn,IS_SCRIPT_OR_DATA:Vn,ATTR_WHITESPACE:ni,DOCTYPE_NAME:Cs,CUSTOM_ELEMENT:nr});const dr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Au=function(){return typeof window>"u"?null:window},cc=function(Mt,_n){if("object"!=typeof Mt||"function"!=typeof Mt.createPolicy)return null;let xn=null;const Rn="data-tt-policy-suffix";_n&&_n.hasAttribute(Rn)&&(xn=_n.getAttribute(Rn));const Mn="dompurify"+(xn?"#"+xn:"");try{return Mt.createPolicy(Mn,{createHTML:kr=>kr,createScriptURL:kr=>kr})}catch{return console.warn("TrustedTypes policy "+Mn+" could not be created."),null}};return function sm(){let En=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Au();const Mt=Ft=>sm(Ft);if(Mt.version="3.1.6",Mt.removed=[],!En||!En.document||En.document.nodeType!==dr.document)return Mt.isSupported=!1,Mt;let{document:_n}=En;const xn=_n,Rn=xn.currentScript,{DocumentFragment:Mn,HTMLTemplateElement:kr,Node:Io,Element:am,NodeFilter:ll,NamedNodeMap:lm=En.NamedNodeMap||En.MozNamedAttrMap,HTMLFormElement:Ii,DOMParser:xs,trustedTypes:ea}=En,Jo=am.prototype,cl=Et(Jo,"cloneNode"),gd=Et(Jo,"remove"),Iu=Et(Jo,"nextSibling"),dc=Et(Jo,"childNodes"),_d=Et(Jo,"parentNode");if("function"==typeof kr){const Ft=_n.createElement("template");Ft.content&&Ft.content.ownerDocument&&(_n=Ft.content.ownerDocument)}let wi,dl="";const{implementation:Aa,createNodeIterator:ul,createDocumentFragment:bd,getElementsByTagName:hl}=_n,{importNode:ml}=xn;let ur={};Mt.isSupported="function"==typeof de&&"function"==typeof _d&&Aa&&void 0!==Aa.createHTMLDocument;const{MUSTACHE_EXPR:ta,ERB_EXPR:Ia,TMPLIT_EXPR:Fa,DATA_ATTR:fl,ARIA_ATTR:ii,IS_SCRIPT_OR_DATA:Lt,ATTR_WHITESPACE:pl,CUSTOM_ELEMENT:jr}=Ao;let{IS_ALLOWED_URI:ws}=Ao,Di=null;const yd=Fe({},[...We,...De,...xt,...jt,...at]);let Fi=null;const lo=Fe({},[...Pn,...It,...Ut,...yn]);let di=Object.seal(ae(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ir=null,gl=null,na=!0,vd=!0,Cd=!1,_l=!0,Fo=!1,ia=!0,co=!1,uc=!1,bl=!1,Oo=!1,yl=!1,vl=!1,hc=!0,Cl=!1,mc=!0,ra=!1,hr={},on=null;const Ds=Fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ts=null;const Hn=Fe({},["audio","video","img","source","image","track"]);let Oa=null;const Un=Fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),es="http://www.w3.org/1998/Math/MathML",Oi="http://www.w3.org/2000/svg",Wt="http://www.w3.org/1999/xhtml";let Pt=Wt,Po=!1,Pa=null;const cm=Fe({},[es,Oi,Wt],Ne);let Ti=null;const Ce=["application/xhtml+xml","text/html"],Ra="text/html";let _t=null,wn=null;const Es=_n.createElement("form"),ts=function(B){return B instanceof RegExp||B instanceof Function},Ms=function(){let B=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!wn||wn!==B){if((!B||"object"!=typeof B)&&(B={}),B=Qn(B),Ti=-1===Ce.indexOf(B.PARSER_MEDIA_TYPE)?Ra:B.PARSER_MEDIA_TYPE,_t="application/xhtml+xml"===Ti?Ne:Oe,Di=Ue(B,"ALLOWED_TAGS")?Fe({},B.ALLOWED_TAGS,_t):yd,Fi=Ue(B,"ALLOWED_ATTR")?Fe({},B.ALLOWED_ATTR,_t):lo,Pa=Ue(B,"ALLOWED_NAMESPACES")?Fe({},B.ALLOWED_NAMESPACES,Ne):cm,Oa=Ue(B,"ADD_URI_SAFE_ATTR")?Fe(Qn(Un),B.ADD_URI_SAFE_ATTR,_t):Un,Ts=Ue(B,"ADD_DATA_URI_TAGS")?Fe(Qn(Hn),B.ADD_DATA_URI_TAGS,_t):Hn,on=Ue(B,"FORBID_CONTENTS")?Fe({},B.FORBID_CONTENTS,_t):Ds,ir=Ue(B,"FORBID_TAGS")?Fe({},B.FORBID_TAGS,_t):{},gl=Ue(B,"FORBID_ATTR")?Fe({},B.FORBID_ATTR,_t):{},hr=!!Ue(B,"USE_PROFILES")&&B.USE_PROFILES,na=!1!==B.ALLOW_ARIA_ATTR,vd=!1!==B.ALLOW_DATA_ATTR,Cd=B.ALLOW_UNKNOWN_PROTOCOLS||!1,_l=!1!==B.ALLOW_SELF_CLOSE_IN_ATTR,Fo=B.SAFE_FOR_TEMPLATES||!1,ia=!1!==B.SAFE_FOR_XML,co=B.WHOLE_DOCUMENT||!1,Oo=B.RETURN_DOM||!1,yl=B.RETURN_DOM_FRAGMENT||!1,vl=B.RETURN_TRUSTED_TYPE||!1,bl=B.FORCE_BODY||!1,hc=!1!==B.SANITIZE_DOM,Cl=B.SANITIZE_NAMED_PROPS||!1,mc=!1!==B.KEEP_CONTENT,ra=B.IN_PLACE||!1,ws=B.ALLOWED_URI_REGEXP||Cn,Pt=B.NAMESPACE||Wt,di=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&ts(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(di.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&ts(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(di.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(di.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fo&&(vd=!1),yl&&(Oo=!0),hr&&(Di=Fe({},at),Fi=[],!0===hr.html&&(Fe(Di,We),Fe(Fi,Pn)),!0===hr.svg&&(Fe(Di,De),Fe(Fi,It),Fe(Fi,yn)),!0===hr.svgFilters&&(Fe(Di,xt),Fe(Fi,It),Fe(Fi,yn)),!0===hr.mathMl&&(Fe(Di,jt),Fe(Fi,Ut),Fe(Fi,yn))),B.ADD_TAGS&&(Di===yd&&(Di=Qn(Di)),Fe(Di,B.ADD_TAGS,_t)),B.ADD_ATTR&&(Fi===lo&&(Fi=Qn(Fi)),Fe(Fi,B.ADD_ATTR,_t)),B.ADD_URI_SAFE_ATTR&&Fe(Oa,B.ADD_URI_SAFE_ATTR,_t),B.FORBID_CONTENTS&&(on===Ds&&(on=Qn(on)),Fe(on,B.FORBID_CONTENTS,_t)),mc&&(Di["#text"]=!0),co&&Fe(Di,["html","head","body"]),Di.table&&(Fe(Di,["tbody"]),delete ir.tbody),B.TRUSTED_TYPES_POLICY){if("function"!=typeof B.TRUSTED_TYPES_POLICY.createHTML)throw pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof B.TRUSTED_TYPES_POLICY.createScriptURL)throw pt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');wi=B.TRUSTED_TYPES_POLICY,dl=wi.createHTML("")}else void 0===wi&&(wi=cc(ea,Rn)),null!==wi&&"string"==typeof dl&&(dl=wi.createHTML(""));q&&q(B),wn=B}},ks=Fe({},["mi","mo","mn","ms","mtext"]),mi=Fe({},["foreignobject","annotation-xml"]),wl=Fe({},["title","style","font","a","script"]),oa=Fe({},[...De,...xt,...Ge]),Ur=Fe({},[...jt,...zt]),fr=function(B){oe(Mt.removed,{element:B});try{_d(B).removeChild(B)}catch{gd(B)}},La=function(B,Be){try{oe(Mt.removed,{attribute:Be.getAttributeNode(B),from:Be})}catch{oe(Mt.removed,{attribute:null,from:Be})}if(Be.removeAttribute(B),"is"===B&&!Fi[B])if(Oo||yl)try{fr(Be)}catch{}else try{Be.setAttribute(B,"")}catch{}},fc=function(B){let Be=null,Se=null;if(bl)B=""+B;else{const yi=be(B,/^[\r\n\t ]+/);Se=yi&&yi[0]}"application/xhtml+xml"===Ti&&Pt===Wt&&(B=''+B+"");const An=wi?wi.createHTML(B):B;if(Pt===Wt)try{Be=(new xs).parseFromString(An,Ti)}catch{}if(!Be||!Be.documentElement){Be=Aa.createDocument(Pt,"template",null);try{Be.documentElement.innerHTML=Po?dl:An}catch{}}const Pi=Be.body||Be.documentElement;return B&&Se&&Pi.insertBefore(_n.createTextNode(Se),Pi.childNodes[0]||null),Pt===Wt?hl.call(Be,co?"html":"body")[0]:co?Be.documentElement:Pi},pc=function(B){return ul.call(B.ownerDocument||B,B,ll.SHOW_ELEMENT|ll.SHOW_COMMENT|ll.SHOW_TEXT|ll.SHOW_PROCESSING_INSTRUCTION|ll.SHOW_CDATA_SECTION,null)},fi=function(B){return B instanceof Ii&&("string"!=typeof B.nodeName||"string"!=typeof B.textContent||"function"!=typeof B.removeChild||!(B.attributes instanceof lm)||"function"!=typeof B.removeAttribute||"function"!=typeof B.setAttribute||"string"!=typeof B.namespaceURI||"function"!=typeof B.insertBefore||"function"!=typeof B.hasChildNodes)},gc=function(B){return"function"==typeof Io&&B instanceof Io},Ro=function(B,Be,Se){ur[B]&&X(ur[B],An=>{An.call(Mt,Be,Se,wn)})},xd=function(B){let Be=null;if(Ro("beforeSanitizeElements",B,null),fi(B))return fr(B),!0;const Se=_t(B.nodeName);if(Ro("uponSanitizeElement",B,{tagName:Se,allowedTags:Di}),B.hasChildNodes()&&!gc(B.firstElementChild)&&Xe(/<[/\w]/g,B.innerHTML)&&Xe(/<[/\w]/g,B.textContent)||B.nodeType===dr.progressingInstruction||ia&&B.nodeType===dr.comment&&Xe(/<[/\w]/g,B.data))return fr(B),!0;if(!Di[Se]||ir[Se]){if(!ir[Se]&&kn(Se)&&(di.tagNameCheck instanceof RegExp&&Xe(di.tagNameCheck,Se)||di.tagNameCheck instanceof Function&&di.tagNameCheck(Se)))return!1;if(mc&&!on[Se]){const An=_d(B)||B.parentNode,Pi=dc(B)||B.childNodes;if(Pi&&An)for(let Ri=Pi.length-1;Ri>=0;--Ri){const Ar=cl(Pi[Ri],!0);Ar.__removalCount=(B.__removalCount||0)+1,An.insertBefore(Ar,Iu(B))}}return fr(B),!0}return B instanceof am&&!function(B){let Be=_d(B);(!Be||!Be.tagName)&&(Be={namespaceURI:Pt,tagName:"template"});const Se=Oe(B.tagName),An=Oe(Be.tagName);return!!Pa[B.namespaceURI]&&(B.namespaceURI===Oi?Be.namespaceURI===Wt?"svg"===Se:Be.namespaceURI===es?"svg"===Se&&("annotation-xml"===An||ks[An]):Boolean(oa[Se]):B.namespaceURI===es?Be.namespaceURI===Wt?"math"===Se:Be.namespaceURI===Oi?"math"===Se&&mi[An]:Boolean(Ur[Se]):B.namespaceURI===Wt?!(Be.namespaceURI===Oi&&!mi[An]||Be.namespaceURI===es&&!ks[An])&&!Ur[Se]&&(wl[Se]||!oa[Se]):!("application/xhtml+xml"!==Ti||!Pa[B.namespaceURI]))}(B)||("noscript"===Se||"noembed"===Se||"noframes"===Se)&&Xe(/<\/no(script|embed|frames)/i,B.innerHTML)?(fr(B),!0):(Fo&&B.nodeType===dr.text&&(Be=B.textContent,X([ta,Ia,Fa],An=>{Be=Y(Be,An," ")}),B.textContent!==Be&&(oe(Mt.removed,{element:B.cloneNode()}),B.textContent=Be)),Ro("afterSanitizeElements",B,null),!1)},Sr=function(B,Be,Se){if(hc&&("id"===Be||"name"===Be)&&(Se in _n||Se in Es))return!1;if((!vd||gl[Be]||!Xe(fl,Be))&&(!na||!Xe(ii,Be)))if(!Fi[Be]||gl[Be]){if(!(kn(B)&&(di.tagNameCheck instanceof RegExp&&Xe(di.tagNameCheck,B)||di.tagNameCheck instanceof Function&&di.tagNameCheck(B))&&(di.attributeNameCheck instanceof RegExp&&Xe(di.attributeNameCheck,Be)||di.attributeNameCheck instanceof Function&&di.attributeNameCheck(Be))||"is"===Be&&di.allowCustomizedBuiltInElements&&(di.tagNameCheck instanceof RegExp&&Xe(di.tagNameCheck,Se)||di.tagNameCheck instanceof Function&&di.tagNameCheck(Se))))return!1}else if(!Oa[Be]&&!Xe(ws,Y(Se,pl,""))&&("src"!==Be&&"xlink:href"!==Be&&"href"!==Be||"script"===B||0!==pe(Se,"data:")||!Ts[B])&&(!Cd||Xe(Lt,Y(Se,pl,"")))&&Se)return!1;return!0},kn=function(B){return"annotation-xml"!==B&&be(B,jr)},_c=function(B){Ro("beforeSanitizeAttributes",B,null);const{attributes:Be}=B;if(!Be)return;const Se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fi};let An=Be.length;for(;An--;){const Pi=Be[An],{name:yi,namespaceURI:Ri,value:Ar}=Pi,Lo=_t(yi);let pi="value"===yi?Ar:he(Ar);if(Se.attrName=Lo,Se.attrValue=pi,Se.keepAttr=!0,Se.forceKeepAttr=void 0,Ro("uponSanitizeAttribute",B,Se),pi=Se.attrValue,ia&&Xe(/((--!?|])>)|<\/(style|title)/i,pi)){La(yi,B);continue}if(Se.forceKeepAttr||(La(yi,B),!Se.keepAttr))continue;if(!_l&&Xe(/\/>/i,pi)){La(yi,B);continue}Fo&&X([ta,Ia,Fa],gr=>{pi=Y(pi,gr," ")});const pr=_t(B.nodeName);if(Sr(pr,Lo,pi)){if(Cl&&("id"===Lo||"name"===Lo)&&(La(yi,B),pi="user-content-"+pi),wi&&"object"==typeof ea&&"function"==typeof ea.getAttributeType&&!Ri)switch(ea.getAttributeType(pr,Lo)){case"TrustedHTML":pi=wi.createHTML(pi);break;case"TrustedScriptURL":pi=wi.createScriptURL(pi)}try{Ri?B.setAttributeNS(Ri,yi,pi):B.setAttribute(yi,pi),fi(B)?fr(B):S(Mt.removed)}catch{}}}Ro("afterSanitizeAttributes",B,null)},Fu=function Ft(B){let Be=null;const Se=pc(B);for(Ro("beforeSanitizeShadowDOM",B,null);Be=Se.nextNode();)Ro("uponSanitizeShadowNode",Be,null),!xd(Be)&&(Be.content instanceof Mn&&Ft(Be.content),_c(Be));Ro("afterSanitizeShadowDOM",B,null)};return Mt.sanitize=function(Ft){let B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Be=null,Se=null,An=null,Pi=null;if(Po=!Ft,Po&&(Ft="\x3c!--\x3e"),"string"!=typeof Ft&&!gc(Ft)){if("function"!=typeof Ft.toString)throw pt("toString is not a function");if("string"!=typeof(Ft=Ft.toString()))throw pt("dirty is not a string, aborting")}if(!Mt.isSupported)return Ft;if(uc||Ms(B),Mt.removed=[],"string"==typeof Ft&&(ra=!1),ra){if(Ft.nodeName){const Ar=_t(Ft.nodeName);if(!Di[Ar]||ir[Ar])throw pt("root node is forbidden and cannot be sanitized in-place")}}else if(Ft instanceof Io)Be=fc("\x3c!----\x3e"),Se=Be.ownerDocument.importNode(Ft,!0),Se.nodeType===dr.element&&"BODY"===Se.nodeName||"HTML"===Se.nodeName?Be=Se:Be.appendChild(Se);else{if(!Oo&&!Fo&&!co&&-1===Ft.indexOf("<"))return wi&&vl?wi.createHTML(Ft):Ft;if(Be=fc(Ft),!Be)return Oo?null:vl?dl:""}Be&&bl&&fr(Be.firstChild);const yi=pc(ra?Ft:Be);for(;An=yi.nextNode();)xd(An)||(An.content instanceof Mn&&Fu(An.content),_c(An));if(ra)return Ft;if(Oo){if(yl)for(Pi=bd.call(Be.ownerDocument);Be.firstChild;)Pi.appendChild(Be.firstChild);else Pi=Be;return(Fi.shadowroot||Fi.shadowrootmode)&&(Pi=ml.call(xn,Pi,!0)),Pi}let Ri=co?Be.outerHTML:Be.innerHTML;return co&&Di["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Xe(Cs,Be.ownerDocument.doctype.name)&&(Ri="\n"+Ri),Fo&&X([ta,Ia,Fa],Ar=>{Ri=Y(Ri,Ar," ")}),wi&&vl?wi.createHTML(Ri):Ri},Mt.setConfig=function(){Ms(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),uc=!0},Mt.clearConfig=function(){wn=null,uc=!1},Mt.isValidAttribute=function(Ft,B,Be){wn||Ms({});const Se=_t(Ft),An=_t(B);return Sr(Se,An,Be)},Mt.addHook=function(Ft,B){"function"==typeof B&&(ur[Ft]=ur[Ft]||[],oe(ur[Ft],B))},Mt.removeHook=function(Ft){if(ur[Ft])return S(ur[Ft])},Mt.removeHooks=function(Ft){ur[Ft]&&(ur[Ft]=[])},Mt.removeAllHooks=function(){ur={}},Mt}()}()},458:(rt,de,M)=>{"use strict";function j(re){for(var q=[],z=1;zj})},8586:(rt,de,M)=>{"use strict";function j(s,d){let h;if(void 0===d)for(const p of s)null!=p&&(h=p)&&(h=p);else{let p=-1;for(let b of s)null!=(b=d(b,++p,s))&&(h=b)&&(h=b)}return h}function J(s,d){let h;if(void 0===d)for(const p of s)null!=p&&(h>p||void 0===h&&p>=p)&&(h=p);else{let p=-1;for(let b of s)null!=(b=d(b,++p,s))&&(h>b||void 0===h&&b>=b)&&(h=b)}return h}function re(s){return s}M.d(de,{Nb1:()=>Ow,LLu:()=>he,F5q:()=>Y,$0Z:()=>Hv,Dts:()=>K_,WQY:()=>Jp,qpX:()=>$v,u93:()=>jv,tFB:()=>Rw,YY7:()=>J_,OvA:()=>eb,dCK:()=>Uv,zgE:()=>tb,fGX:()=>Lw,$m7:()=>Wv,c_6:()=>Rv,fxm:()=>nb,FdL:()=>uf,ak_:()=>Jc,SxZ:()=>Gv,eA_:()=>ob,jsv:()=>Zv,iJ:()=>cu,JHv:()=>hp,jvg:()=>Nv,Fp7:()=>j,VV$:()=>J,ve8:()=>Y_,tiA:()=>vr,BYU:()=>Bl,PKp:()=>Fc,Xf:()=>kv,K2I:()=>Sv,Ys:()=>$_,td_:()=>ef,YPS:()=>dp,rr1:()=>vi,i$Z:()=>Ah,y2j:()=>wt,WQD:()=>$c,U8T:()=>Ni,Z_i:()=>zc,Ox9:()=>Bs,F0B:()=>yh,LqH:()=>Vs,S1K:()=>wo,Zyz:()=>us,Igq:()=>_a,YDX:()=>ga,EFj:()=>Vm});var q=1,z=2,ae=3,me=4,_e=1e-6;function X(s){return"translate("+s+",0)"}function S(s){return"translate(0,"+s+")"}function oe(s){return d=>+s(d)}function Oe(s,d){return d=Math.max(0,s.bandwidth()-2*d)/2,s.round()&&(d=Math.round(d)),h=>+s(h)+d}function Ne(){return!this.__axis}function be(s,d){var h=[],p=null,b=null,w=6,D=6,I=3,P=typeof window<"u"&&window.devicePixelRatio>1?0:.5,R=s===q||s===me?-1:1,$=s===me||s===z?"x":"y",ee=s===q||s===ae?X:S;function W(le){var ze=p??(d.ticks?d.ticks.apply(d,h):d.domain()),At=b??(d.tickFormat?d.tickFormat.apply(d,h):re),we=Math.max(w,0)+I,fe=d.range(),Ze=+fe[0]+P,Ie=+fe[fe.length-1]+P,Je=(d.bandwidth?Oe:oe)(d.copy(),P),tt=le.selection?le.selection():le,Re=tt.selectAll(".domain").data([null]),Bt=tt.selectAll(".tick").data(ze,d).order(),gn=Bt.exit(),Gn=Bt.enter().append("g").attr("class","tick"),hn=Bt.select("line"),st=Bt.select("text");Re=Re.merge(Re.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Bt=Bt.merge(Gn),hn=hn.merge(Gn.append("line").attr("stroke","currentColor").attr($+"2",R*w)),st=st.merge(Gn.append("text").attr("fill","currentColor").attr($,R*we).attr("dy",s===q?"0em":s===ae?"0.71em":"0.32em")),le!==tt&&(Re=Re.transition(le),Bt=Bt.transition(le),hn=hn.transition(le),st=st.transition(le),gn=gn.transition(le).attr("opacity",_e).attr("transform",function(mn){return isFinite(mn=Je(mn))?ee(mn+P):this.getAttribute("transform")}),Gn.attr("opacity",_e).attr("transform",function(mn){var Ye=this.parentNode.__axis;return ee((Ye&&isFinite(Ye=Ye(mn))?Ye:Je(mn))+P)})),gn.remove(),Re.attr("d",s===me||s===z?D?"M"+R*D+","+Ze+"H"+P+"V"+Ie+"H"+R*D:"M"+P+","+Ze+"V"+Ie:D?"M"+Ze+","+R*D+"V"+P+"H"+Ie+"V"+R*D:"M"+Ze+","+P+"H"+Ie),Bt.attr("opacity",1).attr("transform",function(mn){return ee(Je(mn)+P)}),hn.attr($+"2",R*w),st.attr($,R*we).text(At),tt.filter(Ne).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",s===z?"start":s===me?"end":"middle"),tt.each(function(){this.__axis=Je})}return W.scale=function(le){return arguments.length?(d=le,W):d},W.ticks=function(){return h=Array.from(arguments),W},W.tickArguments=function(le){return arguments.length?(h=null==le?[]:Array.from(le),W):h.slice()},W.tickValues=function(le){return arguments.length?(p=null==le?null:Array.from(le),W):p&&p.slice()},W.tickFormat=function(le){return arguments.length?(b=le,W):b},W.tickSize=function(le){return arguments.length?(w=D=+le,W):w},W.tickSizeInner=function(le){return arguments.length?(w=+le,W):w},W.tickSizeOuter=function(le){return arguments.length?(D=+le,W):D},W.tickPadding=function(le){return arguments.length?(I=+le,W):I},W.offset=function(le){return arguments.length?(P=+le,W):P},W}function Y(s){return be(q,s)}function he(s){return be(ae,s)}function Xe(){}function pt(s){return null==s?Xe:function(){return this.querySelector(s)}}function cn(s){return null==s?[]:Array.isArray(s)?s:Array.from(s)}function Fe(){return[]}function dn(s){return null==s?Fe:function(){return this.querySelectorAll(s)}}function We(s){return function(){return this.matches(s)}}function De(s){return function(d){return d.matches(s)}}var xt=Array.prototype.find;function jt(){return this.firstElementChild}var at=Array.prototype.filter;function Pn(){return Array.from(this.children)}function Ae(s){return new Array(s.length)}function ut(s,d){this.ownerDocument=s.ownerDocument,this.namespaceURI=s.namespaceURI,this._next=null,this._parent=s,this.__data__=d}function lt(s,d,h,p,b,w){for(var I,D=0,P=d.length,R=w.length;Dd?1:s>=d?0:NaN}ut.prototype={constructor:ut,appendChild:function(s){return this._parent.insertBefore(s,this._next)},insertBefore:function(s,d){return this._parent.insertBefore(s,d)},querySelector:function(s){return this._parent.querySelector(s)},querySelectorAll:function(s){return this._parent.querySelectorAll(s)}};var Mn="http://www.w3.org/1999/xhtml";const kr={svg:"http://www.w3.org/2000/svg",xhtml:Mn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Io(s){var d=s+="",h=d.indexOf(":");return h>=0&&"xmlns"!==(d=s.slice(0,h))&&(s=s.slice(h+1)),kr.hasOwnProperty(d)?{space:kr[d],local:s}:s}function am(s){return function(){this.removeAttribute(s)}}function ll(s){return function(){this.removeAttributeNS(s.space,s.local)}}function lm(s,d){return function(){this.setAttribute(s,d)}}function Ii(s,d){return function(){this.setAttributeNS(s.space,s.local,d)}}function xs(s,d){return function(){var h=d.apply(this,arguments);null==h?this.removeAttribute(s):this.setAttribute(s,h)}}function ea(s,d){return function(){var h=d.apply(this,arguments);null==h?this.removeAttributeNS(s.space,s.local):this.setAttributeNS(s.space,s.local,h)}}function cl(s){return s.ownerDocument&&s.ownerDocument.defaultView||s.document&&s||s.defaultView}function gd(s){return function(){this.style.removeProperty(s)}}function Iu(s,d,h){return function(){this.style.setProperty(s,d,h)}}function dc(s,d,h){return function(){var p=d.apply(this,arguments);null==p?this.style.removeProperty(s):this.style.setProperty(s,p,h)}}function wi(s,d){return s.style.getPropertyValue(d)||cl(s).getComputedStyle(s,null).getPropertyValue(d)}function dl(s){return function(){delete this[s]}}function Aa(s,d){return function(){this[s]=d}}function ul(s,d){return function(){var h=d.apply(this,arguments);null==h?delete this[s]:this[s]=h}}function hl(s){return s.trim().split(/^|\s+/)}function ml(s){return s.classList||new ur(s)}function ur(s){this._node=s,this._names=hl(s.getAttribute("class")||"")}function ta(s,d){for(var h=ml(s),p=-1,b=d.length;++p=0&&(this._names.splice(d,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(s){return this._names.indexOf(s)>=0}};var es=[null];function Oi(s,d){this._groups=s,this._parents=d}function Wt(){return new Oi([[document.documentElement]],es)}Oi.prototype=Wt.prototype={constructor:Oi,select:function Tt(s){"function"!=typeof s&&(s=pt(s));for(var d=this._groups,h=d.length,p=new Array(h),b=0;b=Ie&&(Ie=Ze+1);!(tt=we[Ie])&&++Ie=0;)(D=p[b])&&(w&&4^D.compareDocumentPosition(w)&&w.parentNode.insertBefore(D,w),w=D);return this},sort:function cc(s){function d(ee,W){return ee&&W?s(ee.__data__,W.__data__):!ee-!W}s||(s=sm);for(var h=this._groups,p=h.length,b=new Array(p),w=0;w1?this.each((null==d?gd:"function"==typeof d?dc:Iu)(s,d,h??"")):wi(this.node(),s)},property:function bd(s,d){return arguments.length>1?this.each((null==d?dl:"function"==typeof d?ul:Aa)(s,d)):this.node()[s]},classed:function Lt(s,d){var h=hl(s+"");if(arguments.length<2){for(var p=ml(this.node()),b=-1,w=h.length;++b=0&&(h=d.slice(p+1),d=d.slice(0,p)),{type:d,name:h}})}(s+""),w=p.length;if(!(arguments.length<2)){for(I=d?hr:ra,b=0;b{}};function cm(){for(var p,s=0,d=arguments.length,h={};s=0&&(p=h.slice(b+1),h=h.slice(0,b)),h&&!d.hasOwnProperty(h))throw new Error("unknown type: "+h);return{type:h,name:p}})}(s+"",h),w=-1,D=p.length;if(!(arguments.length<2)){if(null!=d&&"function"!=typeof d)throw new Error("invalid callback: "+d);for(;++w0)for(var b,w,h=new Array(b),p=0;p=0&&s._call.call(void 0,d),s=s._next;--Es}()}finally{Es=0,function kn(){for(var s,h,d=mi,p=1/0;d;)d._call?(p>d._time&&(p=d._time),s=d,d=d._next):(h=d._next,d._next=null,d=s?s._next=h:mi=h);wl=s,_c(p)}(),Ur=0}}function Sr(){var s=fr.now(),d=s-oa;d>ks&&(mr-=d,oa=s)}function _c(s){Es||(ts&&(ts=clearTimeout(ts)),s-Ur>24?(s<1/0&&(ts=setTimeout(xd,s-fr.now()-mr)),Ms&&(Ms=clearInterval(Ms))):(Ms||(oa=fr.now(),Ms=setInterval(Sr,ks)),Es=1,La(xd)))}function Fu(s,d,h){var p=new fi;return p.restart(b=>{p.stop(),s(b+d)},d=null==d?0:+d,h),p}fi.prototype=gc.prototype={constructor:fi,restart:function(s,d,h){if("function"!=typeof s)throw new TypeError("callback is not a function");h=(null==h?fc():+h)+(null==d?0:+d),!this._next&&wl!==this&&(wl?wl._next=this:mi=this,wl=this),this._call=s,this._time=h,_c()},stop:function(){this._call&&(this._call=null,this._time=1/0,_c())}};var Ft=wn("start","end","cancel","interrupt"),B=[],Be=0,Se=1,An=2,Pi=3,yi=4,Ri=5,Ar=6;function Lo(s,d,h,p,b,w){var D=s.__transition;if(D){if(h in D)return}else s.__transition={};!function Qf(s,d,h){var b,p=s.__transition;function D(R){var $,ee,W,le;if(h.state!==Se)return P();for($ in p)if((le=p[$]).name===h.name){if(le.state===Pi)return Fu(D);le.state===yi?(le.state=Ar,le.timer.stop(),le.on.call("interrupt",s,s.__data__,le.index,le.group),delete p[$]):+$Be)throw new Error("too late; already scheduled");return h}function pr(s,d){var h=gr(s,d);if(h.state>Pi)throw new Error("too late; already running");return h}function gr(s,d){var h=s.__transition;if(!h||!(h=h[d]))throw new Error("transition not found");return h}function No(s,d){return s=+s,d=+d,function(h){return s*(1-h)+d*h}}var Fn,Wr=180/Math.PI,wd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dm(s,d,h,p,b,w){var D,I,P;return(D=Math.sqrt(s*s+d*d))&&(s/=D,d/=D),(P=s*h+d*p)&&(h-=s*P,p-=d*P),(I=Math.sqrt(h*h+p*p))&&(h/=I,p/=I,P/=I),s*p180?$+=360:$-R>180&&(R+=360),W.push({i:ee.push(b(ee)+"rotate(",null,p)-2,x:No(R,$)})):$&&ee.push(b(ee)+"rotate("+$+p)}(R.rotate,$.rotate,ee,W),function I(R,$,ee,W){R!==$?W.push({i:ee.push(b(ee)+"skewX(",null,p)-2,x:No(R,$)}):$&&ee.push(b(ee)+"skewX("+$+p)}(R.skewX,$.skewX,ee,W),function P(R,$,ee,W,le,ze){if(R!==ee||$!==W){var At=le.push(b(le)+"scale(",null,",",null,")");ze.push({i:At-4,x:No(R,ee)},{i:At-2,x:No($,W)})}else(1!==ee||1!==W)&&le.push(b(le)+"scale("+ee+","+W+")")}(R.scaleX,R.scaleY,$.scaleX,$.scaleY,ee,W),R=$=null,function(le){for(var we,ze=-1,At=W.length;++ze>8&15|d>>4&240,d>>4&15|240&d,(15&d)<<4|15&d,1):8===h?mo(d>>24&255,d>>16&255,d>>8&255,(255&d)/255):4===h?mo(d>>12&15|d>>8&240,d>>8&15|d>>4&240,d>>4&15|240&d,((15&d)<<4|15&d)/255):null):(d=yc.exec(s))?new et(d[1],d[2],d[3],1):(d=Jf.exec(s))?new et(255*d[1]/100,255*d[2]/100,255*d[3]/100,1):(d=ep.exec(s))?mo(d[1],d[2],d[3],d[4]):(d=hm.exec(s))?mo(255*d[1]/100,255*d[2]/100,255*d[3]/100,d[4]):(d=As.exec(s))?xe(d[1],d[2]/100,d[3]/100,1):(d=Li.exec(s))?xe(d[1],d[2]/100,d[3]/100,d[4]):ho.hasOwnProperty(s)?Sd(ho[s]):"transparent"===s?new et(NaN,NaN,NaN,0):null}function Sd(s){return new et(s>>16&255,s>>8&255,255&s,1)}function mo(s,d,h,p){return p<=0&&(s=d=h=NaN),new et(s,d,h,p)}function Cc(s){return s instanceof uo||(s=Is(s)),s?new et((s=s.rgb()).r,s.g,s.b,s.opacity):new et}function Ru(s,d,h,p){return 1===arguments.length?Cc(s):new et(s,d,h,p??1)}function et(s,d,h,p){this.r=+s,this.g=+d,this.b=+h,this.opacity=+p}function mm(){return`#${la(this.r)}${la(this.g)}${la(this.b)}`}function fm(){const s=sn(this.opacity);return`${1===s?"rgb(":"rgba("}${El(this.r)}, ${El(this.g)}, ${El(this.b)}${1===s?")":`, ${s})`}`}function sn(s){return isNaN(s)?1:Math.max(0,Math.min(1,s))}function El(s){return Math.max(0,Math.min(255,Math.round(s)||0))}function la(s){return((s=El(s))<16?"0":"")+s.toString(16)}function xe(s,d,h,p){return p<=0?s=d=h=NaN:h<=0||h>=1?s=d=NaN:d<=0&&(s=NaN),new li(s,d,h,p)}function Gr(s){if(s instanceof li)return new li(s.h,s.s,s.l,s.opacity);if(s instanceof uo||(s=Is(s)),!s)return new li;if(s instanceof li)return s;var d=(s=s.rgb()).r/255,h=s.g/255,p=s.b/255,b=Math.min(d,h,p),w=Math.max(d,h,p),D=NaN,I=w-b,P=(w+b)/2;return I?(D=d===w?(h-p)/I+6*(h0&&P<1?0:D,new li(D,I,P,s.opacity)}function li(s,d,h,p){this.h=+s,this.s=+d,this.l=+h,this.opacity=+p}function _r(s){return(s=(s||0)%360)<0?s+360:s}function Fs(s){return Math.max(0,Math.min(1,s||0))}function Zr(s,d,h){return 255*(s<60?d+(h-d)*s/60:s<180?h:s<240?d+(h-d)*(240-s)/60:d)}function Os(s,d,h,p,b){var w=s*s,D=w*s;return((1-3*s+3*w-D)*d+(4-6*w+3*D)*h+(1+3*s+3*w-3*D)*p+D*b)/6}Dl(uo,Is,{copy(s){return Object.assign(new this.constructor,this,s)},displayable(){return this.rgb().displayable()},hex:is,formatHex:is,formatHex8:function Sn(){return this.rgb().formatHex8()},formatHsl:function kd(){return Gr(this).formatHsl()},formatRgb:vc,toString:vc}),Dl(et,Ru,Ss(uo,{brighter(s){return s=null==s?te:Math.pow(te,s),new et(this.r*s,this.g*s,this.b*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new et(this.r*s,this.g*s,this.b*s,this.opacity)},rgb(){return this},clamp(){return new et(El(this.r),El(this.g),El(this.b),sn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mm,formatHex:mm,formatHex8:function Lu(){return`#${la(this.r)}${la(this.g)}${la(this.b)}${la(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fm,toString:fm})),Dl(li,function Wn(s,d,h,p){return 1===arguments.length?Gr(s):new li(s,d,h,p??1)},Ss(uo,{brighter(s){return s=null==s?te:Math.pow(te,s),new li(this.h,this.s,this.l*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new li(this.h,this.s,this.l*s,this.opacity)},rgb(){var s=this.h%360+360*(this.h<0),d=isNaN(s)||isNaN(this.s)?0:this.s,h=this.l,p=h+(h<.5?h:1-h)*d,b=2*h-p;return new et(Zr(s>=240?s-240:s+120,b,p),Zr(s,b,p),Zr(s<120?s+240:s-120,b,p),this.opacity)},clamp(){return new li(_r(this.h),Fs(this.s),Fs(this.l),sn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const s=sn(this.opacity);return`${1===s?"hsl(":"hsla("}${_r(this.h)}, ${100*Fs(this.s)}%, ${100*Fs(this.l)}%${1===s?")":`, ${s})`}`}}));const ri=s=>()=>s;function Bo(s,d){return function(h){return s+h*d}}function ei(s,d){var h=d-s;return h?Bo(s,h):ri(isNaN(s)?d:s)}const Sl=function s(d){var h=function kl(s){return 1==(s=+s)?ei:function(d,h){return h-d?function Ml(s,d,h){return s=Math.pow(s,h),d=Math.pow(d,h)-s,h=1/h,function(p){return Math.pow(s+p*d,h)}}(d,h,s):ri(isNaN(d)?h:d)}}(d);function p(b,w){var D=h((b=Ru(b)).r,(w=Ru(w)).r),I=h(b.g,w.g),P=h(b.b,w.b),R=ei(b.opacity,w.opacity);return function($){return b.r=D($),b.g=I($),b.b=P($),b.opacity=R($),b+""}}return p.gamma=s,p}(1);function Ad(s){return function(d){var D,I,h=d.length,p=new Array(h),b=new Array(h),w=new Array(h);for(D=0;D=1?(h=1,d-1):Math.floor(h*d),b=s[p],w=s[p+1];return Os((h-p/d)*d,p>0?s[p-1]:2*b-w,b,w,ph&&(w=d.slice(h,w),I[D]?I[D]+=w:I[++D]=w),(p=p[0])===(b=b[0])?I[D]?I[D]+=b:I[++D]=b:(I[++D]=null,P.push({i:D,x:No(p,b)})),h=Nu.lastIndex;return h=0&&(d=d.slice(0,h)),!d||"start"===d})}(d)?pi:pr;return function(){var D=w(this,s),I=D.on;I!==p&&(b=(p=I).copy()).on(d,h),D.on=b}}(h,s,d))},attr:function _m(s,d){var h=Io(s),p="transform"===h?Td:Al;return this.attrTween(s,"function"==typeof d?(h.local?gm:dv)(h,p,sa(this,"attr."+s,d)):null==d?(h.local?wc:Ps)(h):(h.local?ui:Bu)(h,p,d))},attrTween:function v_(s,d){var h="attr."+s;if(arguments.length<2)return(h=this.tween(h))&&h._value;if(null==d)return this.tween(h,null);if("function"!=typeof d)throw new Error;var p=Io(s);return this.tween(h,(p.local?Tc:qr)(p,d))},style:function yv(s,d,h){var p="transform"==(s+="")?bc:Al;return null==d?this.styleTween(s,function bv(s,d){var h,p,b;return function(){var w=wi(this,s),D=(this.style.removeProperty(s),wi(this,s));return w===D?null:w===h&&D===p?b:b=d(h=w,p=D)}}(s,p)).on("end.style."+s,ym(s)):"function"==typeof d?this.styleTween(s,function T_(s,d,h){var p,b,w;return function(){var D=wi(this,s),I=h(this),P=I+"";return null==I&&(this.style.removeProperty(s),P=I=wi(this,s)),D===P?null:D===p&&P===b?w:(b=P,w=d(p=D,I))}}(s,p,sa(this,"style."+s,d))).each(function sp(s,d){var h,p,b,I,w="style."+d,D="end."+w;return function(){var P=pr(this,s),R=P.on,$=null==P.value[w]?I||(I=ym(d)):void 0;(R!==h||b!==$)&&(p=(h=R).copy()).on(D,b=$),P.on=p}}(this._id,s)):this.styleTween(s,function op(s,d,h){var p,w,b=h+"";return function(){var D=wi(this,s);return D===b?null:D===p?w:w=d(p=D,h)}}(s,p,d),h).on("end.style."+s,null)},styleTween:function ci(s,d,h){var p="style."+(s+="");if(arguments.length<2)return(p=this.tween(p))&&p._value;if(null==d)return this.tween(p,null);if("function"!=typeof d)throw new Error;return this.tween(p,function E_(s,d,h){var p,b;function w(){var D=d.apply(this,arguments);return D!==b&&(p=(b=D)&&function Il(s,d,h){return function(p){this.style.setProperty(s,d.call(this,p),h)}}(s,D,h)),p}return w._value=d,w}(s,d,h??""))},text:function k_(s){return this.tween("text","function"==typeof s?function M_(s){return function(){var d=s(this);this.textContent=d??""}}(sa(this,"text",s)):function Hu(s){return function(){this.textContent=s}}(null==s?"":s+""))},textTween:function lp(s){var d="text";if(arguments.length<1)return(d=this.tween(d))&&d._value;if(null==s)return this.tween(d,null);if("function"!=typeof s)throw new Error;return this.tween(d,function vm(s){var d,h;function p(){var b=s.apply(this,arguments);return b!==h&&(d=(h=b)&&function ap(s){return function(d){this.textContent=s.call(this,d)}}(b)),d}return p._value=s,p}(s))},remove:function pv(){return this.on("end.remove",function ip(s){return function(){var d=this.parentNode;for(var h in this.__transition)if(+h!==s)return;d&&d.removeChild(this)}}(this._id))},tween:function Pu(s,d){var h=this._id;if(s+="",arguments.length<2){for(var D,p=gr(this.node(),h).tween,b=0,w=p.length;bAn&&p.statefunction os(s,d){return fetch(s,d).then(Fr)}(d,h).then(p=>(new DOMParser).parseFromString(p,s))}["w","e"].map(He),["n","s"].map(He),["n","w","e","s","nw","ne","sw","se"].map(He),Yu("application/xml"),Yu("text/html");var dp=Yu("image/svg+xml");const Ku=Math.PI/180,S_=180/Math.PI,Qu=.96422,Bd=1,Vd=.82521,Ju=4/29,Sc=6/29,Dm=3*Sc*Sc,eh=Sc*Sc*Sc;function Hd(s){if(s instanceof Ho)return new Ho(s.l,s.a,s.b,s.opacity);if(s instanceof ss)return $d(s);s instanceof et||(s=Cc(s));var w,D,d=qi(s.r),h=qi(s.g),p=qi(s.b),b=Ac((.2225045*d+.7168786*h+.0606169*p)/Bd);return d===h&&h===p?w=D=b:(w=Ac((.4360747*d+.3850649*h+.1430804*p)/Qu),D=Ac((.0139322*d+.0971045*h+.7141733*p)/Vd)),new Ho(116*b-16,500*(w-b),200*(b-D),s.opacity)}function Ho(s,d,h,p){this.l=+s,this.a=+d,this.b=+h,this.opacity=+p}function Ac(s){return s>eh?Math.pow(s,1/3):s/Dm+Ju}function zd(s){return s>Sc?s*s*s:Dm*(s-Ju)}function Ic(s){return 255*(s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055)}function qi(s){return(s/=255)<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)}function ua(s,d,h,p){return 1===arguments.length?function da(s){if(s instanceof ss)return new ss(s.h,s.c,s.l,s.opacity);if(s instanceof Ho||(s=Hd(s)),0===s.a&&0===s.b)return new ss(NaN,0180||h<-180?h-360*Math.round(h/360):h):ri(isNaN(s)?d:s)});function ja(s,d){switch(arguments.length){case 0:break;case 1:this.range(s);break;default:this.range(d).domain(s)}return this}Tm(ei);class Ud extends Map{constructor(d,h=Em){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:h}}),null!=d)for(const[p,b]of d)this.set(p,b)}get(d){return super.get(nh(this,d))}has(d){return super.has(nh(this,d))}set(d,h){return super.set(Ua(this,d),h)}delete(d){return super.delete(Fl(this,d))}}class fp extends Set{constructor(d,h=Em){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:h}}),null!=d)for(const p of d)this.add(p)}has(d){return super.has(nh(this,d))}add(d){return super.add(Ua(this,d))}delete(d){return super.delete(Fl(this,d))}}function nh({_intern:s,_key:d},h){const p=d(h);return s.has(p)?s.get(p):h}function Ua({_intern:s,_key:d},h){const p=d(h);return s.has(p)?s.get(p):(s.set(p,h),h)}function Fl({_intern:s,_key:d},h){const p=d(h);return s.has(p)&&(h=s.get(p),s.delete(p)),h}function Em(s){return null!==s&&"object"==typeof s?s.valueOf():s}const pp=Symbol("implicit");function Fc(){var s=new Ud,d=[],h=[],p=pp;function b(w){let D=s.get(w);if(void 0===D){if(p!==pp)return p;s.set(w,D=d.push(w)-1)}return h[D%h.length]}return b.domain=function(w){if(!arguments.length)return d.slice();d=[],s=new Ud;for(const D of w)s.has(D)||s.set(D,d.push(D)-1);return b},b.range=function(w){return arguments.length?(h=Array.from(w),b):h.slice()},b.unknown=function(w){return arguments.length?(p=w,b):p},b.copy=function(){return Fc(d,h).unknown(p)},ja.apply(b,arguments),b}function vr(){var w,D,s=Fc().unknown(void 0),d=s.domain,h=s.range,p=0,b=1,I=!1,P=0,R=0,$=.5;function ee(){var W=d().length,le=b=ha?10:w>=Mm?5:w>=Oc?2:1;let I,P,R;return b<0?(R=Math.pow(10,-b)/D,I=Math.round(s*R),P=Math.round(d*R),I/Rd&&--P,R=-R):(R=Math.pow(10,b)*D,I=Math.round(s/R),P=Math.round(d/R),I*Rd&&--P),Pd?1:s>=d?0:NaN}function Zd(s,d){return null==s||null==d?NaN:ds?1:d>=s?0:NaN}function Yi(s){let d,h,p;function b(I,P,R=0,$=I.length){if(R<$){if(0!==d(P,P))return $;do{const ee=R+$>>>1;h(I[ee],P)<0?R=ee+1:$=ee}while(R<$)}return R}return 2!==s.length?(d=Rc,h=(I,P)=>Rc(s(I),P),p=(I,P)=>s(I)-P):(d=s===Rc||s===Zd?s:Lc,h=s,p=s),{left:b,center:function D(I,P,R=0,$=I.length){const ee=b(I,P,R,$-1);return ee>R&&p(I[ee-1],P)>-p(I[ee],P)?ee-1:ee},right:function w(I,P,R=0,$=I.length){if(R<$){if(0!==d(P,P))return $;do{const ee=R+$>>>1;h(I[ee],P)<=0?R=ee+1:$=ee}while(R<$)}return R}}}function Lc(){return 0}const Sm=Yi(Rc).right,as=(Yi(function rh(s){return null===s?NaN:+s}),Sm);function Bc(s,d){var D,h=d?d.length:0,p=s?Math.min(h,s.length):0,b=new Array(p),w=new Array(h);for(D=0;Dd&&(h=s,s=d,d=h),function(p){return Math.max(s,Math.min(d,p))}}(s[0],s[W-1])),I=W>2?Pm:bp,P=R=null,ee}function ee(W){return null==W||isNaN(W=+W)?w:(P||(P=I(s.map(p),d,h)))(p(D(W)))}return ee.invert=function(W){return D(b((R||(R=I(d,s.map(p),No)))(W)))},ee.domain=function(W){return arguments.length?(s=Array.from(W,Om),$()):s.slice()},ee.range=function(W){return arguments.length?(d=Array.from(W),$()):d.slice()},ee.rangeRound=function(W){return d=Array.from(W),h=Im,$()},ee.clamp=function(W){return arguments.length?(D=!!W||Ol,$()):D!==Ol},ee.interpolate=function(W){return arguments.length?(h=W,$()):h},ee.unknown=function(W){return arguments.length?(w=W,ee):w},function(W,le){return p=W,b=le,$()}}()(Ol,Ol)}var qa,Yn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ll(s){if(!(d=Yn.exec(s)))throw new Error("invalid format: "+s);var d;return new uh({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}function uh(s){this.fill=void 0===s.fill?" ":s.fill+"",this.align=void 0===s.align?">":s.align+"",this.sign=void 0===s.sign?"-":s.sign+"",this.symbol=void 0===s.symbol?"":s.symbol+"",this.zero=!!s.zero,this.width=void 0===s.width?void 0:+s.width,this.comma=!!s.comma,this.precision=void 0===s.precision?void 0:+s.precision,this.trim=!!s.trim,this.type=void 0===s.type?"":s.type+""}function go(s,d){if((h=(s=d?s.toExponential(d-1):s.toExponential()).indexOf("e"))<0)return null;var h,p=s.slice(0,h);return[p.length>1?p[0]+p.slice(2):p,+s.slice(h+1)]}function xo(s){return(s=go(Math.abs(s)))?s[1]:NaN}function Nm(s,d){var h=go(s,d);if(!h)return s+"";var p=h[0],b=h[1];return b<0?"0."+new Array(-b).join("0")+p:p.length>b+1?p.slice(0,b+1)+"."+p.slice(b+1):p+new Array(b-p.length+2).join("0")}Ll.prototype=uh.prototype,uh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ye={"%":(s,d)=>(100*s).toFixed(d),b:s=>Math.round(s).toString(2),c:s=>s+"",d:function hh(s){return Math.abs(s=Math.round(s))>=1e21?s.toLocaleString("en").replace(/,/g,""):s.toString(10)},e:(s,d)=>s.toExponential(d),f:(s,d)=>s.toFixed(d),g:(s,d)=>s.toPrecision(d),o:s=>Math.round(s).toString(8),p:(s,d)=>Nm(100*s,d),r:Nm,s:function O_(s,d){var h=go(s,d);if(!h)return s+"";var p=h[0],b=h[1],w=b-(qa=3*Math.max(-8,Math.min(8,Math.floor(b/3))))+1,D=p.length;return w===D?p:w>D?p+new Array(w-D+1).join("0"):w>0?p.slice(0,w)+"."+p.slice(w):"0."+new Array(1-w).join("0")+go(s,Math.max(0,d+w-1))[0]},X:s=>Math.round(s).toString(16).toUpperCase(),x:s=>Math.round(s).toString(16)};function yp(s){return s}var fh,xp,wp,vp=Array.prototype.map,Cp=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function ph(s){var d=s.domain;return s.ticks=function(h){var p=d();return function km(s,d,h){if(!((h=+h)>0))return[];if((s=+s)==(d=+d))return[s];const p=d=b))return[];const I=w-b+1,P=new Array(I);if(p)if(D<0)for(let R=0;R0;){if((R=Wa(D,I,h))===P)return p[b]=D,p[w]=I,d(p);if(R>0)D=Math.floor(D/R)*R,I=Math.ceil(I/R)*R;else{if(!(R<0))break;D=Math.ceil(D*R)/R,I=Math.floor(I*R)/R}P=R}return s},s}function Bl(){var s=Rm();return s.copy=function(){return dh(s,Bl())},ja.apply(s,arguments),ph(s)}!function Vc(s){fh=function P_(s){var d=void 0===s.grouping||void 0===s.thousands?yp:function Nl(s,d){return function(h,p){for(var b=h.length,w=[],D=0,I=s[0],P=0;b>0&&I>0&&(P+I+1>p&&(I=Math.max(1,p-P)),w.push(h.substring(b-=I,b+I)),!((P+=I+1)>p));)I=s[D=(D+1)%s.length];return w.reverse().join(d)}}(vp.call(s.grouping,Number),s.thousands+""),h=void 0===s.currency?"":s.currency[0]+"",p=void 0===s.currency?"":s.currency[1]+"",b=void 0===s.decimal?".":s.decimal+"",w=void 0===s.numerals?yp:function Lm(s){return function(d){return d.replace(/[0-9]/g,function(h){return s[+h]})}}(vp.call(s.numerals,String)),D=void 0===s.percent?"%":s.percent+"",I=void 0===s.minus?"\u2212":s.minus+"",P=void 0===s.nan?"NaN":s.nan+"";function R(ee){var W=(ee=Ll(ee)).fill,le=ee.align,ze=ee.sign,At=ee.symbol,we=ee.zero,fe=ee.width,Ze=ee.comma,Ie=ee.precision,Je=ee.trim,tt=ee.type;"n"===tt?(Ze=!0,tt="g"):ye[tt]||(void 0===Ie&&(Ie=12),Je=!0,tt="g"),(we||"0"===W&&"="===le)&&(we=!0,W="0",le="=");var Re="$"===At?h:"#"===At&&/[boxX]/.test(tt)?"0"+tt.toLowerCase():"",Bt="$"===At?p:/[%p]/.test(tt)?D:"",gn=ye[tt],Gn=/[defgprs%]/.test(tt);function hn(st){var G,Ke,ve,mn=Re,Ye=Bt;if("c"===tt)Ye=gn(st)+Ye,st="";else{var $e=(st=+st)<0||1/st<0;if(st=isNaN(st)?P:gn(Math.abs(st),Ie),Je&&(st=function mh(s){e:for(var b,d=s.length,h=1,p=-1;h0&&(p=0)}return p>0?s.slice(0,p)+s.slice(b+1):s}(st)),$e&&0==+st&&"+"!==ze&&($e=!1),mn=($e?"("===ze?ze:I:"-"===ze||"("===ze?"":ze)+mn,Ye=("s"===tt?Cp[8+qa/3]:"")+Ye+($e&&"("===ze?")":""),Gn)for(G=-1,Ke=st.length;++G(ve=st.charCodeAt(G))||ve>57){Ye=(46===ve?b+st.slice(G+1):st.slice(G))+Ye,st=st.slice(0,G);break}}Ze&&!we&&(st=d(st,1/0));var Dt=mn.length+st.length+Ye.length,ct=Dt>1)+mn+st+Ye+ct.slice(Dt);break;default:st=ct+mn+st+Ye}return w(st)}return Ie=void 0===Ie?6:/[gprs]/.test(tt)?Math.max(1,Math.min(21,Ie)):Math.max(0,Math.min(20,Ie)),hn.toString=function(){return ee+""},hn}return{format:R,formatPrefix:function $(ee,W){var le=R(((ee=Ll(ee)).type="f",ee)),ze=3*Math.max(-8,Math.min(8,Math.floor(xo(W)/3))),At=Math.pow(10,-ze),we=Cp[8+ze/3];return function(fe){return le(At*fe)+we}}}}(s),xp=fh.format,wp=fh.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const Ns=1e3,_i=60*Ns,Or=60*_i,ls=24*Or,Vl=7*ls,Hl=30*ls,cs=365*ls,Hc=new Date,qd=new Date;function zi(s,d,h,p){function b(w){return s(w=0===arguments.length?new Date:new Date(+w)),w}return b.floor=w=>(s(w=new Date(+w)),w),b.ceil=w=>(s(w=new Date(w-1)),d(w,1),s(w),w),b.round=w=>{const D=b(w),I=b.ceil(w);return w-D(d(w=new Date(+w),null==D?1:Math.floor(D)),w),b.range=(w,D,I)=>{const P=[];if(w=b.ceil(w),I=null==I?1:Math.floor(I),!(w0))return P;let R;do{P.push(R=new Date(+w)),d(w,I),s(w)}while(Rzi(D=>{if(D>=D)for(;s(D),!w(D);)D.setTime(D-1)},(D,I)=>{if(D>=D)if(I<0)for(;++I<=0;)for(;d(D,-1),!w(D););else for(;--I>=0;)for(;d(D,1),!w(D););}),h&&(b.count=(w,D)=>(Hc.setTime(+w),qd.setTime(+D),s(Hc),s(qd),Math.floor(h(Hc,qd))),b.every=w=>(w=Math.floor(w),isFinite(w)&&w>0?w>1?b.filter(p?D=>p(D)%w==0:D=>b.count(0,D)%w==0):b:null)),b}const Ni=zi(()=>{},(s,d)=>{s.setTime(+s+d)},(s,d)=>d-s);Ni.every=s=>(s=Math.floor(s),isFinite(s)&&s>0?s>1?zi(d=>{d.setTime(Math.floor(d/s)*s)},(d,h)=>{d.setTime(+d+h*s)},(d,h)=>(h-d)/s):Ni:null);const wo=zi(s=>{s.setTime(s-s.getMilliseconds())},(s,d)=>{s.setTime(+s+d*Ns)},(s,d)=>(d-s)/Ns,s=>s.getUTCSeconds()),zc=zi(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*Ns)},(s,d)=>{s.setTime(+s+d*_i)},(s,d)=>(d-s)/_i,s=>s.getMinutes()),Bm=zi(s=>{s.setUTCSeconds(0,0)},(s,d)=>{s.setTime(+s+d*_i)},(s,d)=>(d-s)/_i,s=>s.getUTCMinutes()),$c=zi(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*Ns-s.getMinutes()*_i)},(s,d)=>{s.setTime(+s+d*Or)},(s,d)=>(d-s)/Or,s=>s.getHours()),zo=zi(s=>{s.setUTCMinutes(0,0,0)},(s,d)=>{s.setTime(+s+d*Or)},(s,d)=>(d-s)/Or,s=>s.getUTCHours()),vi=zi(s=>s.setHours(0,0,0,0),(s,d)=>s.setDate(s.getDate()+d),(s,d)=>(d-s-(d.getTimezoneOffset()-s.getTimezoneOffset())*_i)/ls,s=>s.getDate()-1),ds=zi(s=>{s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCDate(s.getUTCDate()+d)},(s,d)=>(d-s)/ls,s=>s.getUTCDate()-1),zl=zi(s=>{s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCDate(s.getUTCDate()+d)},(s,d)=>(d-s)/ls,s=>Math.floor(s/ls));function pa(s){return zi(d=>{d.setDate(d.getDate()-(d.getDay()+7-s)%7),d.setHours(0,0,0,0)},(d,h)=>{d.setDate(d.getDate()+7*h)},(d,h)=>(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*_i)/Vl)}const us=pa(0),Bs=pa(1),ga=pa(2),Vm=pa(3),_a=pa(4),wt=pa(5),Vs=pa(6);function Hs(s){return zi(d=>{d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-s)%7),d.setUTCHours(0,0,0,0)},(d,h)=>{d.setUTCDate(d.getUTCDate()+7*h)},(d,h)=>(h-d)/Vl)}const jl=Hs(0),Uc=Hs(1),Wc=(Hs(2),Hs(3),Hs(4)),yh=(Hs(5),Hs(6),zi(s=>{s.setDate(1),s.setHours(0,0,0,0)},(s,d)=>{s.setMonth(s.getMonth()+d)},(s,d)=>d.getMonth()-s.getMonth()+12*(d.getFullYear()-s.getFullYear()),s=>s.getMonth())),Ip=zi(s=>{s.setUTCDate(1),s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCMonth(s.getUTCMonth()+d)},(s,d)=>d.getUTCMonth()-s.getUTCMonth()+12*(d.getUTCFullYear()-s.getUTCFullYear()),s=>s.getUTCMonth()),zs=zi(s=>{s.setMonth(0,1),s.setHours(0,0,0,0)},(s,d)=>{s.setFullYear(s.getFullYear()+d)},(s,d)=>d.getFullYear()-s.getFullYear(),s=>s.getFullYear());zs.every=s=>isFinite(s=Math.floor(s))&&s>0?zi(d=>{d.setFullYear(Math.floor(d.getFullYear()/s)*s),d.setMonth(0,1),d.setHours(0,0,0,0)},(d,h)=>{d.setFullYear(d.getFullYear()+h*s)}):null;const hs=zi(s=>{s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0)},(s,d)=>{s.setUTCFullYear(s.getUTCFullYear()+d)},(s,d)=>d.getUTCFullYear()-s.getUTCFullYear(),s=>s.getUTCFullYear());function vh(s,d,h,p,b,w){const D=[[wo,1,Ns],[wo,5,5*Ns],[wo,15,15*Ns],[wo,30,30*Ns],[w,1,_i],[w,5,5*_i],[w,15,15*_i],[w,30,30*_i],[b,1,Or],[b,3,3*Or],[b,6,6*Or],[b,12,12*Or],[p,1,ls],[p,2,2*ls],[h,1,Vl],[d,1,Hl],[d,3,3*Hl],[s,1,cs]];function P(R,$,ee){const W=Math.abs($-R)/ee,le=Yi(([,,we])=>we).right(D,W);if(le===D.length)return s.every(Gd(R/cs,$/cs,ee));if(0===le)return Ni.every(Math.max(Gd(R,$,ee),1));const[ze,At]=D[W/D[le-1][2]isFinite(s=Math.floor(s))&&s>0?zi(d=>{d.setUTCFullYear(Math.floor(d.getUTCFullYear()/s)*s),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},(d,h)=>{d.setUTCFullYear(d.getUTCFullYear()+h*s)}):null;const[Pp,Jr]=vh(hs,Ip,jl,zl,zo,Bm),[Rp,Lp]=vh(zs,yh,us,vi,$c,zc);function Ch(s){if(0<=s.y&&s.y<100){var d=new Date(-1,s.m,s.d,s.H,s.M,s.S,s.L);return d.setFullYear(s.y),d}return new Date(s.y,s.m,s.d,s.H,s.M,s.S,s.L)}function Xd(s){if(0<=s.y&&s.y<100){var d=new Date(Date.UTC(-1,s.m,s.d,s.H,s.M,s.S,s.L));return d.setUTCFullYear(s.y),d}return new Date(Date.UTC(s.y,s.m,s.d,s.H,s.M,s.S,s.L))}function Ya(s,d,h){return{y:s,m:d,d:h,H:0,M:0,S:0,L:0}}var Zl,Ah,jm={"-":"",_:" ",0:"0"},Ki=/^\s*\d+/,Um=/^%/,Bp=/[\\^$*+?|[\]().{}]/g;function On(s,d,h){var p=s<0?"-":"",b=(p?-s:s)+"",w=b.length;return p+(w[d.toLowerCase(),h]))}function xh(s,d,h){var p=Ki.exec(d.slice(h,h+1));return p?(s.w=+p[0],h+p[0].length):-1}function or(s,d,h){var p=Ki.exec(d.slice(h,h+1));return p?(s.u=+p[0],h+p[0].length):-1}function Gc(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.U=+p[0],h+p[0].length):-1}function Qd(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.V=+p[0],h+p[0].length):-1}function wh(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.W=+p[0],h+p[0].length):-1}function Wm(s,d,h){var p=Ki.exec(d.slice(h,h+4));return p?(s.y=+p[0],h+p[0].length):-1}function Dh(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.y=+p[0]+(+p[0]>68?1900:2e3),h+p[0].length):-1}function Vp(s,d,h){var p=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(h,h+6));return p?(s.Z=p[1]?0:-(p[2]+(p[3]||"00")),h+p[0].length):-1}function Gm(s,d,h){var p=Ki.exec(d.slice(h,h+1));return p?(s.q=3*p[0]-3,h+p[0].length):-1}function Zm(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.m=p[0]-1,h+p[0].length):-1}function Jd(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.d=+p[0],h+p[0].length):-1}function Hp(s,d,h){var p=Ki.exec(d.slice(h,h+3));return p?(s.m=0,s.d=+p[0],h+p[0].length):-1}function qm(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.H=+p[0],h+p[0].length):-1}function Th(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.M=+p[0],h+p[0].length):-1}function Zc(s,d,h){var p=Ki.exec(d.slice(h,h+2));return p?(s.S=+p[0],h+p[0].length):-1}function zp(s,d,h){var p=Ki.exec(d.slice(h,h+3));return p?(s.L=+p[0],h+p[0].length):-1}function $o(s,d,h){var p=Ki.exec(d.slice(h,h+6));return p?(s.L=Math.floor(p[0]/1e3),h+p[0].length):-1}function $p(s,d,h){var p=Um.exec(d.slice(h,h+1));return p?h+p[0].length:-1}function jp(s,d,h){var p=Ki.exec(d.slice(h));return p?(s.Q=+p[0],h+p[0].length):-1}function eu(s,d,h){var p=Ki.exec(d.slice(h));return p?(s.s=+p[0],h+p[0].length):-1}function tu(s,d){return On(s.getDate(),d,2)}function Eh(s,d){return On(s.getHours(),d,2)}function Wl(s,d){return On(s.getHours()%12||12,d,2)}function Mh(s,d){return On(1+vi.count(zs(s),s),d,3)}function nu(s,d){return On(s.getMilliseconds(),d,3)}function Up(s,d){return nu(s,d)+"000"}function Gl(s,d){return On(s.getMonth()+1,d,2)}function kh(s,d){return On(s.getMinutes(),d,2)}function Ym(s,d){return On(s.getSeconds(),d,2)}function Wp(s){var d=s.getDay();return 0===d?7:d}function Km(s,d){return On(us.count(zs(s)-1,s),d,2)}function Do(s){var d=s.getDay();return d>=4||0===d?_a(s):_a.ceil(s)}function l(s,d){return s=Do(s),On(_a.count(zs(s),s)+(4===zs(s).getDay()),d,2)}function f(s){return s.getDay()}function _(s,d){return On(Bs.count(zs(s)-1,s),d,2)}function x(s,d){return On(s.getFullYear()%100,d,2)}function k(s,d){return On((s=Do(s)).getFullYear()%100,d,2)}function L(s,d){return On(s.getFullYear()%1e4,d,4)}function H(s,d){var h=s.getDay();return On((s=h>=4||0===h?_a(s):_a.ceil(s)).getFullYear()%1e4,d,4)}function ne(s){var d=s.getTimezoneOffset();return(d>0?"-":(d*=-1,"+"))+On(d/60|0,"0",2)+On(d%60,"0",2)}function se(s,d){return On(s.getUTCDate(),d,2)}function Ee(s,d){return On(s.getUTCHours(),d,2)}function Qe(s,d){return On(s.getUTCHours()%12||12,d,2)}function Me(s,d){return On(1+ds.count(hs(s),s),d,3)}function Q(s,d){return On(s.getUTCMilliseconds(),d,3)}function ke(s,d){return Q(s,d)+"000"}function qt(s,d){return On(s.getUTCMonth()+1,d,2)}function rn(s,d){return On(s.getUTCMinutes(),d,2)}function pn(s,d){return On(s.getUTCSeconds(),d,2)}function an(s){var d=s.getUTCDay();return 0===d?7:d}function St(s,d){return On(jl.count(hs(s)-1,s),d,2)}function Pr(s){var d=s.getUTCDay();return d>=4||0===d?Wc(s):Wc.ceil(s)}function $s(s,d){return s=Pr(s),On(Wc.count(hs(s),s)+(4===hs(s).getUTCDay()),d,2)}function Ei(s){return s.getUTCDay()}function sr(s,d){return On(Uc.count(hs(s)-1,s),d,2)}function oi(s,d){return On(s.getUTCFullYear()%100,d,2)}function iu(s,d){return On((s=Pr(s)).getUTCFullYear()%100,d,2)}function ru(s,d){return On(s.getUTCFullYear()%1e4,d,4)}function Sh(s,d){var h=s.getUTCDay();return On((s=h>=4||0===h?Wc(s):Wc.ceil(s)).getUTCFullYear()%1e4,d,4)}function qc(){return"+0000"}function Xm(){return"%"}function ou(s){return+s}function Qm(s){return Math.floor(+s/1e3)}function Tv(s){return new Date(s)}function Ev(s){return s instanceof Date?+s:+new Date(+s)}function Mv(s,d,h,p,b,w,D,I,P,R){var $=Rm(),ee=$.invert,W=$.domain,le=R(".%L"),ze=R(":%S"),At=R("%I:%M"),we=R("%I %p"),fe=R("%a %d"),Ze=R("%b %d"),Ie=R("%B"),Je=R("%Y");function tt(Re){return(P(Re)=12)]},q:function Xt(ot){return 1+~~(ot.getMonth()/3)},Q:ou,s:Qm,S:Ym,u:Wp,U:Km,V:l,w:f,W:_,x:null,X:null,y:x,Y:L,Z:ne,"%":Xm},Je={a:function Xi(ot){return D[ot.getUTCDay()]},A:function si(ot){return w[ot.getUTCDay()]},b:function ai(ot){return P[ot.getUTCMonth()]},B:function Qi(ot){return I[ot.getUTCMonth()]},c:null,d:se,e:se,f:ke,g:iu,G:Sh,H:Ee,I:Qe,j:Me,L:Q,m:qt,M:rn,p:function Ln(ot){return b[+(ot.getUTCHours()>=12)]},q:function ji(ot){return 1+~~(ot.getUTCMonth()/3)},Q:ou,s:Qm,S:pn,u:an,U:St,V:$s,w:Ei,W:sr,x:null,X:null,y:oi,Y:ru,Z:qc,"%":Xm},tt={a:function hn(ot,ln,qe){var T=le.exec(ln.slice(qe));return T?(ot.w=ze.get(T[0].toLowerCase()),qe+T[0].length):-1},A:function st(ot,ln,qe){var T=ee.exec(ln.slice(qe));return T?(ot.w=W.get(T[0].toLowerCase()),qe+T[0].length):-1},b:function mn(ot,ln,qe){var T=fe.exec(ln.slice(qe));return T?(ot.m=Ze.get(T[0].toLowerCase()),qe+T[0].length):-1},B:function Ye(ot,ln,qe){var T=At.exec(ln.slice(qe));return T?(ot.m=we.get(T[0].toLowerCase()),qe+T[0].length):-1},c:function G(ot,ln,qe){return gn(ot,d,ln,qe)},d:Jd,e:Jd,f:$o,g:Dh,G:Wm,H:qm,I:qm,j:Hp,L:zp,m:Zm,M:Th,p:function Gn(ot,ln,qe){var T=R.exec(ln.slice(qe));return T?(ot.p=$.get(T[0].toLowerCase()),qe+T[0].length):-1},q:Gm,Q:jp,s:eu,S:Zc,u:or,U:Gc,V:Qd,w:xh,W:wh,x:function Ke(ot,ln,qe){return gn(ot,h,ln,qe)},X:function ve(ot,ln,qe){return gn(ot,p,ln,qe)},y:Dh,Y:Wm,Z:Vp,"%":$p};function Re(ot,ln){return function(qe){var bo,Yt,Bi,T=[],ki=-1,Kn=0,_o=ot.length;for(qe instanceof Date||(qe=new Date(+qe));++ki<_o;)37===ot.charCodeAt(ki)&&(T.push(ot.slice(Kn,ki)),null!=(Yt=jm[bo=ot.charAt(++ki)])?bo=ot.charAt(++ki):Yt="e"===bo?" ":"0",(Bi=ln[bo])&&(bo=Bi(qe,Yt)),T.push(bo),Kn=ki+1);return T.push(ot.slice(Kn,ki)),T.join("")}}function Bt(ot,ln){return function(qe){var Kn,_o,T=Ya(1900,void 0,1);if(gn(T,ot,qe+="",0)!=qe.length)return null;if("Q"in T)return new Date(T.Q);if("s"in T)return new Date(1e3*T.s+("L"in T?T.L:0));if(ln&&!("Z"in T)&&(T.Z=0),"p"in T&&(T.H=T.H%12+12*T.p),void 0===T.m&&(T.m="q"in T?T.q:0),"V"in T){if(T.V<1||T.V>53)return null;"w"in T||(T.w=1),"Z"in T?(_o=(Kn=Xd(Ya(T.y,0,1))).getUTCDay(),Kn=_o>4||0===_o?Uc.ceil(Kn):Uc(Kn),Kn=ds.offset(Kn,7*(T.V-1)),T.y=Kn.getUTCFullYear(),T.m=Kn.getUTCMonth(),T.d=Kn.getUTCDate()+(T.w+6)%7):(_o=(Kn=Ch(Ya(T.y,0,1))).getDay(),Kn=_o>4||0===_o?Bs.ceil(Kn):Bs(Kn),Kn=vi.offset(Kn,7*(T.V-1)),T.y=Kn.getFullYear(),T.m=Kn.getMonth(),T.d=Kn.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),_o="Z"in T?Xd(Ya(T.y,0,1)).getUTCDay():Ch(Ya(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+7*T.W-(_o+5)%7:T.w+7*T.U-(_o+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,Xd(T)):Ch(T)}}function gn(ot,ln,qe,T){for(var bo,Yt,ki=0,Kn=ln.length,_o=qe.length;ki=_o)return-1;if(37===(bo=ln.charCodeAt(ki++))){if(bo=ln.charAt(ki++),!(Yt=tt[bo in jm?ln.charAt(ki++):bo])||(T=Yt(ot,qe,T))<0)return-1}else if(bo!=qe.charCodeAt(T++))return-1}return T}return Ie.x=Re(h,Ie),Ie.X=Re(p,Ie),Ie.c=Re(d,Ie),Je.x=Re(h,Je),Je.X=Re(p,Je),Je.c=Re(d,Je),{format:function(ot){var ln=Re(ot+="",Ie);return ln.toString=function(){return ot},ln},parse:function(ot){var ln=Bt(ot+="",!1);return ln.toString=function(){return ot},ln},utcFormat:function(ot){var ln=Re(ot+="",Je);return ln.toString=function(){return ot},ln},utcParse:function(ot){var ln=Bt(ot+="",!0);return ln.toString=function(){return ot},ln}}}(s),Ah=Zl.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Sv=function Gp(s){for(var d=s.length/6|0,h=new Array(d),p=0;p=1?no:s<=-1?-no:Math.asin(s)}const Yp=Math.PI,Kp=2*Yp,Kc=1e-6,Iv=Kp-Kc;function Xp(s){this._+=s[0];for(let d=1,h=s.length;d=0))throw new Error(`invalid digits: ${s}`);if(d>15)return Xp;const h=10**d;return function(p){this._+=p[0];for(let b=1,w=p.length;bKc)if(Math.abs(ee*P-R*$)>Kc&&w){let le=p-D,ze=b-I,At=P*P+R*R,we=le*le+ze*ze,fe=Math.sqrt(At),Ze=Math.sqrt(W),Ie=w*Math.tan((Yp-Math.acos((At+W-we)/(2*fe*Ze)))/2),Je=Ie/Ze,tt=Ie/fe;Math.abs(Je-1)>Kc&&this._append`L${d+Je*$},${h+Je*ee}`,this._append`A${w},${w},0,0,${+(ee*le>$*ze)},${this._x1=d+tt*P},${this._y1=h+tt*R}`}else this._append`L${this._x1=d},${this._y1=h}`}arc(d,h,p,b,w,D){if(d=+d,h=+h,D=!!D,(p=+p)<0)throw new Error(`negative radius: ${p}`);let I=p*Math.cos(b),P=p*Math.sin(b),R=d+I,$=h+P,ee=1^D,W=D?b-w:w-b;null===this._x1?this._append`M${R},${$}`:(Math.abs(this._x1-R)>Kc||Math.abs(this._y1-$)>Kc)&&this._append`L${R},${$}`,p&&(W<0&&(W=W%Kp+Kp),W>Iv?this._append`A${p},${p},0,1,${ee},${d-I},${h-P}A${p},${p},0,1,${ee},${this._x1=R},${this._y1=$}`:W>Kc&&this._append`A${p},${p},0,${+(W>=Yp)},${ee},${this._x1=d+p*Math.cos(w)},${this._y1=h+p*Math.sin(w)}`)}rect(d,h,p,b){this._append`M${this._x0=this._x1=+d},${this._y0=this._y1=+h}h${p=+p}v${+b}h${-p}Z`}toString(){return this._}}function Fh(s){let d=3;return s.digits=function(h){if(!arguments.length)return d;if(null==h)d=null;else{const p=Math.floor(h);if(!(p>=0))throw new RangeError(`invalid digits: ${h}`);d=p}return s},()=>new tf(d)}function Xa(s){return s.innerRadius}function Oh(s){return s.outerRadius}function U_(s){return s.startAngle}function W_(s){return s.endAngle}function G_(s){return s&&s.padAngle}function Qp(s,d,h,p,b,w,D){var I=s-h,P=d-p,R=(D?w:-w)/au(I*I+P*P),$=R*P,ee=-R*I,W=s+$,le=d+ee,ze=h+$,At=p+ee,we=(W+ze)/2,fe=(le+At)/2,Ze=ze-W,Ie=At-le,Je=Ze*Ze+Ie*Ie,tt=b-w,Re=W*At-ze*le,Bt=(Ie<0?-1:1)*au(Yc(0,tt*tt*Je-Re*Re)),gn=(Re*Ie-Ze*Bt)/Je,Gn=(-Re*Ze-Ie*Bt)/Je,hn=(Re*Ie+Ze*Bt)/Je,st=(-Re*Ze+Ie*Bt)/Je,mn=gn-we,Ye=Gn-fe,G=hn-we,Ke=st-fe;return mn*mn+Ye*Ye>G*G+Ke*Ke&&(gn=hn,Gn=st),{cx:gn,cy:Gn,x01:-$,y01:-ee,x11:gn*(b/tt-1),y11:Gn*(b/tt-1)}}function Ow(){var s=Xa,d=Oh,h=Mi(0),p=null,b=U_,w=W_,D=G_,I=null,P=Fh(R);function R(){var $,ee,W=+s.apply(this,arguments),le=+d.apply(this,arguments),ze=b.apply(this,arguments)-no,At=w.apply(this,arguments)-no,we=Zp(At-ze),fe=At>ze;if(I||(I=$=P()),leto)if(we>Uo-to)I.moveTo(le*Yl(ze),le*ya(ze)),I.arc(0,0,le,ze,At,!fe),W>to&&(I.moveTo(W*Yl(At),W*ya(At)),I.arc(0,0,W,At,ze,fe));else{var Ye,G,Ze=ze,Ie=At,Je=ze,tt=At,Re=we,Bt=we,gn=D.apply(this,arguments)/2,Gn=gn>to&&(p?+p.apply(this,arguments):au(W*W+le*le)),hn=qp(Zp(le-W)/2,+h.apply(this,arguments)),st=hn,mn=hn;if(Gn>to){var Ke=j_(Gn/W*ya(gn)),ve=j_(Gn/le*ya(gn));(Re-=2*Ke)>to?(Je+=Ke*=fe?1:-1,tt-=Ke):(Re=0,Je=tt=(ze+At)/2),(Bt-=2*ve)>to?(Ze+=ve*=fe?1:-1,Ie-=ve):(Bt=0,Ze=Ie=(ze+At)/2)}var $e=le*Yl(Ze),Dt=le*ya(Ze),ct=W*Yl(tt),ht=W*ya(tt);if(hn>to){var ai,$t=le*Yl(Ie),Xt=le*ya(Ie),Xi=W*Yl(Je),si=W*ya(Je);if(we1?0:s<-1?Ih:Math.acos(s)}((Qi*ji+Ln*ot)/(au(Qi*Qi+Ln*Ln)*au(ji*ji+ot*ot)))/2),qe=au(ai[0]*ai[0]+ai[1]*ai[1]);st=qp(hn,(W-qe)/(ln-1)),mn=qp(hn,(le-qe)/(ln+1))}else st=mn=0}Bt>to?mn>to?(Ye=Qp(Xi,si,$e,Dt,le,mn,fe),G=Qp($t,Xt,ct,ht,le,mn,fe),I.moveTo(Ye.cx+Ye.x01,Ye.cy+Ye.y01),mnto&&Re>to?st>to?(Ye=Qp(ct,ht,$t,Xt,W,-st,fe),G=Qp($e,Dt,Xi,si,W,-st,fe),I.lineTo(Ye.cx+Ye.x01,Ye.cy+Ye.y01),sts?1:d>=s?0:NaN}function Vv(s){return s}function Y_(){var s=Vv,d=Bv,h=null,p=Mi(0),b=Mi(Uo),w=Mi(0);function D(I){var P,$,ee,fe,Je,R=(I=nf(I)).length,W=0,le=new Array(R),ze=new Array(R),At=+p.apply(this,arguments),we=Math.min(Uo,Math.max(-Uo,b.apply(this,arguments)-At)),Ze=Math.min(Math.abs(we)/R,w.apply(this,arguments)),Ie=Ze*(we<0?-1:1);for(P=0;P0&&(W+=Je);for(null!=d?le.sort(function(tt,Re){return d(ze[tt],ze[Re])}):null!=h&&le.sort(function(tt,Re){return h(I[tt],I[Re])}),P=0,ee=W?(we-R*Ie)/W:0;P0?Je*ee:0)+Ie,padAngle:Ze};return ze}return D.value=function(I){return arguments.length?(s="function"==typeof I?I:Mi(+I),D):s},D.sortValues=function(I){return arguments.length?(d=I,h=null,D):d},D.sort=function(I){return arguments.length?(h=I,d=null,D):h},D.startAngle=function(I){return arguments.length?(p="function"==typeof I?I:Mi(+I),D):p},D.endAngle=function(I){return arguments.length?(b="function"==typeof I?I:Mi(+I),D):b},D.padAngle=function(I){return arguments.length?(w="function"==typeof I?I:Mi(+I),D):w},D}function js(){}function Ph(s,d,h){s._context.bezierCurveTo((2*s._x0+s._x1)/3,(2*s._y0+s._y1)/3,(s._x0+2*s._x1)/3,(s._y0+2*s._y1)/3,(s._x0+4*s._x1+d)/6,(s._y0+4*s._y1+h)/6)}function lu(s){this._context=s}function Hv(s){return new lu(s)}function zn(s){this._context=s}function K_(s){return new zn(s)}function X_(s){this._context=s}function Jp(s){return new X_(s)}Pv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;default:this._context.lineTo(s,d)}}},lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ph(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ph(this,s,d)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=d}},zn.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._x2=s,this._y2=d;break;case 1:this._point=2,this._x3=s,this._y3=d;break;case 2:this._point=3,this._x4=s,this._y4=d,this._context.moveTo((this._x0+4*this._x1+s)/6,(this._y0+4*this._y1+d)/6);break;default:Ph(this,s,d)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=d}},X_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var h=(this._x0+4*this._x1+s)/6,p=(this._y0+4*this._y1+d)/6;this._line?this._context.lineTo(h,p):this._context.moveTo(h,p);break;case 3:this._point=4;default:Ph(this,s,d)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=d}};class eg{constructor(d,h){this._context=d,this._x=h}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(d,h){switch(d=+d,h=+h,this._point){case 0:this._point=1,this._line?this._context.lineTo(d,h):this._context.moveTo(d,h);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+d)/2,this._y0,this._x0,h,d,h):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+h)/2,d,this._y0,d,h)}this._x0=d,this._y0=h}}function $v(s){return new eg(s,!0)}function jv(s){return new eg(s,!1)}function Q_(s,d){this._basis=new lu(s),this._beta=d}Q_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var s=this._x,d=this._y,h=s.length-1;if(h>0)for(var P,p=s[0],b=d[0],w=s[h]-p,D=d[h]-b,I=-1;++I<=h;)this._basis.point(this._beta*s[I]+(1-this._beta)*(p+(P=I/h)*w),this._beta*d[I]+(1-this._beta)*(b+P*D));this._x=this._y=null,this._basis.lineEnd()},point:function(s,d){this._x.push(+s),this._y.push(+d)}};const Rw=function s(d){function h(p){return 1===d?new lu(p):new Q_(p,d)}return h.beta=function(p){return s(+p)},h}(.85);function tg(s,d,h){s._context.bezierCurveTo(s._x1+s._k*(s._x2-s._x0),s._y1+s._k*(s._y2-s._y0),s._x2+s._k*(s._x1-d),s._y2+s._k*(s._y1-h),s._x2,s._y2)}function Xc(s,d){this._context=s,this._k=(1-d)/6}Xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tg(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2,this._x1=s,this._y1=d;break;case 2:this._point=3;default:tg(this,s,d)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const J_=function s(d){function h(p){return new Xc(p,d)}return h.tension=function(p){return s(+p)},h}(0);function rf(s,d){this._context=s,this._k=(1-d)/6}rf.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._x3=s,this._y3=d;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=d);break;case 2:this._point=3,this._x5=s,this._y5=d;break;default:tg(this,s,d)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const eb=function s(d){function h(p){return new rf(p,d)}return h.tension=function(p){return s(+p)},h}(0);function sf(s,d){this._context=s,this._k=(1-d)/6}sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tg(this,s,d)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const Uv=function s(d){function h(p){return new sf(p,d)}return h.tension=function(p){return s(+p)},h}(0);function ng(s,d,h){var p=s._x1,b=s._y1,w=s._x2,D=s._y2;if(s._l01_a>to){var I=2*s._l01_2a+3*s._l01_a*s._l12_a+s._l12_2a,P=3*s._l01_a*(s._l01_a+s._l12_a);p=(p*I-s._x0*s._l12_2a+s._x2*s._l01_2a)/P,b=(b*I-s._y0*s._l12_2a+s._y2*s._l01_2a)/P}if(s._l23_a>to){var R=2*s._l23_2a+3*s._l23_a*s._l12_a+s._l12_2a,$=3*s._l23_a*(s._l23_a+s._l12_a);w=(w*R+s._x1*s._l23_2a-d*s._l12_2a)/$,D=(D*R+s._y1*s._l23_2a-h*s._l12_2a)/$}s._context.bezierCurveTo(p,b,w,D,s._x2,s._y2)}function ig(s,d){this._context=s,this._alpha=d}ig.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){if(s=+s,d=+d,this._point){var h=this._x2-s,p=this._y2-d;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;break;case 2:this._point=3;default:ng(this,s,d)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const tb=function s(d){function h(p){return d?new ig(p,d):new Xc(p,0)}return h.alpha=function(p){return s(+p)},h}(.5);function af(s,d){this._context=s,this._alpha=d}af.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(s,d){if(s=+s,d=+d,this._point){var h=this._x2-s,p=this._y2-d;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=s,this._y3=d;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=d);break;case 2:this._point=3,this._x5=s,this._y5=d;break;default:ng(this,s,d)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const Lw=function s(d){function h(p){return d?new af(p,d):new rf(p,0)}return h.alpha=function(p){return s(+p)},h}(.5);function lf(s,d){this._context=s,this._alpha=d}lf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,d){if(s=+s,d=+d,this._point){var h=this._x2-s,p=this._y2-d;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+p*p,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ng(this,s,d)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=d}};const Wv=function s(d){function h(p){return d?new lf(p,d):new sf(p,0)}return h.alpha=function(p){return s(+p)},h}(.5);function cf(s){this._context=s}function nb(s){return new cf(s)}function rg(s){return s<0?-1:1}function Kl(s,d,h){var p=s._x1-s._x0,b=d-s._x1,w=(s._y1-s._y0)/(p||b<0&&-0),D=(h-s._y1)/(b||p<0&&-0),I=(w*b+D*p)/(p+b);return(rg(w)+rg(D))*Math.min(Math.abs(w),Math.abs(D),.5*Math.abs(I))||0}function ib(s,d){var h=s._x1-s._x0;return h?(3*(s._y1-s._y0)/h-d)/2:d}function Rh(s,d,h){var p=s._x0,w=s._x1,D=s._y1,I=(w-p)/3;s._context.bezierCurveTo(p+I,s._y0+I*d,w-I,D-I*h,w,D)}function Qc(s){this._context=s}function rb(s){this._context=new df(s)}function df(s){this._context=s}function uf(s){return new Qc(s)}function Jc(s){return new rb(s)}function og(s){this._context=s}function hf(s){var d,p,h=s.length-1,b=new Array(h),w=new Array(h),D=new Array(h);for(b[0]=0,w[0]=2,D[0]=s[0]+2*s[1],d=1;d=0;--d)b[d]=(D[d]-b[d+1])/w[d];for(w[h-1]=(s[h]+b[h-1])/2,d=0;d=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(s,d){switch(s=+s,d=+d,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,d):this._context.moveTo(s,d);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,d),this._context.lineTo(s,d);else{var h=this._x*(1-this._t)+s*this._t;this._context.lineTo(h,this._y),this._context.lineTo(h,d)}}this._x=s,this._y=d}},du.prototype={constructor:du,scale:function(s){return 1===s?this:new du(this.k*s,this.x,this.y)},translate:function(s,d){return 0===s&0===d?this:new du(this.k,this.x+this.k*s,this.y+this.k*d)},apply:function(s){return[s[0]*this.k+this.x,s[1]*this.k+this.y]},applyX:function(s){return s*this.k+this.x},applyY:function(s){return s*this.k+this.y},invert:function(s){return[(s[0]-this.x)/this.k,(s[1]-this.y)/this.k]},invertX:function(s){return(s-this.x)/this.k},invertY:function(s){return(s-this.y)/this.k},rescaleX:function(s){return s.copy().domain(s.range().map(this.invertX,this).map(s.invert,s))},rescaleY:function(s){return s.copy().domain(s.range().map(this.invertY,this).map(s.invert,s))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new du(1,0,0)},4556:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(8267),J=M(3796);const _e=new class z{constructor(S,oe){this.color=oe,this.changed=!1,this.data=S,this.type=new class re{constructor(){this.type=J.w.ALL}get(){return this.type}set(S){if(this.type&&this.type!==S)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=S}reset(){this.type=J.w.ALL}is(S){return this.type===S}}}set(S,oe){return this.color=oe,this.changed=!1,this.data=S,this.type.type=J.w.ALL,this}_ensureHSL(){const S=this.data,{h:oe,s:Oe,l:Ne}=S;void 0===oe&&(S.h=j.Z.channel.rgb2hsl(S,"h")),void 0===Oe&&(S.s=j.Z.channel.rgb2hsl(S,"s")),void 0===Ne&&(S.l=j.Z.channel.rgb2hsl(S,"l"))}_ensureRGB(){const S=this.data,{r:oe,g:Oe,b:Ne}=S;void 0===oe&&(S.r=j.Z.channel.hsl2rgb(S,"r")),void 0===Oe&&(S.g=j.Z.channel.hsl2rgb(S,"g")),void 0===Ne&&(S.b=j.Z.channel.hsl2rgb(S,"b"))}get r(){const S=this.data,oe=S.r;return this.type.is(J.w.HSL)||void 0===oe?(this._ensureHSL(),j.Z.channel.hsl2rgb(S,"r")):oe}get g(){const S=this.data,oe=S.g;return this.type.is(J.w.HSL)||void 0===oe?(this._ensureHSL(),j.Z.channel.hsl2rgb(S,"g")):oe}get b(){const S=this.data,oe=S.b;return this.type.is(J.w.HSL)||void 0===oe?(this._ensureHSL(),j.Z.channel.hsl2rgb(S,"b")):oe}get h(){const S=this.data,oe=S.h;return this.type.is(J.w.RGB)||void 0===oe?(this._ensureRGB(),j.Z.channel.rgb2hsl(S,"h")):oe}get s(){const S=this.data,oe=S.s;return this.type.is(J.w.RGB)||void 0===oe?(this._ensureRGB(),j.Z.channel.rgb2hsl(S,"s")):oe}get l(){const S=this.data,oe=S.l;return this.type.is(J.w.RGB)||void 0===oe?(this._ensureRGB(),j.Z.channel.rgb2hsl(S,"l")):oe}get a(){return this.data.a}set r(S){this.type.set(J.w.RGB),this.changed=!0,this.data.r=S}set g(S){this.type.set(J.w.RGB),this.changed=!0,this.data.g=S}set b(S){this.type.set(J.w.RGB),this.changed=!0,this.data.b=S}set h(S){this.type.set(J.w.HSL),this.changed=!0,this.data.h=S}set s(S){this.type.set(J.w.HSL),this.changed=!0,this.data.s=S}set l(S){this.type.set(J.w.HSL),this.changed=!0,this.data.l=S}set a(S){this.changed=!0,this.data.a=S}}({r:0,g:0,b:0,a:0},"transparent")},486:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Ne});var j=M(4556),J=M(3796);const re={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:be=>{if(35!==be.charCodeAt(0))return;const Y=be.match(re.re);if(!Y)return;const pe=Y[1],he=parseInt(pe,16),Ue=pe.length,Xe=Ue%4==0,pt=Ue>4,Tt=pt?1:17,cn=pt?8:4,Fe=Xe?0:-1,dn=pt?255:15;return j.Z.set({r:(he>>cn*(Fe+3)&dn)*Tt,g:(he>>cn*(Fe+2)&dn)*Tt,b:(he>>cn*(Fe+1)&dn)*Tt,a:Xe?(he&dn)*Tt/255:1},be)},stringify:be=>{const{r:Y,g:pe,b:he,a:Ue}=be;return Ue<1?`#${J.Q[Math.round(Y)]}${J.Q[Math.round(pe)]}${J.Q[Math.round(he)]}${J.Q[Math.round(255*Ue)]}`:`#${J.Q[Math.round(Y)]}${J.Q[Math.round(pe)]}${J.Q[Math.round(he)]}`}},q=re;var z=M(8267);const ae={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:be=>{const Y=be.match(ae.hueRe);if(Y){const[,pe,he]=Y;switch(he){case"grad":return z.Z.channel.clamp.h(.9*parseFloat(pe));case"rad":return z.Z.channel.clamp.h(180*parseFloat(pe)/Math.PI);case"turn":return z.Z.channel.clamp.h(360*parseFloat(pe))}}return z.Z.channel.clamp.h(parseFloat(be))},parse:be=>{const Y=be.charCodeAt(0);if(104!==Y&&72!==Y)return;const pe=be.match(ae.re);if(!pe)return;const[,he,Ue,Xe,pt,Tt]=pe;return j.Z.set({h:ae._hue2deg(he),s:z.Z.channel.clamp.s(parseFloat(Ue)),l:z.Z.channel.clamp.l(parseFloat(Xe)),a:pt?z.Z.channel.clamp.a(Tt?parseFloat(pt)/100:parseFloat(pt)):1},be)},stringify:be=>{const{h:Y,s:pe,l:he,a:Ue}=be;return Ue<1?`hsla(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}%, ${z.Z.lang.round(he)}%, ${Ue})`:`hsl(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}%, ${z.Z.lang.round(he)}%)`}},me=ae,_e={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:be=>{be=be.toLowerCase();const Y=_e.colors[be];if(Y)return q.parse(Y)},stringify:be=>{const Y=q.stringify(be);for(const pe in _e.colors)if(_e.colors[pe]===Y)return pe}},X=_e,S={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:be=>{const Y=be.charCodeAt(0);if(114!==Y&&82!==Y)return;const pe=be.match(S.re);if(!pe)return;const[,he,Ue,Xe,pt,Tt,cn,Fe,dn]=pe;return j.Z.set({r:z.Z.channel.clamp.r(Ue?2.55*parseFloat(he):parseFloat(he)),g:z.Z.channel.clamp.g(pt?2.55*parseFloat(Xe):parseFloat(Xe)),b:z.Z.channel.clamp.b(cn?2.55*parseFloat(Tt):parseFloat(Tt)),a:Fe?z.Z.channel.clamp.a(dn?parseFloat(Fe)/100:parseFloat(Fe)):1},be)},stringify:be=>{const{r:Y,g:pe,b:he,a:Ue}=be;return Ue<1?`rgba(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}, ${z.Z.lang.round(he)}, ${z.Z.lang.round(Ue)})`:`rgb(${z.Z.lang.round(Y)}, ${z.Z.lang.round(pe)}, ${z.Z.lang.round(he)})`}},oe=S,Ne={format:{keyword:_e,hex:q,rgb:S,rgba:S,hsl:ae,hsla:ae},parse:be=>{if("string"!=typeof be)return be;const Y=q.parse(be)||oe.parse(be)||me.parse(be)||X.parse(be);if(Y)return Y;throw new Error(`Unsupported color format: "${be}"`)},stringify:be=>!be.changed&&be.color?be.color:be.type.is(J.w.HSL)||void 0===be.data.r?me.stringify(be):be.a<1||!Number.isInteger(be.r)||!Number.isInteger(be.g)||!Number.isInteger(be.b)?oe.stringify(be):q.stringify(be)}},3796:(rt,de,M)=>{"use strict";M.d(de,{Q:()=>J,w:()=>re});var j=M(8267);const J={};for(let q=0;q<=255;q++)J[q]=j.Z.unit.dec2hex(q);const re={ALL:0,RGB:1,HSL:2}},9846:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(8267),J=M(486);const q=(z,ae,me)=>{const _e=J.Z.parse(z),X=_e[ae],S=j.Z.channel.clamp[ae](X+me);return X!==S&&(_e[ae]=S),J.Z.stringify(_e)}},2961:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(8267),J=M(486);const q=(z,ae)=>{const me=J.Z.parse(z);for(const _e in ae)me[_e]=j.Z.channel.clamp[_e](ae[_e]);return J.Z.stringify(me)}},8674:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(9846);const re=(q,z)=>(0,j.Z)(q,"l",-z)},5847:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(8267),J=M(486);const _e=X=>!(X=>(X=>{const{r:S,g:oe,b:Oe}=J.Z.parse(X),Ne=.2126*j.Z.channel.toLinear(S)+.7152*j.Z.channel.toLinear(oe)+.0722*j.Z.channel.toLinear(Oe);return j.Z.lang.round(Ne)})(X)>=.5)(X)},1223:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(9846);const re=(q,z)=>(0,j.Z)(q,"l",z)},3396:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>ae});var j=M(8267),J=M(4556),re=M(486),q=M(2961);const ae=(me,_e,X=0,S=1)=>{if("number"!=typeof me)return(0,q.Z)(me,{a:_e});const oe=J.Z.set({r:j.Z.channel.clamp.r(me),g:j.Z.channel.clamp.g(_e),b:j.Z.channel.clamp.b(X),a:j.Z.channel.clamp.a(S)});return re.Z.stringify(oe)}},8267:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});const j={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:X=>X>=255?255:X<0?0:X,g:X=>X>=255?255:X<0?0:X,b:X=>X>=255?255:X<0?0:X,h:X=>X%360,s:X=>X>=100?100:X<0?0:X,l:X=>X>=100?100:X<0?0:X,a:X=>X>=1?1:X<0?0:X},toLinear:X=>{const S=X/255;return X>.03928?Math.pow((S+.055)/1.055,2.4):S/12.92},hue2rgb:(X,S,oe)=>(oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?X+6*(S-X)*oe:oe<.5?S:oe<2/3?X+(S-X)*(2/3-oe)*6:X),hsl2rgb:({h:X,s:S,l:oe},Oe)=>{if(!S)return 2.55*oe;X/=360,S/=100;const Ne=(oe/=100)<.5?oe*(1+S):oe+S-oe*S,be=2*oe-Ne;switch(Oe){case"r":return 255*j.hue2rgb(be,Ne,X+1/3);case"g":return 255*j.hue2rgb(be,Ne,X);case"b":return 255*j.hue2rgb(be,Ne,X-1/3)}},rgb2hsl:({r:X,g:S,b:oe},Oe)=>{X/=255,S/=255,oe/=255;const Ne=Math.max(X,S,oe),be=Math.min(X,S,oe),Y=(Ne+be)/2;if("l"===Oe)return 100*Y;if(Ne===be)return 0;const pe=Ne-be;if("s"===Oe)return 100*(Y>.5?pe/(2-Ne-be):pe/(Ne+be));switch(Ne){case X:return 60*((S-oe)/pe+(SS>oe?Math.min(S,Math.max(oe,X)):Math.min(oe,Math.max(S,X)),round:X=>Math.round(1e10*X)/1e10},unit:{dec2hex:X=>{const S=Math.round(X).toString(16);return S.length>1?S:`0${S}`}}}},2622:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>he});var re=M(3093);const z=function q(Ue,Xe){for(var pt=Ue.length;pt--;)if((0,re.Z)(Ue[pt][0],Xe))return pt;return-1};var me=Array.prototype.splice;function pe(Ue){var Xe=-1,pt=null==Ue?0:Ue.length;for(this.clear();++Xe-1},pe.prototype.set=function be(Ue,Xe){var pt=this.__data__,Tt=z(pt,Ue);return Tt<0?(++this.size,pt.push([Ue,Xe])):pt[Tt][1]=Xe,this};const he=pe},9329:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(3858),J=M(5946);const q=(0,j.Z)(J.Z,"Map")},3639:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Jn});const re=(0,M(3858).Z)(Object,"create");var S=Object.prototype.hasOwnProperty;var be=Object.prototype.hasOwnProperty;function pt(ut){var it=-1,lt=null==ut?0:ut.length;for(this.clear();++it{"use strict";M.d(de,{Z:()=>q});var j=M(3858),J=M(5946);const q=(0,j.Z)(J.Z,"Set")},5343:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>pe});var j=M(2622);var S=M(9329),oe=M(3639);function Y(he){var Ue=this.__data__=new j.Z(he);this.size=Ue.size}Y.prototype.clear=function J(){this.__data__=new j.Z,this.size=0},Y.prototype.delete=function q(he){var Ue=this.__data__,Xe=Ue.delete(he);return this.size=Ue.size,Xe},Y.prototype.get=function ae(he){return this.__data__.get(he)},Y.prototype.has=function _e(he){return this.__data__.has(he)},Y.prototype.set=function Ne(he,Ue){var Xe=this.__data__;if(Xe instanceof j.Z){var pt=Xe.__data__;if(!S.Z||pt.length<199)return pt.push([he,Ue]),this.size=++Xe.size,this;Xe=this.__data__=new oe.Z(pt)}return Xe.set(he,Ue),this.size=Xe.size,this};const pe=Y},8492:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=M(5946).Z.Symbol},1630:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=M(5946).Z.Uint8Array},3487:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>oe});var re=M(4825),q=M(4177),z=M(5202),ae=M(6667),me=M(7583),X=Object.prototype.hasOwnProperty;const oe=function S(Oe,Ne){var be=(0,q.Z)(Oe),Y=!be&&(0,re.Z)(Oe),pe=!be&&!Y&&(0,z.Z)(Oe),he=!be&&!Y&&!pe&&(0,me.Z)(Oe),Ue=be||Y||pe||he,Xe=Ue?function j(Oe,Ne){for(var be=-1,Y=Array(Oe);++be{"use strict";M.d(de,{Z:()=>ae});var j=M(3496),J=M(3093),q=Object.prototype.hasOwnProperty;const ae=function z(me,_e,X){var S=me[_e];(!q.call(me,_e)||!(0,J.Z)(S,X)||void 0===X&&!(_e in me))&&(0,j.Z)(me,_e,X)}},3496:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(2370);const re=function J(q,z,ae){"__proto__"==z&&j.Z?(0,j.Z)(q,z,{configurable:!0,enumerable:!0,value:ae,writable:!0}):q[z]=ae}},139:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});const q=function j(z){return function(ae,me,_e){for(var X=-1,S=Object(ae),oe=_e(ae),Oe=oe.length;Oe--;){var Ne=oe[z?Oe:++X];if(!1===me(S[Ne],Ne,S))break}return ae}}()},7079:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>pe});var j=M(8492),J=Object.prototype,re=J.hasOwnProperty,q=J.toString,z=j.Z?j.Z.toStringTag:void 0;var X=Object.prototype.toString;var be=j.Z?j.Z.toStringTag:void 0;const pe=function Y(he){return null==he?void 0===he?"[object Undefined]":"[object Null]":be&&be in Object(he)?function ae(he){var Ue=re.call(he,z),Xe=he[z];try{he[z]=void 0;var pt=!0}catch{}var Tt=q.call(he);return pt&&(Ue?he[z]=Xe:delete he[z]),Tt}(he):function S(he){return X.call(he)}(he)}},4884:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(1986);const q=(0,M(5820).Z)(Object.keys,Object);var ae=Object.prototype.hasOwnProperty;const _e=function me(X){if(!(0,j.Z)(X))return q(X);var S=[];for(var oe in Object(X))ae.call(X,oe)&&"constructor"!=oe&&S.push(oe);return S}},7965:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>z});var j=M(9940),J=M(5604),re=M(8959);const z=function q(ae,me){return(0,re.Z)((0,J.Z)(ae,me,j.Z),ae+"")}},6932:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return function(q){return re(q)}}},3116:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(1630);const re=function J(q){var z=new q.constructor(q.byteLength);return new j.Z(z).set(new j.Z(q)),z}},634:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(5946),J="object"==typeof exports&&exports&&!exports.nodeType&&exports,re=J&&"object"==typeof module&&module&&!module.nodeType&&module,z=re&&re.exports===J?j.Z.Buffer:void 0,ae=z?z.allocUnsafe:void 0;const _e=function me(X,S){if(S)return X.slice();var oe=X.length,Oe=ae?ae(oe):new X.constructor(oe);return X.copy(Oe),Oe}},9376:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=M(3116);const re=function J(q,z){var ae=z?(0,j.Z)(q.buffer):q.buffer;return new q.constructor(ae,q.byteOffset,q.length)}},8297:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re,q){var z=-1,ae=re.length;for(q||(q=Array(ae));++z{"use strict";M.d(de,{Z:()=>q});var j=M(1481),J=M(3496);const q=function re(z,ae,me,_e){var X=!me;me||(me={});for(var S=-1,oe=ae.length;++S{"use strict";M.d(de,{Z:()=>re});var j=M(3858);const re=function(){try{var q=(0,j.Z)(Object,"defineProperty");return q({},"",{}),q}catch{}}()},8346:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J="object"==typeof global&&global&&global.Object===Object&&global},3858:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>cn});var Fe,j=M(2089),re=M(5946).Z["__core-js_shared__"],z=(Fe=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+Fe:"";var _e=M(1999),X=M(4407),oe=/^\[object .+?Constructor\]$/,pe=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ue=function he(Fe){return!(!(0,_e.Z)(Fe)||function ae(Fe){return!!z&&z in Fe}(Fe))&&((0,j.Z)(Fe)?pe:oe).test((0,X.Z)(Fe))},cn=function Tt(Fe,dn){var Qn=function Xe(Fe,dn){return Fe?.[dn]}(Fe,dn);return Ue(Qn)?Qn:void 0}},5650:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=(0,M(5820).Z)(Object.getPrototypeOf,Object)},7183:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Qn});var j=M(3858),J=M(5946);const q=(0,j.Z)(J.Z,"DataView");var z=M(9329);const me=(0,j.Z)(J.Z,"Promise");var _e=M(7863);const S=(0,j.Z)(J.Z,"WeakMap");var oe=M(7079),Oe=M(4407),Ne="[object Map]",Y="[object Promise]",pe="[object Set]",he="[object WeakMap]",Ue="[object DataView]",Xe=(0,Oe.Z)(q),pt=(0,Oe.Z)(z.Z),Tt=(0,Oe.Z)(me),cn=(0,Oe.Z)(_e.Z),Fe=(0,Oe.Z)(S),dn=oe.Z;(q&&dn(new q(new ArrayBuffer(1)))!=Ue||z.Z&&dn(new z.Z)!=Ne||me&&dn(me.resolve())!=Y||_e.Z&&dn(new _e.Z)!=pe||S&&dn(new S)!=he)&&(dn=function(Et){var We=(0,oe.Z)(Et),De="[object Object]"==We?Et.constructor:void 0,xt=De?(0,Oe.Z)(De):"";if(xt)switch(xt){case Xe:return Ue;case pt:return Ne;case Tt:return Y;case cn:return pe;case Fe:return he}return We});const Qn=dn},3121:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(1999),J=Object.create;const q=function(){function X(){}return function(S){if(!(0,j.Z)(S))return{};if(J)return J(S);X.prototype=S;var oe=new X;return X.prototype=void 0,oe}}();var z=M(5650),ae=M(1986);const _e=function me(X){return"function"!=typeof X.constructor||(0,ae.Z)(X)?{}:q((0,z.Z)(X))}},6667:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var J=/^(?:0|[1-9]\d*)$/;const q=function re(z,ae){var me=typeof z;return!!(ae=ae??9007199254740991)&&("number"==me||"symbol"!=me&&J.test(z))&&z>-1&&z%1==0&&z{"use strict";M.d(de,{Z:()=>ae});var j=M(3093),J=M(8706),re=M(6667),q=M(1999);const ae=function z(me,_e,X){if(!(0,q.Z)(X))return!1;var S=typeof _e;return!!("number"==S?(0,J.Z)(X)&&(0,re.Z)(_e,X.length):"string"==S&&_e in X)&&(0,j.Z)(X[_e],me)}},1986:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});var j=Object.prototype;const re=function J(q){var z=q&&q.constructor;return q===("function"==typeof z&&z.prototype||j)}},6594:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>me});var j=M(8346),J="object"==typeof exports&&exports&&!exports.nodeType&&exports,re=J&&"object"==typeof module&&module&&!module.nodeType&&module,z=re&&re.exports===J&&j.Z.process;const me=function(){try{return re&&re.require&&re.require("util").types||z&&z.binding&&z.binding("util")}catch{}}()},5820:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re,q){return function(z){return re(q(z))}}},5604:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>z});const J=function j(ae,me,_e){switch(_e.length){case 0:return ae.call(me);case 1:return ae.call(me,_e[0]);case 2:return ae.call(me,_e[0],_e[1]);case 3:return ae.call(me,_e[0],_e[1],_e[2])}return ae.apply(me,_e)};var re=Math.max;const z=function q(ae,me,_e){return me=re(void 0===me?ae.length-1:me,0),function(){for(var X=arguments,S=-1,oe=re(X.length-me,0),Oe=Array(oe);++S{"use strict";M.d(de,{Z:()=>q});var j=M(8346),J="object"==typeof self&&self&&self.Object===Object&&self;const q=j.Z||J||Function("return this")()},8959:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Oe});var j=M(145),J=M(2370),re=M(9940),ae=800,me=16,_e=Date.now;const Oe=function X(Ne){var be=0,Y=0;return function(){var pe=_e(),he=me-(pe-Y);if(Y=pe,he>0){if(++be>=ae)return arguments[0]}else be=0;return Ne.apply(void 0,arguments)}}(J.Z?function(Ne,be){return(0,J.Z)(Ne,"toString",{configurable:!0,enumerable:!1,value:(0,j.Z)(be),writable:!0})}:re.Z)},4407:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var J=Function.prototype.toString;const q=function re(z){if(null!=z){try{return J.call(z)}catch{}try{return z+""}catch{}}return""}},145:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return function(){return re}}},3093:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re,q){return re===q||re!=re&&q!=q}},9940:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return re}},4825:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>S});var j=M(7079),J=M(214);const z=function q(oe){return(0,J.Z)(oe)&&"[object Arguments]"==(0,j.Z)(oe)};var ae=Object.prototype,me=ae.hasOwnProperty,_e=ae.propertyIsEnumerable;const S=z(function(){return arguments}())?z:function(oe){return(0,J.Z)(oe)&&me.call(oe,"callee")&&!_e.call(oe,"callee")}},4177:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=Array.isArray},8706:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(2089),J=M(8696);const q=function re(z){return null!=z&&(0,J.Z)(z.length)&&!(0,j.Z)(z)}},7118:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(8706),J=M(214);const q=function re(z){return(0,J.Z)(z)&&(0,j.Z)(z)}},5202:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>S});var j=M(5946),q="object"==typeof exports&&exports&&!exports.nodeType&&exports,z=q&&"object"==typeof module&&module&&!module.nodeType&&module,me=z&&z.exports===q?j.Z.Buffer:void 0;const S=(me?me.isBuffer:void 0)||function J(){return!1}},9378:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>be});var j=M(4884),J=M(7183),re=M(4825),q=M(4177),z=M(8706),ae=M(5202),me=M(1986),_e=M(7583),Oe=Object.prototype.hasOwnProperty;const be=function Ne(Y){if(null==Y)return!0;if((0,z.Z)(Y)&&((0,q.Z)(Y)||"string"==typeof Y||"function"==typeof Y.splice||(0,ae.Z)(Y)||(0,_e.Z)(Y)||(0,re.Z)(Y)))return!Y.length;var pe=(0,J.Z)(Y);if("[object Map]"==pe||"[object Set]"==pe)return!Y.size;if((0,me.Z)(Y))return!(0,j.Z)(Y).length;for(var he in Y)if(Oe.call(Y,he))return!1;return!0}},2089:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>_e});var j=M(7079),J=M(1999);const _e=function me(X){if(!(0,J.Z)(X))return!1;var S=(0,j.Z)(X);return"[object Function]"==S||"[object GeneratorFunction]"==S||"[object AsyncFunction]"==S||"[object Proxy]"==S}},8696:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>re});const re=function J(q){return"number"==typeof q&&q>-1&&q%1==0&&q<=9007199254740991}},1999:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){var q=typeof re;return null!=re&&("object"==q||"function"==q)}},214:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>J});const J=function j(re){return null!=re&&"object"==typeof re}},2031:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>oe});var j=M(7079),J=M(5650),re=M(214),me=Function.prototype.toString,_e=Object.prototype.hasOwnProperty,X=me.call(Object);const oe=function S(Oe){if(!(0,re.Z)(Oe)||"[object Object]"!=(0,j.Z)(Oe))return!1;var Ne=(0,J.Z)(Oe);if(null===Ne)return!0;var be=_e.call(Ne,"constructor")&&Ne.constructor;return"function"==typeof be&&be instanceof be&&me.call(be)==X}},7583:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>It});var j=M(7079),J=M(8696),re=M(214),De={};De["[object Float32Array]"]=De["[object Float64Array]"]=De["[object Int8Array]"]=De["[object Int16Array]"]=De["[object Int32Array]"]=De["[object Uint8Array]"]=De["[object Uint8ClampedArray]"]=De["[object Uint16Array]"]=De["[object Uint32Array]"]=!0,De["[object Arguments]"]=De["[object Array]"]=De["[object ArrayBuffer]"]=De["[object Boolean]"]=De["[object DataView]"]=De["[object Date]"]=De["[object Error]"]=De["[object Function]"]=De["[object Map]"]=De["[object Number]"]=De["[object Object]"]=De["[object RegExp]"]=De["[object Set]"]=De["[object String]"]=De["[object WeakMap]"]=!1;var jt=M(6932),zt=M(6594),at=zt.Z&&zt.Z.isTypedArray;const It=at?(0,jt.Z)(at):function xt(Ut){return(0,re.Z)(Ut)&&(0,J.Z)(Ut.length)&&!!De[(0,j.Z)(Ut)]}},571:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Oe});var j=M(3487),J=M(1999),re=M(1986);var me=Object.prototype.hasOwnProperty;const X=function _e(Ne){if(!(0,J.Z)(Ne))return function q(Ne){var be=[];if(null!=Ne)for(var Y in Object(Ne))be.push(Y);return be}(Ne);var be=(0,re.Z)(Ne),Y=[];for(var pe in Ne)"constructor"==pe&&(be||!me.call(Ne,pe))||Y.push(pe);return Y};var S=M(8706);const Oe=function oe(Ne){return(0,S.Z)(Ne)?(0,j.Z)(Ne,!0):X(Ne)}},2572:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>q});var j=M(3639),J="Expected a function";function re(z,ae){if("function"!=typeof z||null!=ae&&"function"!=typeof ae)throw new TypeError(J);var me=function(){var _e=arguments,X=ae?ae.apply(this,_e):_e[0],S=me.cache;if(S.has(X))return S.get(X);var oe=z.apply(this,_e);return me.cache=S.set(X,oe)||S,oe};return me.cache=new(re.Cache||j.Z),me}re.Cache=j.Z;const q=re},2986:(rt,de,M)=>{"use strict";M.d(de,{Z:()=>Pn});var j=M(5343),J=M(3496),re=M(3093);const z=function q(It,Ut,yn){(void 0!==yn&&!(0,re.Z)(It[Ut],yn)||void 0===yn&&!(Ut in It))&&(0,J.Z)(It,Ut,yn)};var ae=M(139),me=M(634),_e=M(9376),X=M(8297),S=M(3121),oe=M(4825),Oe=M(4177),Ne=M(7118),be=M(5202),Y=M(2089),pe=M(1999),he=M(2031),Ue=M(7583);const pt=function Xe(It,Ut){if(("constructor"!==Ut||"function"!=typeof It[Ut])&&"__proto__"!=Ut)return It[Ut]};var Tt=M(3276),cn=M(571);const Et=function Qn(It,Ut,yn,Ae,Jn,ut,it){var lt=pt(It,yn),Cn=pt(Ut,yn),Vn=it.get(Cn);if(Vn)z(It,yn,Vn);else{var ni=ut?ut(lt,Cn,yn+"",It,Ut,it):void 0,Cs=void 0===ni;if(Cs){var nr=(0,Oe.Z)(Cn),Ao=!nr&&(0,be.Z)(Cn),dr=!nr&&!Ao&&(0,Ue.Z)(Cn);ni=Cn,nr||Ao||dr?(0,Oe.Z)(lt)?ni=lt:(0,Ne.Z)(lt)?ni=(0,X.Z)(lt):Ao?(Cs=!1,ni=(0,me.Z)(Cn,!0)):dr?(Cs=!1,ni=(0,_e.Z)(Cn,!0)):ni=[]:(0,he.Z)(Cn)||(0,oe.Z)(Cn)?(ni=lt,(0,oe.Z)(lt)?ni=function Fe(It){return(0,Tt.Z)(It,(0,cn.Z)(It))}(lt):(!(0,pe.Z)(lt)||(0,Y.Z)(lt))&&(ni=(0,S.Z)(Cn))):Cs=!1}Cs&&(it.set(Cn,ni),Jn(ni,Cn,Ae,ut,it),it.delete(Cn)),z(It,yn,ni)}},De=function We(It,Ut,yn,Ae,Jn){It!==Ut&&(0,ae.Z)(Ut,function(ut,it){if(Jn||(Jn=new j.Z),(0,pe.Z)(ut))Et(It,Ut,it,yn,We,Ae,Jn);else{var lt=Ae?Ae(pt(It,it),ut,it+"",It,Ut,Jn):void 0;void 0===lt&&(lt=ut),z(It,it,lt)}},cn.Z)};var xt=M(7965),Ge=M(4810);const Pn=function jt(It){return(0,xt.Z)(function(Ut,yn){var Ae=-1,Jn=yn.length,ut=Jn>1?yn[Jn-1]:void 0,it=Jn>2?yn[2]:void 0;for(ut=It.length>3&&"function"==typeof ut?(Jn--,ut):void 0,it&&(0,Ge.Z)(yn[0],yn[1],it)&&(ut=Jn<3?void 0:ut,Jn=1),Ut=Object(Ut);++Ae{"use strict";M.d(de,{A:()=>je,B:()=>Es,C:()=>Pu,D:()=>Md,E:()=>Wt,F:()=>Li,G:()=>xl,H:()=>mc,I:()=>gr,J:()=>ws,K:()=>Ld,L:()=>Vi,M:()=>Ss,N:()=>Do,Z:()=>gc,a:()=>Ha,b:()=>Va,c:()=>Mc,d:()=>ir,e:()=>hr,f:()=>fi,g:()=>Uu,h:()=>Fn,i:()=>$u,j:()=>dm,k:()=>pi,l:()=>Lt,m:()=>ia,n:()=>Ft,o:()=>fo,p:()=>Rd,q:()=>Qr,r:()=>ra,s:()=>Xr,t:()=>Pd,u:()=>sa,v:()=>Ba,w:()=>Wr,x:()=>bl,y:()=>Kt,z:()=>Vo});var j=M(5861),J=M(458),re=M(1764),q=M(6780),z=M(8586),ae=M(2735),me=M(486),_e=M(2961);const S=(l,f)=>{const _=me.Z.parse(l),x={};for(const k in f)f[k]&&(x[k]=_[k]+f[k]);return(0,_e.Z)(l,x)};var oe=M(3396);const Y=(l,f=100)=>{const _=me.Z.parse(l);return _.r=255-_.r,_.g=255-_.g,_.b=255-_.b,((l,f,_=50)=>{const{r:x,g:k,b:L,a:H}=me.Z.parse(l),{r:ne,g:se,b:Ee,a:Qe}=me.Z.parse(f),Me=_/100,Q=2*Me-1,ke=H-Qe,rn=((Q*ke==-1?Q:(Q+ke)/(1+Q*ke))+1)/2,pn=1-rn;return(0,oe.Z)(x*rn+ne*pn,k*rn+se*pn,L*rn+Ee*pn,H*Me+Qe*(1-Me))})(_,l,f)};var pe=M(8674),he=M(1223),Ue=M(5847),Xe=M(2572),pt=M(2986),dn="comm",Qn="rule",Et="decl",xt="@import",It="@keyframes",Jn=Math.abs,ut=String.fromCharCode;function Cn(l){return l.trim()}function ni(l,f,_){return l.replace(f,_)}function Cs(l,f){return l.indexOf(f)}function nr(l,f){return 0|l.charCodeAt(f)}function Ao(l,f,_){return l.slice(f,_)}function dr(l){return l.length}function Au(l){return l.length}function cc(l,f){return f.push(l),l}function pd(l,f){for(var _="",x=Au(l),k=0;k2||cl(Mn)>3?"":" "}function Aa(l,f){for(;--f&&Ii()&&!(Mn<48||Mn>102||Mn>57&&Mn<65||Mn>70&&Mn<97););return Jo(l,ea()+(f<6&&32==xs()&&32==Ii()))}function ul(l){for(;Ii();)switch(Mn){case l:return Rn;case 34:case 39:34!==l&&39!==l&&ul(Mn);break;case 40:41===l&&ul(l);break;case 92:Ii()}return Rn}function bd(l,f){for(;Ii()&&l+Mn!==57&&(l+Mn!==84||47!==xs()););return"/*"+Jo(f,Rn-1)+"*"+ut(47===l?l:Ii())}function hl(l){for(;!cl(xs());)Ii();return Jo(l,Rn)}function ml(l){return function Iu(l){return kr="",l}(ur("",null,null,null,[""],l=function gd(l){return Mt=_n=1,xn=dr(kr=l),Rn=0,[]}(l),0,[0],l))}function ur(l,f,_,x,k,L,H,ne,se){for(var Ee=0,Qe=0,Me=H,Q=0,ke=0,qt=0,rn=1,pn=1,an=1,St=0,Pr="",$s=k,Ei=L,sr=x,oi=Pr;pn;)switch(qt=St,St=Ii()){case 40:if(108!=qt&&58==nr(oi,Me-1)){-1!=Cs(oi+=ni(dc(St),"&","&\f"),"&\f")&&(an=-1);break}case 34:case 39:case 91:oi+=dc(St);break;case 9:case 10:case 13:case 32:oi+=wi(qt);break;case 92:oi+=Aa(ea()-1,7);continue;case 47:switch(xs()){case 42:case 47:cc(Ia(bd(Ii(),ea()),f,_),se);break;default:oi+="/"}break;case 123*rn:ne[Ee++]=dr(oi)*an;case 125*rn:case 59:case 0:switch(St){case 0:case 125:pn=0;case 59+Qe:ke>0&&dr(oi)-Me&&cc(ke>32?Fa(oi+";",x,_,Me-1):Fa(ni(oi," ","")+";",x,_,Me-2),se);break;case 59:oi+=";";default:if(cc(sr=ta(oi,f,_,Ee,Qe,k,ne,Pr,$s=[],Ei=[],Me),L),123===St)if(0===Qe)ur(oi,f,sr,sr,$s,L,Me,ne,Ei);else switch(99===Q&&110===nr(oi,3)?100:Q){case 100:case 109:case 115:ur(l,sr,sr,x&&cc(ta(l,sr,sr,0,0,k,ne,Pr,k,$s=[],Me),Ei),k,Ei,Me,ne,x?$s:Ei);break;default:ur(oi,sr,sr,sr,[""],Ei,0,ne,Ei)}}Ee=Qe=ke=0,rn=an=1,Pr=oi="",Me=H;break;case 58:Me=1+dr(oi),ke=qt;default:if(rn<1)if(123==St)--rn;else if(125==St&&0==rn++&&125==(Mn=Rn>0?nr(kr,--Rn):0,_n--,10===Mn&&(_n=1,Mt--),Mn))continue;switch(oi+=ut(St),St*rn){case 38:an=Qe>0?1:(oi+="\f",-1);break;case 44:ne[Ee++]=(dr(oi)-1)*an,an=1;break;case 64:45===xs()&&(oi+=dc(Ii())),Q=xs(),Qe=Me=dr(Pr=oi+=hl(ea())),St++;break;case 45:45===qt&&2==dr(oi)&&(rn=0)}}return L}function ta(l,f,_,x,k,L,H,ne,se,Ee,Qe){for(var Me=k-1,Q=0===k?L:[""],ke=Au(Q),qt=0,rn=0,pn=0;qt0?Q[an]+" "+St:ni(St,/&\f/g,Q[an])))&&(se[pn++]=Pr);return Io(l,f,_,0===k?Qn:ne,se,Ee,Qe)}function Ia(l,f,_){return Io(l,f,_,dn,ut(function ll(){return Mn}()),Ao(l,2,-2),0)}function Fa(l,f,_,x){return Io(l,f,_,Et,Ao(l,0,x),Ao(l,x+1,-1),x)}var fl=M(9378);const ii={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Lt={trace:(...l)=>{},debug:(...l)=>{},info:(...l)=>{},warn:(...l)=>{},error:(...l)=>{},fatal:(...l)=>{}},pl=function(l="fatal"){let f=ii.fatal;"string"==typeof l?(l=l.toLowerCase())in ii&&(f=ii[l]):"number"==typeof l&&(f=l),Lt.trace=()=>{},Lt.debug=()=>{},Lt.info=()=>{},Lt.warn=()=>{},Lt.error=()=>{},Lt.fatal=()=>{},f<=ii.fatal&&(Lt.fatal=console.error?console.error.bind(console,jr("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",jr("FATAL"))),f<=ii.error&&(Lt.error=console.error?console.error.bind(console,jr("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",jr("ERROR"))),f<=ii.warn&&(Lt.warn=console.warn?console.warn.bind(console,jr("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",jr("WARN"))),f<=ii.info&&(Lt.info=console.info?console.info.bind(console,jr("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",jr("INFO"))),f<=ii.debug&&(Lt.debug=console.debug?console.debug.bind(console,jr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",jr("DEBUG"))),f<=ii.trace&&(Lt.trace=console.debug?console.debug.bind(console,jr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",jr("TRACE")))},jr=l=>`%c${re().format("ss.SSS")} : ${l} : `,ws=//gi,yd=(()=>{let l=!1;return()=>{l||(function Fi(){const l="data-temp-href-target";ae.addHook("beforeSanitizeAttributes",f=>{"A"===f.tagName&&f.hasAttribute("target")&&f.setAttribute(l,f.getAttribute("target")||"")}),ae.addHook("afterSanitizeAttributes",f=>{"A"===f.tagName&&f.hasAttribute(l)&&(f.setAttribute("target",f.getAttribute(l)||""),f.removeAttribute(l),"_blank"===f.getAttribute("target")&&f.setAttribute("rel","noopener"))})}(),l=!0)}})(),lo=l=>(yd(),ae.sanitize(l)),di=(l,f)=>{var _;if(!1!==(null==(_=f.flowchart)?void 0:_.htmlLabels)){const x=f.securityLevel;"antiscript"===x||"strict"===x?l=lo(l):"loose"!==x&&(l=(l=(l=_l(l)).replace(//g,">")).replace(/=/g,"="),l=Cd(l))}return l},ir=(l,f)=>l&&(f.dompurifyConfig?ae.sanitize(di(l,f),f.dompurifyConfig).toString():ae.sanitize(di(l,f),{FORBID_TAGS:["style"]}).toString()),Cd=l=>l.replace(/#br#/g,"
"),_l=l=>l.replace(ws,"#br#"),ia=l=>!(!1===l||["false","null","0"].includes(String(l).trim().toLowerCase())),bl=function(l){const f=l.split(/(,)/),_=[];for(let x=0;x0&&x+1Math.max(0,l.split(f).length-1),yl=(l,f)=>{const _=Oo(l,"~"),x=Oo(f,"~");return 1===_&&1===x},vl=l=>{const f=Oo(l,"~");let _=!1;if(f<=1)return l;f%2!=0&&l.startsWith("~")&&(l=l.substring(1),_=!0);const x=[...l];let k=x.indexOf("~"),L=x.lastIndexOf("~");for(;-1!==k&&-1!==L&&k!==L;)x[k]="<",x[L]=">",k=x.indexOf("~"),L=x.lastIndexOf("~");return _&&x.unshift("~"),x.join("")},hc=()=>void 0!==window.MathMLElement,Cl=/\$\$(.*)\$\$/g,xl=l=>{var f;return((null==(f=l.match(Cl))?void 0:f.length)??0)>0},mc=function(){var l=(0,j.Z)(function*(f,_){f=yield ra(f,_);const x=document.createElement("div");x.innerHTML=f,x.id="katex-temp",x.style.visibility="hidden",x.style.position="absolute",x.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",x);const L={width:x.clientWidth,height:x.clientHeight};return x.remove(),L});return function(_,x){return l.apply(this,arguments)}}(),ra=function(){var l=(0,j.Z)(function*(f,_){if(!xl(f))return f;if(!hc()&&!_.legacyMathML)return f.replace(Cl,"MathML is unsupported in this environment.");const{default:x}=yield M.e(751).then(M.bind(M,2751));return f.split(ws).map(k=>xl(k)?`\n
\n ${k}\n
\n `:`
${k}
`).join("").replace(Cl,(k,L)=>x.renderToString(L,{throwOnError:!0,displayMode:!0,output:hc()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))});return function(_,x){return l.apply(this,arguments)}}(),hr={getRows:l=>l?_l(l).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:ir,sanitizeTextOrArray:(l,f)=>"string"==typeof l?ir(l,f):l.flat().map(_=>ir(_,f)),hasBreaks:l=>ws.test(l),splitBreaks:l=>l.split(ws),lineBreakRegex:ws,removeScript:lo,getUrl:l=>{let f="";return l&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replaceAll(/\(/g,"\\("),f=f.replaceAll(/\)/g,"\\)")),f},evaluate:ia,getMax:function(...l){const f=l.filter(_=>!isNaN(_));return Math.max(...f)},getMin:function(...l){const f=l.filter(_=>!isNaN(_));return Math.min(...f)}},on=(l,f)=>S(l,f?{s:-40,l:10}:{s:-40,l:-10}),Ds="#ffffff",Ts="#f2f2f2",Wt=l=>{const f=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=S(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=on(this.primaryColor,this.darkMode),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,oe.Z)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,pe.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,pe.Z)(this.tertiaryColor,40);for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f};class Pa{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,he.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=on(this.primaryColor,this.darkMode),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.secondBkg=(0,he.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,he.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}}const Ti={base:{getThemeVariables:l=>{const f=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||S(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||S(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||on(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||on(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||on(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Y(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Y(this.tertiaryColor),this.lineColor=this.lineColor||Y(this.background),this.arrowheadColor=this.arrowheadColor||Y(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,pe.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,pe.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Y(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,he.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.darkMode)for(let ke=0;ke{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f}},dark:{getThemeVariables:l=>{const f=new class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,he.Z)(this.primaryColor,16),this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=Y(this.background),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,he.Z)(Y("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,oe.Z)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,pe.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,pe.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,oe.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,oe.Z)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.secondBkg=(0,he.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,he.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,he.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330});for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f}},default:{getThemeVariables:Wt},forest:{getThemeVariables:l=>{const f=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,he.Z)("#cde498",10),this.primaryBorderColor=on(this.primaryColor,this.darkMode),this.secondaryBorderColor=on(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=on(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.primaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var f,_,x,k,L,H,ne,se,Ee,Qe,Me;this.actorBorder=(0,pe.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,pe.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,pe.Z)(this.tertiaryColor,40);for(let Q=0;Q{this[x]=f[x]}),this.updateColors(),_.forEach(x=>{this[x]=f[x]})}};return f.calculate(l),f}},neutral:{getThemeVariables:l=>{const f=new Pa;return f.calculate(l),f}}},Ce={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ra={...Ce,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Ti.default.getThemeVariables(),sequence:{...Ce.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Ce.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ce.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Ce.pie,useWidth:984},xyChart:{...Ce.xyChart,useWidth:void 0},requirement:{...Ce.requirement,useWidth:void 0},gitGraph:{...Ce.gitGraph,useMaxWidth:!1},sankey:{...Ce.sankey,useMaxWidth:!1}},_t=(l,f="")=>Object.keys(l).reduce((_,x)=>Array.isArray(l[x])?_:"object"==typeof l[x]&&null!==l[x]?[..._,f+x,..._t(l[x],"")]:[..._,f+x],[]),wn=new Set(_t(Ra,"")),Es=Ra,ts=l=>{if(Lt.debug("sanitizeDirective called with",l),"object"==typeof l&&null!=l){if(Array.isArray(l))return void l.forEach(f=>ts(f));for(const f of Object.keys(l)){if(Lt.debug("Checking key",f),f.startsWith("__")||f.includes("proto")||f.includes("constr")||!wn.has(f)||null==l[f]){Lt.debug("sanitize deleting key: ",f),delete l[f];continue}if("object"==typeof l[f]){Lt.debug("sanitizing object",f),ts(l[f]);continue}const _=["themeCSS","fontFamily","altFontFamily"];for(const x of _)f.includes(x)&&(Lt.debug("sanitizing css option",f),l[f]=Ms(l[f]))}if(l.themeVariables)for(const f of Object.keys(l.themeVariables)){const _=l.themeVariables[f];_?.match&&!_.match(/^[\d "#%(),.;A-Za-z]+$/)&&(l.themeVariables[f]="")}Lt.debug("After sanitization",l)}},Ms=l=>{let f=0,_=0;for(const x of l){if(f<_)return"{ /* ERROR: Unbalanced CSS */ }";"{"===x?f++:"}"===x&&_++}return f!==_?"{ /* ERROR: Unbalanced CSS */ }":l},ks=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,mi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wl=/\s*%%.*\n/gm;class oa extends Error{constructor(f){super(f),this.name="UnknownDiagramError"}}const Ur={},mr=function(l,f){l=l.replace(ks,"").replace(mi,"").replace(wl,"\n");for(const[_,{detector:x}]of Object.entries(Ur))if(x(l,f))return _;throw new oa(`No diagram type detected matching given configuration for text: ${l}`)},fr=(...l)=>{for(const{id:f,detector:_,loader:x}of l)La(f,_,x)},La=(l,f,_)=>{Ur[l]?Lt.error(`Detector with key ${l} already exists`):Ur[l]={detector:f,loader:_},Lt.debug(`Detector with key ${l} added${_?" with loader":""}`)},pc=(l,f,{depth:_=2,clobber:x=!1}={})=>{const k={depth:_,clobber:x};return Array.isArray(f)&&!Array.isArray(l)?(f.forEach(L=>pc(l,L,k)),l):Array.isArray(f)&&Array.isArray(l)?(f.forEach(L=>{l.includes(L)||l.push(L)}),l):void 0===l||_<=0?null!=l&&"object"==typeof l&&"object"==typeof f?Object.assign(l,f):f:(void 0!==f&&"object"==typeof l&&"object"==typeof f&&Object.keys(f).forEach(L=>{"object"!=typeof f[L]||void 0!==l[L]&&"object"!=typeof l[L]?(x||"object"!=typeof l[L]&&"object"!=typeof f[L])&&(l[L]=f[L]):(void 0===l[L]&&(l[L]=Array.isArray(f[L])?[]:{}),l[L]=pc(l[L],f[L],{depth:_-1,clobber:x}))}),l)},fi=pc,gc="\u200b",Ro={curveBasis:z.$0Z,curveBasisClosed:z.Dts,curveBasisOpen:z.WQY,curveBumpX:z.qpX,curveBumpY:z.u93,curveBundle:z.tFB,curveCardinalClosed:z.OvA,curveCardinalOpen:z.dCK,curveCardinal:z.YY7,curveCatmullRomClosed:z.fGX,curveCatmullRomOpen:z.$m7,curveCatmullRom:z.zgE,curveLinear:z.c_6,curveLinearClosed:z.fxm,curveMonotoneX:z.FdL,curveMonotoneY:z.ak_,curveNatural:z.SxZ,curveStep:z.eA_,curveStepAfter:z.jsv,curveStepBefore:z.iJ},xd=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,kn=function(l,f=null){try{const _=new RegExp(`[%]{2}(?![{]${xd.source})(?=[}][%]{2}).*\n`,"ig");let x;l=l.trim().replace(_,"").replace(/'/gm,'"'),Lt.debug(`Detecting diagram directive${null!==f?" type:"+f:""} based on the text:${l}`);const k=[];for(;null!==(x=mi.exec(l));)if(x.index===mi.lastIndex&&mi.lastIndex++,x&&!f||f&&x[1]&&x[1].match(f)||f&&x[2]&&x[2].match(f)){const L=x[1]?x[1]:x[2],H=x[3]?x[3].trim():x[4]?JSON.parse(x[4].trim()):null;k.push({type:L,args:H})}return 0===k.length?{type:l,args:null}:1===k.length?k[0]:k}catch(_){return Lt.error(`ERROR: ${_.message} - Unable to parse directive type: '${f}' based on the text: '${l}'`),{type:void 0,args:null}}},_c=function(l){return l.replace(mi,"")};function Ft(l,f){if(!l)return f;const _=`curve${l.charAt(0).toUpperCase()+l.slice(1)}`;return Ro[_]??f}function Se(l,f){return l&&f?Math.sqrt(Math.pow(f.x-l.x,2)+Math.pow(f.y-l.y,2)):0}const yi=(l,f=2)=>{const _=Math.pow(10,f);return Math.round(l*_)/_},Ri=(l,f)=>{let _,x=f;for(const k of l){if(_){const L=Se(k,_);if(L=1)return{x:k.x,y:k.y};if(H>0&&H<1)return{x:yi((1-H)*_.x+H*k.x,5),y:yi((1-H)*_.y+H*k.y,5)}}}_=k}throw new Error("Could not find a suitable point for the given distance")};function pi(l){let f="",_="";for(const x of l)void 0!==x&&(x.startsWith("color:")||x.startsWith("text-align:")?_=_+x+";":f=f+x+";");return{style:f,labelStyle:_}}let pr=0;const gr=()=>(pr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+pr),Kt=l=>function Qf(l){let f="";const _="0123456789abcdef",x=_.length;for(let k=0;k{if(!l||(_=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},_),hr.lineBreakRegex.test(l)))return l;const x=l.split(" "),k=[];let L="";return x.forEach((H,ne)=>{const se=Fn(`${H} `,_),Ee=Fn(L,_);if(se>f){const{hyphenatedStrings:Q,remainingWord:ke}=wd(H,f,"-",_);k.push(L,...Q),L=ke}else Ee+se>=f?(k.push(L),L=H):L=[L,H].filter(Boolean).join(" ");ne+1===x.length&&k.push(L)}),k.filter(H=>""!==H).join(_.joinWith)},(l,f,_)=>`${l}${f}${_.fontSize}${_.fontWeight}${_.fontFamily}${_.joinWith}`),wd=(0,Xe.Z)((l,f,_="-",x)=>{x=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},x);const k=[...l],L=[];let H="";return k.forEach((ne,se)=>{const Ee=`${H}${ne}`;Fn(Ee,x)>=f?(L.push(k.length===se+1?Ee:`${Ee}${_}`),H=""):H=Ee}),{hyphenatedStrings:L,remainingWord:H}},(l,f,_="-",x)=>`${l}${f}${_}${x.fontSize}${x.fontWeight}${x.fontFamily}`);function dm(l,f){return um(l,f).height}function Fn(l,f){return um(l,f).width}const um=(0,Xe.Z)((l,f)=>{const{fontSize:_=12,fontFamily:x="Arial",fontWeight:k=400}=f;if(!l)return{width:0,height:0};const[,L]=Md(_),H=["sans-serif",x],ne=l.split(hr.lineBreakRegex),se=[],Ee=(0,z.Ys)("body");if(!Ee.remove)return{width:0,height:0,lineHeight:0};const Qe=Ee.append("svg");for(const Q of H){let ke=0;const qt={width:0,height:0,lineHeight:0};for(const rn of ne){const pn={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""};pn.text=rn||gc;const an=No(Qe,pn).style("font-size",L).style("font-weight",k).style("font-family",Q),St=(an._groups||an)[0][0].getBBox();if(0===St.width&&0===St.height)throw new Error("svg element not in render tree");qt.width=Math.round(Math.max(qt.width,St.width)),ke=Math.round(St.height),qt.height+=ke,qt.lineHeight=Math.round(Math.max(qt.lineHeight,ke))}se.push(qt)}return Qe.remove(),se[isNaN(se[1].height)||isNaN(se[1].width)||isNaN(se[1].lineHeight)||se[0].height>se[1].height&&se[0].width>se[1].width&&se[0].lineHeight>se[1].lineHeight?0:1]},(l,f)=>`${l}${f.fontSize}${f.fontWeight}${f.fontFamily}`);let Dd;function Td(l){return"str"in l}const Md=l=>{if("number"==typeof l)return[l,l+"px"];const f=parseInt(l??"",10);return Number.isNaN(f)?[void 0,void 0]:l===String(f)?[f,l+"px"]:[f,l]};function Pu(l,f){return(0,pt.Z)({},l,f)}const sa={assignWithDepth:fi,wrapLabel:Wr,calculateTextHeight:dm,calculateTextWidth:Fn,calculateTextDimensions:um,cleanAndMerge:Pu,detectInit:function(l,f){const _=kn(l,/(?:init\b)|(?:initialize\b)/);let x={};if(Array.isArray(_)){const H=_.map(ne=>ne.args);ts(H),x=fi(x,[...H])}else x=_.args;if(!x)return;let k=mr(l,f);const L="config";return void 0!==x[L]&&("flowchart-v2"===k&&(k="flowchart"),x[k]=x[L],delete x[L]),x},detectDirective:kn,isSubstringInArray:function(l,f){for(const[_,x]of f.entries())if(x.match(l))return _;return-1},interpolateToCurve:Ft,calcLabelPosition:function Pi(l){return 1===l.length?l[0]:function An(l){let f,_=0;return l.forEach(k=>{_+=Se(k,f),f=k}),Ri(l,_/2)}(l)},calcCardinalityPosition:(l,f,_)=>{Lt.info(`our points ${JSON.stringify(f)}`),f[0]!==_&&(f=f.reverse());const k=Ri(f,25),L=l?10:5,H=Math.atan2(f[0].y-k.y,f[0].x-k.x),ne={x:0,y:0};return ne.x=Math.sin(H)*L+(f[0].x+k.x)/2,ne.y=-Math.cos(H)*L+(f[0].y+k.y)/2,ne},calcTerminalLabelPosition:function Lo(l,f,_){const x=structuredClone(_);Lt.info("our points",x),"start_left"!==f&&"start_right"!==f&&x.reverse();const L=Ri(x,25+l),H=10+.5*l,ne=Math.atan2(x[0].y-L.y,x[0].x-L.x),se={x:0,y:0};return"start_left"===f?(se.x=Math.sin(ne+Math.PI)*H+(x[0].x+L.x)/2,se.y=-Math.cos(ne+Math.PI)*H+(x[0].y+L.y)/2):"end_right"===f?(se.x=Math.sin(ne-Math.PI)*H+(x[0].x+L.x)/2-5,se.y=-Math.cos(ne-Math.PI)*H+(x[0].y+L.y)/2-5):"end_left"===f?(se.x=Math.sin(ne)*H+(x[0].x+L.x)/2-5,se.y=-Math.cos(ne)*H+(x[0].y+L.y)/2-5):(se.x=Math.sin(ne)*H+(x[0].x+L.x)/2,se.y=-Math.cos(ne)*H+(x[0].y+L.y)/2),se},formatUrl:function B(l,f){const _=l.trim();if(_)return"loose"!==f.securityLevel?(0,q.N)(_):_},getStylesFromArray:pi,generateId:gr,random:Kt,runFunc:(l,...f)=>{const _=l.split("."),x=_.length-1,k=_[x];let L=window;for(let H=0;H{var k;if(!x)return;const L=null==(k=l.node())?void 0:k.getBBox();L&&l.append("text").text(x).attr("x",L.x+L.width/2).attr("y",-_).attr("class",f)},parseFontSize:Md,InitIDGenerator:class y_{constructor(f=!1,_){this.count=0,this.count=_?_.length:0,this.next=f?()=>this.count++:()=>Date.now()}}},Ss=function(l){return l.replace(/\ufb02\xb0\xb0/g,"&#").replace(/\ufb02\xb0/g,"&").replace(/\xb6\xdf/g,";")},ns=Object.freeze(Es);let aa,te=fi({},ns),qn=[],rr=fi({},ns);const Tl=(l,f)=>{let _=fi({},l),x={};for(const k of f)ho(k),x=fi(x,k);if(_=fi(_,x),x.theme&&x.theme in Ti){const k=fi({},aa),L=fi(k.themeVariables||{},x.themeVariables);_.theme&&_.theme in Ti&&(_.themeVariables=Ti[_.theme].getThemeVariables(L))}return rr=_,Sd(rr),rr},hm=()=>fi({},te),As=l=>(Sd(l),fi(rr,l),Li()),Li=()=>fi({},rr),ho=l=>{l&&(["secure",...te.secure??[]].forEach(f=>{Object.hasOwn(l,f)&&(Lt.debug(`Denied attempt to modify a secure key ${f}`,l[f]),delete l[f])}),Object.keys(l).forEach(f=>{f.startsWith("__")&&delete l[f]}),Object.keys(l).forEach(f=>{"string"==typeof l[f]&&(l[f].includes("<")||l[f].includes(">")||l[f].includes("url(data:"))&&delete l[f],"object"==typeof l[f]&&ho(l[f])}))},is=l=>{ts(l),l.fontFamily&&(!l.themeVariables||!l.themeVariables.fontFamily)&&(l.themeVariables={fontFamily:l.fontFamily}),qn.push(l),Tl(te,qn)},Sn=(l=te)=>{qn=[],Tl(l,qn)},kd={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},vc={},Sd=l=>{l&&(l.lazyLoadedDiagrams||l.loadExternalDiagramsAtStartup)&&(l=>{vc[l]||(Lt.warn(kd[l]),vc[l]=!0)})("LAZY_LOAD_DEPRECATED")},mm={id:"c4",detector:l=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(592),M.e(412)]).then(M.bind(M,2412));return{id:"c4",diagram:f}});return function(){return l.apply(this,arguments)}}()},Lu="flowchart",la={id:Lu,detector:(l,f)=>{var _,x;return"dagre-wrapper"!==(null==(_=f?.flowchart)?void 0:_.defaultRenderer)&&"elk"!==(null==(x=f?.flowchart)?void 0:x.defaultRenderer)&&/^\s*graph/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(552),M.e(65),M.e(196),M.e(235),M.e(70),M.e(592),M.e(769)]).then(M.bind(M,3769));return{id:Lu,diagram:f}});return function(){return l.apply(this,arguments)}}()},xe="flowchart-v2",_r={id:xe,detector:(l,f)=>{var _,x,k;return"dagre-d3"!==(null==(_=f?.flowchart)?void 0:_.defaultRenderer)&&"elk"!==(null==(x=f?.flowchart)?void 0:x.defaultRenderer)&&(!(!/^\s*graph/.test(l)||"dagre-wrapper"!==(null==(k=f?.flowchart)?void 0:k.defaultRenderer))||/^\s*flowchart/.test(l))},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(552),M.e(65),M.e(196),M.e(235),M.e(70),M.e(592),M.e(277)]).then(M.bind(M,277));return{id:xe,diagram:f}});return function(){return l.apply(this,arguments)}}()},un={id:"er",detector:l=>/^\s*erDiagram/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(867)]).then(M.bind(M,1867));return{id:"er",diagram:f}});return function(){return l.apply(this,arguments)}}()},ri="gitGraph",kl={id:ri,detector:l=>/^\s*gitGraph/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(665).then(M.bind(M,4665));return{id:ri,diagram:f}});return function(){return l.apply(this,arguments)}}()},pm={id:"gantt",detector:l=>/^\s*gantt/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(153).then(M.bind(M,1153));return{id:"gantt",diagram:f}});return function(){return l.apply(this,arguments)}}()},br={id:"info",detector:l=>/^\s*info/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(725).then(M.bind(M,1725));return{id:"info",diagram:f}});return function(){return l.apply(this,arguments)}}()},wc={id:"pie",detector:l=>/^\s*pie/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(60).then(M.bind(M,60));return{id:"pie",diagram:f}});return function(){return l.apply(this,arguments)}}()},Bu="quadrantChart",_m={id:Bu,detector:l=>/^\s*quadrantChart/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(706).then(M.bind(M,4706));return{id:Bu,diagram:f}});return function(){return l.apply(this,arguments)}}()},Dc="xychart",v_={id:Dc,detector:l=>/^\s*xychart-beta/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(552),M.e(256)]).then(M.bind(M,4047));return{id:Dc,diagram:f}});return function(){return l.apply(this,arguments)}}()},Yr="requirement",Fd={id:Yr,detector:l=>/^\s*requirement(Diagram)?/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(294)]).then(M.bind(M,1294));return{id:Yr,diagram:f}});return function(){return l.apply(this,arguments)}}()},Co="sequence",tp={id:Co,detector:l=>/^\s*sequenceDiagram/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(592),M.e(907)]).then(M.bind(M,907));return{id:Co,diagram:f}});return function(){return l.apply(this,arguments)}}()},w_={id:"class",detector:(l,f)=>{var _;return"dagre-wrapper"!==(null==(_=f?.class)?void 0:_.defaultRenderer)&&/^\s*classDiagram/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(993),M.e(109)]).then(M.bind(M,7952));return{id:"class",diagram:f}});return function(){return l.apply(this,arguments)}}()},ip="classDiagram",D_={id:ip,detector:(l,f)=>{var _;return!(!/^\s*classDiagram/.test(l)||"dagre-wrapper"!==(null==(_=f?.class)?void 0:_.defaultRenderer))||/^\s*classDiagram-v2/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(552),M.e(65),M.e(196),M.e(235),M.e(993),M.e(177)]).then(M.bind(M,8177));return{id:ip,diagram:f}});return function(){return l.apply(this,arguments)}}()},T_={id:"state",detector:(l,f)=>{var _;return"dagre-wrapper"!==(null==(_=f?.state)?void 0:_.defaultRenderer)&&/^\s*stateDiagram/.test(l)},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(65),M.e(106),M.e(652)]).then(M.bind(M,7153));return{id:"state",diagram:f}});return function(){return l.apply(this,arguments)}}()},sp="stateDiagram",ci={id:sp,detector:(l,f)=>{var _;return!!(/^\s*stateDiagram-v2/.test(l)||/^\s*stateDiagram/.test(l)&&"dagre-wrapper"===(null==(_=f?.state)?void 0:_.defaultRenderer))},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(552),M.e(65),M.e(196),M.e(235),M.e(106),M.e(787)]).then(M.bind(M,8787));return{id:sp,diagram:f}});return function(){return l.apply(this,arguments)}}()},Hu="journey",vm={id:Hu,detector:l=>/^\s*journey/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(592),M.e(508)]).then(M.bind(M,7508));return{id:Hu,diagram:f}});return function(){return l.apply(this,arguments)}}()},$u=function(l,f,_,x){const k=function(l,f,_){let x=new Map;return _?(x.set("width","100%"),x.set("style",`max-width: ${f}px;`)):(x.set("height",l),x.set("width",f)),x}(f,_,x);!function(l,f){for(let _ of f)l.attr(_[0],_[1])}(l,k)},fo=function(l,f,_,x){const k=f.node().getBBox(),L=k.width,H=k.height;Lt.info(`SVG bounds: ${L}x${H}`,k);let ne=0,se=0;Lt.info(`Graph bounds: ${ne}x${se}`,l),ne=L+2*_,se=H+2*_,Lt.info(`Calculated bounds: ${ne}x${se}`),$u(f,se,ne,x),f.attr("viewBox",`${k.x-_} ${k.y-_} ${k.width+2*_} ${k.height+2*_}`)},po={};let Ec="",Kr="",ju="";const Od=l=>ir(l,Li()),Ba=()=>{Ec="",ju="",Kr=""},Xr=l=>{Ec=Od(l).replace(/^\s+/g,"")},Uu=()=>Ec,Va=l=>{ju=Od(l).replace(/\n\s+/g,"\n")},Ha=()=>ju,Qr=l=>{Kr=Od(l)},Pd=()=>Kr,Vi=Object.freeze(Object.defineProperty({__proto__:null,clear:Ba,getAccDescription:Ha,getAccTitle:Uu,getDiagramTitle:Pd,setAccDescription:Va,setAccTitle:Xr,setDiagramTitle:Qr},Symbol.toStringTag,{value:"Module"})),kt=Lt,Wu=pl,Mc=Li,Rd=As,Ld=ns,cp=l=>ir(l,Mc()),Vo=fo,kc={},Te=(l,f,_)=>{var x;if(kc[l])throw new Error(`Diagram ${l} already registered.`);kc[l]=f,_&&La(l,_),((l,f)=>{void 0!==f&&(po[l]=f)})(l,f.styles),null==(x=f.injectUtils)||x.call(f,kt,Wu,Mc,cp,Vo,Vi,()=>{})},Tn=l=>{if(l in kc)return kc[l];throw new He(l)};class He extends Error{constructor(f){super(`Diagram ${f} not found.`)}}const je=l=>{var f;const{securityLevel:_}=Mc();let x=(0,z.Ys)("body");if("sandbox"===_){const H=(null==(f=(0,z.Ys)(`#i${l}`).node())?void 0:f.contentDocument)??document;x=(0,z.Ys)(H.body)}return x.select(`#${l}`)},Gu={draw:(l,f,_)=>{Lt.debug("rendering svg for syntax error\n");const x=je(f),k=x.append("g");x.attr("viewBox","0 0 2412 512"),$u(x,100,512,!0),k.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),k.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),k.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),k.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),k.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),k.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),k.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),k.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${_}`)}},za=Gu,wm={db:{},renderer:Gu,parser:{parser:{yy:{}},parse:()=>{}}},Zu="flowchart-elk",Fr={id:Zu,detector:(l,f)=>{var _;return!!(/^\s*flowchart-elk/.test(l)||/^\s*flowchart|graph/.test(l)&&"elk"===(null==(_=f?.flowchart)?void 0:_.defaultRenderer))},loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(552),M.e(196),M.e(70),M.e(687)]).then(M.bind(M,1687));return{id:Zu,diagram:f}});return function(){return l.apply(this,arguments)}}()},os="timeline",dp={id:os,detector:l=>/^\s*timeline/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(567).then(M.bind(M,7567));return{id:os,diagram:f}});return function(){return l.apply(this,arguments)}}()},Ku="mindmap",Bd={id:Ku,detector:l=>/^\s*mindmap/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(552),M.e(118)]).then(M.bind(M,118));return{id:Ku,diagram:f}});return function(){return l.apply(this,arguments)}}()},eh={id:"sankey",detector:l=>/^\s*sankey-beta/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield M.e(952).then(M.bind(M,2952));return{id:"sankey",diagram:f}});return function(){return l.apply(this,arguments)}}()},Ac={id:"block",detector:l=>/^\s*block-beta/.test(l),loader:function(){var l=(0,j.Z)(function*(){const{diagram:f}=yield Promise.all([M.e(634),M.e(552),M.e(196),M.e(592),M.e(667)]).then(M.bind(M,4667));return{id:"block",diagram:f}});return function(){return l.apply(this,arguments)}}()};let zd=!1;const Ic=()=>{zd||(zd=!0,Te("error",wm,l=>"error"===l.toLowerCase().trim()),Te("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},l=>l.toLowerCase().trimStart().startsWith("---")),fr(mm,D_,w_,un,pm,br,wc,Fd,tp,Fr,_r,la,Bd,dp,kl,ci,T_,vm,_m,eh,v_,Ac))};class qi{constructor(f,_={}){this.text=f,this.metadata=_,this.type="graph",this.text=function(l){let f=l;return f=f.replace(/style.*:\S*#.*;/g,function(_){return _.substring(0,_.length-1)}),f=f.replace(/classDef.*:\S*#.*;/g,function(_){return _.substring(0,_.length-1)}),f=f.replace(/#\w+;/g,function(_){const x=_.substring(1,_.length-1);return/^\+?\d+$/.test(x)?"\ufb02\xb0\xb0"+x+"\xb6\xdf":"\ufb02\xb0"+x+"\xb6\xdf"}),f}(f),this.text+="\n";const x=Li();try{this.type=mr(f,x)}catch(L){this.type="error",this.detectError=L}const k=Tn(this.type);Lt.debug("Type "+this.type),this.db=k.db,this.renderer=k.renderer,this.parser=k.parser,this.parser.parser.yy=this.db,this.init=k.init,this.parse()}parse(){var f,_,x,k,L;if(this.detectError)throw this.detectError;null==(_=(f=this.db).clear)||_.call(f);const H=Li();null==(x=this.init)||x.call(this,H),this.metadata.title&&(null==(L=(k=this.db).setDiagramTitle)||L.call(k,this.metadata.title)),this.parser.parse(this.text)}render(f,_){var x=this;return(0,j.Z)(function*(){yield x.renderer.draw(x.text,f,_,x)})()}getParser(){return this.parser}getType(){return this.type}}const da=function(){var l=(0,j.Z)(function*(f,_={}){const x=mr(f,Li());try{Tn(x)}catch{const L=(l=>Ur[l].loader)(x);if(!L)throw new oa(`Diagram ${x} not found.`);const{id:H,diagram:ne}=yield L();Te(H,ne)}return new qi(f,_)});return function(_){return l.apply(this,arguments)}}();let gi=[];const hp=l=>l.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function mp(l){return typeof l>"u"||null===l}var vr={isNothing:mp,isObject:function jd(l){return"object"==typeof l&&null!==l},toArray:function ja(l){return Array.isArray(l)?l:mp(l)?[]:[l]},repeat:function Ud(l,f){var x,_="";for(x=0;xne&&(f=x-ne+(L=" ... ").length),_-x>ne&&(_=x+ne-(H=" ...").length),{str:L+l.slice(f,_).replace(/\t/g,"\u2192")+H,pos:x-f+L.length}}function Oc(l,f){return vr.repeat(" ",f-l.length)+l}var km=function Pc(l,f){if(f=Object.create(f||null),!l.buffer)return null;f.maxLength||(f.maxLength=79),"number"!=typeof f.indent&&(f.indent=1),"number"!=typeof f.linesBefore&&(f.linesBefore=3),"number"!=typeof f.linesAfter&&(f.linesAfter=2);for(var L,_=/\r?\n|\r|\0/g,x=[0],k=[],H=-1;L=_.exec(l.buffer);)k.push(L.index),x.push(L.index+L[0].length),l.position<=L.index&&H<0&&(H=x.length-2);H<0&&(H=x.length-1);var se,Ee,ne="",Qe=Math.min(l.line+f.linesAfter,k.length).toString().length,Me=f.maxLength-(f.indent+Qe+3);for(se=1;se<=f.linesBefore&&!(H-se<0);se++)Ee=Mm(l.buffer,x[H-se],k[H-se],l.position-(x[H]-x[H-se]),Me),ne=vr.repeat(" ",f.indent)+Oc((l.line-se+1).toString(),Qe)+" | "+Ee.str+"\n"+ne;for(Ee=Mm(l.buffer,x[H],k[H],l.position,Me),ne+=vr.repeat(" ",f.indent)+Oc((l.line+1).toString(),Qe)+" | "+Ee.str+"\n",ne+=vr.repeat("-",f.indent+Qe+3+Ee.pos)+"^\n",se=1;se<=f.linesAfter&&!(H+se>=k.length);se++)Ee=Mm(l.buffer,x[H+se],k[H+se],l.position-(x[H]-x[H+se]),Me),ne+=vr.repeat(" ",f.indent)+Oc((l.line+se+1).toString(),Qe)+" | "+Ee.str+"\n";return ne.replace(/\n$/,"")},Wa=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Gd=["scalar","sequence","mapping"],Yi=function Zd(l,f){if(f=f||{},Object.keys(f).forEach(function(_){if(-1===Wa.indexOf(_))throw new ha('Unknown option "'+_+'" is met in definition of "'+l+'" YAML type.')}),this.options=f,this.tag=l,this.kind=f.kind||null,this.resolve=f.resolve||function(){return!0},this.construct=f.construct||function(_){return _},this.instanceOf=f.instanceOf||null,this.predicate=f.predicate||null,this.represent=f.represent||null,this.representName=f.representName||null,this.defaultStyle=f.defaultStyle||null,this.multi=f.multi||!1,this.styleAliases=function Rc(l){var f={};return null!==l&&Object.keys(l).forEach(function(_){l[_].forEach(function(x){f[String(x)]=_})}),f}(f.styleAliases||null),-1===Gd.indexOf(this.kind))throw new ha('Unknown kind "'+this.kind+'" is specified for "'+l+'" YAML type.')};function Lc(l,f){var _=[];return l[f].forEach(function(x){var k=_.length;_.forEach(function(L,H){L.tag===x.tag&&L.kind===x.kind&&L.multi===x.multi&&(k=H)}),_[k]=x}),_}function Nc(l){return this.extend(l)}Nc.prototype.extend=function(f){var _=[],x=[];if(f instanceof Yi)x.push(f);else if(Array.isArray(f))x=x.concat(f);else{if(!f||!Array.isArray(f.implicit)&&!Array.isArray(f.explicit))throw new ha("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.implicit&&(_=_.concat(f.implicit)),f.explicit&&(x=x.concat(f.explicit))}_.forEach(function(L){if(!(L instanceof Yi))throw new ha("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(L.loadKind&&"scalar"!==L.loadKind)throw new ha("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(L.multi)throw new ha("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),x.forEach(function(L){if(!(L instanceof Yi))throw new ha("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var k=Object.create(Nc.prototype);return k.implicit=(this.implicit||[]).concat(_),k.explicit=(this.explicit||[]).concat(x),k.compiledImplicit=Lc(k,"implicit"),k.compiledExplicit=Lc(k,"explicit"),k.compiledTypeMap=function rh(){var f,_,l={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function x(k){k.multi?(l.multi[k.kind].push(k),l.multi.fallback.push(k)):l[k.kind][k.tag]=l.fallback[k.tag]=k}for(f=0,_=arguments.length;f<_;f+=1)arguments[f].forEach(x);return l}(k.compiledImplicit,k.compiledExplicit),k};var as=new Nc({explicit:[new Yi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(l){return null!==l?l:""}}),new Yi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(l){return null!==l?l:[]}}),new Yi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(l){return null!==l?l:{}}})]}),Am=new Yi("tag:yaml.org,2002:null",{kind:"scalar",resolve:function F_(l){if(null===l)return!0;var f=l.length;return 1===f&&"~"===l||4===f&&("null"===l||"Null"===l||"NULL"===l)},construct:function Bc(){return null},predicate:function oh(l){return null===l},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),Im=new Yi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function sh(l){if(null===l)return!1;var f=l.length;return 4===f&&("true"===l||"True"===l||"TRUE"===l)||5===f&&("false"===l||"False"===l||"FALSE"===l)},construct:function ah(l){return"true"===l||"True"===l||"TRUE"===l},predicate:function lh(l){return"[object Boolean]"===Object.prototype.toString.call(l)},represent:{lowercase:function(l){return l?"true":"false"},uppercase:function(l){return l?"TRUE":"FALSE"},camelcase:function(l){return l?"True":"False"}},defaultStyle:"lowercase"});function Fm(l){return 48<=l&&l<=57||65<=l&&l<=70||97<=l&&l<=102}function Om(l){return 48<=l&&l<=55}function ch(l){return 48<=l&&l<=57}var bp=new Yi("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Ol(l){if(null===l)return!1;var k,f=l.length,_=0,x=!1;if(!f)return!1;if(("-"===(k=l[_])||"+"===k)&&(k=l[++_]),"0"===k){if(_+1===f)return!0;if("b"===(k=l[++_])){for(_++;_=0?"0b"+l.toString(2):"-0b"+l.toString(2).slice(1)},octal:function(l){return l>=0?"0o"+l.toString(8):"-0o"+l.toString(8).slice(1)},decimal:function(l){return l.toString(10)},hexadecimal:function(l){return l>=0?"0x"+l.toString(16).toUpperCase():"-0x"+l.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Pm=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Rm=/^[-+]?[0-9]+e/,uh=new Yi("tag:yaml.org,2002:float",{kind:"scalar",resolve:function dh(l){return!(null===l||!Pm.test(l)||"_"===l[l.length-1])},construct:function Rl(l){var f,_;return _="-"===(f=l.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(f[0])>=0&&(f=f.slice(1)),".inf"===f?1===_?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===f?NaN:_*parseFloat(f,10)},predicate:function Ll(l){return"[object Number]"===Object.prototype.toString.call(l)&&(l%1!=0||vr.isNegativeZero(l))},represent:function Yn(l,f){var _;if(isNaN(l))switch(f){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===l)switch(f){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===l)switch(f){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(vr.isNegativeZero(l))return"-0.0";return _=l.toString(10),Rm.test(_)?_.replace("e",".e"):_},defaultStyle:"lowercase"}),hh=as.extend({implicit:[Am,Im,bp,uh]}),go=hh,xo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Za=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),qa=new Yi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function Nl(l){return null!==l&&(null!==xo.exec(l)||null!==Za.exec(l))},construct:function Lm(l){var f,_,x,k,L,H,ne,Q,se=0,Ee=null;if(null===(f=xo.exec(l))&&(f=Za.exec(l)),null===f)throw new Error("Date resolve error");if(_=+f[1],x=+f[2]-1,k=+f[3],!f[4])return new Date(Date.UTC(_,x,k));if(L=+f[4],H=+f[5],ne=+f[6],f[7]){for(se=f[7].slice(0,3);se.length<3;)se+="0";se=+se}return f[9]&&(Ee=6e4*(60*+f[10]+ +(f[11]||0)),"-"===f[9]&&(Ee=-Ee)),Q=new Date(Date.UTC(_,x,k,L,H,ne,se)),Ee&&Q.setTime(Q.getTime()-Ee),Q},instanceOf:Date,represent:function mh(l){return l.toISOString()}}),Nm=new Yi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function O_(l){return"<<"===l||null===l}}),ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",fh=new Yi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function yp(l){if(null===l)return!1;var f,_,x=0,k=l.length,L=ye;for(_=0;_64)){if(f<0)return!1;x+=6}return x%8==0},construct:function vp(l){var f,_,x=l.replace(/[\r\n=]/g,""),k=x.length,L=ye,H=0,ne=[];for(f=0;f>16&255),ne.push(H>>8&255),ne.push(255&H)),H=H<<6|L.indexOf(x.charAt(f));return 0==(_=k%4*6)?(ne.push(H>>16&255),ne.push(H>>8&255),ne.push(255&H)):18===_?(ne.push(H>>10&255),ne.push(H>>2&255)):12===_&&ne.push(H>>4&255),new Uint8Array(ne)},predicate:function P_(l){return"[object Uint8Array]"===Object.prototype.toString.call(l)},represent:function Cp(l){var x,k,f="",_=0,L=l.length,H=ye;for(x=0;x>18&63],f+=H[_>>12&63],f+=H[_>>6&63],f+=H[63&_]),_=(_<<8)+l[x];return 0==(k=L%3)?(f+=H[_>>18&63],f+=H[_>>12&63],f+=H[_>>6&63],f+=H[63&_]):2===k?(f+=H[_>>10&63],f+=H[_>>4&63],f+=H[_<<2&63],f+=H[64]):1===k&&(f+=H[_>>2&63],f+=H[_<<4&63],f+=H[64],f+=H[64]),f}}),xp=Object.prototype.hasOwnProperty,wp=Object.prototype.toString,L_=new Yi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function Vc(l){if(null===l)return!0;var _,x,k,L,H,f=[],ne=l;for(_=0,x=ne.length;_>10),56320+(l-65536&1023))}for(var us=new Array(256),Bs=new Array(256),ga=0;ga<256;ga++)us[ga]=Mp(ga)?1:0,Bs[ga]=Mp(ga);function Vm(l,f){this.input=l,this.filename=f.filename||null,this.schema=f.schema||Hl,this.onWarning=f.onWarning||null,this.legacy=f.legacy||!1,this.json=f.json||!1,this.listener=f.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=l.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _a(l,f){var _={name:l.filename,buffer:l.input.slice(0,-1),position:l.position,line:l.line,column:l.position-l.lineStart};return _.snippet=km(_),new ha(f,_)}function wt(l,f){throw _a(l,f)}function Vs(l,f){l.onWarning&&l.onWarning.call(null,_a(l,f))}var kp={YAML:function(f,_,x){var k,L,H;null!==f.version&&wt(f,"duplication of %YAML directive"),1!==x.length&&wt(f,"YAML directive accepts exactly one argument"),null===(k=/^([0-9]+)\.([0-9]+)$/.exec(x[0]))&&wt(f,"ill-formed argument of the YAML directive"),L=parseInt(k[1],10),H=parseInt(k[2],10),1!==L&&wt(f,"unacceptable YAML version of the document"),f.version=x[0],f.checkLineBreaks=H<2,1!==H&&2!==H&&Vs(f,"unsupported YAML version of the document")},TAG:function(f,_,x){var k,L;2!==x.length&&wt(f,"TAG directive accepts exactly two arguments"),L=x[1],Dp.test(k=x[0])||wt(f,"ill-formed tag handle (first argument) of the TAG directive"),cs.call(f.tagMap,k)&&wt(f,'there is a previously declared suffix for "'+k+'" tag handle'),$c.test(L)||wt(f,"ill-formed tag prefix (second argument) of the TAG directive");try{L=decodeURIComponent(L)}catch{wt(f,"tag prefix is malformed: "+L)}f.tagMap[k]=L}};function $l(l,f,_,x){var k,L,H,ne;if(f<_){if(ne=l.input.slice(f,_),x)for(k=0,L=ne.length;k1&&(l.result+=vr.repeat("\n",f-1))}function _h(l,f){var _,se,x=l.tag,k=l.anchor,L=[],ne=!1;if(-1!==l.firstTabInLine)return!1;for(null!==l.anchor&&(l.anchorMap[l.anchor]=L),se=l.input.charCodeAt(l.position);0!==se&&(-1!==l.firstTabInLine&&(l.position=l.firstTabInLine,wt(l,"tab characters must not be used in indentation")),45===se&&vi(l.input.charCodeAt(l.position+1)));)if(ne=!0,l.position++,$i(l,!0,-1)&&l.lineIndent<=f)L.push(null),se=l.input.charCodeAt(l.position);else if(_=l.line,Kd(l,f,zi,!1,!0),L.push(l.result),$i(l,!0,-1),se=l.input.charCodeAt(l.position),(l.line===_||l.lineIndent>f)&&0!==se)wt(l,"bad indentation of a sequence entry");else if(l.lineIndentf?se=1:l.lineIndent===f?se=0:l.lineIndentf?se=1:l.lineIndent===f?se=0:l.lineIndentf)&&(pn&&(H=l.line,ne=l.lineStart,se=l.position),Kd(l,f,Ni,!0,k)&&(pn?qt=l.result:rn=l.result),pn||(jc(l,Me,Q,ke,qt,rn,H,ne,se),ke=qt=rn=null),$i(l,!0,-1),St=l.input.charCodeAt(l.position)),(l.line===L||l.lineIndent>f)&&0!==St)wt(l,"bad indentation of a mapping entry");else if(l.lineIndent=0))break;0===Qe?wt(l,"bad explicit indentation width of a block scalar; it cannot be less than one"):H?wt(l,"repeat of an indentation width identifier"):(ne=f+Qe-1,H=!0)}if(ma(Me)){do{Me=l.input.charCodeAt(++l.position)}while(ma(Me));if(35===Me)do{Me=l.input.charCodeAt(++l.position)}while(!zo(Me)&&0!==Me)}for(;0!==Me;){for(Sp(l),l.lineIndent=0,Me=l.input.charCodeAt(l.position);(!H||l.lineIndentne&&(ne=l.lineIndent),zo(Me))se++;else{if(l.lineIndent0){for(k=H,L=0;k>0;k--)(H=ds(ne=l.input.charCodeAt(++l.position)))>=0?L=(L<<4)+H:wt(l,"expected hexadecimal character");l.result+=pa(L),l.position++}else wt(l,"unknown escape sequence");_=x=l.position}else zo(ne)?($l(l,_,x,!0),Hs(l,$i(l,!1,f)),_=x=l.position):l.position===l.lineStart&&gh(l)?wt(l,"unexpected end of the document within a double quoted scalar"):(l.position++,x=l.position)}wt(l,"unexpected end of the stream within a double quoted scalar")}(l,rn)?Qe=!0:function $m(l){var f,_,x;if(42!==(x=l.input.charCodeAt(l.position)))return!1;for(x=l.input.charCodeAt(++l.position),f=l.position;0!==x&&!vi(x)&&!fa(x);)x=l.input.charCodeAt(++l.position);return l.position===f&&wt(l,"name of an alias node must contain at least one character"),_=l.input.slice(f,l.position),cs.call(l.anchorMap,_)||wt(l,'unidentified alias "'+_+'"'),l.result=l.anchorMap[_],$i(l,!0,-1),!0}(l)?(Qe=!0,(null!==l.tag||null!==l.anchor)&&wt(l,"alias node should not have any properties")):function jl(l,f,_){var k,L,H,ne,se,Ee,Qe,ke,Me=l.kind,Q=l.result;if(vi(ke=l.input.charCodeAt(l.position))||fa(ke)||35===ke||38===ke||42===ke||33===ke||124===ke||62===ke||39===ke||34===ke||37===ke||64===ke||96===ke||(63===ke||45===ke)&&(vi(k=l.input.charCodeAt(l.position+1))||_&&fa(k)))return!1;for(l.kind="scalar",l.result="",L=H=l.position,ne=!1;0!==ke;){if(58===ke){if(vi(k=l.input.charCodeAt(l.position+1))||_&&fa(k))break}else if(35===ke){if(vi(l.input.charCodeAt(l.position-1)))break}else{if(l.position===l.lineStart&&gh(l)||_&&fa(ke))break;if(zo(ke)){if(se=l.line,Ee=l.lineStart,Qe=l.lineIndent,$i(l,!1,-1),l.lineIndent>=f){ne=!0,ke=l.input.charCodeAt(l.position);continue}l.position=H,l.line=se,l.lineStart=Ee,l.lineIndent=Qe;break}}ne&&($l(l,L,H,!1),Hs(l,l.line-se),L=H=l.position,ne=!1),ma(ke)||(H=l.position+1),ke=l.input.charCodeAt(++l.position)}return $l(l,L,H,!1),!!l.result||(l.kind=Me,l.result=Q,!1)}(l,rn,Hc===_)&&(Qe=!0,null===l.tag&&(l.tag="?")),null!==l.anchor&&(l.anchorMap[l.anchor]=l.result)):0===se&&(Qe=ne&&_h(l,pn))),null===l.tag)null!==l.anchor&&(l.anchorMap[l.anchor]=l.result);else if("?"===l.tag){for(null!==l.result&&"scalar"!==l.kind&&wt(l,'unacceptable node kind for ! tag; it should be "scalar", not "'+l.kind+'"'),Me=0,Q=l.implicitTypes.length;Me"),null!==l.result&&qt.kind!==l.kind&&wt(l,"unacceptable node kind for !<"+l.tag+'> tag; it should be "'+qt.kind+'", not "'+l.kind+'"'),qt.resolve(l.result,l.tag)?(l.result=qt.construct(l.result,l.tag),null!==l.anchor&&(l.anchorMap[l.anchor]=l.result)):wt(l,"cannot resolve a node with !<"+l.tag+"> explicit tag")}return null!==l.listener&&l.listener("close",l),null!==l.tag||null!==l.anchor||Qe}function Cv(l){var _,x,k,H,f=l.position,L=!1;for(l.version=null,l.checkLineBreaks=l.legacy,l.tagMap=Object.create(null),l.anchorMap=Object.create(null);0!==(H=l.input.charCodeAt(l.position))&&($i(l,!0,-1),H=l.input.charCodeAt(l.position),!(l.lineIndent>0||37!==H));){for(L=!0,H=l.input.charCodeAt(++l.position),_=l.position;0!==H&&!vi(H);)H=l.input.charCodeAt(++l.position);for(k=[],(x=l.input.slice(_,l.position)).length<1&&wt(l,"directive name must not be less than one character in length");0!==H;){for(;ma(H);)H=l.input.charCodeAt(++l.position);if(35===H){do{H=l.input.charCodeAt(++l.position)}while(0!==H&&!zo(H));break}if(zo(H))break;for(_=l.position;0!==H&&!vi(H);)H=l.input.charCodeAt(++l.position);k.push(l.input.slice(_,l.position))}0!==H&&Sp(l),cs.call(kp,x)?kp[x](l,x,k):Vs(l,'unknown document directive "'+x+'"')}$i(l,!0,-1),0===l.lineIndent&&45===l.input.charCodeAt(l.position)&&45===l.input.charCodeAt(l.position+1)&&45===l.input.charCodeAt(l.position+2)?(l.position+=3,$i(l,!0,-1)):L&&wt(l,"directives end mark is expected"),Kd(l,l.lineIndent-1,Ni,!1,!0),$i(l,!0,-1),l.checkLineBreaks&&B_.test(l.input.slice(f,l.position))&&Vs(l,"non-ASCII line breaks are interpreted as content"),l.documents.push(l.result),l.position===l.lineStart&&gh(l)?46===l.input.charCodeAt(l.position)&&(l.position+=3,$i(l,!0,-1)):l.positionl.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(f,_,x)=>"<"+_+x.replace(/="([^"]*)"/g,"='$1'")+">"),vh=l=>{const{text:f,metadata:_}=function hs(l){const f=l.match(ks);if(!f)return{text:l,metadata:{}};let _=Fp(f[1],{schema:zs})??{};_="object"!=typeof _||Array.isArray(_)?{}:_;const x={};return _.displayMode&&(x.displayMode=_.displayMode.toString()),_.title&&(x.title=_.title.toString()),_.config&&(x.config=_.config),{text:l.slice(f[0].length),metadata:x}}(l),{displayMode:x,title:k,config:L={}}=_;return x&&(L.gantt||(L.gantt={}),L.gantt.displayMode=x),{title:k,config:L,text:f}},Pp=l=>{const f=sa.detectInit(l)??{},_=sa.detectDirective(l,"wrap");return Array.isArray(_)?f.wrap=_.some(({})=>{}):"wrap"===_?.type&&(f.wrap=!0),{text:_c(l),directive:f}};function Jr(l){const f=Op(l),_=vh(f),x=Pp(_.text),k=Pu(_.config,x.directive);return{code:l=hp(x.text),title:_.title,config:k}}const Ul=["foreignobject"],xh=["dominant-baseline"];function or(l){const f=Jr(l);return Sn(),is(f.config??{}),f}function Qd(){return(Qd=(0,j.Z)(function*(l,f){Ic(),l=or(l).code;try{yield Zc(l)}catch(_){if(f?.suppressErrors)return!1;throw _}return!0})).apply(this,arguments)}const wh=(l,f,_=[])=>`\n.${l} ${f} { ${_.join(" !important; ")} !important; }`,Dh=(l,f,_,x)=>{const k=((l,f={})=>{var _;let x="";if(void 0!==l.themeCSS&&(x+=`\n${l.themeCSS}`),void 0!==l.fontFamily&&(x+=`\n:root { --mermaid-font-family: ${l.fontFamily}}`),void 0!==l.altFontFamily&&(x+=`\n:root { --mermaid-alt-font-family: ${l.altFontFamily}}`),!(0,fl.Z)(f)){const ne=l.htmlLabels||(null==(_=l.flowchart)?void 0:_.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const se in f){const Ee=f[se];(0,fl.Z)(Ee.styles)||ne.forEach(Qe=>{x+=wh(Ee.id,Qe,Ee.styles)}),(0,fl.Z)(Ee.textStyles)||(x+=wh(Ee.id,"tspan",Ee.textStyles))}}return x})(l,_);return pd(ml(`${x}{${((l,f,_)=>{let x="";return l in po&&po[l]?x=po[l](_):Lt.warn(`No theme found for ${l}`),` & {\n font-family: ${_.fontFamily};\n font-size: ${_.fontSize};\n fill: ${_.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${_.errorBkgColor};\n }\n & .error-text {\n fill: ${_.errorTextColor};\n stroke: ${_.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${_.lineColor};\n stroke: ${_.lineColor};\n }\n & .marker.cross {\n stroke: ${_.lineColor};\n }\n\n & svg {\n font-family: ${_.fontFamily};\n font-size: ${_.fontSize};\n }\n\n ${x}\n\n ${f}\n`})(f,k,l.themeVariables)}}`),En)},Zm=(l,f,_,x,k)=>{const L=l.append("div");L.attr("id",_),x&&L.attr("style",x);const H=L.append("svg").attr("id",f).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return k&&H.attr("xmlns:xlink",k),H.append("g"),l};function Jd(l,f){return l.append("iframe").attr("id",f).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const qm=function(){var l=(0,j.Z)(function*(f,_,x){var k,L,H,ne,se,Ee;Ic();const Qe=or(_);_=Qe.code;const Me=Li();Lt.debug(Me),_.length>(Me?.maxTextSize??5e4)&&(_="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const Q="#"+f,ke="i"+f,qt="#"+ke,rn="d"+f,pn="#"+rn;let an=(0,z.Ys)("body");const St="sandbox"===Me.securityLevel,Pr="loose"===Me.securityLevel,$s=Me.fontFamily;if(void 0!==x){if(x&&(x.innerHTML=""),St){const jo=Jd((0,z.Ys)(x),ke);an=(0,z.Ys)(jo.nodes()[0].contentDocument.body),an.node().style.margin=0}else an=(0,z.Ys)(x);Zm(an,f,rn,`font-family: ${$s}`,"http://www.w3.org/1999/xlink")}else{if(((l,f,_,x)=>{var k,L,H;null==(k=l.getElementById(f))||k.remove(),null==(L=l.getElementById(_))||L.remove(),null==(H=l.getElementById(x))||H.remove()})(document,f,rn,ke),St){const jo=Jd((0,z.Ys)("body"),ke);an=(0,z.Ys)(jo.nodes()[0].contentDocument.body),an.node().style.margin=0}else an=(0,z.Ys)("body");Zm(an,f,rn)}let Ei,sr;try{Ei=yield Zc(_,{title:Qe.title})}catch(jo){Ei=new qi("error"),sr=jo}const oi=an.select(pn).node(),iu=Ei.type,ru=oi.firstChild,Sh=ru.firstChild,qc=null==(L=(k=Ei.renderer).getClasses)?void 0:L.call(k,_,Ei),Xm=Dh(Me,iu,qc,Q),ou=document.createElement("style");ou.innerHTML=Xm,ru.insertBefore(ou,Sh);try{yield Ei.renderer.draw(_,f,"10.9.3",Ei)}catch(jo){throw za.draw(_,f,"10.9.3"),jo}(function zp(l,f,_,x){(function $d(l,f){l.attr("role","graphics-document document"),""!==f&&l.attr("aria-roledescription",f)})(f,l),function Tm(l,f,_,x){if(void 0!==l.insert){if(_){const k=`chart-desc-${x}`;l.attr("aria-describedby",k),l.insert("desc",":first-child").attr("id",k).text(_)}if(f){const k=`chart-title-${x}`;l.attr("aria-labelledby",k),l.insert("title",":first-child").attr("id",k).text(f)}}}(f,_,x,f.attr("id"))})(iu,an.select(`${pn} svg`),null==(ne=(H=Ei.db).getAccTitle)?void 0:ne.call(H),null==(Ee=(se=Ei.db).getAccDescription)?void 0:Ee.call(se)),an.select(`[id="${f}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let ba=an.select(pn).node().innerHTML;if(Lt.debug("config.arrowMarkerAbsolute",Me.arrowMarkerAbsolute),ba=((l="",f,_)=>{let x=l;return!_&&!f&&(x=x.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),x=Ss(x),x=x.replace(/
/g,"
"),x})(ba,St,ia(Me.arrowMarkerAbsolute)),St?ba=((l="",f)=>{var _,x;return``})(ba,an.select(pn+" svg").node()):Pr||(ba=ae.sanitize(ba,{ADD_TAGS:Ul,ADD_ATTR:xh})),gi.forEach(l=>{l()}),gi=[],sr)throw sr;const ql=(0,z.Ys)(St?qt:pn).node();return ql&&"remove"in ql&&ql.remove(),{svg:ba,bindFunctions:Ei.db.bindFunctions}});return function(_,x,k){return l.apply(this,arguments)}}(),Zc=(l,f={})=>{const{code:_}=Jr(l);return da(_,f)},$o=Object.freeze({render:qm,parse:function Gc(l,f){return Qd.apply(this,arguments)},getDiagramFromText:Zc,initialize:function Th(l={}){var f;l?.fontFamily&&!(null!=(f=l.themeVariables)&&f.fontFamily)&&(l.themeVariables||(l.themeVariables={}),l.themeVariables.fontFamily=l.fontFamily),(l=>{aa=fi({},l)})(l),l?.theme&&l.theme in Ti?l.themeVariables=Ti[l.theme].getThemeVariables(l.themeVariables):l&&(l.themeVariables=Ti.default.getThemeVariables(l.themeVariables));const _="object"==typeof l?(l=>(te=fi({},ns),te=fi(te,l),l.theme&&Ti[l.theme]&&(te.themeVariables=Ti[l.theme].getThemeVariables(l.themeVariables)),Tl(te,qn),te))(l):hm();pl(_.logLevel),Ic()},getConfig:Li,setConfig:As,getSiteConfig:hm,updateSiteConfig:l=>(te=fi(te,l),Tl(te,qn),te),reset:()=>{Sn()},globalReset:()=>{Sn(ns)},defaultConfig:ns});pl(Li().logLevel),Sn(Li());const $p=function(){var l=(0,j.Z)(function*(){Lt.debug("Loading registered diagrams");const _=(yield Promise.allSettled(Object.entries(Ur).map(function(){var x=(0,j.Z)(function*([k,{detector:L,loader:H}]){if(H)try{Tn(k)}catch{try{const{diagram:se,id:Ee}=yield H();Te(Ee,se,L)}catch(se){throw Lt.error(`Failed to load external diagram with key ${k}. Removing from detectors.`),delete Ur[k],se}}});return function(k){return x.apply(this,arguments)}}()))).filter(x=>"rejected"===x.status);if(_.length>0){Lt.error(`Failed to load ${_.length} external diagrams`);for(const x of _)Lt.error(x);throw new Error(`Failed to load ${_.length} external diagrams`)}});return function(){return l.apply(this,arguments)}}(),jp=(l,f,_)=>{Lt.warn(l),Td(l)?(_&&_(l.str,l.hash),f.push({...l,message:l.str,error:l})):(_&&_(l),l instanceof Error&&f.push({str:l.message,message:l.message,hash:l.name,error:l}))},eu=function(){var l=(0,j.Z)(function*(f={querySelector:".mermaid"}){try{yield tu(f)}catch(_){if(Td(_)&&Lt.error(_.str),Do.parseError&&Do.parseError(_),!f.suppressErrors)throw Lt.error("Use the suppressErrors option to suppress these errors"),_}});return function(){return l.apply(this,arguments)}}(),tu=function(){var l=(0,j.Z)(function*({postRenderCallback:f,querySelector:_,nodes:x}={querySelector:".mermaid"}){const k=$o.getConfig();let L;if(Lt.debug((f?"":"No ")+"Callback function found"),x)L=x;else{if(!_)throw new Error("Nodes and querySelector are both undefined");L=document.querySelectorAll(_)}Lt.debug(`Found ${L.length} diagrams`),void 0!==k?.startOnLoad&&(Lt.debug("Start On Load: "+k?.startOnLoad),$o.updateSiteConfig({startOnLoad:k?.startOnLoad}));const H=new sa.InitIDGenerator(k.deterministicIds,k.deterministicIDSeed);let ne;const se=[];for(const Ee of Array.from(L)){if(Lt.info("Rendering diagram: "+Ee.id),Ee.getAttribute("data-processed"))continue;Ee.setAttribute("data-processed","true");const Qe=`mermaid-${H.next()}`;ne=Ee.innerHTML,ne=(0,J.Z)(sa.entityDecode(ne)).trim().replace(//gi,"
");const Me=sa.detectInit(ne);Me&&Lt.debug("Detected early reinit: ",Me);try{const{svg:Q,bindFunctions:ke}=yield Km(Qe,ne,Ee);Ee.innerHTML=Q,f&&(yield f(Qe)),ke&&ke(Ee)}catch(Q){jp(Q,se,Do.parseError)}}if(se.length>0)throw se[0]});return function(){return l.apply(this,arguments)}}(),Eh=function(l){$o.initialize(l)},Wl=function(){var l=(0,j.Z)(function*(f,_,x){Lt.warn("mermaid.init is deprecated. Please use run instead."),f&&Eh(f);const k={postRenderCallback:x,querySelector:".mermaid"};"string"==typeof _?k.querySelector=_:_&&(k.nodes=_ instanceof HTMLElement?[_]:_),yield eu(k)});return function(_,x,k){return l.apply(this,arguments)}}(),Mh=function(){var l=(0,j.Z)(function*(f,{lazyLoad:_=!0}={}){fr(...f),!1===_&&(yield $p())});return function(_){return l.apply(this,arguments)}}(),nu=function(){if(Do.startOnLoad){const{startOnLoad:l}=$o.getConfig();l&&Do.run().catch(f=>Lt.error("Mermaid failed to initialize",f))}};typeof document<"u"&&window.addEventListener("load",nu,!1);const Gl=[];let kh=!1;const Ym=function(){var l=(0,j.Z)(function*(){if(!kh){for(kh=!0;Gl.length>0;){const f=Gl.shift();if(f)try{yield f()}catch(_){Lt.error("Error executing queue",_)}}kh=!1}});return function(){return l.apply(this,arguments)}}(),Wp=function(){var l=(0,j.Z)(function*(f,_){return new Promise((x,k)=>{Gl.push(()=>new Promise((H,ne)=>{$o.parse(f,_).then(se=>{H(se),x(se)},se=>{var Ee;Lt.error("Error parsing",se),null==(Ee=Do.parseError)||Ee.call(Do,se),ne(se),k(se)})})),Ym().catch(k)})});return function(_,x){return l.apply(this,arguments)}}(),Km=(l,f,_)=>new Promise((x,k)=>{Gl.push(()=>new Promise((H,ne)=>{$o.render(l,f,_).then(se=>{H(se),x(se)},se=>{var Ee;Lt.error("Error parsing",se),null==(Ee=Do.parseError)||Ee.call(Do,se),ne(se),k(se)})})),Ym().catch(k)}),Do={startOnLoad:!0,mermaidAPI:$o,parse:Wp,render:Km,init:Wl,run:eu,registerExternalDiagrams:Mh,initialize:Eh,parseError:void 0,contentLoaded:nu,setParseErrorHandler:function(l){Do.parseError=l},detectType:mr}},5861:(rt,de,M)=>{"use strict";function j(re,q,z,ae,me,_e,X){try{var S=re[_e](X),oe=S.value}catch(Oe){return void z(Oe)}S.done?q(oe):Promise.resolve(oe).then(ae,me)}function J(re){return function(){var q=this,z=arguments;return new Promise(function(ae,me){var _e=re.apply(q,z);function X(oe){j(_e,ae,me,X,S,"next",oe)}function S(oe){j(_e,ae,me,X,S,"throw",oe)}X(void 0)})}}M.d(de,{Z:()=>J})}},rt=>{rt(rt.s=300)}]); \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/runtime.574fc519230447d5.js b/pkg/apiserver-impl/ui/runtime.574fc519230447d5.js deleted file mode 100644 index 63682ea8d6..0000000000 --- a/pkg/apiserver-impl/ui/runtime.574fc519230447d5.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function a(e){var c=m[e];if(void 0!==c)return c.exports;var r=m[e]={exports:{}};return v[e].call(r.exports,r,r.exports,a),r.exports}a.m=v,e=[],a.O=(c,r,d,n)=>{if(!r){var t=1/0;for(f=0;f=n)&&Object.keys(a.O).every(p=>a.O[p](r[i]))?r.splice(i--,1):(u=!1,n0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[r,d,n]},a.d=(e,c)=>{for(var r in c)a.o(c,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:c[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((c,r)=>(a.f[r](e,c),c),[])),a.u=e=>(592===e?"common":e)+"."+{38:"fba2ecc6e4763433",44:"94245195e1d0b050",65:"6d0e353a29eeab39",165:"bde353f44cb7bb78",167:"17f92c6e702d25df",233:"a9d4b21b1685eaf7",270:"3930e48419f47a91",325:"5442c16224d7ead3",400:"251b299514a70c5d",407:"481a9d034fa71ad4",463:"dc3a51287a3daffe",474:"fc76b77c0b0a42c1",499:"7b2b01997dee913b",547:"c349efb0d3b6da75",592:"5c8a2e23d554c074",594:"6b6471753b71a6cf",609:"32c373e0fbdc4f95",627:"78bbe1b912458c32",633:"98936ec9d0fd371a",634:"b9d30a1327dead79",690:"4ed844d0622bcdf0",728:"d855df7b4e9659d2",730:"d98a298a483060a0",751:"246266f502726002",770:"b5355903ae187636",820:"9423629b523fc453",831:"4ab3ba9ca26fa0f5",839:"51b43950610b1cc5",880:"7a4356d9d7293fda",903:"c29428aa95c26108",917:"1b3eb8f93ae99c79",919:"c655383a313f29b4"}[e]+".js",a.miniCssF=e=>{},a.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),(()=>{var e={},c="devfile-builder:";a.l=(r,d,n,f)=>{if(e[r])e[r].push(d);else{var t,u;if(void 0!==n)for(var i=document.getElementsByTagName("script"),l=0;l{t.onerror=t.onload=null,clearTimeout(s);var _=e[r];if(delete e[r],t.parentNode&&t.parentNode.removeChild(t),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(b.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=b.bind(null,t.onerror),t.onload=b.bind(null,t.onload),u&&document.head.appendChild(t)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:c=>c},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={666:0};a.f.j=(d,n)=>{var f=a.o(e,d)?e[d]:void 0;if(0!==f)if(f)n.push(f[2]);else if(666!=d){var t=new Promise((o,b)=>f=e[d]=[o,b]);n.push(f[2]=t);var u=a.p+a.u(d),i=new Error;a.l(u,o=>{if(a.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var b=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;i.message="Loading chunk "+d+" failed.\n("+b+": "+s+")",i.name="ChunkLoadError",i.type=b,i.request=s,f[1](i)}},"chunk-"+d,d)}else e[d]=0},a.O.j=d=>0===e[d];var c=(d,n)=>{var i,l,[f,t,u]=n,o=0;if(f.some(s=>0!==e[s])){for(i in t)a.o(t,i)&&(a.m[i]=t[i]);if(u)var b=u(a)}for(d&&d(n);o{"use strict";var e,v={},m={};function a(e){var n=m[e];if(void 0!==n)return n.exports;var r=m[e]={exports:{}};return v[e].call(r.exports,r,r.exports,a),r.exports}a.m=v,e=[],a.O=(n,r,d,c)=>{if(!r){var t=1/0;for(f=0;f=c)&&Object.keys(a.O).every(p=>a.O[p](r[i]))?r.splice(i--,1):(l=!1,c0&&e[f-1][2]>c;f--)e[f]=e[f-1];e[f]=[r,d,c]},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((n,r)=>(a.f[r](e,n),n),[])),a.u=e=>(592===e?"common":e)+"."+{60:"685c2165b0aaa640",65:"6d0e353a29eeab39",70:"20b5cf127910a277",106:"660a24779a950b57",109:"1bc591266882735b",118:"efe4353ad7321c4a",153:"d4cce79846a7dd32",177:"878eb3be2aa9d69a",196:"7202a050f57b2a0c",235:"8b4ded998620e196",256:"e109041062d43d27",277:"ef9c6b029eb416c2",294:"bac01a924dc03377",412:"59466dc862aa4b87",508:"8c9ab7239b64f64b",552:"7e3497fa1d244176",567:"dcca9e7b48f5dfdf",592:"a460f048f6dafca5",634:"b9d30a1327dead79",652:"a257982f6cb94696",665:"07fb59cca43331d0",667:"bce38317bbf96dd5",687:"b07e6d76bf58d46f",706:"98213c0edcceba9b",725:"ef7067e12041f0a5",751:"246266f502726002",769:"a10b1572fd4b8711",787:"9039147efd6d6d26",867:"c8df2c2f5dc1b899",907:"21a1588e78495f0d",952:"5a44fde7550d4404",993:"68a03a82a6830294"}[e]+".js",a.miniCssF=e=>{},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="devfile-builder:";a.l=(r,d,c,f)=>{if(e[r])e[r].push(d);else{var t,l;if(void 0!==c)for(var i=document.getElementsByTagName("script"),o=0;o{t.onerror=t.onload=null,clearTimeout(s);var _=e[r];if(delete e[r],t.parentNode&&t.parentNode.removeChild(t),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={666:0};a.f.j=(d,c)=>{var f=a.o(e,d)?e[d]:void 0;if(0!==f)if(f)c.push(f[2]);else if(666!=d){var t=new Promise((b,u)=>f=e[d]=[b,u]);c.push(f[2]=t);var l=a.p+a.u(d),i=new Error;a.l(l,b=>{if(a.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var u=b&&("load"===b.type?"missing":b.type),s=b&&b.target&&b.target.src;i.message="Loading chunk "+d+" failed.\n("+u+": "+s+")",i.name="ChunkLoadError",i.type=u,i.request=s,f[1](i)}},"chunk-"+d,d)}else e[d]=0},a.O.j=d=>0===e[d];var n=(d,c)=>{var i,o,[f,t,l]=c,b=0;if(f.some(s=>0!==e[s])){for(i in t)a.o(t,i)&&(a.m[i]=t[i]);if(l)var u=l(a)}for(d&&d(c);b